Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/hanami/validations

Validation mixin for Ruby objects
https://github.com/hanami/validations

Move presence and acceptance calls to _run_validations to have a clearer picture of what happens during validation

2706417e18713313acfc88f369dc9429b48d8257 authored about 10 years ago by Steve Hodgkiss <[email protected]>
Remove type option as coercion no longer happens here

39b43ded0247ecc215fc61577d0e186cbd4edea0 authored about 10 years ago by Steve Hodgkiss <[email protected]>
Namespace ValidationSet under Lotus::Validations

fcb419055d7cd0896f1ffd915dcab4cb68ed8432 authored about 10 years ago by Steve Hodgkiss <[email protected]>
Remove Attributes in favour of a simpler Validator class

cb85cdb591615b8a35e847190b6fbe199600b30f authored about 10 years ago by Steve Hodgkiss <[email protected]>
Revert "Change validation test so that we’re validating a string and the format test passes."

This reverts commit 20909be9cbc27fbd07023ccdb06e3bc2c5099919.

b1979839a459385ad6d6f3eb486c51d00ab9f90f authored about 10 years ago by Steve Hodgkiss <[email protected]>
Use a read_attributes method instead of build_attributes

c0d5f2564d849df3f224981876af1ebd9e7e8590 authored about 10 years ago by Steve Hodgkiss <[email protected]>
Add doc comment to build_attributes

0baaae81afc262a9c2e9a49b7df9128299ed5cea authored about 10 years ago by Steve Hodgkiss <[email protected]>
An included hook on AttributeDefiner is no longer needed now it’s included by default

5c7750797ac5bcd6120b12123508a16271524e9a authored about 10 years ago by Steve Hodgkiss <[email protected]>
Change validation test so that we’re validating a string and the format test passes.

Integer coercion of ‘anything’ to 0 still needs to be resolved, though.

20909be9cbc27fbd07023ccdb06e3bc2c5099919 authored about 10 years ago by Steve Hodgkiss <[email protected]>
Rename variable

ac3403ee2da59ba97e29786b19e363bfeec6468d authored about 10 years ago by Steve Hodgkiss <[email protected]>
Rename AttributeSet to ValidationSet, .attributes to .validations

f3edb4b5d4110d9252c349c162adbaa66b76545e authored about 10 years ago by Steve Hodgkiss <[email protected]>
Extract AttributeDefiner to hold the mass assignment initializer and attribute definition DSL

226088b1e0c24117d71978c559aee396e37c3d81 authored about 10 years ago by Steve Hodgkiss <[email protected]>
Extract validate method to allow standalone usage

0f131c4214a35340c0bca3afbcb7a5ee64c76011 authored about 10 years ago by Steve Hodgkiss <[email protected]>
Improve spec descriptions

038192d847d0656c7c6c945eff5cb33c8e5d4bda authored about 10 years ago by Steve Hodgkiss <[email protected]>
Use Hash#each_key instead of `each {|k, _|`

058b2a66629645dcb973c6bd7d0d2c03acfbc1e6 authored about 10 years ago by Steve Hodgkiss <[email protected]>
Return nil for blank values when coercing

33da58da955f0012932b53bca95c5de98ac779ae authored about 10 years ago by Steve Hodgkiss <[email protected]>
Attributes are now whitelisted in the constructor

cf195112abb95fdb7137255550244b704de7dd99 authored about 10 years ago by Steve Hodgkiss <[email protected]>
Generate attribute writer methods and move type coercion functionality there

7db2b8eddf56f4e988bf9138bd6ab1a82998e364 authored about 10 years ago by Steve Hodgkiss <[email protected]>
Test to describe revalidating attributes after they have changed

bf6683a3e260923dcee9b3d46940ae6a4f367586 authored about 10 years ago by Steve Hodgkiss <[email protected]>
Don’t splat the type to be coerced

8a3804331b53126bac06c4cb6fd56b28489934d7 authored about 10 years ago by Steve Hodgkiss <[email protected]>
Extract blank value checker from attribute

237cccefb4c5ee559391cd2a1a617377e58bf57f authored about 10 years ago by Steve Hodgkiss <[email protected]>
Merge pull request #38 from stevehodgkiss/fix_class_inheritance_bug

Fix class inheritance test and bug

969ed6829d6c5040cdbcdec2d12a5b7d1507b936 authored about 10 years ago by Luca Guidi <[email protected]>
Fix class inheritance test and bug

The test wasn’t actually testing what it said. This PR fixes the test and adds an inherited hook...

d880ead7a556346e3b9a337ad197328069bc4ff3 authored about 10 years ago by Steve Hodgkiss <[email protected]>
[ci skip] Fix API docs

7f9dafbf9f6300076c3ca4e454ae5a8e33e1c8c0 authored about 10 years ago by Luca Guidi <[email protected]>
Prepare for v0.2.1

