cpf_cnpj 0.2.0 → 0.2.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: 6fabca5513107302691457cceb9389c53aa7249c
4
- data.tar.gz: 16d2efbf715673ae2e4f3e640051683893697397
3
+ metadata.gz: de9eb28c1f452532ed8ac6d4f4de50a90dfbfcc3
4
+ data.tar.gz: 245f841bb1134f3c196b9844a3aa2b2cd0dd2aff
5
5
  SHA512:
6
- metadata.gz: 5ac81c9d850453ca652b1812bb89e4c582ca0d0257e19bc8fec46d41f7c2a1ad726e760f451f50a4c6c82af0c4ee0219eccb57d515304579f2d113e04cb8ae49
7
- data.tar.gz: ffea71b4641f2302c8100835e5ce18f8d3bbcdcbd6255cdd64774ad135d3a8a9f5e6488bb6bdb6a4e450cee677efbefc7d45f2001a0e6c2137e5390d8ec5b686
6
+ metadata.gz: 14b110b3d281159204b1615b7c5b382f209f34ceb2c5d5680468796d1f93424f60fd7c8f743a10a189581994dd14087f0c52b7699123d4acef65d8f062d846ff
7
+ data.tar.gz: 5ba1e893019527388659e6141fef1685cc715641857192c68591af0165c891bca36915a6ac7ddb8f346a2e9f631f1bf3e0b2d7605d245aa6d75c2d0ffb14286f
@@ -1,38 +1,42 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cpf_cnpj (0.2.0)
4
+ cpf_cnpj (0.2.1)
5
5
 
6
6
  GEM
7
7
  remote: http://rubygems.org/
8
8
  specs:
9
9
  awesome_print (1.2.0)
10
- coderay (1.0.9)
10
+ coderay (1.1.0)
11
11
  diff-lcs (1.2.5)
12
12
  method_source (0.8.2)
13
- pry (0.9.12.2)
14
- coderay (~> 1.0.5)
15
- method_source (~> 0.8)
13
+ pry (0.10.1)
14
+ coderay (~> 1.1.0)
15
+ method_source (~> 0.8.1)
16
16
  slop (~> 3.4)
17
- pry-meta (0.0.5)
17
+ pry-meta (0.0.9)
18
18
  awesome_print
19
19
  pry
20
20
  pry-nav
21
21
  pry-remote
22
- pry-nav (0.2.3)
23
- pry (~> 0.9.10)
24
- pry-remote (0.1.7)
22
+ pry-nav (0.2.4)
23
+ pry (>= 0.9.10, < 0.11.0)
24
+ pry-remote (0.1.8)
25
25
  pry (~> 0.9)
26
26
  slop (~> 3.0)
27
- rspec (2.14.1)
28
- rspec-core (~> 2.14.0)
29
- rspec-expectations (~> 2.14.0)
30
- rspec-mocks (~> 2.14.0)
31
- rspec-core (2.14.7)
32
- rspec-expectations (2.14.4)
33
- diff-lcs (>= 1.1.3, < 2.0)
34
- rspec-mocks (2.14.4)
35
- slop (3.4.6)
27
+ rspec (3.1.0)
28
+ rspec-core (~> 3.1.0)
29
+ rspec-expectations (~> 3.1.0)
30
+ rspec-mocks (~> 3.1.0)
31
+ rspec-core (3.1.7)
32
+ rspec-support (~> 3.1.0)
33
+ rspec-expectations (3.1.2)
34
+ diff-lcs (>= 1.2.0, < 2.0)
35
+ rspec-support (~> 3.1.0)
36
+ rspec-mocks (3.1.3)
37
+ rspec-support (~> 3.1.0)
38
+ rspec-support (3.1.2)
39
+ slop (3.6.0)
36
40
 
37
41
  PLATFORMS
38
42
  ruby
@@ -3,7 +3,7 @@ class CPF
3
3
  def self.generate(numbers)
4
4
  modulus = numbers.size + 1
5
5
 
6
- multiplied = numbers.map.with_index do |number, index|
6
+ multiplied = numbers.map.each_with_index do |number, index|
7
7
  number * (modulus - index)
8
8
  end
9
9
 
@@ -1,7 +1,7 @@
1
1
  class CPF
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
4
4
 
5
5
  class CNPJ
6
- VERSION = "0.2.0"
6
+ VERSION = "0.2.1"
7
7
  end
metadata CHANGED
@@ -1,41 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cpf_cnpj
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nando Vieira
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-09 00:00:00.000000000 Z
11
+ date: 2014-12-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: pry-meta
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  description: Validate, generate and format CPF/CNPJ numbers. Include command-line
@@ -48,8 +48,8 @@ executables:
48
48
  extensions: []
49
49
  extra_rdoc_files: []
50
50
  files:
51
- - .gitignore
52
- - .rspec
51
+ - ".gitignore"
52
+ - ".rspec"
53
53
  - Gemfile
54
54
  - Gemfile.lock
55
55
  - LICENSE
@@ -90,17 +90,17 @@ require_paths:
90
90
  - lib
91
91
  required_ruby_version: !ruby/object:Gem::Requirement
92
92
  requirements:
93
- - - '>='
93
+ - - ">="
94
94
  - !ruby/object:Gem::Version
95
95
  version: '0'
96
96
  required_rubygems_version: !ruby/object:Gem::Requirement
97
97
  requirements:
98
- - - '>='
98
+ - - ">="
99
99
  - !ruby/object:Gem::Version
100
100
  version: '0'
101
101
  requirements: []
102
102
  rubyforge_project:
103
- rubygems_version: 2.0.3
103
+ rubygems_version: 2.2.2
104
104
  signing_key:
105
105
  specification_version: 4
106
106
  summary: Validate, generate and format CPF/CNPJ numbers. Include command-line tools.
@@ -116,4 +116,3 @@ test_files:
116
116
  - spec/spec_helper.rb
117
117
  - spec/support/capture_exit.rb
118
118
  - spec/support/validation_shared.rb
119
- has_rdoc: