activeadmin 1.4.2 → 1.4.3

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of activeadmin might be problematic. Click here for more details.

@@ -2,7 +2,7 @@ source "https://rubygems.org"
2
2
 
3
3
  eval_gemfile(File.expand_path(File.join("..", "Gemfile.common"), __dir__))
4
4
 
5
- gem "rails", "5.1.6"
5
+ gem "rails", "~> 5.1.6"
6
6
  gem "devise", "~> 4.3"
7
7
  gem "draper", "~> 3.0"
8
8
  gem "activerecord-jdbcsqlite3-adapter", "~> 51.0", platforms: :jruby
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- activeadmin (1.4.2)
4
+ activeadmin (1.4.3)
5
5
  arbre (>= 1.1.1)
6
6
  coffee-rails
7
7
  formtastic (~> 3.1)
@@ -17,48 +17,48 @@ PATH
17
17
  GEM
18
18
  remote: https://rubygems.org/
19
19
  specs:
20
- actioncable (5.1.6)
21
- actionpack (= 5.1.6)
20
+ actioncable (5.1.6.1)
21
+ actionpack (= 5.1.6.1)
22
22
  nio4r (~> 2.0)
23
23
  websocket-driver (~> 0.6.1)
24
- actionmailer (5.1.6)
25
- actionpack (= 5.1.6)
26
- actionview (= 5.1.6)
27
- activejob (= 5.1.6)
24
+ actionmailer (5.1.6.1)
25
+ actionpack (= 5.1.6.1)
26
+ actionview (= 5.1.6.1)
27
+ activejob (= 5.1.6.1)
28
28
  mail (~> 2.5, >= 2.5.4)
29
29
  rails-dom-testing (~> 2.0)
30
- actionpack (5.1.6)
31
- actionview (= 5.1.6)
32
- activesupport (= 5.1.6)
30
+ actionpack (5.1.6.1)
31
+ actionview (= 5.1.6.1)
32
+ activesupport (= 5.1.6.1)
33
33
  rack (~> 2.0)
34
34
  rack-test (>= 0.6.3)
35
35
  rails-dom-testing (~> 2.0)
36
36
  rails-html-sanitizer (~> 1.0, >= 1.0.2)
37
- actionview (5.1.6)
38
- activesupport (= 5.1.6)
37
+ actionview (5.1.6.1)
38
+ activesupport (= 5.1.6.1)
39
39
  builder (~> 3.1)
40
40
  erubi (~> 1.4)
41
41
  rails-dom-testing (~> 2.0)
42
42
  rails-html-sanitizer (~> 1.0, >= 1.0.3)
43
- activejob (5.1.6)
44
- activesupport (= 5.1.6)
43
+ activejob (5.1.6.1)
44
+ activesupport (= 5.1.6.1)
45
45
  globalid (>= 0.3.6)
46
- activemodel (5.1.6)
47
- activesupport (= 5.1.6)
46
+ activemodel (5.1.6.1)
47
+ activesupport (= 5.1.6.1)
48
48
  activemodel-serializers-xml (1.0.2)
49
49
  activemodel (> 5.x)
50
50
  activesupport (> 5.x)
51
51
  builder (~> 3.1)
52
- activerecord (5.1.6)
53
- activemodel (= 5.1.6)
54
- activesupport (= 5.1.6)
52
+ activerecord (5.1.6.1)
53
+ activemodel (= 5.1.6.1)
54
+ activesupport (= 5.1.6.1)
55
55
  arel (~> 8.0)
56
56
  activerecord-jdbc-adapter (51.2-java)
57
57
  activerecord (~> 5.1.0)
58
58
  activerecord-jdbcsqlite3-adapter (51.2-java)
59
59
  activerecord-jdbc-adapter (= 51.2)
60
60
  jdbc-sqlite3 (~> 3.8, < 3.30)
61
- activesupport (5.1.6)
61
+ activesupport (5.1.6.1)
62
62
  concurrent-ruby (~> 1.0, >= 1.0.2)
63
63
  i18n (>= 0.7, < 2)
64
64
  minitest (~> 5.1)
@@ -68,20 +68,13 @@ GEM
68
68
  arbre (1.1.1)
