rails_admin_settings 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
@@ -31,4 +31,6 @@ Gem::Specification.new do |spec|
|
|
31
31
|
spec.add_development_dependency "safe_yaml", "~> 0.8.6"
|
32
32
|
spec.add_development_dependency "russian_phone", "~> 0.3.2"
|
33
33
|
spec.add_development_dependency "sanitize", "~> 2.0.3"
|
34
|
+
spec.add_development_dependency "validates_email_format_of", "~> 1.5.3"
|
35
|
+
spec.add_development_dependency "geocoder", "~> 1.1.6"
|
34
36
|
end
|
data/spec/advanced_usage_spec.rb
CHANGED
@@ -56,4 +56,11 @@ describe 'Settings advanced usage' do
|
|
56
56
|
Settings.dphone.formatted_area.should eq ''
|
57
57
|
Settings.dphone.formatted_subscriber.should eq ''
|
58
58
|
end
|
59
|
+
|
60
|
+
it 'should validate emails with email type' do
|
61
|
+
Settings.eml(type: 'email')
|
62
|
+
expect { Settings.eml = '1' }.to raise_error
|
63
|
+
Settings.eml = 'test@example.com'
|
64
|
+
Settings.eml.should eq 'test@example.com'
|
65
|
+
end
|
59
66
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_admin_settings
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -187,6 +187,38 @@ dependencies:
|
|
187
187
|
- - ~>
|
188
188
|
- !ruby/object:Gem::Version
|
189
189
|
version: 2.0.3
|
190
|
+
- !ruby/object:Gem::Dependency
|
191
|
+
name: validates_email_format_of
|
192
|
+
requirement: !ruby/object:Gem::Requirement
|
193
|
+
none: false
|
194
|
+
requirements:
|
195
|
+
- - ~>
|
196
|
+
- !ruby/object:Gem::Version
|
197
|
+
version: 1.5.3
|
198
|
+
type: :development
|
199
|
+
prerelease: false
|
200
|
+
version_requirements: !ruby/object:Gem::Requirement
|
201
|
+
none: false
|
202
|
+
requirements:
|
203
|
+
- - ~>
|
204
|
+
- !ruby/object:Gem::Version
|
205
|
+
version: 1.5.3
|
206
|
+
- !ruby/object:Gem::Dependency
|
207
|
+
name: geocoder
|
208
|
+
requirement: !ruby/object:Gem::Requirement
|
209
|
+
none: false
|
210
|
+
requirements:
|
211
|
+
- - ~>
|
212
|
+
- !ruby/object:Gem::Version
|
213
|
+
version: 1.1.6
|
214
|
+
type: :development
|
215
|
+
prerelease: false
|
216
|
+
version_requirements: !ruby/object:Gem::Requirement
|
217
|
+
none: false
|
218
|
+
requirements:
|
219
|
+
- - ~>
|
220
|
+
- !ruby/object:Gem::Version
|
221
|
+
version: 1.1.6
|
190
222
|
description: Mongoid / RailsAdmin App Settings management
|
191
223
|
email:
|
192
224
|
- glebtv@gmail.com
|
@@ -239,7 +271,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
239
271
|
version: '0'
|
240
272
|
segments:
|
241
273
|
- 0
|
242
|
-
hash:
|
274
|
+
hash: 4329122058332333433
|
243
275
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
244
276
|
none: false
|
245
277
|
requirements:
|
@@ -248,7 +280,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
248
280
|
version: '0'
|
249
281
|
segments:
|
250
282
|
- 0
|
251
|
-
hash:
|
283
|
+
hash: 4329122058332333433
|
252
284
|
requirements: []
|
253
285
|
rubyforge_project:
|
254
286
|
rubygems_version: 1.8.25
|