rails_admin_settings 1.6.0 → 1.7.0

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
  SHA256:
3
- metadata.gz: d138604a0c03f484ed60c6a4a3bf3df0c7936c4e28ff18b4914dee9b05276e5a
4
- data.tar.gz: 3f37b53322fdd2dc6ae98500b84edb4d91b2ed8638d141226740b80e5a9b09f8
3
+ metadata.gz: 5f1f9843ee528e7a9264626370073c5d5300c830fec7f1fd5098cce75e7982d6
4
+ data.tar.gz: 3b260282a0c0d4504d88123287111b45774eab05ca84352b8539af271b00268d
5
5
  SHA512:
6
- metadata.gz: 6d78b5b79ea3487bb14dd67c4ac2a9d6bc97c4027d42fe8ee548d1fefa1b858c7dafcd6df67f03bde8899641e2619ce62a86b95327bb7d688f75c527bb919dd9
7
- data.tar.gz: 3aa78be3967ac7178f2389390c82ebb4f845ca1e5dd5e482e40d4c785643a4256e416722fdff2e11dab863b1515f6806e56d711cd149b0be5660aa61cf8c80a9
6
+ metadata.gz: dc1a6ec975b5f6e802dafe7345bd9753478d3cddcd4e25a93b9501482304db19a8e59bc681c30ffaf0d30d1415493f9af5db7643a3e3e4b3160ded5ba79782be
7
+ data.tar.gz: 7061025abfd54dcbf409e7215d171474f7e1f5068eea1ce704b80038f58a4f4e5dc0252211efbe74816858a95e7bf94f9dbe20c9812946fa508ef98c8613a85b
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 2.7.2
data/Gemfile.lock CHANGED
@@ -1,110 +1,135 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rails_admin_settings (1.6.0)
4
+ rails_admin_settings (1.7.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
- actioncable (5.2.3)
10
- actionpack (= 5.2.3)
9
+ actioncable (6.1.3.1)
10
+ actionpack (= 6.1.3.1)
11
+ activesupport (= 6.1.3.1)
11
12
  nio4r (~> 2.0)
12
13
  websocket-driver (>= 0.6.1)
13
- actionmailer (5.2.3)
14
- actionpack (= 5.2.3)
15
- actionview (= 5.2.3)
16
- activejob (= 5.2.3)
14
+ actionmailbox (6.1.3.1)
15
+ actionpack (= 6.1.3.1)
16
+ activejob (= 6.1.3.1)
17
+ activerecord (= 6.1.3.1)
18
+ activestorage (= 6.1.3.1)
19
+ activesupport (= 6.1.3.1)
20
+ mail (>= 2.7.1)
21
+ actionmailer (6.1.3.1)
22
+ actionpack (= 6.1.3.1)
23
+ actionview (= 6.1.3.1)
24
+ activejob (= 6.1.3.1)
25
+ activesupport (= 6.1.3.1)
17
26
  mail (~> 2.5, >= 2.5.4)
18
27
  rails-dom-testing (~> 2.0)
19
- actionpack (5.2.3)
20
- actionview (= 5.2.3)
21
- activesupport (= 5.2.3)
22
- rack (~> 2.0)
28
+ actionpack (6.1.3.1)
29
+ actionview (= 6.1.3.1)
30
+ activesupport (= 6.1.3.1)
31
+ rack (~> 2.0, >= 2.0.9)
23
32
  rack-test (>= 0.6.3)
24
33
  rails-dom-testing (~> 2.0)
25
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
26
- actionview (5.2.3)
27
- activesupport (= 5.2.3)
34
+ rails-html-sanitizer (~> 1.0, >= 1.2.0)
35
+ actiontext (6.1.3.1)
36
+ actionpack (= 6.1.3.1)
37
+ activerecord (= 6.1.3.1)
38
+ activestorage (= 6.1.3.1)
39
+ activesupport (= 6.1.3.1)
40
+ nokogiri (>= 1.8.5)
41
+ actionview (6.1.3.1)
42
+ activesupport (= 6.1.3.1)
28
43
  builder (~> 3.1)
29
44
  erubi (~> 1.4)
30
45
  rails-dom-testing (~> 2.0)
31
- rails-html-sanitizer (~> 1.0, >= 1.0.3)
32
- activejob (5.2.3)
33
- activesupport (= 5.2.3)
46
+ rails-html-sanitizer (~> 1.1, >= 1.2.0)
47
+ activejob (6.1.3.1)
48
+ activesupport (= 6.1.3.1)
34
49
  globalid (>= 0.3.6)
35
- activemodel (5.2.3)
36
- activesupport (= 5.2.3)
37
- activerecord (5.2.3)
38
- activemodel (= 5.2.3)
39
- activesupport (= 5.2.3)
40
- arel (>= 9.0)
41
- activestorage (5.2.3)
42
- actionpack (= 5.2.3)
43
- activerecord (= 5.2.3)
44
- marcel (~> 0.3.1)
45
- activesupport (5.2.3)
50
+ activemodel (6.1.3.1)
51
+ activesupport (= 6.1.3.1)
52
+ activerecord (6.1.3.1)
53
+ activemodel (= 6.1.3.1)
54
+ activesupport (= 6.1.3.1)
55
+ activestorage (6.1.3.1)
56
+ actionpack (= 6.1.3.1)
57
+ activejob (= 6.1.3.1)
58
+ activerecord (= 6.1.3.1)
59
+ activesupport (= 6.1.3.1)
60
+ marcel (~> 1.0.0)
61
+ mini_mime (~> 1.0.2)
62
+ activesupport (6.1.3.1)
46
63
  concurrent-ruby (~> 1.0, >= 1.0.2)
47
- i18n (>= 0.7, < 2)
48
- minitest (~> 5.1)
49
- tzinfo (~> 1.1)
50
- addressable (2.6.0)
51
- public_suffix (>= 2.0.2, < 4.0)
52
- arel (9.0.0)
53
- ast (2.4.0)
54
- bson (4.5.0)
55
- builder (3.2.3)
56
- carrierwave (1.3.1)
57
- activemodel (>= 4.0.0)
58
- activesupport (>= 4.0.0)
59
- mime-types (>= 1.16)
64
+ i18n (>= 1.6, < 2)
65
+ minitest (>= 5.1)
66
+ tzinfo (~> 2.0)
67
+ zeitwerk (~> 2.3)
68
+ addressable (2.7.0)
69
+ public_suffix (>= 2.0.2, < 5.0)
70
+ ast (2.4.2)
71
+ bson (4.12.0)
72
+ builder (3.2.4)
73
+ carrierwave (2.2.1)
74
+ activemodel (>= 5.0.0)
75
+ activesupport (>= 5.0.0)
76
+ addressable (~> 2.6)
77
+ image_processing (~> 1.1)
78
+ marcel (~> 1.0.0)
79
+ mini_mime (>= 0.1.3)
80
+ ssrf_filter (~> 1.0)
60
81
  carrierwave-mongoid (1.3.0)
61
82
  carrierwave (>= 0.8, < 3)
62
83
  mongoid (>= 3.0, < 8.0)
63
84
  mongoid-grid_fs (>= 1.3, < 3.0)
64
85
  climate_control (0.2.0)
65
- concurrent-ruby (1.1.5)
86
+ concurrent-ruby (1.1.8)
66
87
  content_disposition (1.0.0)
67
- crass (1.0.4)
68
- database_cleaner (1.7.0)
69
- diff-lcs (1.3)
70
- docile (1.3.2)
71
- down (5.1.1)
88
+ crass (1.0.6)
89
+ database_cleaner (2.0.1)
90
+ database_cleaner-active_record (~> 2.0.0)
91
+ database_cleaner-active_record (2.0.0)
92
+ activerecord (>= 5.a)
93
+ database_cleaner-core (~> 2.0.0)
94
+ database_cleaner-core (2.0.1)
95
+ diff-lcs (1.4.4)
96
+ docile (1.3.5)
97
+ down (5.2.0)
72
98
  addressable (~> 2.5)
73
- erubi (1.8.0)
74
- factory_bot (5.0.2)
75
- activesupport (>= 4.2.0)
76
- ffi (1.13.0)
77
- geocoder (1.5.1)
99
+ erubi (1.10.0)
100
+ factory_bot (6.1.0)
101
+ activesupport (>= 5.0.0)
102
+ ffi (1.15.0)
103
+ geocoder (1.6.6)
78
104
  globalid (0.4.2)
79
105
  activesupport (>= 4.2.0)
80
- i18n (1.6.0)
106
+ i18n (1.8.10)
81
107
  concurrent-ruby (~> 1.0)
82
- image_processing (1.11.0)
108
+ image_processing (1.12.1)
83
109
  mini_magick (>= 4.9.5, < 5)
84
110
  ruby-vips (>= 2.0.17, < 3)
85
- jaro_winkler (1.5.3)
86
- json (2.2.0)
87
- loofah (2.2.3)
111
+ loofah (2.9.1)
88
112
  crass (~> 1.0.2)
89
113
  nokogiri (>= 1.5.9)
90
114
  mail (2.7.1)
91
115
  mini_mime (>= 0.1.1)
92
- marcel (0.3.3)
93
- mimemagic (~> 0.3.2)
94
- method_source (0.9.2)
95
- mime-types (3.2.2)
116
+ marcel (1.0.1)
117
+ method_source (1.0.0)
118
+ mime-types (3.3.1)
96
119
  mime-types-data (~> 3.2015)
97
- mime-types-data (3.2019.0331)
98
- mimemagic (0.3.3)
99
- mini_magick (4.10.1)
100
- mini_mime (1.0.2)
101
- mini_portile2 (2.4.0)
102
- minitest (5.11.3)
103
- mongo (2.9.0)
104
- bson (>= 4.4.2, < 5.0.0)
105
- mongoid (6.4.4)
106
- activemodel (>= 5.1, < 6.0.0)
107
- mongo (>= 2.5.1, < 3.0.0)
120
+ mime-types-data (3.2021.0225)
121
+ mimemagic (0.3.10)
122
+ nokogiri (~> 1)
123
+ rake
124
+ mini_magick (4.11.0)
125
+ mini_mime (1.0.3)
126
+ mini_portile2 (2.5.0)
127
+ minitest (5.14.4)
128
+ mongo (2.14.0)
129
+ bson (>= 4.8.2, < 5.0.0)
130
+ mongoid (7.2.2)
131
+ activemodel (>= 5.1, < 6.2)
132
+ mongo (>= 2.10.5, < 3.0.0)
108
133
  mongoid-compatibility (0.5.1)
109
134
  activesupport
110
135
  mongoid (>= 2.0)
@@ -114,15 +139,18 @@ GEM
114
139
  mongoid-paperclip (0.0.11)
115
140
  mongoid
116
141
  paperclip (>= 2.3.6, != 4.3.0)
117
- mongoid-rspec (4.0.1)
142
+ mongoid-rspec (4.1.0)
118
143
  activesupport (>= 3.0.0)
119
144
  mongoid (>= 3.1)
120
145
  mongoid-compatibility (>= 0.5.1)
121
- rspec (~> 3.3)
122
- nio4r (2.4.0)
123
- nokogiri (1.10.3)
124
- mini_portile2 (~> 2.4.0)
125
- nokogumbo (2.0.1)
146
+ rspec-core (~> 3.3)
147
+ rspec-expectations (~> 3.3)
148
+ rspec-mocks (~> 3.3)
149
+ nio4r (2.5.7)
150
+ nokogiri (1.11.3)
151
+ mini_portile2 (~> 2.5.0)
152
+ racc (~> 1.4)
153
+ nokogumbo (2.0.5)
126
154
  nokogiri (~> 1.8, >= 1.8.4)
127
155
  paperclip (6.1.0)
128
156
  activemodel (>= 4.2.0)
@@ -130,100 +158,112 @@ GEM
130
158
  mime-types
131
159
  mimemagic (~> 0.3.0)
132
160
  terrapin (~> 0.6.0)
133
- parallel (1.17.0)
134
- parser (2.6.3.0)
135
- ast (~> 2.4.0)
136
- public_suffix (3.1.1)
137
- rack (2.0.7)
161
+ parallel (1.20.1)
162
+ parser (3.0.1.0)
163
+ ast (~> 2.4.1)
164
+ public_suffix (4.0.6)
165
+ racc (1.5.2)
166
+ rack (2.2.3)
138
167
  rack-test (1.1.0)
139
168
  rack (>= 1.0, < 3)
140
- rails (5.2.3)
141
- actioncable (= 5.2.3)
142
- actionmailer (= 5.2.3)
143
- actionpack (= 5.2.3)
144
- actionview (= 5.2.3)
145
- activejob (= 5.2.3)
146
- activemodel (= 5.2.3)
147
- activerecord (= 5.2.3)
148
- activestorage (= 5.2.3)
149
- activesupport (= 5.2.3)
150
- bundler (>= 1.3.0)
151
- railties (= 5.2.3)
169
+ rails (6.1.3.1)
170
+ actioncable (= 6.1.3.1)
171
+ actionmailbox (= 6.1.3.1)
172
+ actionmailer (= 6.1.3.1)
173
+ actionpack (= 6.1.3.1)
174
+ actiontext (= 6.1.3.1)
175
+ actionview (= 6.1.3.1)
176
+ activejob (= 6.1.3.1)
177
+ activemodel (= 6.1.3.1)
178
+ activerecord (= 6.1.3.1)
179
+ activestorage (= 6.1.3.1)
180
+ activesupport (= 6.1.3.1)
181
+ bundler (>= 1.15.0)
182
+ railties (= 6.1.3.1)
152
183
  sprockets-rails (>= 2.0.0)
153
184
  rails-dom-testing (2.0.3)
154
185
  activesupport (>= 4.2.0)
155
186
  nokogiri (>= 1.6)
156
- rails-html-sanitizer (1.0.4)
157
- loofah (~> 2.2, >= 2.2.2)
158
- railties (5.2.3)
159
- actionpack (= 5.2.3)
160
- activesupport (= 5.2.3)
187
+ rails-html-sanitizer (1.3.0)
188
+ loofah (~> 2.3)
189
+ railties (6.1.3.1)
190
+ actionpack (= 6.1.3.1)
191
+ activesupport (= 6.1.3.1)
161
192
  method_source
162
193
  rake (>= 0.8.7)
163
- thor (>= 0.19.0, < 2.0)
194
+ thor (~> 1.0)
164
195
  rainbow (3.0.0)
165
- rake (12.3.3)
166
- rspec (3.8.0)
167
- rspec-core (~> 3.8.0)
168
- rspec-expectations (~> 3.8.0)
169
- rspec-mocks (~> 3.8.0)
170
- rspec-core (3.8.2)
171
- rspec-support (~> 3.8.0)
172
- rspec-expectations (3.8.4)
196
+ rake (13.0.3)
197
+ regexp_parser (2.1.1)
198
+ rexml (3.2.5)
199
+ rspec (3.10.0)
200
+ rspec-core (~> 3.10.0)
201
+ rspec-expectations (~> 3.10.0)
202
+ rspec-mocks (~> 3.10.0)
203
+ rspec-core (3.10.1)
204
+ rspec-support (~> 3.10.0)
205
+ rspec-expectations (3.10.1)
173
206
  diff-lcs (>= 1.2.0, < 2.0)
174
- rspec-support (~> 3.8.0)
175
- rspec-mocks (3.8.1)
207
+ rspec-support (~> 3.10.0)
208
+ rspec-mocks (3.10.2)
176
209
  diff-lcs (>= 1.2.0, < 2.0)
177
- rspec-support (~> 3.8.0)
178
- rspec-support (3.8.2)
179
- rubocop (0.74.0)
180
- jaro_winkler (~> 1.5.1)
210
+ rspec-support (~> 3.10.0)
211
+ rspec-support (3.10.2)
212
+ rubocop (1.12.1)
181
213
  parallel (~> 1.10)
182
- parser (>= 2.6)
214
+ parser (>= 3.0.0.0)
183
215
  rainbow (>= 2.2.2, < 4.0)
216
+ regexp_parser (>= 1.8, < 3.0)
217
+ rexml
218
+ rubocop-ast (>= 1.2.0, < 2.0)
184
219
  ruby-progressbar (~> 1.7)
185
- unicode-display_width (>= 1.4.0, < 1.7)
186
- rubocop-rspec (1.30.1)
187
- rubocop (>= 0.60.0)
188
- ruby-progressbar (1.10.1)
189
- ruby-vips (2.0.17)
190
- ffi (~> 1.9)
191
- russian_phone (0.6.1)
220
+ unicode-display_width (>= 1.4.0, < 3.0)
221
+ rubocop-ast (1.4.1)
222
+ parser (>= 2.7.1.5)
223
+ rubocop-rspec (2.2.0)
224
+ rubocop (~> 1.0)
225
+ rubocop-ast (>= 1.1.0)
226
+ ruby-progressbar (1.11.0)
227
+ ruby-vips (2.1.0)
228
+ ffi (~> 1.12)
229
+ russian_phone (0.7.0)
192
230
  safe_yaml (1.0.5)
193
- sanitize (5.0.0)
231
+ sanitize (5.2.3)
194
232
  crass (~> 1.0.2)
195
233
  nokogiri (>= 1.8.0)
196
234
  nokogumbo (~> 2.0)
197
- shrine (3.2.1)
235
+ shrine (3.3.0)
198
236
  content_disposition (~> 1.0)
199
237
  down (~> 5.1)
200
238
  shrine-mongoid (1.0.0)
201
239
  mongoid (>= 5.0)
202
240
  shrine (>= 3.0.0.beta3, < 4)
203
- simplecov (0.17.0)
241
+ simplecov (0.21.2)
204
242
  docile (~> 1.1)
205
- json (>= 1.8, < 3)
206
- simplecov-html (~> 0.10.0)
207
- simplecov-html (0.10.2)
208
- sprockets (3.7.2)
243
+ simplecov-html (~> 0.11)
244
+ simplecov_json_formatter (~> 0.1)
245
+ simplecov-html (0.12.3)
246
+ simplecov_json_formatter (0.1.2)
247
+ sprockets (4.0.2)
209
248
  concurrent-ruby (~> 1.0)
210
249
  rack (> 1, < 3)
211
- sprockets-rails (3.2.1)
250
+ sprockets-rails (3.2.2)
212
251
  actionpack (>= 4.0)
213
252
  activesupport (>= 4.0)
214
253
  sprockets (>= 3.0.0)
254
+ ssrf_filter (1.0.7)
215
255
  terrapin (0.6.0)
216
256
  climate_control (>= 0.0.3, < 1.0)
217
- thor (0.20.3)
218
- thread_safe (0.3.6)
219
- tzinfo (1.2.5)
220
- thread_safe (~> 0.1)
221
- unicode-display_width (1.6.0)
257
+ thor (1.1.0)
258
+ tzinfo (2.0.4)
259
+ concurrent-ruby (~> 1.0)
260
+ unicode-display_width (2.0.0)
222
261
  validates_email_format_of (1.6.3)
223
262
  i18n
224
- websocket-driver (0.7.1)
263
+ websocket-driver (0.7.3)
225
264
  websocket-extensions (>= 0.1.0)
226
- websocket-extensions (0.1.4)
265
+ websocket-extensions (0.1.5)
266
+ zeitwerk (2.4.2)
227
267
 
228
268
  PLATFORMS
229
269
  ruby
@@ -237,7 +277,7 @@ DEPENDENCIES
237
277
  geocoder
238
278
  image_processing
239
279
  mini_magick
240
- mongoid (~> 6.3)
280
+ mongoid (~> 7.2.2)
241
281
  mongoid-paperclip
242
282
  mongoid-rspec
243
283
  rails
@@ -16,9 +16,17 @@ module RailsAdminSettings
16
16
  field :raw do
17
17
  pretty_value do
18
18
  if bindings[:object].file_kind? and !defined?(Shrine) and bindings[:object].to_path.present?
19
- "<a href='#{CGI::escapeHTML(bindings[:object].file.url)}'>#{CGI::escapeHTML(bindings[:object].to_path)}</a>".html_safe
19
+ if bindings[:object].file.url.blank?
20
+ "-"
21
+ else
22
+ "<a href='#{CGI::escapeHTML(bindings[:object].file.url)}'>#{CGI::escapeHTML(bindings[:object].to_path)}</a>".html_safe
23
+ end
20
24
  elsif bindings[:object].image_kind? and !defined?(Shrine) and !bindings[:object].file.nil?
21
- "<a href='#{CGI::escapeHTML(bindings[:object].file.url)}'><img src='#{CGI::escapeHTML(bindings[:object].file.url)}' /></a>".html_safe
25
+ if bindings[:object].file.url.blank?
26
+ "-"
27
+ else
28
+ "<a href='#{CGI::escapeHTML(bindings[:object].file.url)}'><img src='#{CGI::escapeHTML(bindings[:object].file.url)}' /></a>".html_safe
29
+ end
22
30
  else
23
31
  value
24
32
  end
@@ -1,3 +1,3 @@
1
1
  module RailsAdminSettings
2
- VERSION = "1.6.0"
2
+ VERSION = "1.7.0"
3
3
  end
@@ -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", '~> 6.3'
22
+ spec.add_development_dependency "mongoid", '~> 7.2.2'
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.6.0
4
+ version: 1.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gleb Tv
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-06-11 00:00:00.000000000 Z
11
+ date: 2021-04-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mongoid
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '6.3'
19
+ version: 7.2.2
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '6.3'
26
+ version: 7.2.2
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rails
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -328,6 +328,7 @@ files:
328
328
  - ".gitignore"
329
329
  - ".rakeTasks"
330
330
  - ".rspec"
331
+ - ".ruby-version"
331
332
  - ".travis.yml"
332
333
  - CHANGELOG.md
333
334
  - Gemfile
@@ -390,7 +391,7 @@ homepage: https://gitlab.com/rocket-science/rails_admin_settings
390
391
  licenses:
391
392
  - MIT
392
393
  metadata: {}
393
- post_install_message:
394
+ post_install_message:
394
395
  rdoc_options: []
395
396
  require_paths:
396
397
  - lib
@@ -405,8 +406,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
405
406
  - !ruby/object:Gem::Version
406
407
  version: '0'
407
408
  requirements: []
408
- rubygems_version: 3.1.2
409
- signing_key:
409
+ rubygems_version: 3.1.4
410
+ signing_key:
410
411
  specification_version: 4
411
412
  summary: ''
412
413
  test_files: