active_validation 1.0.0

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 (93) hide show
  1. checksums.yaml +7 -0
  2. data/.coveralls.yml +1 -0
  3. data/.gitignore +14 -0
  4. data/.rspec +4 -0
  5. data/.travis.yml +13 -0
  6. data/Gemfile +4 -0
  7. data/LICENSE.txt +22 -0
  8. data/README.md +1099 -0
  9. data/Rakefile +1 -0
  10. data/active_validation.gemspec +29 -0
  11. data/config/locales/en.yml +109 -0
  12. data/lib/active_validation/matchers/ensure_valid_alpha_format_of.rb +26 -0
  13. data/lib/active_validation/matchers/ensure_valid_alpha_numeric_format_of.rb +26 -0
  14. data/lib/active_validation/matchers/ensure_valid_base64_format_of.rb +26 -0
  15. data/lib/active_validation/matchers/ensure_valid_boolean_format_of.rb +26 -0
  16. data/lib/active_validation/matchers/ensure_valid_credit_card_format_of.rb +26 -0
  17. data/lib/active_validation/matchers/ensure_valid_currency_format_of.rb +26 -0
  18. data/lib/active_validation/matchers/ensure_valid_cusip_format_of.rb +26 -0
  19. data/lib/active_validation/matchers/ensure_valid_email_format_of.rb +26 -0
  20. data/lib/active_validation/matchers/ensure_valid_equality_matcher_of.rb +40 -0
  21. data/lib/active_validation/matchers/ensure_valid_hex_format_of.rb +26 -0
  22. data/lib/active_validation/matchers/ensure_valid_imei_format_of.rb +26 -0
  23. data/lib/active_validation/matchers/ensure_valid_ip_format_of.rb +26 -0
  24. data/lib/active_validation/matchers/ensure_valid_isbn_format_of.rb +26 -0
  25. data/lib/active_validation/matchers/ensure_valid_isin_format_of.rb +26 -0
  26. data/lib/active_validation/matchers/ensure_valid_latitude_format_of.rb +26 -0
  27. data/lib/active_validation/matchers/ensure_valid_longitude_format_of.rb +26 -0
  28. data/lib/active_validation/matchers/ensure_valid_mac_address_format_of.rb +26 -0
  29. data/lib/active_validation/matchers/ensure_valid_name_format_of.rb +26 -0
  30. data/lib/active_validation/matchers/ensure_valid_password_format_of.rb +26 -0
  31. data/lib/active_validation/matchers/ensure_valid_phone_format_of.rb +26 -0
  32. data/lib/active_validation/matchers/ensure_valid_sedol_format_of.rb +26 -0
  33. data/lib/active_validation/matchers/ensure_valid_slug_format_of.rb +26 -0
  34. data/lib/active_validation/matchers/ensure_valid_ssn_format_of.rb +26 -0
  35. data/lib/active_validation/matchers/ensure_valid_url_format_of.rb +26 -0
  36. data/lib/active_validation/matchers/ensure_valid_username_format_of.rb +26 -0
  37. data/lib/active_validation/matchers/ensure_valid_uuid_format_of.rb +26 -0
  38. data/lib/active_validation/validators/alpha_numeric_validator.rb +30 -0
  39. data/lib/active_validation/validators/alpha_validator.rb +31 -0
  40. data/lib/active_validation/validators/base64_validator.rb +9 -0
  41. data/lib/active_validation/validators/boolean_validator.rb +9 -0
  42. data/lib/active_validation/validators/credit_card_validator.rb +133 -0
  43. data/lib/active_validation/validators/currency_validator.rb +23 -0
  44. data/lib/active_validation/validators/cusip_validator.rb +33 -0
  45. data/lib/active_validation/validators/email_validator.rb +25 -0
  46. data/lib/active_validation/validators/equality_validator.rb +27 -0
  47. data/lib/active_validation/validators/hex_validator.rb +9 -0
  48. data/lib/active_validation/validators/imei_validator.rb +37 -0
  49. data/lib/active_validation/validators/ip_validator.rb +9 -0
  50. data/lib/active_validation/validators/isbn_validator.rb +24 -0
  51. data/lib/active_validation/validators/isin_validator.rb +38 -0
  52. data/lib/active_validation/validators/latitude_validator.rb +9 -0
  53. data/lib/active_validation/validators/longitude_validator.rb +9 -0
  54. data/lib/active_validation/validators/mac_address_validator.rb +24 -0
  55. data/lib/active_validation/validators/name_validator.rb +9 -0
  56. data/lib/active_validation/validators/password_validator.rb +23 -0
  57. data/lib/active_validation/validators/phone_validator.rb +9 -0
  58. data/lib/active_validation/validators/sedol_validator.rb +32 -0
  59. data/lib/active_validation/validators/slug_validator.rb +9 -0
  60. data/lib/active_validation/validators/ssn_validator.rb +9 -0
  61. data/lib/active_validation/validators/url_validator.rb +36 -0
  62. data/lib/active_validation/validators/username_validator.rb +9 -0
  63. data/lib/active_validation/validators/uuid_validator.rb +28 -0
  64. data/lib/active_validation/version.rb +3 -0
  65. data/lib/active_validation.rb +91 -0
  66. data/spec/lib/alpha_numeric_validator_spec.rb +91 -0
  67. data/spec/lib/alpha_validator_spec.rb +182 -0
  68. data/spec/lib/base64_validator_spec.rb +33 -0
  69. data/spec/lib/boolean_validator_spec.rb +35 -0
  70. data/spec/lib/credit_card_validator_spec.rb +686 -0
  71. data/spec/lib/currency_validator_spec.rb +63 -0
  72. data/spec/lib/cusip_validator_spec.rb +27 -0
  73. data/spec/lib/email_validator_spec.rb +109 -0
  74. data/spec/lib/equality_validator_spec.rb +334 -0
  75. data/spec/lib/hex_validator_spec.rb +73 -0
  76. data/spec/lib/imei_validator_spec.rb +41 -0
  77. data/spec/lib/ip_validator_spec.rb +33 -0
  78. data/spec/lib/isbn_validator_spec.rb +41 -0
  79. data/spec/lib/isin_validator_spec.rb +35 -0
  80. data/spec/lib/latitude_validator_spec.rb +31 -0
  81. data/spec/lib/longitude_validator_spec.rb +31 -0
  82. data/spec/lib/mac_address_validator_spec.rb +54 -0
  83. data/spec/lib/name_validator_spec.rb +39 -0
  84. data/spec/lib/password_validator_spec.rb +85 -0
  85. data/spec/lib/phone_validator_spec.rb +42 -0
  86. data/spec/lib/sedol_validator_spec.rb +31 -0
  87. data/spec/lib/slug_validator_spec.rb +41 -0
  88. data/spec/lib/ssn_validator_spec.rb +36 -0
  89. data/spec/lib/url_validator_spec.rb +106 -0
  90. data/spec/lib/username_validator_spec.rb +37 -0
  91. data/spec/lib/uuid_validator_spec.rb +157 -0
  92. data/spec/spec_helper.rb +12 -0
  93. metadata +260 -0
