activeadmin 2.5.0 → 2.6.0

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: 7d4b2286091c361bd4e0e7b408ed7e4f6bf3aa118492ed037cb51b2f6e882cf4
4
- data.tar.gz: b9381cb429a6ccfda90d0a51f646c759843c387bda107dcb3d66cffa26cd083f
3
+ metadata.gz: 31e6adaf39f455cb8188d2982a201d9853a2976e9ae446dcc7958882a6f15422
4
+ data.tar.gz: 58b45a79713a68cf75a9e0bb13b7cfe90bf5bf1c01e403375de2acdd4ad16881
5
5
  SHA512:
6
- metadata.gz: 8dba7ffe9ed0516ebfc0f484d548962d677d9d6a36cbf097c0e76e06db7ef87c0469791fdb7917ddd2b831927225958107a16aab3cd096f1ffbf8bc49ebf697d
7
- data.tar.gz: d9dd9f7295fe4f0ccc852ab375637578c86621bd30435d62f2c7d7754ccb5693910aa39e0a154fdbd5535613b3f829ef31a8520761162006e12755e85db9dabb
6
+ metadata.gz: 2c633c0f35fb6a9a90677e8f13d1c7194c8ff3ec3e267ca9249fd0343f09a319ac15148e8067be5b483fb5feab8d6cc9213208ffc24609b233b3b3335d2ba3ca
7
+ data.tar.gz: 815d48181cbdcc9e36ea268217e320f3542a8791b659b931ca51a7a035d478e3cf00fb84f23e5e7021bc015bafd6c28b04add620a3414953ba32e65d8b7a9da3
@@ -2,6 +2,19 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 2.6.0 [☰](https://github.com/activeadmin/activeadmin/compare/v2.5.0..v2.6.0)
6
+
7
+ ### Enhacements
8
+
9
+ * Display multiple flash messages in separate elements. [#5929] by [@mirelon]
10
+ * Make delete confirmation messages in French & Spanish gender-neutral. [#5946] by [@cprodhomme]
11
+
12
+ ### Bug Fixes
13
+
14
+ * Export ModalDialog component to re-enable client side usage. [#5956] by [@sgara]
15
+ * Use default ActionView options instead of default Formtastic options for DateRangeInput [#5957] by [@mirelon]
16
+ * Fix i18n key in docs example to translate scopes. [#5943] by [@adler99]
17
+
5
18
  ## 2.5.0 [☰](https://github.com/activeadmin/activeadmin/compare/v2.4.0..v2.5.0)
6
19
 
7
20
  ### Enhancements
@@ -13,7 +26,7 @@
13
26
  * Convert namespace to sym to prevent duplicate namespaces such as :foo and 'foo'. [#5931] by [@westonganger]
14
27
  * Use filter label when condition has a predicate. [#5886] by [@ko-lem]
15
28
  * Fix error when routing with array containing symbol. [#5870] by [@jwesorick]
16
- * Fix error when there is a model named `Tag` and `meta_tags` have been configured. [#5893] by [@micred], [@FabioRos] and [@deivid-rodriguez]
29
+ * Fix error when there is a model named `Tag` and `meta_tags` have been configured. [#5895] by [@micred], [@FabioRos] and [@deivid-rodriguez]
17
30
  * Allow specifying custom `input_html` for `DateRangeInput`. [#5867] by [@mirelon]
18
31
  * Adjust `#main_content` right margin to take into account possible custom values of `$sidebar-width` and `$section-padding`. [#5887] by [@guigs]
19
32
  * Improved polymorphic routes generation to avoid problems when multiple `belongs_to` are defined. [#5938] by [@leio10]
@@ -518,14 +531,20 @@ Please check [0-6-stable] for previous changes.
518
531
  [#5877]: https://github.com/activeadmin/activeadmin/pull/5877
519
532
  [#5886]: https://github.com/activeadmin/activeadmin/pull/5886
520
533
  [#5870]: https://github.com/activeadmin/activeadmin/pull/5870
521
- [#5893]: https://github.com/activeadmin/activeadmin/pull/5893
534
+ [#5895]: https://github.com/activeadmin/activeadmin/pull/5895
522
535
  [#5867]: https://github.com/activeadmin/activeadmin/pull/5867
523
536
  [#5887]: https://github.com/activeadmin/activeadmin/pull/5887
524
537
  [#5931]: https://github.com/activeadmin/activeadmin/pull/5931
525
538
  [#5938]: https://github.com/activeadmin/activeadmin/pull/5938
539
+ [#5929]: https://github.com/activeadmin/activeadmin/pull/5929
540
+ [#5943]: https://github.com/activeadmin/activeadmin/pull/5943
541
+ [#5946]: https://github.com/activeadmin/activeadmin/pull/5946
542
+ [#5956]: https://github.com/activeadmin/activeadmin/pull/5956
543
+ [#5957]: https://github.com/activeadmin/activeadmin/pull/5957
526
544
 
527
545
  [@5t111111]: https://github.com/5t111111
528
546
  [@aarek]: https://github.com/aarek
547
+ [@adler99]: https://github.com/adler99
529
548
  [@ajw725]: https://github.com/ajw725
530
549
  [@alex-bogomolov]: https://github.com/alex-bogomolov
531
550
  [@amiel]: https://github.com/amiel
@@ -538,6 +557,7 @@ Please check [0-6-stable] for previous changes.
538
557
  [@chancancode]: https://github.com/chancancode
539
558
  [@chrp]: https://github.com/chrp
540
559
  [@chumakoff]: https://github.com/chumakoff
560
+ [@cprodhomme]: https://github.com/cprodhomme
541
561
  [@craigmcnamara]: https://github.com/craigmcnamara
542
562
  [@DanielHeath]: https://github.com/DanielHeath
543
563
  [@deivid-rodriguez]: https://github.com/deivid-rodriguez
@@ -5,10 +5,12 @@ like you that make Active Admin such a great tool.
5
5
 
6
6
  ### Where do I go from here?
7
7
 
8
- If you've noticed a bug or have a question that doesn't belong on the [mailing
9
- list] or [Stack Overflow], [search the issue tracker] to see if someone else in
10
- the community has already created a ticket. If not, go ahead and [make one][new
11
- issue]!
8
+ If you've noticed a bug or have a feature request, [make one][new issue]! It's
9
+ generally best if you get confirmation of your bug or approval for your feature
10
+ request this way before starting to code.
11
+
12
+ If you have a general question about activeadmin, you can post it on [Stack
13
+ Overflow], the issue tracker is only for bugs and feature requests.
12
14
 
13
15
  ### Fork & create a branch
14
16
 
@@ -67,22 +69,6 @@ export BUNDLE_GEMFILE=gemfiles/rails_60/Gemfile
67
69
  **Warning** SCSS assets are aimed to be used indifferently with Sprockets **and** webpacker.
68
70
  As such, make sure not to use any sass-rails directives such as `asset-url` or `image-url`.
69
71
 
70
- ### Did you find a bug?
71
-
72
- * **Ensure the bug was not already reported** by [searching all issues].
73
-
74
- * If you're unable to find an open issue addressing the problem,
75
- [open a new one][new issue]. Be sure to include a **title and clear
76
- description**, as much relevant information as possible, and a **code sample**
77
- or an **executable test case** demonstrating the expected behavior that is not
78
- occurring.
79
-
80
- * If possible, use the relevant bug report templates to create the issue.
81
- Simply copy the content of the appropriate template into a .rb file, make the
82
- necessary changes to demonstrate the issue, and **paste the content into the
83
- issue description**:
84
- * [**ActiveAdmin** master issues][master template]
85
-
86
72
  ### Implement your fix or feature
87
73
 
88
74
  At this point, you're ready to make your changes! Feel free to ask for help;
@@ -225,13 +211,9 @@ Maintainers need to do the following to push out a release:
225
211
  * `bin/rake release`
226
212
 
227
213
  [chandler]: https://github.com/mattbrictson/chandler#2-configure-credentials
228
- [mailing list]: http://groups.google.com/group/activeadmin
229
214
  [Stack Overflow]: http://stackoverflow.com/questions/tagged/activeadmin
230
- [search the issue tracker]: https://github.com/activeadmin/activeadmin/issues?q=something
231
215
  [new issue]: https://github.com/activeadmin/activeadmin/issues/new
232
216
  [fork Active Admin]: https://help.github.com/articles/fork-a-repo
233
- [searching all issues]: https://github.com/activeadmin/activeadmin/issues?q=
234
- [master template]: https://github.com/activeadmin/activeadmin/blob/master/tasks/bug_report_template.rb
235
217
  [make a pull request]: https://help.github.com/articles/creating-a-pull-request
236
218
  [git rebasing]: http://git-scm.com/book/en/Git-Branching-Rebasing
237
219
  [interactive rebase]: https://help.github.com/articles/interactive-rebase
data/README.md CHANGED
@@ -93,7 +93,7 @@ Thanks to [Open Collective][opencollective contributors] and all our Open Collec
93
93
 
94
94
  [rubygems_badge]: http://img.shields.io/gem/v/activeadmin.svg
95
95
  [rubygems]: https://rubygems.org/gems/activeadmin
96
- [circle_badge]: https://circleci.com/gh/activeadmin/activeadmin/tree/master.svg
96
+ [circle_badge]: https://circleci.com/gh/activeadmin/activeadmin/tree/master.svg?style=svg
97
97
  [circle]: https://circleci.com/gh/activeadmin/activeadmin/tree/master
98
98
  [coverage_badge]: https://api.codeclimate.com/v1/badges/779e407d22bacff19733/test_coverage
99
99
  [coverage]: https://codeclimate.com/github/activeadmin/activeadmin/test_coverage
@@ -10,9 +10,10 @@
10
10
  //= require jquery_ujs
11
11
  //= require_self
12
12
 
13
- (function(factory) {
14
- typeof define === "function" && define.amd ? define([ "jquery", "jquery-ui/ui/widgets/datepicker", "jquery-ui/ui/widgets/dialog", "jquery-ui/ui/widgets/sortable", "jquery-ui/ui/widgets/tabs", "jquery-ui/ui/widget", "jquery-ujs" ], factory) : factory();
15
- })(function() {
13
+ (function(global, factory) {
14
+ typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("jquery"), require("jquery-ui/ui/widgets/datepicker"), require("jquery-ui/ui/widgets/dialog"), require("jquery-ui/ui/widgets/sortable"), require("jquery-ui/ui/widgets/tabs"), require("jquery-ui/ui/widget"), require("jquery-ujs")) : typeof define === "function" && define.amd ? define([ "exports", "jquery", "jquery-ui/ui/widgets/datepicker", "jquery-ui/ui/widgets/dialog", "jquery-ui/ui/widgets/sortable", "jquery-ui/ui/widgets/tabs", "jquery-ui/ui/widget", "jquery-ujs" ], factory) : (global = global || self,
15
+ factory(global.ActiveAdmin = {}));
16
+ })(this, function(exports) {
16
17
  "use strict";
17
18
  $.fn.serializeObject = function() {
18
19
  return this.serializeArray().reduce(function(obj, item) {
@@ -506,4 +507,13 @@
506
507
  return $("#active_admin_content .tabs").tabs();
507
508
  };
508
509
  $(document).ready(onDOMReady$2).on("page:load turbolinks:load", onDOMReady$2);
510
+ function modal_dialog(message, inputs, callback) {
511
+ console.warn("ActiveAdmin.modal_dialog is deprecated in favor of ActiveAdmin.ModalDialog, please update usage.");
512
+ return ModalDialog(message, inputs, callback);
513
+ }
514
+ exports.ModalDialog = ModalDialog;
515
+ exports.modal_dialog = modal_dialog;
516
+ Object.defineProperty(exports, "__esModule", {
517
+ value: true
518
+ });
509
519
  });
@@ -17,3 +17,12 @@ import "./initializers/has-many"
17
17
  import "./initializers/per-page"
18
18
  import "./initializers/table-checkbox-toggler"
19
19
  import "./initializers/tabs"
20
+
21
+ import ModalDialog from "./lib/modal-dialog";
22
+
23
+ function modal_dialog(message, inputs, callback) {
24
+ console.warn("ActiveAdmin.modal_dialog is deprecated in favor of ActiveAdmin.ModalDialog, please update usage.");
25
+ return ModalDialog(message, inputs, callback);
26
+ }
27
+
28
+ export { ModalDialog, modal_dialog };
@@ -23,7 +23,7 @@ es:
23
23
  view: "Ver"
24
24
  edit: "Editar"
25
25
  delete: "Eliminar"
26
- delete_confirmation: "¿Está seguro de que quiere eliminar esto?"
26
+ delete_confirmation: "¿Confirma que desea borrar este elemento?"
27
27
  create_another: "Crear otro %{model}"
28
28
  new_model: "Añadir %{model}"
29
29
  edit_model: "Editar %{model}"
@@ -89,7 +89,7 @@ es:
89
89
  batch_actions:
90
90
  button_label: "Acciones en masa"
91
91
  default_confirmation: "¿Seguro que quieres hacer esto?"
92
- delete_confirmation: "Eliminar %{plural_model}: ¿Está seguro?"
92
+ delete_confirmation: "Se eliminarán %{plural_model}. ¿Desea continuar?"
93
93
  succesfully_destroyed:
94
94
  one: "Se ha destruido 1 %{model} con éxito"
95
95
  other: "Se han destruido %{count} %{plural_model} con éxito"
@@ -105,7 +105,7 @@ es:
105
105
  author: "Autor"
106
106
  add: "Comentar"
107
107
  delete: "Borrar Comentario"
108
- delete_confirmation: "¿Está seguro que desea borrar este comentario?"
108
+ delete_confirmation: "¿Confirma que desea borrar este comentario?"
109
109
  resource: "Recurso"
110
110
  no_comments_yet: "No hay comentarios aún."
111
111
  author_missing: "Anónimo"
@@ -7,7 +7,7 @@ fr:
7
7
  view: "Voir"
8
8
  edit: "Modifier"
9
9
  delete: "Supprimer"
10
- delete_confirmation: "Êtes-vous certain de vouloir supprimer ceci ?"
10
+ delete_confirmation: "Voulez-vous vraiment supprimer ceci ?"
11
11
  create_another: "Créer autre %{model}"
12
12
  new_model: "Créer %{model}"
13
13
  edit_model: "Modifier %{model}"
@@ -69,8 +69,8 @@ fr:
69
69
  button_label: "Actions"
70
70
  batch_actions:
71
71
  button_label: "Actions groupées"
72
- default_confirmation: "Êtes-vous sûr de vouloir faire cela ?"
73
- delete_confirmation: "Êtes-vous sûr de vouloir supprimer ces %{plural_model} ?"
72
+ default_confirmation: "Voulez-vous vraiment faire cela ?"
73
+ delete_confirmation: "Voulez-vous vraiment supprimer ces %{plural_model} ?"
74
74
  succesfully_destroyed:
75
75
  one: "1 %{model} supprimé"
76
76
  other: "%{count} %{plural_model} supprimés"
@@ -86,7 +86,7 @@ fr:
86
86
  author: "Auteur"
87
87
  add: "Ajouter un commentaire"
88
88
  delete: "Supprimer ce commentaire"
89
- delete_confirmation: "Êtes-vous sûr de vouloir supprimer ce commentaire ?"
89
+ delete_confirmation: "Voulez-vous vraiment supprimer ce commentaire ?"
90
90
  resource: "Ressource"
91
91
  no_comments_yet: "Aucun commentaire actuellement"
92
92
  author_missing: "Anonyme"
@@ -212,7 +212,7 @@ end
212
212
  ```
213
213
 
214
214
  Scopes can be labelled with a translation, e.g.
215
- `activerecord.scopes.invoice.expired`.
215
+ `active_admin.scopes.scope_method`.
216
216
 
217
217
  ### Scopes groups
218
218
 
@@ -154,13 +154,13 @@ batch_action :doit, form: -> { {user: User.pluck(:name, :id)} } do |ids, inputs|
154
154
  end
155
155
  ```
156
156
 
157
- Under the covers this is powered by the JS `ActiveAdmin.modal_dialog` which you
157
+ Under the covers this is powered by the JS `ActiveAdmin.ModalDialog` which you
158
158
  can use yourself:
159
159
 
160
160
  ```coffee
161
161
  if $('body.admin_users').length
162
162
  $('a[data-prompt]').click ->
163
- ActiveAdmin.modal_dialog $(@).data('prompt'), comment: 'textarea',
163
+ ActiveAdmin.ModalDialog $(@).data('prompt'), comment: 'textarea',
164
164
  (inputs)=>
165
165
  $.post "/admin/users/#{$(@).data 'id'}/change_state",
166
166
  comment: inputs.comment, state: $(@).data('state'),
@@ -1,11 +1,12 @@
1
1
  GEM
2
2
  remote: https://rubygems.org/
3
3
  specs:
4
- activesupport (4.2.11.1)
5
- i18n (~> 0.7)
4
+ activesupport (6.0.1)
5
+ concurrent-ruby (~> 1.0, >= 1.0.2)
6
+ i18n (>= 0.7, < 2)
6
7
  minitest (~> 5.1)
7
- thread_safe (~> 0.3, >= 0.3.4)
8
8
  tzinfo (~> 1.1)
9
+ zeitwerk (~> 2.2)
9
10
  addressable (2.7.0)
10
11
  public_suffix (>= 2.0.2, < 5.0)
11
12
  coffee-script (2.4.1)
@@ -25,33 +26,32 @@ GEM
25
26
  ffi (>= 1.3.0)
26
27
  eventmachine (1.2.7)
27
28
  execjs (2.7.0)
28
- faraday (0.17.0)
29
+ faraday (0.17.1)
29
30
  multipart-post (>= 1.2, < 3)
30
- ffi (1.11.1)
31
+ ffi (1.11.3)
31
32
  forwardable-extended (2.6.0)
32
33
  gemoji (3.0.1)
33
- github-pages (202)
34
- activesupport (= 4.2.11.1)
34
+ github-pages (203)
35
35
  github-pages-health-check (= 1.16.1)
36
36
  jekyll (= 3.8.5)
37
- jekyll-avatar (= 0.6.0)
37
+ jekyll-avatar (= 0.7.0)
38
38
  jekyll-coffeescript (= 1.1.1)
39
39
  jekyll-commonmark-ghpages (= 0.1.6)
40
40
  jekyll-default-layout (= 0.1.4)
41
- jekyll-feed (= 0.11.0)
41
+ jekyll-feed (= 0.13.0)
42
42
  jekyll-gist (= 1.5.0)
43
43
  jekyll-github-metadata (= 2.12.1)
44
- jekyll-mentions (= 1.4.1)
45
- jekyll-optional-front-matter (= 0.3.0)
44
+ jekyll-mentions (= 1.5.1)
45
+ jekyll-optional-front-matter (= 0.3.2)
46
46
  jekyll-paginate (= 1.1.0)
47
- jekyll-readme-index (= 0.2.0)
48
- jekyll-redirect-from (= 0.14.0)
49
- jekyll-relative-links (= 0.6.0)
50
- jekyll-remote-theme (= 0.4.0)
47
+ jekyll-readme-index (= 0.3.0)
48
+ jekyll-redirect-from (= 0.15.0)
49
+ jekyll-relative-links (= 0.6.1)
50
+ jekyll-remote-theme (= 0.4.1)
51
51
  jekyll-sass-converter (= 1.5.2)
52
- jekyll-seo-tag (= 2.5.0)
53
- jekyll-sitemap (= 1.2.0)
54
- jekyll-swiss (= 0.4.0)
52
+ jekyll-seo-tag (= 2.6.1)
53
+ jekyll-sitemap (= 1.4.0)
54
+ jekyll-swiss (= 1.0.0)
55
55
  jekyll-theme-architect (= 0.1.1)
56
56
  jekyll-theme-cayman (= 0.1.1)
57
57
  jekyll-theme-dinky (= 0.1.1)
@@ -61,19 +61,18 @@ GEM
61
61
  jekyll-theme-midnight (= 0.1.1)
62
62
  jekyll-theme-minimal (= 0.1.1)
63
63
  jekyll-theme-modernist (= 0.1.1)
64
- jekyll-theme-primer (= 0.5.3)
64
+ jekyll-theme-primer (= 0.5.4)
65
65
  jekyll-theme-slate (= 0.1.1)
66
66
  jekyll-theme-tactile (= 0.1.1)
67
67
  jekyll-theme-time-machine (= 0.1.1)
68
- jekyll-titles-from-headings (= 0.5.1)
69
- jemoji (= 0.10.2)
68
+ jekyll-titles-from-headings (= 0.5.3)
69
+ jemoji (= 0.11.1)
70
70
  kramdown (= 1.17.0)
71
- liquid (= 4.0.0)
72
- listen (= 3.1.5)
71
+ liquid (= 4.0.3)
73
72
  mercenary (~> 0.3)
74
- minima (= 2.5.0)
73
+ minima (= 2.5.1)
75
74
  nokogiri (>= 1.10.4, < 2.0)
76
- rouge (= 3.11.0)
75
+ rouge (= 3.13.0)
77
76
  terminal-table (~> 1.4)
78
77
  github-pages-health-check (1.16.1)
79
78
  addressable (~> 2.3)
@@ -81,7 +80,7 @@ GEM
81
80
  octokit (~> 4.0)
82
81
  public_suffix (~> 3.0)
83
82
  typhoeus (~> 1.3)
84
- html-pipeline (2.12.0)
83
+ html-pipeline (2.12.2)
85
84
  activesupport (>= 2)
86
85
  nokogiri (>= 1.4)
87
86
  http_parser.rb (0.6.0)
@@ -100,8 +99,8 @@ GEM
100
99
  pathutil (~> 0.9)
101
100
  rouge (>= 1.7, < 4)
102
101
  safe_yaml (~> 1.0)
103
- jekyll-avatar (0.6.0)
104
- jekyll (~> 3.0)
102
+ jekyll-avatar (0.7.0)
103
+ jekyll (>= 3.0, < 5.0)
105
104
  jekyll-coffeescript (1.1.1)
106
105
  coffee-script (~> 2.2)
107
106
  coffee-script-source (~> 1.11.1)
@@ -114,36 +113,36 @@ GEM
114
113
  rouge (>= 2.0, < 4.0)
115
114
  jekyll-default-layout (0.1.4)
116
115
  jekyll (~> 3.0)
117
- jekyll-feed (0.11.0)
118
- jekyll (~> 3.3)
116
+ jekyll-feed (0.13.0)
117
+ jekyll (>= 3.7, < 5.0)
119
118
  jekyll-gist (1.5.0)
120
119
  octokit (~> 4.2)
121
120
  jekyll-github-metadata (2.12.1)
122
121
  jekyll (~> 3.4)
123
122
  octokit (~> 4.0, != 4.4.0)
124
- jekyll-mentions (1.4.1)
123
+ jekyll-mentions (1.5.1)
125
124
  html-pipeline (~> 2.3)
126
- jekyll (~> 3.0)
127
- jekyll-optional-front-matter (0.3.0)
128
- jekyll (~> 3.0)
125
+ jekyll (>= 3.7, < 5.0)
126
+ jekyll-optional-front-matter (0.3.2)
127
+ jekyll (>= 3.0, < 5.0)
129
128
  jekyll-paginate (1.1.0)
130
- jekyll-readme-index (0.2.0)
131
- jekyll (~> 3.0)
132
- jekyll-redirect-from (0.14.0)
133
- jekyll (~> 3.3)
134
- jekyll-relative-links (0.6.0)
135
- jekyll (~> 3.3)
136
- jekyll-remote-theme (0.4.0)
129
+ jekyll-readme-index (0.3.0)
130
+ jekyll (>= 3.0, < 5.0)
131
+ jekyll-redirect-from (0.15.0)
132
+ jekyll (>= 3.3, < 5.0)
133
+ jekyll-relative-links (0.6.1)
134
+ jekyll (>= 3.3, < 5.0)
135
+ jekyll-remote-theme (0.4.1)
137
136
  addressable (~> 2.0)
138
- jekyll (~> 3.5)
139
- rubyzip (>= 1.2.1, < 3.0)
137
+ jekyll (>= 3.5, < 5.0)
138
+ rubyzip (>= 1.3.0)
140
139
  jekyll-sass-converter (1.5.2)
141
140
  sass (~> 3.4)
142
- jekyll-seo-tag (2.5.0)
143
- jekyll (~> 3.3)
144
- jekyll-sitemap (1.2.0)
145
- jekyll (~> 3.3)
146
- jekyll-swiss (0.4.0)
141
+ jekyll-seo-tag (2.6.1)
142
+ jekyll (>= 3.3, < 5.0)
143
+ jekyll-sitemap (1.4.0)
144
+ jekyll (>= 3.7, < 5.0)
145
+ jekyll-swiss (1.0.0)
147
146
  jekyll-theme-architect (0.1.1)
148
147
  jekyll (~> 3.5)
149
148
  jekyll-seo-tag (~> 2.0)
@@ -171,8 +170,8 @@ GEM
171
170
  jekyll-theme-modernist (0.1.1)
172
171
  jekyll (~> 3.5)
173
172
  jekyll-seo-tag (~> 2.0)
174
- jekyll-theme-primer (0.5.3)
175
- jekyll (~> 3.5)
173
+ jekyll-theme-primer (0.5.4)
174
+ jekyll (> 3.5, < 5.0)
176
175
  jekyll-github-metadata (~> 2.9)
177
176
  jekyll-seo-tag (~> 2.0)
178
177
  jekyll-theme-slate (0.1.1)
@@ -184,29 +183,28 @@ GEM
184
183
  jekyll-theme-time-machine (0.1.1)
185
184
  jekyll (~> 3.5)
186
185
  jekyll-seo-tag (~> 2.0)
187
- jekyll-titles-from-headings (0.5.1)
188
- jekyll (~> 3.3)
186
+ jekyll-titles-from-headings (0.5.3)
187
+ jekyll (>= 3.3, < 5.0)
189
188
  jekyll-watch (2.2.1)
190
189
  listen (~> 3.0)
191
- jemoji (0.10.2)
190
+ jemoji (0.11.1)
192
191
  gemoji (~> 3.0)
193
192
  html-pipeline (~> 2.2)
194
- jekyll (~> 3.0)
193
+ jekyll (>= 3.0, < 5.0)
195
194
  kramdown (1.17.0)
196
- liquid (4.0.0)
197
- listen (3.1.5)
198
- rb-fsevent (~> 0.9, >= 0.9.4)
199
- rb-inotify (~> 0.9, >= 0.9.7)
200
- ruby_dep (~> 1.2)
195
+ liquid (4.0.3)
196
+ listen (3.2.0)
197
+ rb-fsevent (~> 0.10, >= 0.10.3)
198
+ rb-inotify (~> 0.9, >= 0.9.10)
201
199
  mercenary (0.3.6)
202
200
  mini_portile2 (2.4.0)
203
- minima (2.5.0)
204
- jekyll (~> 3.5)
201
+ minima (2.5.1)
202
+ jekyll (>= 3.5, < 5.0)
205
203
  jekyll-feed (~> 0.9)
206
204
  jekyll-seo-tag (~> 2.1)
207
- minitest (5.12.2)
205
+ minitest (5.13.0)
208
206
  multipart-post (2.1.1)
209
- nokogiri (1.10.5)
207
+ nokogiri (1.10.6)
210
208
  mini_portile2 (~> 2.4.0)
211
209
  octokit (4.14.0)
212
210
  sawyer (~> 0.8.0, >= 0.5.3)
@@ -216,10 +214,9 @@ GEM
216
214
  rb-fsevent (0.10.3)
217
215
  rb-inotify (0.10.0)
218
216
  ffi (~> 1.0)
219
- rouge (3.11.0)
217
+ rouge (3.13.0)
220
218
  ruby-enum (0.7.2)
221
219
  i18n
222
- ruby_dep (1.5.0)
223
220
  rubyzip (2.0.0)
224
221
  safe_yaml (1.0.5)
225
222
  sass (3.7.4)
@@ -238,6 +235,7 @@ GEM
238
235
  tzinfo (1.2.5)
239
236
  thread_safe (~> 0.1)
240
237
  unicode-display_width (1.6.0)
238
+ zeitwerk (2.2.2)
241
239
 
242
240
  PLATFORMS
243
241
  ruby
@@ -22,17 +22,20 @@ module ActiveAdmin
22
22
  column && column.type == :date ? "#{method}_lteq" : "#{method}_lteq_datetime"
23
23
  end
24
24
 
25
- def input_html_options_for(input_name = gt_input_name, placeholder = gt_input_placeholder)
26
- current_value = begin
27
- #cast value to date object before rendering input
28
- @object.public_send(input_name).to_s.to_date
29
- rescue
30
- nil
31
- end
25
+ def input_html_options
32
26
  { size: 12,
33
27
  class: "datepicker",
34
- maxlength: 10,
35
- placeholder: placeholder,
28
+ maxlength: 10 }.merge(options[:input_html] || {})
29
+ end
30
+
31
+ def input_html_options_for(input_name, placeholder)
32
+ current_value = begin
33
+ #cast value to date object before rendering input
34
+ @object.public_send(input_name).to_s.to_date
35
+ rescue
36
+ nil
37
+ end
38
+ { placeholder: placeholder,
36
39
  value: current_value ? current_value.strftime("%Y-%m-%d") : "" }.merge(input_html_options)
37
40
  end
38
41
 
@@ -1,3 +1,3 @@
1
1
  module ActiveAdmin
2
- VERSION = '2.5.0'
2
+ VERSION = '2.6.0'
3
3
  end
@@ -85,8 +85,10 @@ module ActiveAdmin
85
85
 
86
86
  def build_flash_messages
87
87
  div class: 'flashes' do
88
- flash_messages.each do |type, message|
89
- div message, class: "flash flash_#{type}"
88
+ flash_messages.each do |type, messages|
89
+ [*messages].each do |message|
90
+ div message, class: "flash flash_#{type}"
91
+ end
90
92
  end
91
93
  end
92
94
  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.5.0
4
+ version: 2.6.0
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: 2019-11-26 00:00:00.000000000 Z
18
+ date: 2019-12-16 00:00:00.000000000 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: arbre
@@ -599,7 +599,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
599
599
  - !ruby/object:Gem::Version
600
600
  version: '0'
601
601
  requirements: []
602
- rubygems_version: 3.0.6
602
+ rubygems_version: 3.1.1
603
603
  signing_key:
604
604
  specification_version: 4
605
605
  summary: Active Admin is a Ruby on Rails plugin for generating administration style