rails_admin_settings 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +2 -2
- data/Gemfile.lock +74 -77
- data/lib/rails_admin_settings/namespaced.rb +1 -1
- data/lib/rails_admin_settings/settings.rb +1 -1
- data/lib/rails_admin_settings/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8eec5e2492ca5008da64d44d377c29994720911e
|
4
|
+
data.tar.gz: aa659307b31b09b74c18f6add8757a2283bc5cc0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 885129a6641003b3a78fdfa6454034172eae61a92d69f7e45621e428647b6ea828d113b3fd15ddbc9a28f60f0d93ae1749bbcd0dd1d53e172950bb6884c127f0
|
7
|
+
data.tar.gz: 5a6c26f63d34c0550da6e8fb7f7f2847be9eb1f9849698b72fe27163a1eff02e1813b59c9c81f63c68f94ef4b6468b2cf79131d4e205e5e06338ef934ac4db64
|
data/.travis.yml
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,41 +1,41 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
rails_admin_settings (1.0.
|
4
|
+
rails_admin_settings (1.0.1)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
8
8
|
specs:
|
9
|
-
actionmailer (4.2.
|
10
|
-
actionpack (= 4.2.
|
11
|
-
actionview (= 4.2.
|
12
|
-
activejob (= 4.2.
|
9
|
+
actionmailer (4.2.3)
|
10
|
+
actionpack (= 4.2.3)
|
11
|
+
actionview (= 4.2.3)
|
12
|
+
activejob (= 4.2.3)
|
13
13
|
mail (~> 2.5, >= 2.5.4)
|
14
14
|
rails-dom-testing (~> 1.0, >= 1.0.5)
|
15
|
-
actionpack (4.2.
|
16
|
-
actionview (= 4.2.
|
17
|
-
activesupport (= 4.2.
|
15
|
+
actionpack (4.2.3)
|
16
|
+
actionview (= 4.2.3)
|
17
|
+
activesupport (= 4.2.3)
|
18
18
|
rack (~> 1.6)
|
19
19
|
rack-test (~> 0.6.2)
|
20
20
|
rails-dom-testing (~> 1.0, >= 1.0.5)
|
21
|
-
rails-html-sanitizer (~> 1.0, >= 1.0.
|
22
|
-
actionview (4.2.
|
23
|
-
activesupport (= 4.2.
|
21
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
22
|
+
actionview (4.2.3)
|
23
|
+
activesupport (= 4.2.3)
|
24
24
|
builder (~> 3.1)
|
25
25
|
erubis (~> 2.7.0)
|
26
26
|
rails-dom-testing (~> 1.0, >= 1.0.5)
|
27
|
-
rails-html-sanitizer (~> 1.0, >= 1.0.
|
28
|
-
activejob (4.2.
|
29
|
-
activesupport (= 4.2.
|
27
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
28
|
+
activejob (4.2.3)
|
29
|
+
activesupport (= 4.2.3)
|
30
30
|
globalid (>= 0.3.0)
|
31
|
-
activemodel (4.2.
|
32
|
-
activesupport (= 4.2.
|
31
|
+
activemodel (4.2.3)
|
32
|
+
activesupport (= 4.2.3)
|
33
33
|
builder (~> 3.1)
|
34
|
-
activerecord (4.2.
|
35
|
-
activemodel (= 4.2.
|
36
|
-
activesupport (= 4.2.
|
34
|
+
activerecord (4.2.3)
|
35
|
+
activemodel (= 4.2.3)
|
36
|
+
activesupport (= 4.2.3)
|
37
37
|
arel (~> 6.0)
|
38
|
-
activesupport (4.2.
|
38
|
+
activesupport (4.2.3)
|
39
39
|
i18n (~> 0.7)
|
40
40
|
json (~> 1.7, >= 1.7.7)
|
41
41
|
minitest (~> 5.1)
|
@@ -43,7 +43,7 @@ GEM
|
|
43
43
|
tzinfo (~> 1.1)
|
44
44
|
addressable (2.3.8)
|
45
45
|
arel (6.0.0)
|
46
|
-
bson (
|
46
|
+
bson (3.1.2)
|
47
47
|
builder (3.2.2)
|
48
48
|
carrierwave (0.10.0)
|
49
49
|
activemodel (>= 3.2.0)
|
@@ -55,34 +55,33 @@ GEM
|
|
55
55
|
cocaine (0.5.7)
|
56
56
|
climate_control (>= 0.0.3, < 1.0)
|
57
57
|
coderay (1.1.0)
|
58
|
-
connection_pool (2.
|
59
|
-
crass (1.0.
|
58
|
+
connection_pool (2.2.0)
|
59
|
+
crass (1.0.2)
|
60
60
|
database_cleaner (1.4.1)
|
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.
|
66
|
+
geocoder (1.2.9)
|
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
|
-
glebtv-mongoid-paperclip (0.
|
70
|
+
glebtv-mongoid-paperclip (0.3.0)
|
71
71
|
mongoid (>= 3.0, < 5.0)
|
72
|
-
paperclip (>=
|
73
|
-
globalid (0.3.
|
72
|
+
paperclip (>= 3.4, != 4.3.0)
|
73
|
+
globalid (0.3.5)
|
74
74
|
activesupport (>= 4.1.0)
|
75
|
-
hike (1.2.3)
|
76
75
|
i18n (0.7.0)
|
77
|
-
json (1.8.
|
78
|
-
loofah (2.0.
|
76
|
+
json (1.8.3)
|
77
|
+
loofah (2.0.2)
|
79
78
|
nokogiri (>= 1.5.9)
|
80
79
|
mail (2.6.3)
|
81
80
|
mime-types (>= 1.16, < 3)
|
82
81
|
method_source (0.8.2)
|
83
|
-
mime-types (2.
|
82
|
+
mime-types (2.6.1)
|
84
83
|
mini_portile (0.6.2)
|
85
|
-
minitest (5.
|
84
|
+
minitest (5.7.0)
|
86
85
|
mongoid (4.0.2)
|
87
86
|
activemodel (~> 4.0)
|
88
87
|
moped (~> 2.0.0)
|
@@ -92,39 +91,38 @@ GEM
|
|
92
91
|
mongoid (~> 4.0.0)
|
93
92
|
rake
|
94
93
|
rspec (~> 3.1)
|
95
|
-
moped (2.0.
|
96
|
-
bson (~>
|
94
|
+
moped (2.0.6)
|
95
|
+
bson (~> 3.0)
|
97
96
|
connection_pool (~> 2.0)
|
98
97
|
optionable (~> 0.2.0)
|
99
|
-
multi_json (1.11.0)
|
100
98
|
nokogiri (1.6.6.2)
|
101
99
|
mini_portile (~> 0.6.0)
|
102
|
-
nokogumbo (1.
|
100
|
+
nokogumbo (1.4.1)
|
103
101
|
nokogiri
|
104
102
|
optionable (0.2.0)
|
105
103
|
origin (2.1.1)
|
106
|
-
paperclip (4.2.
|
107
|
-
activemodel (>= 3.
|
108
|
-
activesupport (>= 3.
|
109
|
-
cocaine (~> 0.5.
|
104
|
+
paperclip (4.2.4)
|
105
|
+
activemodel (>= 3.2.0)
|
106
|
+
activesupport (>= 3.2.0)
|
107
|
+
cocaine (~> 0.5.5)
|
110
108
|
mime-types
|
111
109
|
pry (0.10.1)
|
112
110
|
coderay (~> 1.1.0)
|
113
111
|
method_source (~> 0.8.1)
|
114
112
|
slop (~> 3.4)
|
115
|
-
rack (1.6.
|
113
|
+
rack (1.6.4)
|
116
114
|
rack-test (0.6.3)
|
117
115
|
rack (>= 1.0)
|
118
|
-
rails (4.2.
|
119
|
-
actionmailer (= 4.2.
|
120
|
-
actionpack (= 4.2.
|
121
|
-
actionview (= 4.2.
|
122
|
-
activejob (= 4.2.
|
123
|
-
activemodel (= 4.2.
|
124
|
-
activerecord (= 4.2.
|
125
|
-
activesupport (= 4.2.
|
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)
|
126
124
|
bundler (>= 1.3.0, < 2.0)
|
127
|
-
railties (= 4.2.
|
125
|
+
railties (= 4.2.3)
|
128
126
|
sprockets-rails
|
129
127
|
rails-deprecated_sanitizer (1.0.3)
|
130
128
|
activesupport (>= 4.2.0.alpha)
|
@@ -134,49 +132,45 @@ GEM
|
|
134
132
|
rails-deprecated_sanitizer (>= 1.0.1)
|
135
133
|
rails-html-sanitizer (1.0.2)
|
136
134
|
loofah (~> 2.0)
|
137
|
-
railties (4.2.
|
138
|
-
actionpack (= 4.2.
|
139
|
-
activesupport (= 4.2.
|
135
|
+
railties (4.2.3)
|
136
|
+
actionpack (= 4.2.3)
|
137
|
+
activesupport (= 4.2.3)
|
140
138
|
rake (>= 0.8.7)
|
141
139
|
thor (>= 0.18.1, < 2.0)
|
142
140
|
rake (10.4.2)
|
143
|
-
rspec (3.
|
144
|
-
rspec-core (~> 3.
|
145
|
-
rspec-expectations (~> 3.
|
146
|
-
rspec-mocks (~> 3.
|
147
|
-
rspec-core (3.
|
148
|
-
rspec-support (~> 3.
|
149
|
-
rspec-expectations (3.
|
141
|
+
rspec (3.3.0)
|
142
|
+
rspec-core (~> 3.3.0)
|
143
|
+
rspec-expectations (~> 3.3.0)
|
144
|
+
rspec-mocks (~> 3.3.0)
|
145
|
+
rspec-core (3.3.1)
|
146
|
+
rspec-support (~> 3.3.0)
|
147
|
+
rspec-expectations (3.3.0)
|
150
148
|
diff-lcs (>= 1.2.0, < 2.0)
|
151
|
-
rspec-support (~> 3.
|
152
|
-
rspec-mocks (3.
|
149
|
+
rspec-support (~> 3.3.0)
|
150
|
+
rspec-mocks (3.3.1)
|
153
151
|
diff-lcs (>= 1.2.0, < 2.0)
|
154
|
-
rspec-support (~> 3.
|
155
|
-
rspec-support (3.
|
152
|
+
rspec-support (~> 3.3.0)
|
153
|
+
rspec-support (3.3.0)
|
156
154
|
russian_phone (0.5.2)
|
157
155
|
safe_yaml (1.0.4)
|
158
|
-
sanitize (
|
159
|
-
crass (~> 1.0.
|
156
|
+
sanitize (4.0.0)
|
157
|
+
crass (~> 1.0.2)
|
160
158
|
nokogiri (>= 1.4.4)
|
161
|
-
nokogumbo (= 1.
|
162
|
-
simplecov (0.
|
159
|
+
nokogumbo (= 1.4.1)
|
160
|
+
simplecov (0.10.0)
|
163
161
|
docile (~> 1.1.0)
|
164
|
-
|
165
|
-
simplecov-html (~> 0.
|
166
|
-
simplecov-html (0.
|
162
|
+
json (~> 1.8)
|
163
|
+
simplecov-html (~> 0.10.0)
|
164
|
+
simplecov-html (0.10.0)
|
167
165
|
slop (3.6.0)
|
168
|
-
sprockets (2.
|
169
|
-
hike (~> 1.2)
|
170
|
-
multi_json (~> 1.0)
|
166
|
+
sprockets (3.2.0)
|
171
167
|
rack (~> 1.0)
|
172
|
-
|
173
|
-
sprockets-rails (2.2.4)
|
168
|
+
sprockets-rails (2.3.2)
|
174
169
|
actionpack (>= 3.0)
|
175
170
|
activesupport (>= 3.0)
|
176
171
|
sprockets (>= 2.8, < 4.0)
|
177
172
|
thor (0.19.1)
|
178
173
|
thread_safe (0.3.5)
|
179
|
-
tilt (1.4.1)
|
180
174
|
tzinfo (1.2.2)
|
181
175
|
thread_safe (~> 0.1)
|
182
176
|
validates_email_format_of (1.6.2)
|
@@ -205,3 +199,6 @@ DEPENDENCIES
|
|
205
199
|
sanitize
|
206
200
|
simplecov
|
207
201
|
validates_email_format_of
|
202
|
+
|
203
|
+
BUNDLED WITH
|
204
|
+
1.10.5
|
@@ -160,7 +160,7 @@ module RailsAdminSettings
|
|
160
160
|
end
|
161
161
|
|
162
162
|
def write_to_database(key, options)
|
163
|
-
is_file = !options[:
|
163
|
+
is_file = !options[:kind].nil? && (options[:kind] == 'image' || options[:kind] == 'file')
|
164
164
|
if is_file
|
165
165
|
options[:raw] = ''
|
166
166
|
file = options[:value]
|
@@ -72,7 +72,7 @@ class Settings < BasicObject
|
|
72
72
|
n = ns(namespace)
|
73
73
|
vals.each_pair do |key, val|
|
74
74
|
val.symbolize_keys!
|
75
|
-
if !val[:
|
75
|
+
if !val[:kind].nil? && (val[:kind] == 'file' || val[:kind] == 'image')
|
76
76
|
unless @@file_uploads_supported
|
77
77
|
::Kernel.raise ::RailsAdminSettings::PersistenceException, "Fatal: setting #{key} is #{val[:type]} but file upload engine is not detected"
|
78
78
|
end
|
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.
|
4
|
+
version: 1.0.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-
|
11
|
+
date: 2015-07-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mongoid
|