validates_cpf 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
- = ValidatesCPF
1
+ = ValidatesCPF {<img src="https://secure.travis-ci.org/plribeiro3000/validates_cpf.png" />}[http://travis-ci.org/plribeiro3000/validates_cpf]
2
2
 
3
- Rails gem to validate CPF
3
+ Rails gem to validate CPF. Don't forget to check {ValidatesCnpj}[https://github.com/plribeiro3000/validates_cnpj] and {ValidatesTelephone}[https://github.com/plribeiro3000/validates_telephone].
4
4
 
5
5
  == Install
6
6
 
@@ -16,7 +16,7 @@ end
16
16
 
17
17
  == Test
18
18
 
19
- Only Rspec supported at the moment. The gem already have macros for shoulda-macros and remarkable.
19
+ This gem has matchers for shoulda-matchers and remarkable.
20
20
 
21
21
  If you are using shoulda-matchers, add this line to your spec_helper.rb :
22
22
  require "validates_cpf/shoulda-matchers/validate_as_cpf_matcher"
@@ -25,8 +25,8 @@ If you are using remarkable, add this line to your spec_helper.rb :
25
25
 
26
26
  === How?
27
27
 
28
- You should use validates_as_cpf(:attribute) just like any other shoulda matcher.
28
+ You should use validates_as_cpf(:attribute) just like any other shoulda or remarkable matcher.
29
29
 
30
- == Special Thanks
30
+ == Goal
31
31
 
32
- This project is based on brcpfcnpj gem and his intention it to mantain a cleaner code to validate CPF and easy macros to test it.
32
+ This project is based on brcpfcnpj gem and his intention it to mantain a cleaner code to validate CPF and easy matchers to test it.
data/Rakefile CHANGED
@@ -1,4 +1,7 @@
1
1
  require "bundler/gem_tasks"
2
2
  require "rspec/core/rake_task"
3
3
 
4
- RSpec::Core::RakeTask.new
4
+ RSpec::Core::RakeTask.new
5
+
6
+ desc "Default Task"
7
+ task :default => [ :spec ]
@@ -1,3 +1,3 @@
1
1
  module ValidatesCpf
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
@@ -57,7 +57,7 @@ describe CPF do
57
57
 
58
58
  context "should be valid with" do
59
59
  it "nil as number" do
60
- CPF.new(nil).should be_valid
60
+ CPF.new(nil).should be_valid
61
61
  end
62
62
 
63
63
  it "111.444.777-35 as number" do
@@ -9,7 +9,7 @@ Gem::Specification.new do |s|
9
9
  s.email = %q{plribeiro3000@gmail.com}
10
10
  s.homepage = ""
11
11
  s.summary = %q{CPF Validation GEM}
12
- s.description = %q{Validates CPF and test it with macros in a simple way.}
12
+ s.description = %q{Validates CPF and test it with matchers in a simple way.}
13
13
 
14
14
  s.add_dependency("activerecord", ">= 3.0.0")
15
15
 
@@ -20,8 +20,9 @@ Gem::Specification.new do |s|
20
20
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
21
21
  s.require_paths = %w(lib)
22
22
 
23
+ s.add_development_dependency "rake"
23
24
  s.add_development_dependency "rspec", ">= 2.0.0"
24
- s.add_development_dependency("shoulda-matchers", ">= 1.0.0")
25
- s.add_development_dependency("remarkable_activerecord", "= 4.0.0.alpha4")
25
+ s.add_development_dependency "shoulda-matchers", ">= 1.0.0"
26
+ s.add_development_dependency "remarkable_activerecord", "= 4.0.0.alpha4"
26
27
  s.add_development_dependency "sqlite3"
27
28
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: validates_cpf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-02-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activerecord
16
- requirement: &6793500 !ruby/object:Gem::Requirement
16
+ requirement: &19547780 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,21 @@ dependencies:
21
21
  version: 3.0.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *6793500
24
+ version_requirements: *19547780
25
+ - !ruby/object:Gem::Dependency
26
+ name: rake
27
+ requirement: &19545400 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ type: :development
34
+ prerelease: false
35
+ version_requirements: *19545400
25
36
  - !ruby/object:Gem::Dependency
26
37
  name: rspec
27
- requirement: &6790920 !ruby/object:Gem::Requirement
38
+ requirement: &19543920 !ruby/object:Gem::Requirement
28
39
  none: false
29
40
  requirements:
30
41
  - - ! '>='
@@ -32,10 +43,10 @@ dependencies:
32
43
  version: 2.0.0
33
44
  type: :development
34
45
  prerelease: false
35
- version_requirements: *6790920
46
+ version_requirements: *19543920
36
47
  - !ruby/object:Gem::Dependency
37
48
  name: shoulda-matchers
38
- requirement: &6789120 !ruby/object:Gem::Requirement
49
+ requirement: &19542960 !ruby/object:Gem::Requirement
39
50
  none: false
40
51
  requirements:
41
52
  - - ! '>='
@@ -43,10 +54,10 @@ dependencies:
43
54
  version: 1.0.0
44
55
  type: :development
45
56
  prerelease: false
46
- version_requirements: *6789120
57
+ version_requirements: *19542960
47
58
  - !ruby/object:Gem::Dependency
48
59
  name: remarkable_activerecord
49
- requirement: &6788060 !ruby/object:Gem::Requirement
60
+ requirement: &19541760 !ruby/object:Gem::Requirement
50
61
  none: false
51
62
  requirements:
52
63
  - - =
@@ -54,10 +65,10 @@ dependencies:
54
65
  version: 4.0.0.alpha4
55
66
  type: :development
56
67
  prerelease: false
57
- version_requirements: *6788060
68
+ version_requirements: *19541760
58
69
  - !ruby/object:Gem::Dependency
59
70
  name: sqlite3
60
- requirement: &6787440 !ruby/object:Gem::Requirement
71
+ requirement: &19541020 !ruby/object:Gem::Requirement
61
72
  none: false
62
73
  requirements:
63
74
  - - ! '>='
@@ -65,8 +76,8 @@ dependencies:
65
76
  version: '0'
66
77
  type: :development
67
78
  prerelease: false
68
- version_requirements: *6787440
69
- description: Validates CPF and test it with macros in a simple way.
79
+ version_requirements: *19541020
80
+ description: Validates CPF and test it with matchers in a simple way.
70
81
  email: plribeiro3000@gmail.com
71
82
  executables: []
72
83
  extensions: []