activeadmin 2.10.0 → 2.10.1

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.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2475b735a56270b5b9421b1caaf3a29309db304fa4cb8d177e81feaddd4c8ce3
4
- data.tar.gz: a54450d0ceee48a534ac77886151f4c089d89b9d56d3f3429f8eea110a11ee09
3
+ metadata.gz: f9f90fc4f40fdf83992afe1d3f5993e83fd3aa23b1ac01723a86926793f60d0b
4
+ data.tar.gz: 0c774ee1d3fb5a36191edd4b4150f633762d9154af18034c7d6af36619e051f8
5
5
  SHA512:
6
- metadata.gz: df19f0ebb54934855aaa741b836ecfe6298f696b7f522d116c5f5f30a6585804c88eb361d546f4515f36881638481cd644a63b5e1e8d9c848d8b9b2974acbf7f
7
- data.tar.gz: ead38adf2aaf33eddef91a863518ba3ad67b2d9cb3cd32573e65d3538f4d3140d5ee44697a4e3d2578aaf1fc20571b7a4da01d00ea3a1c4888a8f4599b7f2c9d
6
+ metadata.gz: bf707e91a09e9fb5164ef5bba597047f2d6809416015554100402cf5e3ffda9e4904f3b30f8f9271861bcd047805e9b2a3a81da71967255a3c5c0a70ddf0f105
7
+ data.tar.gz: 77e6ecf7daa77217782fb1fdf37aea3f2696e9097ac77c7c60dd397ed17094ef6edb74e747c560227cbf9e994bcd4a52ef70a69f52bed35021a242d36d1be80c
data/CHANGELOG.md CHANGED
@@ -2,6 +2,18 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 2.10.1 [☰](https://github.com/activeadmin/activeadmin/compare/v2.10.0..v2.10.1)
6
+
7
+ ### Enhancements
8
+
9
+ * Apply `box-sizing: border-box` globally. [#7349] by [@deivid-rodriguez]
10
+ * Vendor normalize 8.0.1. [#7350] by [@deivid-rodriguez]
11
+ * Remove deprecation warning using controller filters inside initializer. [#7340] by [@mgrunberg]
12
+
13
+ ### Bug Fixes
14
+
15
+ * Fix frozen string error when downloading CSV and streaming disabled. [#7332] by [@deivid-rodriguez]
16
+
5
17
  ## 2.10.0 [☰](https://github.com/activeadmin/activeadmin/compare/v2.9.0..v2.10.0)
6
18
 
7
19
  ### Enhancements
@@ -703,6 +715,10 @@ Please check [0-6-stable] for previous changes.
703
715
  [#7236]: https://github.com/activeadmin/activeadmin/pull/7236
704
716
  [#7262]: https://github.com/activeadmin/activeadmin/pull/7262
705
717
  [#7293]: https://github.com/activeadmin/activeadmin/pull/7293
718
+ [#7332]: https://github.com/activeadmin/activeadmin/pull/7332
719
+ [#7340]: https://github.com/activeadmin/activeadmin/pull/7340
720
+ [#7349]: https://github.com/activeadmin/activeadmin/pull/7349
721
+ [#7350]: https://github.com/activeadmin/activeadmin/pull/7350
706
722
 
707
723
  [@1000ship]: https://github.com/1000ship
708
724
  [@5t111111]: https://github.com/5t111111
@@ -772,6 +788,7 @@ Please check [0-6-stable] for previous changes.
772
788
  [@markstory]: https://github.com/markstory
773
789
  [@mauriciopasquier]: https://github.com/mauriciopasquier
774
790
  [@mconiglio]: https://github.com/mconiglio
791
+ [@mgrunberg]: https://github.com/mgrunberg
775
792
  [@micred]: https://github.com/micred
776
793
  [@mirelon]: https://github.com/mirelon
777
794
  [@MmKolodziej]: https://github.com/MmKolodziej
@@ -33,6 +33,16 @@
33
33
  @import "./structure/main_structure";
34
34
  @import "./structure/title_bar";
35
35
 
36
+ html {
37
+ box-sizing: border-box;
38
+ }
39
+
40
+ *,
41
+ *:before,
42
+ *:after {
43
+ box-sizing: inherit;
44
+ }
45
+
36
46
  body {
37
47
  @include sans-family;
38
48
  line-height: 1.5;
@@ -313,7 +313,6 @@ form.filter_form {
313
313
 
314
314
  &.filter_date_range {
315
315
  input[type=text] {
316
- box-sizing: border-box;
317
316
  width: $date-range-filter-input-width;
318
317
 
319
318
  + input {
@@ -1,17 +1,15 @@
1
- /*! normalize.css v7.0.0 | MIT License | github.com/necolas/normalize.css */
1
+ /*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
2
2
 
3
3
  /* Document
4
4
  ========================================================================== */
5
5
 
6
6
  /**
7
7
  * 1. Correct the line height in all browsers.
8
- * 2. Prevent adjustments of font size after orientation changes in
9
- * IE on Windows Phone and in iOS.
8
+ * 2. Prevent adjustments of font size after orientation changes in iOS.
10
9
  */
11
10
 
12
11
  html {
13
12
  line-height: 1.15; /* 1 */
14
- -ms-text-size-adjust: 100%; /* 2 */
15
13
  -webkit-text-size-adjust: 100%; /* 2 */
16
14
  }
17
15
 
@@ -19,7 +17,7 @@ html {
19
17
  ========================================================================== */
20
18
 
21
19
  /**
22
- * Remove the margin in all browsers (opinionated).
20
+ * Remove the margin in all browsers.
23
21
  */
24
22
 
25
23
  body {
@@ -27,15 +25,10 @@ body {
27
25
  }
28
26
 
29
27
  /**
30
- * Add the correct display in IE 9-.
28
+ * Render the `main` element consistently in IE.
31
29
  */
32
30
 
33
- article,
34
- aside,
35
- footer,
36
- header,
37
- nav,
38
- section {
31
+ main {
39
32
  display: block;
40
33
  }
41
34
 
@@ -52,25 +45,6 @@ h1 {
52
45
  /* Grouping content
53
46
  ========================================================================== */
54
47
 
55
- /**
56
- * Add the correct display in IE 9-.
57
- * 1. Add the correct display in IE.
58
- */
59
-
60
- figcaption,
61
- figure,
62
- main { /* 1 */
63
- display: block;
64
- }
65
-
66
- /**
67
- * Add the correct margin in IE 8.
68
- */
69
-
70
- figure {
71
- margin: 1em 40px;
72
- }
73
-
74
48
  /**
75
49
  * 1. Add the correct box sizing in Firefox.
76
50
  * 2. Show the overflow in Edge and IE.
@@ -96,17 +70,15 @@ pre {
96
70
  ========================================================================== */
97
71
 
98
72
  /**
99
- * 1. Remove the gray background on active links in IE 10.
100
- * 2. Remove gaps in links underline in iOS 8+ and Safari 8+.
73
+ * Remove the gray background on active links in IE 10.
101
74
  */
102
75
 
103
76
  a {
104
- background-color: transparent; /* 1 */
105
- -webkit-text-decoration-skip: objects; /* 2 */
77
+ background-color: transparent;
106
78
  }
107
79
 
108
80
  /**
109
- * 1. Remove the bottom border in Chrome 57- and Firefox 39-.
81
+ * 1. Remove the bottom border in Chrome 57-
110
82
  * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
111
83
  */
112
84
 
@@ -116,15 +88,6 @@ abbr[title] {
116
88
  text-decoration: underline dotted; /* 2 */
117
89
  }
118
90
 
119
- /**
120
- * Prevent the duplicate application of `bolder` by the next rule in Safari 6.
121
- */
122
-
123
- b,
124
- strong {
125
- font-weight: inherit;
126
- }
127
-
128
91
  /**
129
92
  * Add the correct font weight in Chrome, Edge, and Safari.
130
93
  */
@@ -146,23 +109,6 @@ samp {
146
109
  font-size: 1em; /* 2 */
147
110
  }
148
111
 
149
- /**
150
- * Add the correct font style in Android 4.3-.
151
- */
152
-
153
- dfn {
154
- font-style: italic;
155
- }
156
-
157
- /**
158
- * Add the correct background and color in IE 9-.
159
- */
160
-
161
- mark {
162
- background-color: #ff0;
163
- color: #000;
164
- }
165
-
166
112
  /**
167
113
  * Add the correct font size in all browsers.
168
114
  */
@@ -196,44 +142,18 @@ sup {
196
142
  ========================================================================== */
197
143
 
198
144
  /**
199
- * Add the correct display in IE 9-.
200
- */
201
-
202
- audio,
203
- video {
204
- display: inline-block;
205
- }
206
-
207
- /**
208
- * Add the correct display in iOS 4-7.
209
- */
210
-
211
- audio:not([controls]) {
212
- display: none;
213
- height: 0;
214
- }
215
-
216
- /**
217
- * Remove the border on images inside links in IE 10-.
145
+ * Remove the border on images inside links in IE 10.
218
146
  */
219
147
 
220
148
  img {
221
149
  border-style: none;
222
150
  }
223
151
 
224
- /**
225
- * Hide the overflow in IE.
226
- */
227
-
228
- svg:not(:root) {
229
- overflow: hidden;
230
- }
231
-
232
152
  /* Forms
233
153
  ========================================================================== */
234
154
 
235
155
  /**
236
- * 1. Change the font styles in all browsers (opinionated).
156
+ * 1. Change the font styles in all browsers.
237
157
  * 2. Remove the margin in Firefox and Safari.
238
158
  */
239
159
 
@@ -242,7 +162,7 @@ input,
242
162
  optgroup,
243
163
  select,
244
164
  textarea {
245
- font-family: sans-serif; /* 1 */
165
+ font-family: inherit; /* 1 */
246
166
  font-size: 100%; /* 1 */
247
167
  line-height: 1.15; /* 1 */
248
168
  margin: 0; /* 2 */
@@ -269,16 +189,14 @@ select { /* 1 */
269
189
  }
270
190
 
271
191
  /**
272
- * 1. Prevent a WebKit bug where (2) destroys native `audio` and `video`
273
- * controls in Android 4.
274
- * 2. Correct the inability to style clickable types in iOS and Safari.
192
+ * Correct the inability to style clickable types in iOS and Safari.
275
193
  */
276
194
 
277
195
  button,
278
- html [type="button"], /* 1 */
196
+ [type="button"],
279
197
  [type="reset"],
280
198
  [type="submit"] {
281
- -webkit-appearance: button; /* 2 */
199
+ -webkit-appearance: button;
282
200
  }
283
201
 
284
202
  /**
@@ -329,17 +247,15 @@ legend {
329
247
  }
330
248
 
331
249
  /**
332
- * 1. Add the correct display in IE 9-.
333
- * 2. Add the correct vertical alignment in Chrome, Firefox, and Opera.
250
+ * Add the correct vertical alignment in Chrome, Firefox, and Opera.
334
251
  */
335
252
 
336
253
  progress {
337
- display: inline-block; /* 1 */
338
- vertical-align: baseline; /* 2 */
254
+ vertical-align: baseline;
339
255
  }
340
256
 
341
257
  /**
342
- * Remove the default vertical scrollbar in IE.
258
+ * Remove the default vertical scrollbar in IE 10+.
343
259
  */
344
260
 
345
261
  textarea {
@@ -347,8 +263,8 @@ textarea {
347
263
  }
348
264
 
349
265
  /**
350
- * 1. Add the correct box sizing in IE 10-.
351
- * 2. Remove the padding in IE 10-.
266
+ * 1. Add the correct box sizing in IE 10.
267
+ * 2. Remove the padding in IE 10.
352
268
  */
353
269
 
354
270
  [type="checkbox"],
@@ -377,10 +293,9 @@ textarea {
377
293
  }
378
294
 
379
295
  /**
380
- * Remove the inner padding and cancel buttons in Chrome and Safari on macOS.
296
+ * Remove the inner padding in Chrome and Safari on macOS.
381
297
  */
382
298
 
383
- [type="search"]::-webkit-search-cancel-button,
384
299
  [type="search"]::-webkit-search-decoration {
385
300
  -webkit-appearance: none;
386
301
  }
@@ -399,12 +314,10 @@ textarea {
399
314
  ========================================================================== */
400
315
 
401
316
  /*
402
- * Add the correct display in IE 9-.
403
- * 1. Add the correct display in Edge, IE, and Firefox.
317
+ * Add the correct display in Edge, IE 10+, and Firefox.
404
318
  */
405
319
 
406
- details, /* 1 */
407
- menu {
320
+ details {
408
321
  display: block;
409
322
  }
410
323
 
@@ -416,30 +329,19 @@ summary {
416
329
  display: list-item;
417
330
  }
418
331
 
419
- /* Scripting
332
+ /* Misc
420
333
  ========================================================================== */
421
334
 
422
335
  /**
423
- * Add the correct display in IE 9-.
424
- */
425
-
426
- canvas {
427
- display: inline-block;
428
- }
429
-
430
- /**
431
- * Add the correct display in IE.
336
+ * Add the correct display in IE 10+.
432
337
  */
433
338
 
434
339
  template {
435
340
  display: none;
436
341
  }
437
342
 
438
- /* Hidden
439
- ========================================================================== */
440
-
441
343
  /**
442
- * Add the correct display in IE 10-.
344
+ * Add the correct display in IE 10.
443
345
  */
444
346
 
445
347
  [hidden] {
@@ -17,11 +17,10 @@
17
17
  }
18
18
 
19
19
  .ui-datepicker-header {
20
- height: 14px;
21
20
  @include primary-gradient;
22
21
  padding: 12px 5px 7px 4px;
23
22
  margin: 0px 0px 2px 2px;
24
- width: 147px;
23
+ width: 156px;
25
24
  border-top-left-radius: 7px;
26
25
  border-top-right-radius: 7px;
27
26
  position: relative;
@@ -106,7 +106,6 @@
106
106
  li {
107
107
  display: block;
108
108
  border-bottom: solid 1px #ebebeb;
109
- box-sizing: border-box;
110
109
 
111
110
  a {
112
111
  display: block;
@@ -1,7 +1,6 @@
1
1
  #title_bar {
2
2
  @include section-header;
3
3
  @include clearfix;
4
- box-sizing: border-box;
5
4
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.37);
6
5
  display: table;
7
6
  border-bottom-color: #EEE;
@@ -150,8 +150,8 @@ module ActiveAdmin
150
150
  AbstractController::Callbacks::ClassMethods.public_instance_methods.
151
151
  select { |m| m.match(/_action\z/) }.each do |name|
152
152
  define_method name do |*args, &block|
153
- controllers_for_filters.each do |controller|
154
- controller.public_send name, *args, &block
153
+ ActiveSupport.on_load(:active_admin_controller) do
154
+ public_send name, *args, &block
155
155
  end
156
156
  end
157
157
  end
@@ -77,5 +77,6 @@ module ActiveAdmin
77
77
  { controller: controller, action: action }
78
78
  end
79
79
 
80
+ ActiveSupport.run_load_hooks(:active_admin_controller, self)
80
81
  end
81
82
  end
@@ -53,22 +53,32 @@ module ActiveAdmin
53
53
 
54
54
  class SessionsController < ::Devise::SessionsController
55
55
  include ::ActiveAdmin::Devise::Controller
56
+
57
+ ActiveSupport.run_load_hooks(:active_admin_controller, self)
56
58
  end
57
59
 
58
60
  class PasswordsController < ::Devise::PasswordsController
59
61
  include ::ActiveAdmin::Devise::Controller
62
+
63
+ ActiveSupport.run_load_hooks(:active_admin_controller, self)
60
64
  end
61
65
 
62
66
  class UnlocksController < ::Devise::UnlocksController
63
67
  include ::ActiveAdmin::Devise::Controller
68
+
69
+ ActiveSupport.run_load_hooks(:active_admin_controller, self)
64
70
  end
65
71
 
66
72
  class RegistrationsController < ::Devise::RegistrationsController
67
73
  include ::ActiveAdmin::Devise::Controller
74
+
75
+ ActiveSupport.run_load_hooks(:active_admin_controller, self)
68
76
  end
69
77
 
70
78
  class ConfirmationsController < ::Devise::ConfirmationsController
71
79
  include ::ActiveAdmin::Devise::Controller
80
+
81
+ ActiveSupport.run_load_hooks(:active_admin_controller, self)
72
82
  end
73
83
 
74
84
  def self.controllers_for_filters
@@ -24,7 +24,7 @@ module ActiveAdmin
24
24
  headers["Last-Modified"] = Time.current.httpdate
25
25
 
26
26
  if ActiveAdmin.application.disable_streaming_in.include? Rails.env
27
- self.response_body = block[""]
27
+ self.response_body = block[String.new]
28
28
  else
29
29
  self.response_body = Enumerator.new &block
30
30
  end
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module ActiveAdmin
3
- VERSION = "2.10.0"
3
+ VERSION = "2.10.1"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activeadmin
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.10.0
4
+ version: 2.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Charles Maresh
@@ -15,7 +15,7 @@ authors:
15
15
  autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
- date: 2022-02-11 00:00:00.000000000 Z
18
+ date: 2022-02-25 00:00:00.000000000 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: arbre
@@ -578,7 +578,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
578
578
  - !ruby/object:Gem::Version
579
579
  version: '0'
580
580
  requirements: []
581
- rubygems_version: 3.4.0.dev
581
+ rubygems_version: 3.3.7
582
582
  signing_key:
583
583
  specification_version: 4
584
584
  summary: Active Admin is a Ruby on Rails plugin for generating administration style