rails_admin_settings 1.0.1 → 1.1.0.pre.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8eec5e2492ca5008da64d44d377c29994720911e
4
- data.tar.gz: aa659307b31b09b74c18f6add8757a2283bc5cc0
3
+ metadata.gz: 4128eb2cbea4bc24d3b020923ee7824fb69aee2a
4
+ data.tar.gz: 9399ca1e1706716eb39866ce3119edf27dbc5ddb
5
5
  SHA512:
6
- metadata.gz: 885129a6641003b3a78fdfa6454034172eae61a92d69f7e45621e428647b6ea828d113b3fd15ddbc9a28f60f0d93ae1749bbcd0dd1d53e172950bb6884c127f0
7
- data.tar.gz: 5a6c26f63d34c0550da6e8fb7f7f2847be9eb1f9849698b72fe27163a1eff02e1813b59c9c81f63c68f94ef4b6468b2cf79131d4e205e5e06338ef934ac4db64
6
+ metadata.gz: 97966ab422eafd14fe5cd2dad8f5b7f7de6f85252ff547365cf4f00f67a5cc755fb9ef3affd6123db4cd32778618a7df78cdd1f567c20ba020a9b4e938f97901
7
+ data.tar.gz: 87d9de27b98ee0516a4b5736e0e6fdd60eb777160507e24926efaa337fe3af94d70b3d8de80d1c2d4140297d55ff17cb49f03f84b760f2a567d7cc00d223d4b8
data/Gemfile.lock CHANGED
@@ -1,49 +1,49 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rails_admin_settings (1.0.1)
4
+ rails_admin_settings (1.1.0.pre.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
- actionmailer (4.2.3)
10
- actionpack (= 4.2.3)
11
- actionview (= 4.2.3)
12
- activejob (= 4.2.3)
9
+ actionmailer (4.2.4)
10
+ actionpack (= 4.2.4)
11
+ actionview (= 4.2.4)
12
+ activejob (= 4.2.4)
13
13
  mail (~> 2.5, >= 2.5.4)
14
14
  rails-dom-testing (~> 1.0, >= 1.0.5)
15
- actionpack (4.2.3)
16
- actionview (= 4.2.3)
17
- activesupport (= 4.2.3)
15
+ actionpack (4.2.4)
16
+ actionview (= 4.2.4)
17
+ activesupport (= 4.2.4)
18
18
  rack (~> 1.6)
19
19
  rack-test (~> 0.6.2)
20
20
  rails-dom-testing (~> 1.0, >= 1.0.5)
21
21
  rails-html-sanitizer (~> 1.0, >= 1.0.2)
22
- actionview (4.2.3)
23
- activesupport (= 4.2.3)
22
+ actionview (4.2.4)
23
+ activesupport (= 4.2.4)
24
24
  builder (~> 3.1)
25
25
  erubis (~> 2.7.0)
26
26
  rails-dom-testing (~> 1.0, >= 1.0.5)
27
27
  rails-html-sanitizer (~> 1.0, >= 1.0.2)
28
- activejob (4.2.3)
29
- activesupport (= 4.2.3)
28
+ activejob (4.2.4)
29
+ activesupport (= 4.2.4)
30
30
  globalid (>= 0.3.0)
31
- activemodel (4.2.3)
32
- activesupport (= 4.2.3)
31
+ activemodel (4.2.4)
32
+ activesupport (= 4.2.4)
33
33
  builder (~> 3.1)
34
- activerecord (4.2.3)
35
- activemodel (= 4.2.3)
36
- activesupport (= 4.2.3)
34
+ activerecord (4.2.4)
35
+ activemodel (= 4.2.4)
36
+ activesupport (= 4.2.4)
37
37
  arel (~> 6.0)
38
- activesupport (4.2.3)
38
+ activesupport (4.2.4)
39
39
  i18n (~> 0.7)
40
40
  json (~> 1.7, >= 1.7.7)
41
41
  minitest (~> 5.1)
42
42
  thread_safe (~> 0.3, >= 0.3.4)
43
43
  tzinfo (~> 1.1)
44
44
  addressable (2.3.8)
45
- arel (6.0.0)
46
- bson (3.1.2)
45
+ arel (6.0.3)
46
+ bson (3.2.4)
47
47
  builder (3.2.2)
48
48
  carrierwave (0.10.0)
49
49
  activemodel (>= 3.2.0)
@@ -57,31 +57,32 @@ GEM
57
57
  coderay (1.1.0)
58
58
  connection_pool (2.2.0)
59
59
  crass (1.0.2)
60
- database_cleaner (1.4.1)
60
+ database_cleaner (1.5.0)
61
61
  diff-lcs (1.2.5)
62
62
  docile (1.1.5)
63
63
  erubis (2.7.0)
64
64
  factory_girl (4.5.0)
65
65
  activesupport (>= 3.0.0)
66
- geocoder (1.2.9)
66
+ geocoder (1.2.11)
67
67
  glebtv-carrierwave-mongoid (0.8.0)
68
68
  carrierwave (>= 0.8.0, < 0.11.0)
69
69
  mongoid (>= 3.0, < 5.0)
70
70
  glebtv-mongoid-paperclip (0.3.0)
71
71
  mongoid (>= 3.0, < 5.0)
72
72
  paperclip (>= 3.4, != 4.3.0)
73
- globalid (0.3.5)
73
+ globalid (0.3.6)
74
74
  activesupport (>= 4.1.0)
75
75
  i18n (0.7.0)
76
76
  json (1.8.3)
77
- loofah (2.0.2)
77
+ loofah (2.0.3)
78
78
  nokogiri (>= 1.5.9)
79
79
  mail (2.6.3)
80
80
  mime-types (>= 1.16, < 3)
81
81
  method_source (0.8.2)
82
- mime-types (2.6.1)
82
+ mime-types (2.6.2)
83
+ mimemagic (0.3.0)
83
84
  mini_portile (0.6.2)
84
- minitest (5.7.0)
85
+ minitest (5.8.0)
85
86
  mongoid (4.0.2)
86
87
  activemodel (~> 4.0)
87
88
  moped (~> 2.0.0)
@@ -91,7 +92,7 @@ GEM
91
92
  mongoid (~> 4.0.0)
92
93
  rake
93
94
  rspec (~> 3.1)
94
- moped (2.0.6)
95
+ moped (2.0.7)
95
96
  bson (~> 3.0)
96
97
  connection_pool (~> 2.0)
97
98
  optionable (~> 0.2.0)
@@ -101,11 +102,12 @@ GEM
101
102
  nokogiri
102
103
  optionable (0.2.0)
103
104
  origin (2.1.1)
104
- paperclip (4.2.4)
105
+ paperclip (4.3.1)
105
106
  activemodel (>= 3.2.0)
106
107
  activesupport (>= 3.2.0)
107
108
  cocaine (~> 0.5.5)
108
109
  mime-types
110
+ mimemagic (= 0.3.0)
109
111
  pry (0.10.1)
110
112
  coderay (~> 1.1.0)
111
113
  method_source (~> 0.8.1)
@@ -113,28 +115,28 @@ GEM
113
115
  rack (1.6.4)
114
116
  rack-test (0.6.3)
115
117
  rack (>= 1.0)
116
- rails (4.2.3)
117
- actionmailer (= 4.2.3)
118
- actionpack (= 4.2.3)
119
- actionview (= 4.2.3)
120
- activejob (= 4.2.3)
121
- activemodel (= 4.2.3)
122
- activerecord (= 4.2.3)
123
- activesupport (= 4.2.3)
118
+ rails (4.2.4)
119
+ actionmailer (= 4.2.4)
120
+ actionpack (= 4.2.4)
121
+ actionview (= 4.2.4)
122
+ activejob (= 4.2.4)
123
+ activemodel (= 4.2.4)
124
+ activerecord (= 4.2.4)
125
+ activesupport (= 4.2.4)
124
126
  bundler (>= 1.3.0, < 2.0)
125
- railties (= 4.2.3)
127
+ railties (= 4.2.4)
126
128
  sprockets-rails
127
129
  rails-deprecated_sanitizer (1.0.3)
128
130
  activesupport (>= 4.2.0.alpha)
129
- rails-dom-testing (1.0.6)
131
+ rails-dom-testing (1.0.7)
130
132
  activesupport (>= 4.2.0.beta, < 5.0)
131
133
  nokogiri (~> 1.6.0)
132
134
  rails-deprecated_sanitizer (>= 1.0.1)
133
135
  rails-html-sanitizer (1.0.2)
134
136
  loofah (~> 2.0)
135
- railties (4.2.3)
136
- actionpack (= 4.2.3)
137
- activesupport (= 4.2.3)
137
+ railties (4.2.4)
138
+ actionpack (= 4.2.4)
139
+ activesupport (= 4.2.4)
138
140
  rake (>= 0.8.7)
139
141
  thor (>= 0.18.1, < 2.0)
140
142
  rake (10.4.2)
@@ -142,16 +144,16 @@ GEM
142
144
  rspec-core (~> 3.3.0)
143
145
  rspec-expectations (~> 3.3.0)
144
146
  rspec-mocks (~> 3.3.0)
145
- rspec-core (3.3.1)
147
+ rspec-core (3.3.2)
146
148
  rspec-support (~> 3.3.0)
147
- rspec-expectations (3.3.0)
149
+ rspec-expectations (3.3.1)
148
150
  diff-lcs (>= 1.2.0, < 2.0)
149
151
  rspec-support (~> 3.3.0)
150
- rspec-mocks (3.3.1)
152
+ rspec-mocks (3.3.2)
151
153
  diff-lcs (>= 1.2.0, < 2.0)
152
154
  rspec-support (~> 3.3.0)
153
155
  rspec-support (3.3.0)
154
- russian_phone (0.5.2)
156
+ russian_phone (0.5.3)
155
157
  safe_yaml (1.0.4)
156
158
  sanitize (4.0.0)
157
159
  crass (~> 1.0.2)
@@ -163,9 +165,9 @@ GEM
163
165
  simplecov-html (~> 0.10.0)
164
166
  simplecov-html (0.10.0)
165
167
  slop (3.6.0)
166
- sprockets (3.2.0)
168
+ sprockets (3.3.4)
167
169
  rack (~> 1.0)
168
- sprockets-rails (2.3.2)
170
+ sprockets-rails (2.3.3)
169
171
  actionpack (>= 3.0)
170
172
  activesupport (>= 3.0)
171
173
  sprockets (>= 2.8, < 4.0)
@@ -173,7 +175,7 @@ GEM
173
175
  thread_safe (0.3.5)
174
176
  tzinfo (1.2.2)
175
177
  thread_safe (~> 0.1)
176
- validates_email_format_of (1.6.2)
178
+ validates_email_format_of (1.6.3)
177
179
  i18n
178
180
 
179
181
  PLATFORMS
@@ -187,7 +189,7 @@ DEPENDENCIES
187
189
  geocoder
188
190
  glebtv-carrierwave-mongoid
189
191
  glebtv-mongoid-paperclip
190
- mongoid (>= 3.0, < 4.1)
192
+ mongoid (>= 3.0, < 6.0)
191
193
  mongoid-rspec
192
194
  pry
193
195
  rails
@@ -201,4 +203,4 @@ DEPENDENCIES
201
203
  validates_email_format_of
202
204
 
203
205
  BUNDLED WITH
204
- 1.10.5
206
+ 1.10.6
data/README.md CHANGED
@@ -1,11 +1,9 @@
1
1
  # RailsAdminSettings
2
2
 
3
3
  [![Build Status](https://secure.travis-ci.org/rs-pro/rails_admin_settings.png?branch=master)](http://travis-ci.org/rs-pro/rails_admin_settings)
4
- [![Dependency Status](https://www.versioneye.com/user/projects/53e73e2735080d9f08000134/badge.svg?style=flat)](https://www.versioneye.com/user/projects/53e73e2735080d9f08000134)
4
+ [![Dependency Status](https://gemnasium.com/rs-pro/rails_admin_settings.svg)](https://gemnasium.com/rs-pro/rails_admin_settings)
5
5
 
6
- Note: This gem currently supports Mongoid 3/4 only, as I don't need AR support.
7
-
8
- Pull request with AR support will be welcome
6
+ ## Since 1.0 AR is fully supported but not well tested yet.
9
7
 
10
8
  ## 0.9.0 is not backwards-compatible with 0.8
11
9
 
@@ -77,6 +75,26 @@ Or install it yourself as:
77
75
 
78
76
  See more here: https://github.com/rs-pro/rails_admin_settings/blob/master/spec/advanced_usage_spec.rb
79
77
 
78
+ ## Namespacing
79
+
80
+ Settings can have namespaces (useful for locale, etc)
81
+
82
+ Settings.ns('test').s1 = 123
83
+ Settings.ns('test').s1
84
+ > "123"
85
+ Settings.ns('main').s1
86
+ > ""
87
+ Settings.s1
88
+ > ""
89
+ Settings.ns_default = 'test'
90
+ Settings.s1
91
+ > "123"
92
+ Settings.ns_default = 'main'
93
+ Settings.ns_fallback = 'test'
94
+ Settings.s1
95
+ > "123"
96
+
97
+
80
98
  ## Value types
81
99
 
82
100
  Supported types:
@@ -1,4 +1,4 @@
1
1
  module RailsAdminSettings
2
- VERSION = "1.0.1"
2
+ VERSION = "1.1.0.pre.1"
3
3
  end
4
4
 
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
19
19
  spec.require_paths = ["lib"]
20
20
 
21
21
 
22
- spec.add_development_dependency "mongoid", [">= 3.0", "< 4.1"]
22
+ spec.add_development_dependency "mongoid", [">= 3.0", "< 6.0"]
23
23
  spec.add_development_dependency "rails"
24
24
  spec.add_development_dependency "bundler"
25
25
  spec.add_development_dependency "rake"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_admin_settings
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.1.0.pre.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gleb Tv
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-07 00:00:00.000000000 Z
11
+ date: 2015-09-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mongoid
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3.0'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '4.1'
22
+ version: '6.0'
23
23
  type: :development
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3.0'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '4.1'
32
+ version: '6.0'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: rails
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -347,9 +347,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
347
347
  version: '0'
348
348
  required_rubygems_version: !ruby/object:Gem::Requirement
349
349
  requirements:
350
- - - ">="
350
+ - - ">"
351
351
  - !ruby/object:Gem::Version
352
- version: '0'
352
+ version: 1.3.1
353
353
  requirements: []
354
354
  rubyforge_project:
355
355
  rubygems_version: 2.4.5