@@ -0,0 +1,157 @@
1
+ require 'spec_helper'
2
+
3
+ describe UuidValidator do
4
+
5
+ context "has a valid value" do
6
+ let(:klass) do
7
+ Class.new do
8
+ include ActiveModel::Validations
9
+ attr_accessor :uuid, :name
10
+ validates :uuid, uuid: true
11
+ end
12
+ end
13
+
14
+ subject { klass.new }
15
+
16
+ it { should allow_value("6fa459ea-ee8a-3ca4-894e-db77e160355e").for(:uuid) }
17
+ it { should allow_value("16fd2706-8baf-433b-82eb-8c7fada847da").for(:uuid) }
18
+ it { should allow_value("886313e1-3b8a-5372-9b90-0c9aee199e5d").for(:uuid) }
19
+ it { should allow_value("a8098c1a-f86e-11da-bd1a-00112444be1e").for(:uuid) }
20
+
21
+ it { should_not allow_value('').for(:uuid) }
22
+ it { should_not allow_value(' ').for(:uuid) }
23
+ it { should_not allow_value(nil).for(:uuid) }
24
+ it { should_not allow_value("6fa459ea-ee8a-3ca4-894e-db77e160355e1").for(:uuid) }
25
+ it { should_not allow_value("16fd2706-8baf-433b-82eb-8c7fada847da1").for(:uuid) }
26
+ it { should_not allow_value("886313e1-3b8a-5372-9b90-0c9aee199e5d1").for(:uuid) }
27
+ it { should_not allow_value("a8098c1a-f86e-11da-bd1a-00112444be1e1").for(:uuid) }
28
+ it { should_not allow_value("6fa459ea-ee8a-3ca4-894e-db77e160355").for(:uuid) }
29
+ it { should_not allow_value("16fd2706-8baf-433b-82eb-8c7fada847d").for(:uuid) }
30
+ it { should_not allow_value("886313e1-3b8a-5372-9b90-0c9aee199e5").for(:uuid) }
31
+ it { should_not allow_value("a8098c1a-f86e-11da-bd1a-00112444be1").for(:uuid) }
32
+ it { should_not allow_value("6fa459eaee8a3ca4894edb77e160355e").for(:uuid) }
33
+ it { should_not allow_value("16fd27068baf433b82eb8c7fada847da").for(:uuid) }
34
+ it { should_not allow_value("886313e13b8a53729b900c9aee199e5d").for(:uuid) }
35
+ it { should_not allow_value("a8098c1af86e11dabd1a00112444be1e").for(:uuid) }
36
+ it { should_not allow_value("! \#$%\`|").for(:uuid) }
37
+ it { should_not allow_value("<>@[]\`|").for(:uuid) }
38
+
39
+ it { should ensure_valid_uuid_format_of(:uuid) }
40
+ it { should_not ensure_valid_uuid_format_of(:name) }
41
+ end
42
+
43
+ context "with version: 3 option has a valid value" do
44
+ let(:klass) do
45
+ Class.new do
46
+ include ActiveModel::Validations
47
+ attr_accessor :uuid, :name
48
+ validates :uuid, uuid: { version: 3 }
49
+ end
50
+ end
51
+
52
+ subject { klass.new }
53
+
54
+ it { should allow_value("6fa459ea-ee8a-3ca4-894e-db77e160355e").for(:uuid) }
55
+
56
+ it { should_not allow_value('').for(:uuid) }
57
+ it { should_not allow_value(' ').for(:uuid) }
58
+ it { should_not allow_value(nil).for(:uuid) }
59
+ it { should_not allow_value("16fd2706-8baf-433b-82eb-8c7fada847da").for(:uuid) }
60
+ it { should_not allow_value("886313e1-3b8a-5372-9b90-0c9aee199e5d").for(:uuid) }
61
+ it { should_not allow_value("a8098c1a-f86e-11da-bd1a-00112444be1e").for(:uuid) }
62
+ it { should_not allow_value("6fa459ea-ee8a-3ca4-894e-db77e160355e1").for(:uuid) }
63
+ it { should_not allow_value("16fd2706-8baf-433b-82eb-8c7fada847da1").for(:uuid) }
64
+ it { should_not allow_value("886313e1-3b8a-5372-9b90-0c9aee199e5d1").for(:uuid) }
65
+ it { should_not allow_value("a8098c1a-f86e-11da-bd1a-00112444be1e1").for(:uuid) }
66
+ it { should_not allow_value("6fa459ea-ee8a-3ca4-894e-db77e160355").for(:uuid) }
67
+ it { should_not allow_value("16fd2706-8baf-433b-82eb-8c7fada847d").for(:uuid) }
68
+ it { should_not allow_value("886313e1-3b8a-5372-9b90-0c9aee199e5").for(:uuid) }
69
+ it { should_not allow_value("a8098c1a-f86e-11da-bd1a-00112444be1").for(:uuid) }
70
+ it { should_not allow_value("6fa459eaee8a3ca4894edb77e160355e").for(:uuid) }
71
+ it { should_not allow_value("16fd27068baf433b82eb8c7fada847da").for(:uuid) }
72
+ it { should_not allow_value("886313e13b8a53729b900c9aee199e5d").for(:uuid) }
73
+ it { should_not allow_value("a8098c1af86e11dabd1a00112444be1e").for(:uuid) }
74
+ it { should_not allow_value("! \#$%\`|").for(:uuid) }
75
+ it { should_not allow_value("<>@[]\`|").for(:uuid) }
76
+
77
+ it { should ensure_valid_uuid_format_of(:uuid) }
78
+ it { should_not ensure_valid_uuid_format_of(:name) }
79
+ end
80
+
81
+ context "with version: 4 option has a valid value" do
82
+ let(:klass) do
83
+ Class.new do
84
+ include ActiveModel::Validations
85
+ attr_accessor :uuid, :name
86
+ validates :uuid, uuid: { version: 4 }
87
+ end
88
+ end
89
+
90
+ subject { klass.new }
91
+
92
+ it { should allow_value("16fd2706-8baf-433b-82eb-8c7fada847da").for(:uuid) }
93
+
94
+ it { should_not allow_value('').for(:uuid) }
95
+ it { should_not allow_value(' ').for(:uuid) }
96
+ it { should_not allow_value(nil).for(:uuid) }
97
+ it { should_not allow_value("6fa459ea-ee8a-3ca4-894e-db77e160355e").for(:uuid) }
98
+ it { should_not allow_value("886313e1-3b8a-5372-9b90-0c9aee199e5d").for(:uuid) }
99
+ it { should_not allow_value("a8098c1a-f86e-11da-bd1a-00112444be1e").for(:uuid) }
100
+ it { should_not allow_value("6fa459ea-ee8a-3ca4-894e-db77e160355e1").for(:uuid) }
101
+ it { should_not allow_value("16fd2706-8baf-433b-82eb-8c7fada847da1").for(:uuid) }
102
+ it { should_not allow_value("886313e1-3b8a-5372-9b90-0c9aee199e5d1").for(:uuid) }
103
+ it { should_not allow_value("a8098c1a-f86e-11da-bd1a-00112444be1e1").for(:uuid) }
104
+ it { should_not allow_value("6fa459ea-ee8a-3ca4-894e-db77e160355").for(:uuid) }
105
+ it { should_not allow_value("16fd2706-8baf-433b-82eb-8c7fada847d").for(:uuid) }
106
+ it { should_not allow_value("886313e1-3b8a-5372-9b90-0c9aee199e5").for(:uuid) }
107
+ it { should_not allow_value("a8098c1a-f86e-11da-bd1a-00112444be1").for(:uuid) }
108
+ it { should_not allow_value("6fa459eaee8a3ca4894edb77e160355e").for(:uuid) }
109
+ it { should_not allow_value("16fd27068baf433b82eb8c7fada847da").for(:uuid) }
110
+ it { should_not allow_value("886313e13b8a53729b900c9aee199e5d").for(:uuid) }
111
+ it { should_not allow_value("a8098c1af86e11dabd1a00112444be1e").for(:uuid) }
112
+ it { should_not allow_value("! \#$%\`|").for(:uuid) }
113
+ it { should_not allow_value("<>@[]\`|").for(:uuid) }
114
+
115
+ it { should ensure_valid_uuid_format_of(:uuid) }
116
+ it { should_not ensure_valid_uuid_format_of(:name) }
117
+ end
118
+
119
+ context "with version: 5 option has a valid value" do
120
+ let(:klass) do
121
+ Class.new do
122
+ include ActiveModel::Validations
123
+ attr_accessor :uuid, :name
124
+ validates :uuid, uuid: { version: 5 }
125
+ end
126
+ end
127
+
128
+ subject { klass.new }
129
+
130
+ it { should allow_value("886313e1-3b8a-5372-9b90-0c9aee199e5d").for(:uuid) }
131
+
132
+ it { should_not allow_value('').for(:uuid) }
133
+ it { should_not allow_value(' ').for(:uuid) }
134
+ it { should_not allow_value(nil).for(:uuid) }
135
+ it { should_not allow_value("6fa459ea-ee8a-3ca4-894e-db77e160355e").for(:uuid) }
136
+ it { should_not allow_value("16fd2706-8baf-433b-82eb-8c7fada847da").for(:uuid) }
137
+ it { should_not allow_value("a8098c1a-f86e-11da-bd1a-00112444be1e").for(:uuid) }
138
+ it { should_not allow_value("6fa459ea-ee8a-3ca4-894e-db77e160355e1").for(:uuid) }
139
+ it { should_not allow_value("16fd2706-8baf-433b-82eb-8c7fada847da1").for(:uuid) }
140
+ it { should_not allow_value("886313e1-3b8a-5372-9b90-0c9aee199e5d1").for(:uuid) }
141
+ it { should_not allow_value("a8098c1a-f86e-11da-bd1a-00112444be1e1").for(:uuid) }
142
+ it { should_not allow_value("6fa459ea-ee8a-3ca4-894e-db77e160355").for(:uuid) }
143
+ it { should_not allow_value("16fd2706-8baf-433b-82eb-8c7fada847d").for(:uuid) }
144
+ it { should_not allow_value("886313e1-3b8a-5372-9b90-0c9aee199e5").for(:uuid) }
145
+ it { should_not allow_value("a8098c1a-f86e-11da-bd1a-00112444be1").for(:uuid) }
146
+ it { should_not allow_value("6fa459eaee8a3ca4894edb77e160355e").for(:uuid) }
147
+ it { should_not allow_value("16fd27068baf433b82eb8c7fada847da").for(:uuid) }
148
+ it { should_not allow_value("886313e13b8a53729b900c9aee199e5d").for(:uuid) }
149
+ it { should_not allow_value("a8098c1af86e11dabd1a00112444be1e").for(:uuid) }
150
+ it { should_not allow_value("! \#$%\`|").for(:uuid) }
151
+ it { should_not allow_value("<>@[]\`|").for(:uuid) }
152
+
153
+ it { should ensure_valid_uuid_format_of(:uuid) }
154
+ it { should_not ensure_valid_uuid_format_of(:name) }
155
+ end
156
+
157
+ end
@@ -0,0 +1,12 @@
1
+ require 'coveralls'
2
+ require 'active_model'
3
+ require 'active_support'
4
+ require 'shoulda/matchers'
5
+ require 'shoulda-matchers'
6
+
7
+ require 'active_validation'
8
+
9
+ I18n.load_path << File.expand_path("../../config/locales/en.yml", __FILE__)
10
+ I18n.enforce_available_locales = false
11
+
12
+ Coveralls.wear!
metadata ADDED
@@ -0,0 +1,260 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: active_validation
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Juan Gomez
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-02-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: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '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: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '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: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
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: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
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 ActiveValidation.
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
+ - active_validation.gemspec
127
+ - config/locales/en.yml
128
+ - lib/active_validation.rb
129
+ - lib/active_validation/matchers/ensure_valid_alpha_format_of.rb
130
+ - lib/active_validation/matchers/ensure_valid_alpha_numeric_format_of.rb
131
+ - lib/active_validation/matchers/ensure_valid_base64_format_of.rb
132
+ - lib/active_validation/matchers/ensure_valid_boolean_format_of.rb
133
+ - lib/active_validation/matchers/ensure_valid_credit_card_format_of.rb
134
+ - lib/active_validation/matchers/ensure_valid_currency_format_of.rb
135
+ - lib/active_validation/matchers/ensure_valid_cusip_format_of.rb
136
+ - lib/active_validation/matchers/ensure_valid_email_format_of.rb
137
+ - lib/active_validation/matchers/ensure_valid_equality_matcher_of.rb
138
+ - lib/active_validation/matchers/ensure_valid_hex_format_of.rb
139
+ - lib/active_validation/matchers/ensure_valid_imei_format_of.rb
140
+ - lib/active_validation/matchers/ensure_valid_ip_format_of.rb
141
+ - lib/active_validation/matchers/ensure_valid_isbn_format_of.rb
142
+ - lib/active_validation/matchers/ensure_valid_isin_format_of.rb
143
+ - lib/active_validation/matchers/ensure_valid_latitude_format_of.rb
144
+ - lib/active_validation/matchers/ensure_valid_longitude_format_of.rb
145
+ - lib/active_validation/matchers/ensure_valid_mac_address_format_of.rb
146
+ - lib/active_validation/matchers/ensure_valid_name_format_of.rb
147
+ - lib/active_validation/matchers/ensure_valid_password_format_of.rb
148
+ - lib/active_validation/matchers/ensure_valid_phone_format_of.rb
149
+ - lib/active_validation/matchers/ensure_valid_sedol_format_of.rb
150
+ - lib/active_validation/matchers/ensure_valid_slug_format_of.rb
151
+ - lib/active_validation/matchers/ensure_valid_ssn_format_of.rb
152
+ - lib/active_validation/matchers/ensure_valid_url_format_of.rb
153
+ - lib/active_validation/matchers/ensure_valid_username_format_of.rb
154
+ - lib/active_validation/matchers/ensure_valid_uuid_format_of.rb
155
+ - lib/active_validation/validators/alpha_numeric_validator.rb
156
+ - lib/active_validation/validators/alpha_validator.rb
157
+ - lib/active_validation/validators/base64_validator.rb
158
+ - lib/active_validation/validators/boolean_validator.rb
159
+ - lib/active_validation/validators/credit_card_validator.rb
160
+ - lib/active_validation/validators/currency_validator.rb
161
+ - lib/active_validation/validators/cusip_validator.rb
162
+ - lib/active_validation/validators/email_validator.rb
163
+ - lib/active_validation/validators/equality_validator.rb
164
+ - lib/active_validation/validators/hex_validator.rb
165
+ - lib/active_validation/validators/imei_validator.rb
166
+ - lib/active_validation/validators/ip_validator.rb
167
+ - lib/active_validation/validators/isbn_validator.rb
168
+ - lib/active_validation/validators/isin_validator.rb
169
+ - lib/active_validation/validators/latitude_validator.rb
170
+ - lib/active_validation/validators/longitude_validator.rb
171
+ - lib/active_validation/validators/mac_address_validator.rb
172
+ - lib/active_validation/validators/name_validator.rb
173
+ - lib/active_validation/validators/password_validator.rb
174
+ - lib/active_validation/validators/phone_validator.rb
175
+ - lib/active_validation/validators/sedol_validator.rb
176
+ - lib/active_validation/validators/slug_validator.rb
177
+ - lib/active_validation/validators/ssn_validator.rb
178
+ - lib/active_validation/validators/url_validator.rb
179
+ - lib/active_validation/validators/username_validator.rb
180
+ - lib/active_validation/validators/uuid_validator.rb
181
+ - lib/active_validation/version.rb
182
+ - spec/lib/alpha_numeric_validator_spec.rb
183
+ - spec/lib/alpha_validator_spec.rb
184
+ - spec/lib/base64_validator_spec.rb
185
+ - spec/lib/boolean_validator_spec.rb
186
+ - spec/lib/credit_card_validator_spec.rb
187
+ - spec/lib/currency_validator_spec.rb
188
+ - spec/lib/cusip_validator_spec.rb
189
+ - spec/lib/email_validator_spec.rb
190
+ - spec/lib/equality_validator_spec.rb
191
+ - spec/lib/hex_validator_spec.rb
192
+ - spec/lib/imei_validator_spec.rb
193
+ - spec/lib/ip_validator_spec.rb
194
+ - spec/lib/isbn_validator_spec.rb
195
+ - spec/lib/isin_validator_spec.rb
196
+ - spec/lib/latitude_validator_spec.rb
197
+ - spec/lib/longitude_validator_spec.rb
198
+ - spec/lib/mac_address_validator_spec.rb
199
+ - spec/lib/name_validator_spec.rb
200
+ - spec/lib/password_validator_spec.rb
201
+ - spec/lib/phone_validator_spec.rb
202
+ - spec/lib/sedol_validator_spec.rb
203
+ - spec/lib/slug_validator_spec.rb
204
+ - spec/lib/ssn_validator_spec.rb
205
+ - spec/lib/url_validator_spec.rb
206
+ - spec/lib/username_validator_spec.rb
207
+ - spec/lib/uuid_validator_spec.rb
208
+ - spec/spec_helper.rb
209
+ homepage: https://github.com/drexed/active_validation
210
+ licenses:
211
+ - MIT
212
+ metadata: {}
213
+ post_install_message:
214
+ rdoc_options: []
215
+ require_paths:
216
+ - lib
217
+ required_ruby_version: !ruby/object:Gem::Requirement
218
+ requirements:
219
+ - - ">="
220
+ - !ruby/object:Gem::Version
221
+ version: '0'
222
+ required_rubygems_version: !ruby/object:Gem::Requirement
223
+ requirements:
224
+ - - ">="
225
+ - !ruby/object:Gem::Version
226
+ version: '0'
227
+ requirements: []
228
+ rubyforge_project:
229
+ rubygems_version: 2.4.6
230
+ signing_key:
231
+ specification_version: 4
232
+ summary: Gem for commonly used validators.
233
+ test_files:
234
+ - spec/lib/alpha_numeric_validator_spec.rb
235
+ - spec/lib/alpha_validator_spec.rb
236
+ - spec/lib/base64_validator_spec.rb
237
+ - spec/lib/boolean_validator_spec.rb
238
+ - spec/lib/credit_card_validator_spec.rb
239
+ - spec/lib/currency_validator_spec.rb
240
+ - spec/lib/cusip_validator_spec.rb
241
+ - spec/lib/email_validator_spec.rb
242
+ - spec/lib/equality_validator_spec.rb
243
+ - spec/lib/hex_validator_spec.rb
244
+ - spec/lib/imei_validator_spec.rb
245
+ - spec/lib/ip_validator_spec.rb
246
+ - spec/lib/isbn_validator_spec.rb
247
+ - spec/lib/isin_validator_spec.rb
248
+ - spec/lib/latitude_validator_spec.rb
249
+ - spec/lib/longitude_validator_spec.rb
250
+ - spec/lib/mac_address_validator_spec.rb
251
+ - spec/lib/name_validator_spec.rb
252
+ - spec/lib/password_validator_spec.rb
253
+ - spec/lib/phone_validator_spec.rb
254
+ - spec/lib/sedol_validator_spec.rb
255
+ - spec/lib/slug_validator_spec.rb
256
+ - spec/lib/ssn_validator_spec.rb
257
+ - spec/lib/url_validator_spec.rb
258
+ - spec/lib/username_validator_spec.rb
259
+ - spec/lib/uuid_validator_spec.rb
260
+ - spec/spec_helper.rb