69
69
  activesupport (>= 3.0.0)
70
70
  arel (8.0.0)
71
- ast (2.4.0)
72
71
  backports (3.11.4)
73
72
  bcrypt (3.1.12)
74
73
  bcrypt (3.1.12-java)
75
- better_errors (2.5.0)
76
- coderay (>= 1.0.0)
77
- erubi (>= 1.0.0)
78
- rack (>= 0.9.0)
79
- binding_of_caller (0.8.0)
80
- debug_inspector (>= 0.0.1)
81
74
  builder (3.2.3)
82
75
  byebug (10.0.2)
83
76
  cancan (1.6.10)
84
- capybara (3.10.0)
77
+ capybara (3.12.0)
85
78
  addressable
86
79
  mini_mime (>= 0.1.3)
87
80
  nokogiri (~> 1.8)
@@ -91,10 +84,6 @@ GEM
91
84
  xpath (~> 3.2)
92
85
  childprocess (0.9.0)
93
86
  ffi (~> 1.0, >= 1.0.11)
94
- codecov (0.1.13)
95
- json
96
- simplecov
97
- url
98
87
  coderay (1.1.2)
99
88
  coffee-rails (4.2.2)
100
89
  coffee-script (>= 2.2.0)
@@ -128,7 +117,6 @@ GEM
128
117
  cucumber-tag_expressions (1.1.1)
129
118
  cucumber-wire (0.0.1)
130
119
  database_cleaner (1.7.0)
131
- debug_inspector (0.0.3)
132
120
  devise (4.5.0)
133
121
  bcrypt (~> 3.0)
134
122
  orm_adapter (~> 0.1)
@@ -156,29 +144,13 @@ GEM
156
144
  has_scope (0.7.2)
157
145
  actionpack (>= 4.1)
158
146
  activesupport (>= 4.1)
159
- highline (2.0.0)
160
147
  i18n (1.1.1)
161
148
  concurrent-ruby (~> 1.0)
162
- i18n-spec (0.6.0)
163
- iso
164
- i18n-tasks (0.9.25)
165
- activesupport (>= 4.0.2)
166
- ast (>= 2.1.0)
167
- erubi
168
- highline (>= 2.0.0)
169
- i18n
170
- parser (>= 2.2.3.0)
171
- rainbow (>= 2.2.2, < 4.0)
172
- terminal-table (>= 1.5.1)
173
149
  inherited_resources (1.9.0)
174
150
  actionpack (>= 4.2, < 5.3)
175
151
  has_scope (~> 0.6)
176
152
  railties (>= 4.2, < 5.3)
177
153
  responders
178
- iso (0.2.2)
179
- i18n
180
- jaro_winkler (1.5.1)
181
- jaro_winkler (1.5.1-java)
182
154
  jasmine (2.9.0)
183
155
  jasmine-core (>= 2.9.0, < 3.0.0)
184
156
  phantomjs
@@ -205,7 +177,6 @@ GEM
205
177
  activerecord
206
178
  kaminari-core (= 1.1.1)
207
179
  kaminari-core (1.1.1)
208
- kramdown (1.17.0)
209
180
  launchy (2.4.3)
210
181
  addressable (~> 2.3)
211
182
  launchy (2.4.3-java)
@@ -216,20 +187,13 @@ GEM
216
187
  nokogiri (>= 1.5.9)
217
188
  mail (2.7.1)
218
189
  mini_mime (>= 0.1.1)
219
- mdl (0.4.0)
220
- kramdown (~> 1.12, >= 1.12.0)
221
- mixlib-cli (~> 1.7, >= 1.7.0)
222
- mixlib-config (~> 2.2, >= 2.2.1)
223
- method_source (0.9.0)
190
+ method_source (0.9.2)
224
191
  mime-types (3.2.2)
225
192
  mime-types-data (~> 3.2015)
226
193
  mime-types-data (3.2018.0812)
227
194
  mini_mime (1.0.1)
228
195
  mini_portile2 (2.3.0)
229
196
  minitest (5.11.3)
230
- mixlib-cli (1.7.0)
231
- mixlib-config (2.2.13)
232
- tomlrb
233
197
  multi_json (1.13.1)
