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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b26a78ce279308e636868548f9b3c3fa9f216f39
4
- data.tar.gz: 8b75a734d751bf054c245696fbfec0b0b556b86c
3
+ metadata.gz: 8eec5e2492ca5008da64d44d377c29994720911e
4
+ data.tar.gz: aa659307b31b09b74c18f6add8757a2283bc5cc0
5
5
  SHA512:
6
- metadata.gz: ae8b14f0827c53d521738d7e3c81ee2a18c4870a44b94825c30334147460ffd339aada6b9a82add970aa8661a9ae966cc67e2fbc12f22d9fb4b83d41497a5966
7
- data.tar.gz: 5c4905e95174192d21dca0e944165fb79ac673df8eae203e512303b1eb81dd25330f224032698105de24fcf98ae3599078cc175c2d06358c96a95968347dce66
6
+ metadata.gz: 885129a6641003b3a78fdfa6454034172eae61a92d69f7e45621e428647b6ea828d113b3fd15ddbc9a28f60f0d93ae1749bbcd0dd1d53e172950bb6884c127f0
7
+ data.tar.gz: 5a6c26f63d34c0550da6e8fb7f7f2847be9eb1f9849698b72fe27163a1eff02e1813b59c9c81f63c68f94ef4b6468b2cf79131d4e205e5e06338ef934ac4db64
data/.travis.yml CHANGED
@@ -5,8 +5,7 @@ notifications:
5
5
  email: false
6
6
 
7
7
  rvm:
8
- - 2.0.0
9
- - 2.1.2
8
+ - 2.2.2
10
9
 
11
10
  env:
12
11
  - "UPLOADS=paperclip"
@@ -15,3 +14,4 @@ env:
15
14
  gemfile:
16
15
  - gemfiles/mongoid-3.1.gemfile
17
16
  - gemfiles/mongoid-4.0.gemfile
17
+
data/Gemfile.lock CHANGED
@@ -1,41 +1,41 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rails_admin_settings (1.0.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.1)
10
- actionpack (= 4.2.1)
11
- actionview (= 4.2.1)
12
- activejob (= 4.2.1)
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.1)
16
- actionview (= 4.2.1)
17
- activesupport (= 4.2.1)
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.1)
22
- actionview (4.2.1)
23
- activesupport (= 4.2.1)
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.1)
28
- activejob (4.2.1)
29
- activesupport (= 4.2.1)
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.1)
32
- activesupport (= 4.2.1)
31
+ activemodel (4.2.3)
32
+ activesupport (= 4.2.3)
33
33
  builder (~> 3.1)
34
- activerecord (4.2.1)
35
- activemodel (= 4.2.1)
36
- activesupport (= 4.2.1)
34
+ activerecord (4.2.3)
35
+ activemodel (= 4.2.3)
36
+ activesupport (= 4.2.3)
37
37
  arel (~> 6.0)
38
- activesupport (4.2.1)
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 (2.3.0)
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.1.3)
59
- crass (1.0.1)
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.8)
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.2.4)
70
+ glebtv-mongoid-paperclip (0.3.0)
71
71
  mongoid (>= 3.0, < 5.0)
72
- paperclip (>= 2.3.6)
73
- globalid (0.3.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.2)
78
- loofah (2.0.1)
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.4.3)
82
+ mime-types (2.6.1)
84
83
  mini_portile (0.6.2)
85
- minitest (5.5.1)
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.4)
96
- bson (~> 2.2)
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.2.0)
100
+ nokogumbo (1.4.1)
103
101
  nokogiri
104
102
  optionable (0.2.0)
105
103
  origin (2.1.1)
106
- paperclip (4.2.1)
107
- activemodel (>= 3.0.0)
108
- activesupport (>= 3.0.0)
109
- cocaine (~> 0.5.3)
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.0)
113
+ rack (1.6.4)
116
114
  rack-test (0.6.3)
117
115
  rack (>= 1.0)
118
- rails (4.2.1)
119
- actionmailer (= 4.2.1)
120
- actionpack (= 4.2.1)
121
- actionview (= 4.2.1)
122
- activejob (= 4.2.1)
123
- activemodel (= 4.2.1)
124
- activerecord (= 4.2.1)
125
- activesupport (= 4.2.1)
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.1)
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.1)
138
- actionpack (= 4.2.1)
139
- activesupport (= 4.2.1)
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.2.0)
144
- rspec-core (~> 3.2.0)
145
- rspec-expectations (~> 3.2.0)
146
- rspec-mocks (~> 3.2.0)
147
- rspec-core (3.2.2)
148
- rspec-support (~> 3.2.0)
149
- rspec-expectations (3.2.0)
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.2.0)
152
- rspec-mocks (3.2.1)
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.2.0)
155
- rspec-support (3.2.2)
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 (3.1.2)
159
- crass (~> 1.0.1)
156
+ sanitize (4.0.0)
157
+ crass (~> 1.0.2)
160
158
  nokogiri (>= 1.4.4)
161
- nokogumbo (= 1.2.0)
162
- simplecov (0.9.2)
159
+ nokogumbo (= 1.4.1)
160
+ simplecov (0.10.0)
163
161
  docile (~> 1.1.0)
164
- multi_json (~> 1.0)
165
- simplecov-html (~> 0.9.0)
166
- simplecov-html (0.9.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.12.3)
169
- hike (~> 1.2)
170
- multi_json (~> 1.0)
166
+ sprockets (3.2.0)
171
167
  rack (~> 1.0)
172
- tilt (~> 1.1, != 1.3.0)
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[:type].nil? && (options[:type] == 'image' || options[:type] == 'file')
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[:type].nil? && (val[:type] == 'file' || val[:type] == 'image')
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
@@ -1,4 +1,4 @@
1
1
  module RailsAdminSettings
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
4
4
 
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.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-04-02 00:00:00.000000000 Z
11
+ date: 2015-07-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mongoid