flash_validators 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. checksums.yaml +7 -0
  2. data/.coveralls.yml +1 -0
  3. data/.gitignore +17 -0
  4. data/.rspec +4 -0
  5. data/.travis.yml +14 -0
  6. data/Gemfile +4 -0
  7. data/LICENSE.txt +22 -0
  8. data/README.md +589 -0
  9. data/Rakefile +6 -0
  10. data/config/locales/en.yml +73 -0
  11. data/flash_validators.gemspec +28 -0
  12. data/lib/flash_validators/matchers/ensure_valid_boolean_format_of.rb +20 -0
  13. data/lib/flash_validators/matchers/ensure_valid_currency_format_of.rb +20 -0
  14. data/lib/flash_validators/matchers/ensure_valid_email_format_of.rb +20 -0
  15. data/lib/flash_validators/matchers/ensure_valid_equality_matcher_of.rb +32 -0
  16. data/lib/flash_validators/matchers/ensure_valid_hex_format_of.rb +20 -0
  17. data/lib/flash_validators/matchers/ensure_valid_imei_format_of.rb +20 -0
  18. data/lib/flash_validators/matchers/ensure_valid_ip_format_of.rb +20 -0
  19. data/lib/flash_validators/matchers/ensure_valid_latitude_format_of.rb +20 -0
  20. data/lib/flash_validators/matchers/ensure_valid_longitude_format_of.rb +20 -0
  21. data/lib/flash_validators/matchers/ensure_valid_mac_address_format_of.rb +20 -0
  22. data/lib/flash_validators/matchers/ensure_valid_name_format_of.rb +20 -0
  23. data/lib/flash_validators/matchers/ensure_valid_password_format_of.rb +20 -0
  24. data/lib/flash_validators/matchers/ensure_valid_phone_format_of.rb +20 -0
  25. data/lib/flash_validators/matchers/ensure_valid_slug_format_of.rb +20 -0
  26. data/lib/flash_validators/matchers/ensure_valid_ssn_format_of.rb +20 -0
  27. data/lib/flash_validators/matchers/ensure_valid_url_format_of.rb +20 -0
  28. data/lib/flash_validators/matchers/ensure_valid_username_format_of.rb +20 -0
  29. data/lib/flash_validators/validators/boolean_validator.rb +9 -0
  30. data/lib/flash_validators/validators/currency_validator.rb +17 -0
  31. data/lib/flash_validators/validators/email_validator.rb +25 -0
  32. data/lib/flash_validators/validators/equality_validator.rb +27 -0
  33. data/lib/flash_validators/validators/hex_validator.rb +9 -0
  34. data/lib/flash_validators/validators/imei_validator.rb +37 -0
  35. data/lib/flash_validators/validators/ip_validator.rb +9 -0
  36. data/lib/flash_validators/validators/latitude_validator.rb +9 -0
  37. data/lib/flash_validators/validators/longitude_validator.rb +9 -0
  38. data/lib/flash_validators/validators/mac_address_validator.rb +24 -0
  39. data/lib/flash_validators/validators/name_validator.rb +9 -0
  40. data/lib/flash_validators/validators/password_validator.rb +9 -0
  41. data/lib/flash_validators/validators/phone_validator.rb +9 -0
  42. data/lib/flash_validators/validators/slug_validator.rb +9 -0
  43. data/lib/flash_validators/validators/ssn_validator.rb +9 -0
  44. data/lib/flash_validators/validators/url_validator.rb +36 -0
  45. data/lib/flash_validators/validators/username_validator.rb +9 -0
  46. data/lib/flash_validators/version.rb +3 -0
  47. data/lib/flash_validators.rb +41 -0
  48. data/spec/lib/boolean_validator_spec.rb +35 -0
  49. data/spec/lib/currency_validator_spec.rb +63 -0
  50. data/spec/lib/email_validator_spec.rb +111 -0
  51. data/spec/lib/equality_validator_spec.rb +340 -0
  52. data/spec/lib/hex_validator_spec.rb +53 -0
  53. data/spec/lib/imei_validator_spec.rb +41 -0
  54. data/spec/lib/ip_validator_spec.rb +33 -0
  55. data/spec/lib/latitude_validator_spec.rb +31 -0
  56. data/spec/lib/longitude_validator_spec.rb +31 -0
  57. data/spec/lib/mac_address_validator_spec.rb +54 -0
  58. data/spec/lib/name_validator_spec.rb +39 -0
  59. data/spec/lib/password_validator_spec.rb +45 -0
  60. data/spec/lib/phone_validator_spec.rb +42 -0
  61. data/spec/lib/slug_validator_spec.rb +41 -0
  62. data/spec/lib/ssn_validator_spec.rb +36 -0
  63. data/spec/lib/url_validator_spec.rb +109 -0
  64. data/spec/lib/username_validator_spec.rb +37 -0
  65. data/spec/spec_helper.rb +11 -0
  66. metadata +224 -0