3686ef09351aa5d352619cfb8321e26d058bf617 authored about 10 years ago by Luca Guidi <[email protected]>
Merge pull request #34 from rail44/custom-coercion-idempotent

Fix custom coercion for support idempotent between `valid?`

99e1aea7f625958849b18cc2c6d1a6230f314be4 authored about 10 years ago by Luca Guidi <[email protected]>
Fix custom coercion for support idempotent between `valid?`

d3002b4c6cce01ad0320338b73218d87fe8201f8 authored about 10 years ago by Satoshi Amemiya <[email protected]>
Implemented Errors#to_a

2d68cc8a45c5afe28da557ae73789c63cab57446 authored about 10 years ago by Luca Guidi <[email protected]>
Introduced Errors#to_h

577a419718081e41406be03236bb7611efdbd3c6 authored about 10 years ago by Luca Guidi <[email protected]>
Implemented Validations::Errors#any?

f39e893048e84fec562f2b47d0ee9429348a3eee authored about 10 years ago by Luca Guidi <[email protected]>
Bumped version to v0.2.1.dev

6854a4446c85f221bf228483d2bbe3ca447572c7 authored about 10 years ago by Luca Guidi <[email protected]>
Bump version to v0.2.0

ebe2271913ce0245afc1d5d808e1a8ea11e6cb24 authored about 10 years ago by Luca Guidi <[email protected]>
Depend on lotus-utils >= 0.3.1

f3889694882c6c721c45e1b233509ec25bc923e0 authored about 10 years ago by Luca Guidi <[email protected]>
CHANGELOG

4d466a2354aae8ac672818f005e0b259c6b43710 authored about 10 years ago by Luca Guidi <[email protected]>
Merge pull request #30 from lotus/non-whitelisted-attributes

Non whitelist attributes in absence of attributes definitions

4182227cb6aa2f1818f0f11aaf8a24da6e6e4f13 authored about 10 years ago by Luca Guidi <[email protected]>
When a validator doesn't define any attribute, don't whitelist at the initialization time

ba2a3524cc751835d45ffb58759b9580336f5286 authored about 10 years ago by Luca Guidi <[email protected]>
Bump version to 0.2.0.dev

966d1b9081e7dfbc7ce6c5b733c5fc57746e7fce authored about 10 years ago by Luca Guidi <[email protected]>
Merge pull request #29 from lotus/rbx-2-3-0

Support for Rubinius 2.3.0

79a3d488e3e045a99b134d13f625baf74306189b authored about 10 years ago by Luca Guidi <[email protected]>
Support for Rubinius 2.3.0

36f4e2701ea5b9ed3efe608f5bb4b51dc159def3 authored about 10 years ago by Luca Guidi <[email protected]>
Merge pull request #28 from lotus/validations-each

Implement Validations#each and remove #attributes

dd0f0f6d4fa84760b4ff50c57e547d519e1d9295 authored about 10 years ago by Luca Guidi <[email protected]>
Add example with Enumerable usage

c66312e221d337e3c6b10f529349af17b4f74b8c authored about 10 years ago by Luca Guidi <[email protected]>
Implement Validations#each and remove #attributes

e6a1bcae35ea62fd09ae520fd8a5301dccbce9ab authored about 10 years ago by Luca Guidi <[email protected]>
Reduce memory footprint by holding less or less complex structures

7cbb401604408c626615df1cf9994294ca661fd9 authored about 10 years ago by Luca Guidi <[email protected]>
Merge pull request #27 from lotus/attributes-with-key-strings-integration

Accepts strings as keys, only for declared attributes

0875a475824c69fd67be9eaaadf18a89cd1f1ec3 authored about 10 years ago by Luca Guidi <[email protected]>
Accepts strings as keys, only for declared attributes

Example:
require 'lotus/validations'

class Signin
include Lotus::Validations

attri...

9ba4cc5cde998dd97b90e739a61b5804b54779cd authored about 10 years ago by Luca Guidi <[email protected]>
Fix Gemfile path

9e1a537f78be54e45db8a3f09f82d8384c1996bb authored about 10 years ago by Luca Guidi <[email protected]>
Introduce lazy coercion for attributes. Closes #12

It doesn't require to invoke #valid? to have a corced attribute.

Example:
require 'lotus/vali...

4850473c8892bb9b179ac0c3915cb4d1758330a3 authored about 10 years ago by Luca Guidi <[email protected]>
Refactoring: extract attributes and attribute responsibilities

bf1655ded0cae4597c3441fc8b85ef70b6a1c0da authored about 10 years ago by Luca Guidi <[email protected]>
Merge branch 'whitelisted-attributes'

7d8239bb51e89296e687bdb333e37a5676189435 authored about 10 years ago by Luca Guidi <[email protected]>
Retrieve only whitelisted attributes