234
198
  multi_test (0.1.2)
235
199
  nio4r (2.3.1)
@@ -241,10 +205,7 @@ GEM
241
205
  parallel (1.12.1)
242
206
  parallel_tests (2.26.0)
243
207
  parallel
244
- parser (2.5.1.2)
245
- ast (~> 2.4.0)
246
208
  phantomjs (2.1.1.0)
247
- powerpack (0.1.2)
248
209
  pry (0.11.3)
249
210
  coderay (~> 1.1.0)
250
211
  method_source (~> 0.9.0)
@@ -258,22 +219,20 @@ GEM
258
219
  public_suffix (3.0.3)
259
220
  pundit (2.0.0)
260
221
  activesupport (>= 3.0.0)
261
- rack (2.0.5)
262
- rack-mini-profiler (1.0.0)
263
- rack (>= 1.2.0)
222
+ rack (2.0.6)
264
223
  rack-test (1.1.0)
265
224
  rack (>= 1.0, < 3)
266
- rails (5.1.6)
267
- actioncable (= 5.1.6)
268
- actionmailer (= 5.1.6)
269
- actionpack (= 5.1.6)
270
- actionview (= 5.1.6)
271
- activejob (= 5.1.6)
272
- activemodel (= 5.1.6)
273
- activerecord (= 5.1.6)
274
- activesupport (= 5.1.6)
225
+ rails (5.1.6.1)
226
+ actioncable (= 5.1.6.1)
227
+ actionmailer (= 5.1.6.1)
228
+ actionpack (= 5.1.6.1)
229
+ actionview (= 5.1.6.1)
230
+ activejob (= 5.1.6.1)
231
+ activemodel (= 5.1.6.1)
232
+ activerecord (= 5.1.6.1)
233
+ activesupport (= 5.1.6.1)
275
234
  bundler (>= 1.3.0)
276
- railties (= 5.1.6)
235
+ railties (= 5.1.6.1)
277
236
  sprockets-rails (>= 2.0.0)
278
237
  rails-dom-testing (2.0.3)
279
238
  activesupport (>= 4.2.0)
@@ -283,14 +242,12 @@ GEM
283
242
  rails-i18n (5.1.1)
284
243
  i18n (>= 0.7, < 2)
285
244
  railties (>= 5.0, < 6)
286
- railties (5.1.6)
287
- actionpack (= 5.1.6)
288
- activesupport (= 5.1.6)
245
+ railties (5.1.6.1)
246
+ actionpack (= 5.1.6.1)
247
+ activesupport (= 5.1.6.1)
289
248
  method_source
290
249
  rake (>= 0.8.7)
291
250
  thor (>= 0.18.1, < 2.0)
292
- rainbow (2.2.2)
293
- rake
294
251
  rake (12.3.1)
295
252
  ransack (2.1.0)
296
253
  actionpack (>= 5.0)
@@ -300,8 +257,7 @@ GEM
300
257
  rb-fsevent (0.10.3)
301
258
  rb-inotify (0.9.10)
302
259
  ffi (>= 0.5.0, < 2)
303
- redcarpet (3.4.0)
304
- regexp_parser (1.2.0)
260
+ regexp_parser (1.3.0)
305
261
  request_store (1.4.1)
306
262
  rack (>= 1.4)
307
263
  responders (2.4.0)
@@ -324,15 +280,6 @@ GEM
324
280
  rspec-mocks (~> 3.8.0)
325
281
  rspec-support (~> 3.8.0)
326
282
  rspec-support (3.8.0)
327
- rubocop (0.59.2)
328
- jaro_winkler (~> 1.5.1)
329
- parallel (~> 1.10)
330
- parser (>= 2.5, != 2.5.1.1)
331
- powerpack (~> 0.1)
332
- rainbow (>= 2.2.2, < 4.0)
333
- ruby-progressbar (~> 1.7)
334
- unicode-display_width (~> 1.0, >= 1.0.1)
335
- ruby-progressbar (1.10.0)
336
283
  rubyzip (1.2.2)
337
284
  sass (3.7.2)
