tram-validators 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d7b5954212b6f7dbef5a5d28551e572fb2b358f2
4
- data.tar.gz: be6bda44967fe6e4744a71c4a1b99c46e48d0c5f
3
+ metadata.gz: ec92d7c68a5e2dbfa32186ae6c1c36ce9cc1664d
4
+ data.tar.gz: 66e7694f05340e8ca51656599b0dfd9fbfb2f821
5
5
  SHA512:
6
- metadata.gz: 5ee5ab84a8ff686c3e89d001a96b9926cad5c802f4286f22bdc8b8bbab9944b7393a0a7e974b210cb765a02f5c0834726294db621322f99546ea01b5249f0196
7
- data.tar.gz: 4c032675fec6f86507cb9c9eff376d0c583318a5a62b17c4d537f0aa0bb58b9936f8e13c26910870800575493fec8ccc3e3808ca7c332bdd850fdf735aa36eb9
6
+ metadata.gz: f09e4fc491253e62c2c34cdefa8f0ca27f73098e6cd83f887266913dc47d5a49c6d2b9721a695a9f97f1d7e09ac5f92a4e83ef504fdfe8a167a5fe6b9ec3b4d7
7
+ data.tar.gz: 0ee2f8fbf636a5e993cc3e452e4914ba34711cd4de2573bfe8f252c4ba270055c59eb47d00d0dd6ed8deaf8cefe1c9331359ee154f335b473d0e6f47875c067d
data/CHANGELOG.md CHANGED
@@ -1,9 +1,9 @@
1
- # v0.0.3 (2017-01-30)
1
+ # v0.0.4 (2017-01-30)
2
2
 
3
3
  ## Bug fixes
4
4
  - Error messages from validity and contract validators (nepalez)
5
5
 
6
- [Compare v0.0.2...v0.0.3](https://github.com/tram-rb/tram-validators/compare/v0.0.2...v0.0.3)
6
+ [Compare v0.0.2...v0.0.4](https://github.com/tram-rb/tram-validators/compare/v0.0.2...v0.0.4)
7
7
 
8
8
  # v0.0.2 (2017-01-27)
9
9
 
@@ -11,7 +11,7 @@ class ContractValidator < ActiveModel::EachValidator
11
11
  source = policy.new(value)
12
12
  return if source.valid?
13
13
 
14
- key = "contract_#{policy.name.underscore}"
14
+ key = :"contract_#{policy.name.underscore}"
15
15
  Tram::Validators.copy_errors(source, record, attribute, key, value, options)
16
16
  end
17
17
  end
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |gem|
2
2
  gem.name = "tram-validators"
3
- gem.version = "0.0.3"
3
+ gem.version = "0.0.4"
4
4
  gem.author = "Andrew Kozin (nepalez)"
5
5
  gem.email = "andrew.kozin@gmail.com"
6
6
  gem.homepage = "https://github.com/tram-rb/tram-validators"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tram-validators
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kozin (nepalez)