@@ -0,0 +1,42 @@
1
+ require 'spec_helper'
2
+
3
+ describe PhoneValidator do
4
+
5
+ context "Phone has a valid value" do
6
+ let(:klass) do
7
+ Class.new do
8
+ include ActiveModel::Validations
9
+ attr_accessor :phone, :name
10
+ validates :phone, phone: true
11
+ end
12
+ end
13
+
14
+ subject { klass.new }
15
+
16
+ it { should allow_value("1234567").for(:phone) }
17
+ it { should allow_value("123-4567").for(:phone) }
18
+ it { should allow_value("123 4567").for(:phone) }
19
+ it { should allow_value("5551234567").for(:phone) }
20
+ it { should allow_value("555-123-4567").for(:phone) }
21
+ it { should allow_value("555 123 4567").for(:phone) }
22
+ it { should allow_value("(555) 123-4567").for(:phone) }
23
+ it { should allow_value("(555) 123-4567 ext 1234").for(:phone) }
24
+ it { should allow_value("(555) 123-4567 ext1234").for(:phone) }
25
+ it { should allow_value("(555) 123-4567 ext-1234").for(:phone) }
26
+ it { should allow_value("1-555-123-4567").for(:phone) }
27
+ it { should allow_value("+1-555-123-4567").for(:phone) }
28
+ it { should allow_value("+1 (555) 123-4567 ext-1234").for(:phone) }
29
+
30
+ it { should_not allow_value('').for(:phone) }
31
+ it { should_not allow_value(nil).for(:phone) }
32
+ it { should_not allow_value("123_4567").for(:phone) }
33
+ it { should_not allow_value("(555) 123-4567 ext:1234").for(:phone) }
34
+ it { should_not allow_value("(555) 123-4567 ext_1234").for(:phone) }
35
+ it { should_not allow_value("! \#$%\`|").for(:phone) }
36
+ it { should_not allow_value("<>@[]\`|").for(:phone) }
37
+
38
+ it { should ensure_valid_phone_format_of(:phone) }
39
+ it { should_not ensure_valid_phone_format_of(:name) }
40
+ end
41
+
42
+ end
@@ -0,0 +1,41 @@
1
+ require 'spec_helper'
2
+
3
+ describe SlugValidator do
4
+
5
+ context "Slug has a valid value" do
6
+ let(:klass) do
7
+ Class.new do
8
+ include ActiveModel::Validations
9
+ attr_accessor :slug, :name
10
+ validates :slug, slug: true
11
+ end
12
+ end
13
+
14
+ subject { klass.new }
15
+
16
+ it { should allow_value("slug").for(:slug) }
17
+ it { should allow_value("slug1234").for(:slug) }
18
+ it { should allow_value("slug-word").for(:slug) }
19
+ it { should allow_value("slug-1234").for(:slug) }
20
+
21
+ it { should_not allow_value('').for(:slug) }
22
+ it { should_not allow_value(' ').for(:slug) }
23
+ it { should_not allow_value(nil).for(:slug) }
24
+ it { should_not allow_value(" slug").for(:slug) }
25
+ it { should_not allow_value(" slug ").for(:slug) }
26
+ it { should_not allow_value("slug ").for(:slug) }
27
+ it { should_not allow_value(" 1234").for(:slug) }
28
+ it { should_not allow_value(" 1234 ").for(:slug) }
29
+ it { should_not allow_value("1234 ").for(:slug) }
30
+ it { should_not allow_value("slug word").for(:slug) }
31
+ it { should_not allow_value("slug 1234").for(:slug) }
32
+ it { should_not allow_value("slug_word").for(:slug) }
33
+ it { should_not allow_value("slug_1234").for(:slug) }
34
+ it { should_not allow_value("! \#$%\`|").for(:slug) }
35
+ it { should_not allow_value("<>@[]\`|").for(:slug) }
36
+
37
+ it { should ensure_valid_slug_format_of(:slug) }
38
+ it { should_not ensure_valid_slug_format_of(:name) }
39
+ end
40
+
41
+ end
@@ -0,0 +1,36 @@
1
+ require 'spec_helper'
2
+
3
+ describe SsnValidator do
4
+
5
+ context "SSN has a valid value" do
6
+ let(:klass) do
7
+ Class.new do
8
+ include ActiveModel::Validations
9
+ attr_accessor :ssn, :name
10
+ validates :ssn, ssn: true
11
+ end
12
+ end
13
+
14
+ subject { klass.new }
15
+
16
+ it { should allow_value("333-22-4444").for(:ssn) }
17
+ it { should allow_value("333224444").for(:ssn) }
18
+
19
+ it { should_not allow_value('').for(:ssn) }
20
+ it { should_not allow_value(' ').for(:ssn) }
21
+ it { should_not allow_value(nil).for(:ssn) }
22
+ it { should_not allow_value(" 333-22-4444").for(:ssn) }
23
+ it { should_not allow_value(" 333-22-4444 ").for(:ssn) }
24
+ it { should_not allow_value("333-22-4444 ").for(:ssn) }
25
+ it { should_not allow_value("333 22 4444").for(:ssn) }
26
+ it { should_not allow_value("333-22-444n").for(:ssn) }
27
+ it { should_not allow_value("333 22 4444").for(:ssn) }
28
+ it { should_not allow_value("3-2-4").for(:ssn) }
29
+ it { should_not allow_value("! \#$%\`|").for(:ssn) }
30
+ it { should_not allow_value("<>@[]\`|").for(:ssn) }
31
+
32
+ it { should ensure_valid_ssn_format_of(:ssn) }
33
+ it { should_not ensure_valid_ssn_format_of(:name) }
34
+ end
35
+
36
+ end
@@ -0,0 +1,109 @@
1
+ require 'spec_helper'
2
+
3
+ describe UrlValidator do
4
+
5
+ context "URL has valid format" do
6
+ let(:klass) do
7
+ Class.new do
8
+ include ActiveModel::Validations
9
+ attr_accessor :url, :name
10
+ validates :url, url: true
11
+ end
12
+ end
13
+
14
+ subject { klass.new }
15
+
16
+ it { should ensure_valid_url_format_of(:url) }
17
+ it { should_not ensure_valid_url_format_of(:name) }
18
+
19
+ it { should allow_value("http://example.com").for(:url) }
20
+ it { should allow_value("http://FooBar.cOm").for(:url) }
21
+ it { should allow_value("http://foo.bar.baz.com").for(:url) }
22
+ it { should allow_value("http://123.com").for(:url) }
23
+ it { should allow_value("http://www.example.ru").for(:url) }
24
+ it { should allow_value("http://user-example.co.uk").for(:url) }
25
+ it { should allow_value("https://example.com").for(:url) }
26
+ it { should allow_value("http://example.org/").for(:url) }
27
+ it { should allow_value("https://example.net/index.html").for(:url) }
28
+ it { should allow_value("http://example.net/login.php").for(:url) }
29
+ it { should allow_value("https://example.travel/").for(:url) }
30
+ it { should allow_value("http://example.aero").for(:url) }
31
+ it { should allow_value("http://example.aero?foo=bar").for(:url) }
32
+
33
+ it { should_not allow_value('').for(:url) }
34
+ it { should_not allow_value(' ').for(:url) }
35
+ it { should_not allow_value(nil).for(:url) }
36
+ it { should_not allow_value("example").for(:url) }
37
+ it { should_not allow_value("http://user_examplecom").for(:url) }
38
+ it { should_not allow_value("http://user_example.com").for(:url) }
39
+ it { should_not allow_value("http://user_example.a").for(:url) }
40
+ it { should_not allow_value("ftp://foo.bar.baz.com").for(:url) }
41
+ end
42
+
43
+ describe "url must be in a specific domain" do
44
+ let(:klass) do
45
+ Class.new do
46
+ include ActiveModel::Validations
47
+ attr_accessor :url1, :url2
48
+ validates :url1, url: { domain: :org }
49
+ validates :url2, url: { domain: [:org, 'edu', 'Com.Au'] }
50
+ end
51
+ end
52
+
53
+ subject { klass.new }
54
+
55
+ it { should allow_value("http://example.org").for(:url1) }
56
+ it { should_not allow_value("http://example.com").for(:url1) }
57
+
58
+ it { should allow_value("http://example.org").for(:url2) }
59
+ it { should allow_value("http://example.edu").for(:url2) }
60
+ it { should allow_value("http://example.com.au").for(:url2) }
61
+ it { should allow_value("http://example.Com.Au").for(:url2) }
62
+ it { should_not allow_value("http://example.com").for(:url2) }
63
+ end
64
+
65
+ describe "url must be domain root" do
66
+ let(:klass) do
67
+ Class.new do
68
+ include ActiveModel::Validations
69
+ attr_accessor :url1, :url2
70
+ validates :url1, url: { root: true }
71
+ validates :url2, url: { root: false }
72
+ end
73
+ end
74
+
75
+ subject { klass.new }
76
+
77
+ it { should allow_value("http://example.org").for(:url1) }
78
+ it { should allow_value("http://example.org/").for(:url1) }
79
+ it { should_not allow_value("http://example.com/test").for(:url1) }
80
+ it { should_not allow_value("http://example.com/#fragment").for(:url1) }
81
+ it { should_not allow_value("http://example.com/?key=value").for(:url1) }
82
+
83
+
84
+ it { should allow_value("http://example.org").for(:url2) }
85
+ it { should allow_value("http://example.org/lorem").for(:url2) }
86
+ end
87
+
88
+ describe "url must have a specific scheme" do
89
+ let(:klass) do
90
+ Class.new do
91
+ include ActiveModel::Validations
92
+ attr_accessor :url1, :url2
93
+ validates :url1, url: { scheme: 'http' }
94
+ validates :url2, url: { scheme: ['HTTP', :https] }
95
+ end
96
+ end
97
+
98
+ subject { klass.new }
99
+
100
+ it { should allow_value("http://example.org").for(:url1) }
101
+ it { should_not allow_value("https://example.org").for(:url1) }
102
+
103
+ it { should allow_value("http://example.org").for(:url2) }
104
+ it { should allow_value("https://example.org").for(:url2) }
105
+ it { should allow_value("HTTPS://example.org").for(:url2) }
106
+ it { should_not allow_value("ftp://example.org").for(:url2) }
107
+ end
108
+
109
+ end
@@ -0,0 +1,37 @@
1
+ require 'spec_helper'
2
+
3
+ describe UsernameValidator do
4
+
5
+ context "Username has a valid value" do
6
+ let(:klass) do
7
+ Class.new do
8
+ include ActiveModel::Validations
9
+ attr_accessor :username, :name
10
+ validates :username, username: true
11
+ end
12
+ end
13
+
14
+ subject { klass.new }
15
+
16
+ it { should allow_value("username").for(:username) }
17
+ it { should allow_value("username123").for(:username) }
18
+ it { should allow_value("username_123").for(:username) }
19
+ it { should allow_value("username-123").for(:username) }
20
+
21
+ it { should_not allow_value('').for(:username) }
22
+ it { should_not allow_value(' ').for(:username) }
23
+ it { should_not allow_value(nil).for(:username) }
24
+ it { should_not allow_value("u").for(:username) }
25
+ it { should_not allow_value(" username").for(:username) }
26
+ it { should_not allow_value(" username ").for(:username) }
27
+ it { should_not allow_value("username ").for(:username) }
28
+ it { should_not allow_value("user name").for(:username) }
29
+ it { should_not allow_value("username-123456789").for(:username) }
30
+ it { should_not allow_value("! \#$%\`|").for(:username) }
31
+ it { should_not allow_value("<>@[]\`|").for(:username) }
32
+
33
+ it { should ensure_valid_username_format_of(:username) }
34
+ it { should_not ensure_valid_username_format_of(:name) }
35
+ end
36
+
37
+ end
@@ -0,0 +1,11 @@
1
+ require 'coveralls'
2
+ require 'active_model'
3
+ require 'active_support'
4
+ require 'flash_validators'
5
+ require 'shoulda/matchers/active_record'
6
+ require 'shoulda-matchers'
7
+
8
+ I18n.load_path << File.expand_path("../../config/locales/en.yml", __FILE__)
9
+ I18n.enforce_available_locales = false
10
+
11
+ Coveralls.wear!
metadata ADDED
@@ -0,0 +1,224 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: flash_validators
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Juan Gomez
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-04-25 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: activemodel
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">"
18
+ - !ruby/object:Gem::Version
19
+ version: 3.0.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">"
25
+ - !ruby/object:Gem::Version
26
+ version: 3.0.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: activesupport
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">"
32
+ - !ruby/object:Gem::Version
33
+ version: 3.0.0
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">"
39
+ - !ruby/object:Gem::Version
40
+ version: 3.0.0
41
+ - !ruby/object:Gem::Dependency
42
+ name: bundler
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '1.5'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '1.5'
55
+ - !ruby/object:Gem::Dependency
56
+ name: coveralls
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rake
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rspec
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: 3.0.0.beta
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: 3.0.0.beta
97
+ - !ruby/object:Gem::Dependency
98
+ name: shoulda-matchers
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ description: Validate commonly used attributes easily with flash validators.
112
+ email:
113
+ - j.gomez@drexed.com
114
+ executables: []
115
+ extensions: []
116
+ extra_rdoc_files: []
117
+ files:
118
+ - ".coveralls.yml"
119
+ - ".gitignore"
120
+ - ".rspec"
121
+ - ".travis.yml"
122
+ - Gemfile
123
+ - LICENSE.txt
124
+ - README.md
125
+ - Rakefile
126
+ - config/locales/en.yml
127
+ - flash_validators.gemspec
128
+ - lib/flash_validators.rb
129
+ - lib/flash_validators/matchers/ensure_valid_boolean_format_of.rb
130
+ - lib/flash_validators/matchers/ensure_valid_currency_format_of.rb
131
+ - lib/flash_validators/matchers/ensure_valid_email_format_of.rb
132
+ - lib/flash_validators/matchers/ensure_valid_equality_matcher_of.rb
133
+ - lib/flash_validators/matchers/ensure_valid_hex_format_of.rb
134
+ - lib/flash_validators/matchers/ensure_valid_imei_format_of.rb
135
+ - lib/flash_validators/matchers/ensure_valid_ip_format_of.rb
136
+ - lib/flash_validators/matchers/ensure_valid_latitude_format_of.rb
137
+ - lib/flash_validators/matchers/ensure_valid_longitude_format_of.rb
138
+ - lib/flash_validators/matchers/ensure_valid_mac_address_format_of.rb
139
+ - lib/flash_validators/matchers/ensure_valid_name_format_of.rb
140
+ - lib/flash_validators/matchers/ensure_valid_password_format_of.rb
141
+ - lib/flash_validators/matchers/ensure_valid_phone_format_of.rb
142
+ - lib/flash_validators/matchers/ensure_valid_slug_format_of.rb
143
+ - lib/flash_validators/matchers/ensure_valid_ssn_format_of.rb
144
+ - lib/flash_validators/matchers/ensure_valid_url_format_of.rb
145
+ - lib/flash_validators/matchers/ensure_valid_username_format_of.rb
146
+ - lib/flash_validators/validators/boolean_validator.rb
147
+ - lib/flash_validators/validators/currency_validator.rb
148
+ - lib/flash_validators/validators/email_validator.rb
149
+ - lib/flash_validators/validators/equality_validator.rb
150
+ - lib/flash_validators/validators/hex_validator.rb
151
+ - lib/flash_validators/validators/imei_validator.rb
152
+ - lib/flash_validators/validators/ip_validator.rb
153
+ - lib/flash_validators/validators/latitude_validator.rb
154
+ - lib/flash_validators/validators/longitude_validator.rb
155
+ - lib/flash_validators/validators/mac_address_validator.rb
156
+ - lib/flash_validators/validators/name_validator.rb
157
+ - lib/flash_validators/validators/password_validator.rb
158
+ - lib/flash_validators/validators/phone_validator.rb
159
+ - lib/flash_validators/validators/slug_validator.rb
160
+ - lib/flash_validators/validators/ssn_validator.rb
161
+ - lib/flash_validators/validators/url_validator.rb
162
+ - lib/flash_validators/validators/username_validator.rb
163
+ - lib/flash_validators/version.rb
164
+ - spec/lib/boolean_validator_spec.rb
165
+ - spec/lib/currency_validator_spec.rb
166
+ - spec/lib/email_validator_spec.rb
167
+ - spec/lib/equality_validator_spec.rb
168
+ - spec/lib/hex_validator_spec.rb
169
+ - spec/lib/imei_validator_spec.rb
170
+ - spec/lib/ip_validator_spec.rb
171
+ - spec/lib/latitude_validator_spec.rb
172
+ - spec/lib/longitude_validator_spec.rb
173
+ - spec/lib/mac_address_validator_spec.rb
174
+ - spec/lib/name_validator_spec.rb
175
+ - spec/lib/password_validator_spec.rb
176
+ - spec/lib/phone_validator_spec.rb
177
+ - spec/lib/slug_validator_spec.rb
178
+ - spec/lib/ssn_validator_spec.rb
179
+ - spec/lib/url_validator_spec.rb
180
+ - spec/lib/username_validator_spec.rb
181
+ - spec/spec_helper.rb
182
+ homepage: https://github.com/drexed/flash_validators
183
+ licenses:
184
+ - MIT
185
+ metadata: {}
186
+ post_install_message:
187
+ rdoc_options: []
188
+ require_paths:
189
+ - lib
190
+ required_ruby_version: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - ">="
193
+ - !ruby/object:Gem::Version
194
+ version: '0'
195
+ required_rubygems_version: !ruby/object:Gem::Requirement
196
+ requirements:
197
+ - - ">="
198
+ - !ruby/object:Gem::Version
199
+ version: '0'
200
+ requirements: []
201
+ rubyforge_project:
202
+ rubygems_version: 2.2.2
203
+ signing_key:
204
+ specification_version: 4
205
+ summary: Gem for commonly used model validators.
206
+ test_files:
207
+ - spec/lib/boolean_validator_spec.rb
208
+ - spec/lib/currency_validator_spec.rb
209
+ - spec/lib/email_validator_spec.rb
210
+ - spec/lib/equality_validator_spec.rb
211
+ - spec/lib/hex_validator_spec.rb
212
+ - spec/lib/imei_validator_spec.rb
213
+ - spec/lib/ip_validator_spec.rb
214
+ - spec/lib/latitude_validator_spec.rb
215
+ - spec/lib/longitude_validator_spec.rb
216
+ - spec/lib/mac_address_validator_spec.rb
217
+ - spec/lib/name_validator_spec.rb
218
+ - spec/lib/password_validator_spec.rb
219
+ - spec/lib/phone_validator_spec.rb
220
+ - spec/lib/slug_validator_spec.rb
221
+ - spec/lib/ssn_validator_spec.rb
222
+ - spec/lib/url_validator_spec.rb
223
+ - spec/lib/username_validator_spec.rb
224
+ - spec/spec_helper.rb