activevalidators 4.0.1 → 4.0.2

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: 6f260ce3b21f10ce497a65cd978660c982b2b7a6
4
- data.tar.gz: 4bc090da4c2104d9a5e2a1775b875f249d55ce3e
3
+ metadata.gz: bd023a35373d383c1b1fb97e202e8d1d21a23b1a
4
+ data.tar.gz: 98da67873560c378d040d18025524eb8182b4c4b
5
5
  SHA512:
6
- metadata.gz: df244af41979cd026768db473330e814d062ddf434cb48fa4a5ffc5caeb26ed7bbafd42315f4e954d8be2b7b828f8c09efa5962164bfdafa153437fa8972f6db
7
- data.tar.gz: 57aa67ec17e4c9bf6b8c806227b575d80611c4907fc0d6fbe1ad01fad4791ec08d2b485a16da1d5cb294496ca163ea8ab2cae24c1fdf8d9b61275368bd774f43
6
+ metadata.gz: c398449cecb367ce3af5bb06169d3fc3bb4c9a994ea9cf6bffaf2245f6ec3ac6b79c3e380e96f07fd31b3a11918b7b40be6e8aa0dec866bd165bdcadda96baa3
7
+ data.tar.gz: 7fabb25274d29f5e0dace47ce2a1cb45b5fc227085e46d7494985dfe1182617dfb4d9a5ad376757ee69f92eca12957fd8a172f8d4de0804faa7211be5f712486
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
data/ChangeLog.md CHANGED
@@ -8,6 +8,12 @@
8
8
 
9
9
  ## CHANGES
10
10
 
11
+ # 4.0.2
12
+
13
+ ## CHANGES
14
+
15
+ * Ensure NINO's prefixes are correct (@alyssais).
16
+
11
17
 
12
18
  # 4.0.1
13
19
 
data/README.md CHANGED
@@ -27,7 +27,7 @@ This projects follows [Semantic Versioning a.k.a SemVer](http://semver.org). If
27
27
  What it means is that you should specify an ActiveValidators version like this :
28
28
 
29
29
  ```ruby
30
- gem 'activevalidators', '~> 3.0.0' # <-- mind the patch version
30
+ gem 'activevalidators', '~> 4.0.1' # <-- mind the patch version
31
31
  ```
32
32
 
33
33
  Once you have `require`'d the gem, you will have to activate the validators you
@@ -1,7 +1,7 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  Gem::Specification.new do |s|
3
3
  s.name = 'activevalidators'
4
- s.version = '4.0.1'
4
+ s.version = '4.0.2'
5
5
  s.platform = Gem::Platform::RUBY
6
6
  s.authors = ['Franck Verrot', 'Paco Guzmán', 'Oriol Gual', 'Garrett Bjerkhoel', 'Renato Riccieri Santos Zannon', 'Brian Moseley', 'Serj L aka Loremaster']
7
7
  s.email = ['franck@verrot.fr']
@@ -0,0 +1 @@
1
+ 0fd70ceed9eaca16b22509a99454d893b84ad2d253bb196e6ca79639aba9f6662c682171d38e4de940983b37eb8eb9f68a54d4ab6fc31c625dffa2b67f6f74e2
@@ -57,14 +57,14 @@ module ActiveModel
57
57
  end
58
58
 
59
59
  def prefix_not_allocated?
60
- forbidden_prefixes = %w[BG, GB, NK, KN, TN, NT, ZZ]
60
+ forbidden_prefixes = %w[BG GB NK KN TN NT ZZ]
61
61
  !forbidden_prefixes.include?(@prefix)
62
62
  end
63
63
 
64
64
  def prefix_not_administrative_number?
65
- administrative_prefixes = %w[OO, CR, FY, MW, NC, PP, PY, PZ]
65
+ administrative_prefixes = %w[OO CR FY MW NC PP PY PZ]
66
66
  !administrative_prefixes.include?(@prefix)
67
67
  end
68
68
  end
69
69
  end
70
- end
70
+ end
@@ -52,7 +52,7 @@ describe "NINO validations" do
52
52
  end
53
53
 
54
54
  it "rejects non allocated prefixes" do
55
- non_allocated_prefixes = %w[bg, gb, nk, kn, tn, nt, zz]
55
+ non_allocated_prefixes = %w[bg gb nk kn tn nt zz]
56
56
  non_allocated_prefixes.each do |suffix|
57
57
  invalid_nino = suffix + '123456C'
58
58
  subject = build_nino_record({:nino => invalid_nino})
@@ -61,7 +61,7 @@ describe "NINO validations" do
61
61
  end
62
62
 
63
63
  it "rejects administrative numbers" do
64
- administrative_numbers = %w[oo, cr, fy, mw, nc, pp, py, pz]
64
+ administrative_numbers = %w[oo cr fy mw nc pp py pz]
65
65
  administrative_numbers.each do |suffix|
66
66
  invalid_nino = suffix + '123456C'
67
67
  subject = build_nino_record({:nino => invalid_nino})
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activevalidators
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.1
4
+ version: 4.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Franck Verrot
@@ -36,7 +36,7 @@ cert_chain:
36
36
  Z7BoH/Mfxw3P4yyir173p9JWvVqLiQE13XBeD13NPA8neoWpLJxm6k03PcTElT/E
37
37
  QrOSgKrHAb/fFJma
38
38
  -----END CERTIFICATE-----
39
- date: 2016-09-20 00:00:00.000000000 Z
39
+ date: 2017-04-26 00:00:00.000000000 Z
40
40
  dependencies:
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
@@ -183,6 +183,7 @@ files:
183
183
  - checksums/3.1.2.sha512
184
184
  - checksums/3.2.0.sha512
185
185
  - checksums/4.0.0.sha512
186
+ - checksums/4.0.1.sha512
186
187
  - lib/active_validators/active_model/validations/barcode_validator.rb
187
188
  - lib/active_validators/active_model/validations/credit_card_validator.rb
188
189
  - lib/active_validators/active_model/validations/date_validator.rb
@@ -245,7 +246,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
245
246
  version: '0'
246
247
  requirements: []
247
248
  rubyforge_project:
248
- rubygems_version: 2.6.4
249
+ rubygems_version: 2.6.8
249
250
  signing_key:
250
251
  specification_version: 4
251
252
  summary: Collection of ActiveModel/ActiveRecord validations
metadata.gz.sig CHANGED
Binary file