338
285
  sass-listen (~> 4.0.0)
@@ -357,16 +304,11 @@ GEM
357
304
  activesupport (>= 4.0)
358
305
  sprockets (>= 3.0.0)
359
306
  sqlite3 (1.3.13)
360
- terminal-table (1.8.0)
361
- unicode-display_width (~> 1.1, >= 1.1.1)
362
- thor (0.20.0)
307
+ thor (0.20.3)
363
308
  thread_safe (0.3.6)
364
309
  thread_safe (0.3.6-java)
365
- tomlrb (1.2.7)
366
310
  tzinfo (1.2.5)
367
311
  thread_safe (~> 0.1)
368
- unicode-display_width (1.4.0)
369
- url (0.3.2)
370
312
  warden (1.2.7)
371
313
  rack (>= 1.0)
372
314
  websocket-driver (0.6.5)
@@ -376,7 +318,6 @@ GEM
376
318
  websocket-extensions (0.1.3)
377
319
  xpath (3.2.0)
378
320
  nokogiri (~> 1.8)
379
- yard (0.9.16)
380
321
 
381
322
  PLATFORMS
382
323
  java
@@ -385,39 +326,28 @@ PLATFORMS
385
326
  DEPENDENCIES
386
327
  activeadmin!
387
328
  activerecord-jdbcsqlite3-adapter (~> 51.0)
388
- better_errors
389
- binding_of_caller
390
329
  cancan
391
330
  capybara (~> 3.10)
392
- codecov
393
331
  cucumber
394
332
  cucumber-rails (~> 1.5)
395
333
  database_cleaner
396
334
  devise (~> 4.3)
397
335
  draper (~> 3.0)
398
- i18n-spec
399
- i18n-tasks
400
336
  jasmine
401
337
  jasmine-core (= 2.9.1)
402
338
  jruby-openssl (~> 0.10.1)
403
- kramdown
404
339
  launchy
405
- mdl (= 0.4.0)
406
340
  parallel_tests (~> 2.26)
407
341
  pry
408
342
  pry-byebug
409
343
  pundit
410
- rack-mini-profiler (>= 0.10.1)
411
- rails (= 5.1.6)
344
+ rails (~> 5.1.6)
412
345
  rails-i18n
413
346
  rake
414
- redcarpet
415
347
  rspec-rails
416
- rubocop (= 0.59.2)
417
348
  selenium-webdriver
418
349
  simplecov
419
350
  sqlite3
420
- yard
421
351
 
422
352
  BUNDLED WITH
423
353
  1.17.1
@@ -7,7 +7,7 @@ module ActiveAdmin
7
7
  if action_present?
8
8
  selection = params[:collection_selection] || []
9
9
  inputs = JSON.parse params[:batch_action_inputs] || '{}'
10
- valid_keys = StringSymbolOrProcSetting.new(current_batch_action.inputs).value(self).try(:keys)
10
+ valid_keys = MethodOrProcHelper.render_in_context(self, current_batch_action.inputs).try(:keys)
11
11
  inputs = inputs.with_indifferent_access.slice *valid_keys
12
12
  instance_exec selection, inputs, &current_batch_action.block
13
13
  else
@@ -15,7 +15,7 @@ module ActiveAdmin
15
15
  # Collection can be scoped conditionally with an :if or :unless proc.
16
16
  def begin_of_association_chain
17
17
  return nil unless active_admin_config.scope_to?(self)
18
- StringSymbolOrProcSetting.new(active_admin_config.scope_to_method).value(self)
18
+ MethodOrProcHelper.render_in_context(self, active_admin_config.scope_to_method)
19
19
  end
20
20
 
21
21
  # Overriding from InheritedResources::BaseHelpers
@@ -1,3 +1,3 @@
1
1
  module ActiveAdmin
2
- VERSION = '1.4.2'
2
+ VERSION = '1.4.3'
3
3
  end
@@ -1,4 +1,5 @@
1
1
  module MethodOrProcHelper
2
+ extend self
2
3
 
3
4
  # This method will either call the symbol on self or instance_exec the Proc
4
5
  # within self. Any args will be passed along to the method dispatch.