0e7c5db1c1b5fd774ccc2f925244842086a539e0 authored about 10 years ago by Luca Guidi <[email protected]>
Depend on lotus-utils 0.3.x

a47009d4ebdcf36e221e7f48a6f335d251d0b012 authored about 10 years ago by Luca Guidi <[email protected]>
Merge pull request #23 from lotus/expose-attributes

Expose #attributes as public method

e19b69c2d63b15ff273cadffc83c4fbe3f361605 authored about 10 years ago by Luca Guidi <[email protected]>
Validations#attributes prevents information escape

d4afd75155dcfaae5c227b776c1c95be53e106e7 authored about 10 years ago by Luca Guidi <[email protected]>
Expose #attributes as public method

0ed27d116370e43547f70ad53f852c0c55bcf624 authored about 10 years ago by Luca Guidi <[email protected]>
Ensure that decorated validations preserve don't override the previous set of rules. Thanks to @rhynix

1604de45224da7b15ecab2fd6754c79359522a4b authored about 10 years ago by Luca Guidi <[email protected]>
Document and test decorated composable validations

Example:

require 'lotus/validations'

module CommonValidations
include Lotus::Validatio...

06e290257830f5f6f6d13284f48e87629ba9323a authored about 10 years ago by Luca Guidi <[email protected]>
Use class_eval + include instead of send :include

9175f88258f2bc461db739e6b850573a4566060f authored about 10 years ago by Luca Guidi <[email protected]>
Change example in included API Docs

Use example that is also used in the README

f79523e51860ce79a66cdfc7ce0e537b0532fced authored about 10 years ago by Rik Tonnard <[email protected]>
Change examples in README

Reverted complete example, renamed "Validations in modules" to "Composable validations", simplif...

35847237cd6bb9a8a70ddec31efde4715b1232d9 authored about 10 years ago by Rik Tonnard <[email protected]>
Change since in API docs to x.x.x

9aeea97e635acf367cec71d07f97ee5d5e03641a authored about 10 years ago by Rik Tonnard <[email protected]>
Use send for including in other class/module

For Ruby 2.0 compatibility. In Ruby 2.1.0, Module#include was changed to
a public method because...

918abff61d52f53aae1782714d79c2e9b8098410 authored about 10 years ago by Rik Tonnard <[email protected]>
Update README

dd6606b515c4028732fd47f91e3b0a5e2bbe9d5c authored about 10 years ago by Rik Tonnard <[email protected]>
Add API Docs

b01db60cd48f793d79a57c59fc9281726c219bd0 authored about 10 years ago by Rik Tonnard <[email protected]>
Add tests for nested composed validations

97c26960ba358331b5b394fd331079286aeb1f92 authored about 10 years ago by Rik Tonnard <[email protected]>
Change fixture class for consistency

Change ComposedValidationsTestWithExtraAttributes to
ComposedValidationsWithExtraAttributesTest

a611850476099b673936b223ee37ee0f95efa356 authored about 10 years ago by Rik Tonnard <[email protected]>
Move included definition from eval to ClassMethods

4506966730472ef6b560df11f9c7b49127fbaeab authored about 10 years ago by Rik Tonnard <[email protected]>
Add composable validations

df8ec17eabf4fe7b25cd295141b35eb3eb4b98da authored about 10 years ago by Rik Tonnard <[email protected]>
[ci skip] Fix invalid syntax in README

93f7d40a6b16499602e87a91a51765cbeff884a8 authored about 10 years ago by Luca Guidi <[email protected]>
[ci skip] Added Errors example to README

637404aae510f05dd9eeca6287e5970790225654 authored about 10 years ago by Luca Guidi <[email protected]>
[ci skip] Make Yard happy :joy_cat:

579517dc66a77e7eb1deb003511bc53ed22a29a7 authored about 10 years ago by Luca Guidi <[email protected]>
Merge pull request #18 from lotus/faster-errors-iterators

Made Lotus::Validation::Errors#each and #map 4x faster

0c2fda5aba3ddeabf5786bdce1d2906e192883d7 authored about 10 years ago by Luca Guidi <[email protected]>
Made Lotus::Validation::Errors#each and #map 4x faster

c719ebdd1620ee0766376a67323722ad397b0be2 authored about 10 years ago by Luca Guidi <[email protected]>
Ensure that multiple #valid? calls don't multiplicate errors.

8098b7a53f058e81349e2b3a6ba6620c6a09c6f8 authored about 10 years ago by Luca Guidi <[email protected]>
[ci skip] README improvements

0b0132be6f5c583c056497202919ba410d0ef080 authored about 10 years ago by Luca Guidi <[email protected]>
Don't include CHANGELOG for now

b1521cd3da4ddf999acbd5e304ac6d0c6ab25dcb authored about 10 years ago by Luca Guidi <[email protected]>
Exclude test files from the gem. Requires a version of Ruby 2+

