rails_admin_settings 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -29,6 +29,7 @@ Add this line to your application's Gemfile:
29
29
  - Put it after sanitized to get built-in support
30
30
  - Put it after safe_yaml to get built-in support
31
31
  - Put it after validates_email_format_of to get built-in support
32
+ - Put it after geocoder to get built-in support
32
33
 
33
34
  And then execute:
34
35
 
@@ -65,6 +66,7 @@ Supported types:
65
66
  yaml (requires safe_yaml)
66
67
  phone (requires russian_phone)
67
68
  email (requires validates_email_format_of)
69
+ address (requires geocoder)
68
70
 
69
71
 
70
72
  Strings and html support following replacement patterns:
@@ -47,7 +47,7 @@ module RailsAdminSettings
47
47
  require 'geocoder'
48
48
  yield
49
49
  rescue LoadError => e
50
- e.message << " [rails_admin_settings] Please add gem 'geocoder' to your Gemfile to use address type settings"
50
+ e.message << " [rails_admin_settings] Please add gem 'validates_email_format_of' to your Gemfile to use email type settings"
51
51
  raise e
52
52
  end
53
53
  end
@@ -1,5 +1,5 @@
1
1
  module RailsAdminSettings
2
2
  def self.types
3
- ['string', 'integer', 'html', 'sanitized', 'yaml', 'phone', 'email']
3
+ ['string', 'integer', 'html', 'sanitized', 'yaml', 'phone', 'email', 'address']
4
4
  end
5
5
  end
@@ -1,3 +1,3 @@
1
1
  module RailsAdminSettings
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
20
20
 
21
21
  spec.add_runtime_dependency "mongoid", '~> 3.1'
22
22
 
23
- spec.add_development_dependency "bundler", "~> 1.3.4"
23
+ spec.add_development_dependency "bundler"
24
24
  spec.add_development_dependency "rake", "~> 10.0.3"
25
25
  spec.add_development_dependency "rspec", "~> 2.13.0"
26
26
  spec.add_development_dependency "mongoid-rspec", "~> 1.7.0"
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.0
4
+ version: 0.3.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -32,17 +32,17 @@ dependencies:
32
32
  requirement: !ruby/object:Gem::Requirement
33
33
  none: false
34
34
  requirements:
35
- - - ~>
35
+ - - ! '>='
36
36
  - !ruby/object:Gem::Version
37
- version: 1.3.4
37
+ version: '0'
38
38
  type: :development
39
39
  prerelease: false
40
40
  version_requirements: !ruby/object:Gem::Requirement
41
41
  none: false
42
42
  requirements:
43
- - - ~>
43
+ - - ! '>='
44
44
  - !ruby/object:Gem::Version
45
- version: 1.3.4
45
+ version: '0'
46
46
  - !ruby/object:Gem::Dependency
47
47
  name: rake
48
48
  requirement: !ruby/object:Gem::Requirement
@@ -239,7 +239,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
239
239
  version: '0'
240
240
  segments:
241
241
  - 0
242
- hash: -2625523890821583171
242
+ hash: 400350354012369749
243
243
  required_rubygems_version: !ruby/object:Gem::Requirement
244
244
  none: false
245
245
  requirements:
@@ -248,7 +248,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
248
248
  version: '0'
249
249
  segments:
250
250
  - 0
251
- hash: -2625523890821583171
251
+ hash: 400350354012369749
252
252
  requirements: []
253
253
  rubyforge_project:
254
254
  rubygems_version: 1.8.25