activeadmin-ajax_filter 0.4.2 → 0.4.3

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: f5090653a55e873f40c9e9a351ec63226ca3cca2ad3b7343cd13027912ba6044
4
- data.tar.gz: cb56d8df971f4d0fc4911224aebff16a42f982a9a45c0c95900f7a77a5dd4018
3
+ metadata.gz: 38a222fa2fad6f87aa3e3a4836aa4b6686142e205141732a8d6cb61677eaaf55
4
+ data.tar.gz: 06a9a779a11da4beb9aab44e6e118a3b873bc31bc7d231d00d654c2ded5f15e6
5
5
  SHA512:
6
- metadata.gz: d95550d632e66dca2b3a29c3771bf946ba6d8ed20756ce6f481124053a9dbd4c48fb5cd9435f4996c9d6d0f9c20d220786c120545893e4568da6c8974cfb7f70
7
- data.tar.gz: 11ec58fdfc1fe503a23099693263a0592bbe4b93146253e77c263ce3b1d98d2060d5d7c365760870882b30743ae36512cfb6b5773e1337ab6f7e0e1c5040cb6f
6
+ metadata.gz: 230906a765c3385daa1fbd585889cb4ccf402e9bae5ebf413e1835b3bc177be7511ae273347eec412207e729f643a9cc705b9748256b11b16188137470ae3f19
7
+ data.tar.gz: 3b05339130149c29d8771ff6471f9ec975c766a14b028f8337bdde1df06624d29428d8f73e15cce6b2ed3c211d0e0c3a5558d54e1d8319f2046b80510316fec7
@@ -15,6 +15,7 @@ matrix:
15
15
 
16
16
  before_install: gem update --remote bundler
17
17
  install:
18
+ - gem install bundler:1.17.2
18
19
  - bundle install --retry=3
19
20
  script:
20
21
  - bundle exec rake dummy:prepare
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- activeadmin-ajax_filter (0.4.2)
4
+ activeadmin-ajax_filter (0.4.3)
5
5
  activeadmin (>= 1.0)
6
6
  coffee-rails (>= 4.1.0)
7
7
  has_scope (>= 0.6.0)
@@ -58,7 +58,7 @@ GEM
58
58
  thread_safe (~> 0.3, >= 0.3.4)
59
59
  tzinfo (~> 1.1)
60
60
  addressable (2.4.0)
61
- arbre (1.1.1)
61
+ arbre (1.2.0)
62
62
  activesupport (>= 3.0.0)
63
63
  arel (6.0.4)
64
64
  builder (3.2.3)
@@ -211,7 +211,7 @@ GEM
211
211
  rspec-mocks (~> 3.3.0)
212
212
  rspec-support (~> 3.3.0)
213
213
  rspec-support (3.3.0)
214
- sass (3.7.3)
214
+ sass (3.7.4)
215
215
  sass-listen (~> 4.0.0)
216
216
  sass-listen (4.0.0)
217
217
  rb-fsevent (~> 0.9, >= 0.9.4)
data/README.md CHANGED
@@ -7,13 +7,7 @@
7
7
 
8
8
  This gem extends ActiveAdmin so that your can use filters with AJAX-powered input.
9
9
 
10
- Form input
11
-
12
- <img src="https://s31.postimg.org/gvb9y7u9n/ajax_input.gif" width="360" alt="ActiveAdmin AJAX Form input"/>
13
-
14
- Filter
15
-
16
- <img src="https://s31.postimg.org/qmkboivpn/ajax_filter.gif" width="360" alt="ActiveAdmin AJAX Filter input"/>
10
+ <img src="https://user-images.githubusercontent.com/987021/53289159-709c5000-37a3-11e9-97d5-0e61d2759b3c.gif" width="276" alt="ActiveAdmin AJAX Filter input"/>
17
11
 
18
12
  ## Prerequisites
19
13
 
@@ -121,7 +115,7 @@ filter :user_id, as: :ajax_select, collection: [], data: {
121
115
 
122
116
  ## Development
123
117
 
124
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake false` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
118
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
125
119
 
126
120
  To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
127
121
 
@@ -36,7 +36,7 @@ $ ->
36
36
  callback(res)
37
37
 
38
38
  relatedInput = (field) ->
39
- $("[name*=#{field}]", select.parents('form'))
39
+ $("[name*=#{field}]", select.parents('fieldset'))
40
40
 
41
41
  isCircularAjaxSearchLink = (initial_input_id, field) ->
42
42
  input = relatedInput(field)
@@ -1,5 +1,5 @@
1
1
  module ActiveAdmin
2
2
  module AjaxFilter
3
- VERSION = '0.4.2'
3
+ VERSION = '0.4.3'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activeadmin-ajax_filter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Emelyanov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-02-23 00:00:00.000000000 Z
11
+ date: 2019-04-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activeadmin