@@ -1,3 +1,5 @@
1
+ require 'fileutils'
2
+
1
3
  module ActiveAdmin
2
4
  class ApplicationGenerator
3
5
  attr_reader :rails_env, :template
@@ -11,7 +13,7 @@ module ActiveAdmin
11
13
  if File.exist? app_dir
12
14
  puts "test app #{app_dir} already exists; skipping test app generation"
13
15
  else
14
- system "mkdir -p #{base_dir}"
16
+ FileUtils.mkdir_p base_dir
15
17
  args = %W(
16
18
  -m spec/support/#{template}.rb
17
19
  --skip-bootsnap
@@ -26,7 +28,7 @@ module ActiveAdmin
26
28
 
27
29
  env = { 'BUNDLE_GEMFILE' => ENV['BUNDLE_GEMFILE'], 'RAILS_ENV' => rails_env }
28
30
 
29
- Bundler.with_original_env { Kernel.system(env, command) }
31
+ Bundler.with_original_env { abort unless Kernel.system(env, command) }
30
32
  end
31
33
 
32
34
  app_dir
@@ -2,7 +2,7 @@ desc "Bundle all Gemfiles"
2
2
  task :bundle do |_t, opts|
3
3
  ["Gemfile", *Dir.glob("gemfiles/*.gemfile")].each do |gemfile|
4
4
  Bundler.with_original_env do
5
- system({ "BUNDLE_GEMFILE" => gemfile }, "bundle", *opts)
5
+ sh({ "BUNDLE_GEMFILE" => gemfile }, "bundle", *opts)
6
6
  end
7
7
  end
8
8
  end
@@ -78,7 +78,7 @@ namespace :lint do
78
78
  task :mdl do
79
79
  puts "Running mdl..."
80
80
 
81
- abort unless system("mdl", "--git-recurse", ".")
81
+ sh("mdl", "--git-recurse", ".")
82
82
  end
83
83
 
84
84
  desc "Check for unnecessary trailing whitespace across all repo files"
@@ -99,7 +99,7 @@ namespace :lint do
99
99
  task :rspec do
100
100
  puts "Linting project files..."
101
101
 
102
- abort unless system(
102
+ sh(
103
103
  { "COVERAGE" => "true" },
104
104
  "rspec",
105
105
  "spec/gemfiles_spec.lint.rb",
@@ -0,0 +1,6 @@
1
+ require "chandler/tasks"
2
+
3
+ #
4
+ # Add chandler as a prerequisite for `rake release`
5
+ #
6
+ task "release:rubygem_push" => "chandler:push"
@@ -1,4 +1,3 @@
1
- require 'parallel'
2
1
  require_relative "application_generator"
3
2
 
4
3
  desc "Run the full suite using parallel_tests to run on multiple cores"
@@ -11,7 +10,7 @@ end
11
10
 
12
11
  desc "Run the specs in parallel"
13
12
  task :spec do
14
- system("parallel_rspec --serialize-stdout --verbose spec/")
13
+ sh("parallel_rspec --serialize-stdout --combine-stderr --verbose spec/")
15
14
  end
16
15
 
17
16
  namespace :spec do
@@ -19,7 +18,7 @@ namespace :spec do
19
18
  %i(unit request).each do |type|
20
19
  desc "Run the #{type} specs in parallel"
21
20
  task type do
22
- system("parallel_rspec --serialize-stdout --verbose spec/#{type}")
21
+ sh("parallel_rspec --serialize-stdout --combine-stderr --verbose spec/#{type}")
23
22
  end
24
23
  end
25
24
 
@@ -32,12 +31,12 @@ namespace :cucumber do
32
31
 
33
32
  desc "Run the standard cucumber scenarios in parallel"
34
33
  task :regular do
35
- system("parallel_cucumber --serialize-stdout --verbose features/")
34
+ sh("parallel_cucumber --serialize-stdout --combine-stderr --verbose features/")
36
35
  end
37
36
 
38
37
  desc "Run the cucumber scenarios that test reloading"
39
38
  task :reloading do
40
- system("cucumber --profile class-reloading")
39
+ sh("cucumber --profile class-reloading")
41
40
  end
42
41
 
43
42
  end