7d9d200c45f8eb88c2e12a272c1095cb711367e7 authored about 10 years ago by Luca Guidi <[email protected]>
Prepare for v0.1.0

437f00947d9f7eee47e42384f5f5bfc4e6f83f05 authored about 10 years ago by Luca Guidi <[email protected]>
[ci skip] Done with API docs

b5f542ca2a71268283397803930b7443264f0421 authored about 10 years ago by Luca Guidi <[email protected]>
Made Lotus::Validations#attributes protected method and API private

d74aab9281dfe1c6bcedc430144349698f7da317 authored about 10 years ago by Luca Guidi <[email protected]>
[ci skip] API doc for Lotus::Validations::AttributeValidator

5056508ee6a5413a6b6458ee64f7c3c4a277818b authored about 10 years ago by Luca Guidi <[email protected]>
Lotus::Validations#initialize now accepts objects who implement #to_h protocol

cc092a78ce84783ef50524725dd79d719372ba6a authored about 10 years ago by Luca Guidi <[email protected]>
[ci skip] API docs for Lotus::Validations

e0c11b7fe6c64c3dee8a2570ea2c10a08cb79c69 authored about 10 years ago by Luca Guidi <[email protected]>
Use lotus-utils 0.3.x

909b35369f9281e63ddb16292dd988c303b2a05b authored about 10 years ago by Luca Guidi <[email protected]>
[ci skip] Started with API docs

a865a46888666481e392e0e56cb79edfedc2ac13 authored about 10 years ago by Luca Guidi <[email protected]>
Added source file for Rubygems/Bundler compat

64e5d15c64829b3c89933a004c972bed5a7aacc7 authored about 10 years ago by Luca Guidi <[email protected]>
Merge pull request #17 from tomkadwill/readme_review

Updated README with spelling and sentence structure changes.

5f8f94172a9b60e04b80fb03a63478783c3c05c9 authored about 10 years ago by Luca Guidi <[email protected]>
Updated README with spelling and sentence structure changes.

7910fd93f02a7129380b6f5cc2851185cb963220 authored about 10 years ago by Tom Kadwill <[email protected]>
Updated README with usage

b1e07b782eeb284f65585e292c5199101074e237 authored about 10 years ago by Luca Guidi <[email protected]>
Merge pull request #16 from dipolesource/update_gemspec_format

Removes TODO from gemspec

c2cec5812ddd652a60884aa84c758b3717b1ba66 authored over 10 years ago by Luca Guidi <[email protected]>
Removes TODO from gemspec

Gemspec is invalid with TODO or FIXME messages. Removing such messages allows the gem to build a...

fb5692a518a82bba68f4259d9bb91502a739e943 authored over 10 years ago by Michael McCormick <[email protected]>
Ruby 2.1.3 support

d5b53f669bb491d3346479afbf548b6cf5053dc3 authored over 10 years ago by Luca Guidi <[email protected]>
Merge branch 'boolean-coercion-bug' of https://github.com/viking/validators into viking-boolean-coercion-bug

Conflicts:
test/fixtures.rb
test/type_test.rb

52132b66beaa4993cf060db64cf6e485bf2f36d4 authored over 10 years ago by Luca Guidi <[email protected]>
Attribute is invalid if its presence is required and it's blank. Closes #8 #9

f01c5e24c6d5c83177494f01a4e64055ad7b5eff authored over 10 years ago by Luca Guidi <[email protected]>
Merge pull request #14 from lotus/custom-coercions

Type coercer accepts custom classes

a04df57212eba369fb77f12ff00f6e43bf7a8b0f authored over 10 years ago by Luca Guidi <[email protected]>
Type coercer accepts custom classes

Example:

class FullName
def initialize(*names)
@names = names
end

def to_s...

57d5f1fc31bba87cc6a9fac9b8c791c1cd7d491f authored over 10 years ago by Luca Guidi <[email protected]>
Merge pull request #10 from lucasas/master

Fixing typo

3179c740b6e94dc8e030e618f9450fa53bbb5476 authored over 10 years ago by Luca Guidi <[email protected]>
Fixing typo

b3ead66f19f477c8d8de4a8f320ff7a459639c1b authored over 10 years ago by Lucas Souza <[email protected]>
Always return true when assigning coerced values

002891c981bce9c65cae294ec30556bf3753b786 authored over 10 years ago by Jeremy Stephens <[email protected]>
Implemented Errors#==

34ba81a82fdebb15a511521c460b5bff14dcfb5a authored over 10 years ago by Luca Guidi <[email protected]>
Renamed Errors instance variable for nicer inspect: @hash => @errors

47037519403cd5f30278305ce22ce5a1bdb56970 authored over 10 years ago by Luca Guidi <[email protected]>