snils 0.1.0 → 0.1.1

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: 6a2f1950c8b25a7604324cbb84d179fb53251f10
4
- data.tar.gz: dfdc5be3335785ece5d5bf3964e509acc7424be9
3
+ metadata.gz: 77cae4842c7d2d690759f9399e75d65fea06359d
4
+ data.tar.gz: 0bf287d98e0e2d516553fb49903cc6d3178d8117
5
5
  SHA512:
6
- metadata.gz: 070f9179663627b3d3fb152037f63fdb5790da26429dc7d9db3beb2ec5950597e43d28d1c1a7ef80ab25f96d07d4514bef8d260e0196b808126e37a7d13edd14
7
- data.tar.gz: a1032ea644a7f785855ca70b45301ecae1e6d95770f6bb0fbf3394f35e2d609bc8602d2b3c3cdfba2192f5c98f265c1c8bd4fe3743cb50b9925bbca114a52b3c
6
+ metadata.gz: dd6cf178bc235f330ab2e6f80f2fc37a692aba66cf1ef46dfa144418f30dc3399164b8a94ee9ede2a7e64b44dbe8335ccd41b7ae57a4337cd622f135df87e942
7
+ data.tar.gz: 8d87e7e1cb501d9b15591e69db5239a64e4e180f22f9f29fcc64c21769a77915c1dbeb6e44265c160c5fd3245e6b42947f0fad4fc6cf6c3108c1bd10647d3cb0
@@ -5,9 +5,9 @@ rvm:
5
5
  - ree
6
6
  - 1.9.3
7
7
  - 2.0.0
8
- - 2.1
8
+ - 2.1.2
9
9
  - jruby
10
- - rbx
10
+ - rbx-2
11
11
  - ruby-head
12
12
 
13
13
  matrix:
@@ -71,8 +71,8 @@ class Snils
71
71
  protected
72
72
 
73
73
  def validate
74
- @errors << [:wrong_length, :count => 11] unless @snils.length == 11
75
- @errors << :invalid unless @snils[-2..-1] == self.checksum
74
+ @errors << [:wrong_length, {:count => 11}] unless @snils.length == 11
75
+ @errors << :invalid unless @snils[-2..-1] == self.checksum
76
76
  @validated = true
77
77
  end
78
78
 
@@ -1,3 +1,3 @@
1
1
  class Snils
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
@@ -68,12 +68,12 @@ describe Snils do
68
68
 
69
69
  it 'should not validate invalid snils (with wrong length)' do
70
70
  snils = described_class.new('963-117-158 080')
71
- expect(snils.errors).to include [:wrong_length, :count => 11]
71
+ expect(snils.errors).to include [:wrong_length, {:count => 11}]
72
72
  end
73
73
 
74
74
  it 'should not validate invalid snils (with wrong length)' do
75
75
  snils = described_class.new('963-117-158')
76
- expect(snils.errors).to include [:wrong_length, :count => 11]
76
+ expect(snils.errors).to include [:wrong_length, {:count => 11}]
77
77
  end
78
78
 
79
79
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: snils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrey Novikov