activeadmin 1.4.1 → 1.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5041c96c9bf160f85d220bc21bfd426c0a71728c5ed579b4bd35fb235b662fe8
4
- data.tar.gz: 449a76554091d48a264d4b6b2e25a93c85fec14c25824fe04b0a175f7e8a42a8
3
+ metadata.gz: 0b2d9707cdad7f598163f5c46ca966ae2fd6b88d67dd679a35b2ee93b9e745c4
4
+ data.tar.gz: 719b7941e79ffff45fe53f01e89a19db6be58528329c54dc17e190bd4db8fddb
5
5
  SHA512:
6
- metadata.gz: 035d3d1b5642dff7b28a2c46565a549d6397d5a2a0d48ac8f5cf640835e140b3ac9bf257e7e3d59acd9b214855bcdfc33eca86a0e0cb2470c69fdcc92f6aeac2
7
- data.tar.gz: 94fd8b76764e62eeca78fcdfb8e6a4bfa116f35bcc6e4c723006308f98afbd43e498219a13fa62df6237b37c8022b9b51a5c5de552fc62bfd47c458a9369bd97
6
+ metadata.gz: 29bf6765fdaeea4bea02691c2ab88fe513765d619b91d1bf045b52e078e97c0673cdce34a6ab3e4f197e8fd6023b3a36c1845d93b40b39da5564321105cc963a
7
+ data.tar.gz: 58730ca45ae1a34cfa5b41e8a9735db5527110c054e42d30965e227d28c470e8e90123605aa411f693f3f9ecc649caa5b8ff2ac0a26b26f57a6649c01ec62dc5
@@ -1,6 +1,12 @@
1
1
  # Changelog
2
2
 
3
- ## Master (unreleased)
3
+ ## Unreleased
4
+
5
+ ## 1.4.2 [☰](https://github.com/activeadmin/activeadmin/compare/v1.4.1...v1.4.2)
6
+
7
+ ### Bug Fixes
8
+
9
+ * Fix `input_html` filter option evaluated only once. [#5376][] by [@kjeldahl][]
4
10
 
5
11
  ## 1.4.1 [☰](https://github.com/activeadmin/activeadmin/compare/v1.4.0...v1.4.1)
6
12
 
@@ -331,6 +337,7 @@ Please check [0-6-stable][] for previous changes.
331
337
  [#5359]: https://github.com/activeadmin/activeadmin/pull/5359
332
338
  [#5368]: https://github.com/activeadmin/activeadmin/pull/5368
333
339
  [#5375]: https://github.com/activeadmin/activeadmin/pull/5375
340
+ [#5376]: https://github.com/activeadmin/activeadmin/pull/5376
334
341
  [#5399]: https://github.com/activeadmin/activeadmin/pull/5399
335
342
  [#5401]: https://github.com/activeadmin/activeadmin/pull/5401
336
343
  [#5408]: https://github.com/activeadmin/activeadmin/pull/5408
@@ -375,6 +382,7 @@ Please check [0-6-stable][] for previous changes.
375
382
  [@jawa]: https://github.com/jawa
376
383
  [@JiiHu]: https://github.com/JiiHu
377
384
  [@johnnyshields]: https://github.com/johnnyshields
385
+ [@kjeldahl]: https://github.com/kjeldahl
378
386
  [@kobeumut]: https://github.com/kobeumut
379
387
  [@leio10]: https://github.com/leio10
380
388
  [@markstory]: https://github.com/markstory
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- activeadmin (1.4.1)
4
+ activeadmin (1.4.2)
5
5
  arbre (>= 1.1.1)
6
6
  coffee-rails
7
7
  formtastic (~> 3.1)
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- activeadmin (1.4.1)
4
+ activeadmin (1.4.2)
5
5
  arbre (>= 1.1.1)
6
6
  coffee-rails
7
7
  formtastic (~> 3.1)
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- activeadmin (1.4.1)
4
+ activeadmin (1.4.2)
5
5
  arbre (>= 1.1.1)
6
6
  coffee-rails
7
7
  formtastic (~> 3.1)
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- activeadmin (1.4.1)
4
+ activeadmin (1.4.2)
5
5
  arbre (>= 1.1.1)
6
6
  coffee-rails
7
7
  formtastic (~> 3.1)
@@ -57,8 +57,11 @@ module ActiveAdmin
57
57
  filters.each do |attribute, opts|
58
58
  next if opts.key?(:if) && !call_method_or_proc_on(self, opts[:if])
59
59
  next if opts.key?(:unless) && call_method_or_proc_on(self, opts[:unless])
60
- opts[:input_html] = instance_exec(&opts[:input_html]) if opts[:input_html].is_a?(Proc)
61
- f.filter attribute, opts.except(:if, :unless)
60
+
61
+ filter_opts = opts.except(:if, :unless)
62
+ filter_opts[:input_html] = instance_exec(&filter_opts[:input_html]) if filter_opts[:input_html].is_a?(Proc)
63
+
64
+ f.filter attribute, filter_opts
62
65
  end
63
66
 
64
67
  buttons = content_tag :div, class: "buttons" do
@@ -1,3 +1,3 @@
1
1
  module ActiveAdmin
2
- VERSION = '1.4.1'
2
+ VERSION = '1.4.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activeadmin
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.1
4
+ version: 1.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Greg Bell
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-11-23 00:00:00.000000000 Z
11
+ date: 2018-11-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: arbre