activeadmin-searchable_select 1.0.1 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/tests.yml +34 -0
- data/Appraisals +13 -9
- data/CHANGELOG.md +14 -10
- data/README.md +54 -5
- data/activeadmin-searchable_select.gemspec +13 -7
- data/gemfiles/{rails_4.2_active_admin_1.0.0.pre4.gemfile → rails_5.1_active_admin_1.x.gemfile} +2 -3
- data/gemfiles/{rails_5.1_active_admin_1.0.gemfile → rails_5.x_active_admin_1.x.gemfile} +1 -1
- data/gemfiles/{rails_5.1_active_admin_1.1.gemfile → rails_5.x_active_admin_2.x.gemfile} +2 -2
- data/gemfiles/rails_6.x_active_admin_2.x.gemfile +9 -0
- data/lib/activeadmin/searchable_select/select_input_extension.rb +10 -10
- data/lib/activeadmin/searchable_select/version.rb +1 -1
- data/spec/features/end_to_end_spec.rb +1 -0
- data/spec/features/filter_input_spec.rb +50 -0
- data/spec/support/capybara.rb +3 -2
- metadata +96 -25
- data/.travis.yml +0 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6a0f1ed4c7ca3f0b20a9a1844aa46ecf2693b5b91f447874cbfbc013d5a84e31
|
4
|
+
data.tar.gz: cdca70eae83da1caf578f39957b66fe30cec69a76c67f7f06d2a45bb3c680f7d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b509e473b24b32cad8c401f197413c7b01c7de196aaf0a2a4a735f7f6bd40d4ea76ed7733f9b00f87ecf23e6d3aba0bceee599f85c4e39fb1a17639b4234d94f
|
7
|
+
data.tar.gz: f224c6cc6fe60af0373b1d82c9d57a43282c3f327bf5c3c295d2b1d17ce5f9aace56aa0d4320405f40783a270fedaa8137496712091fc167712b9b1e1364a029
|
@@ -0,0 +1,34 @@
|
|
1
|
+
name: tests
|
2
|
+
on: [push, pull_request]
|
3
|
+
|
4
|
+
jobs:
|
5
|
+
rspec:
|
6
|
+
runs-on: ubuntu-latest
|
7
|
+
|
8
|
+
strategy:
|
9
|
+
fail-fast: false
|
10
|
+
matrix:
|
11
|
+
ruby-version:
|
12
|
+
- '2.6'
|
13
|
+
- '2.7'
|
14
|
+
gemfile:
|
15
|
+
- gemfiles/rails_5.1_active_admin_1.x.gemfile
|
16
|
+
- gemfiles/rails_5.x_active_admin_1.x.gemfile
|
17
|
+
- gemfiles/rails_5.x_active_admin_2.x.gemfile
|
18
|
+
- gemfiles/rails_6.x_active_admin_2.x.gemfile
|
19
|
+
include:
|
20
|
+
- ruby-version: '3.0'
|
21
|
+
gemfile: gemfiles/rails_6.x_active_admin_2.x.gemfile
|
22
|
+
|
23
|
+
env:
|
24
|
+
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
|
25
|
+
|
26
|
+
steps:
|
27
|
+
- uses: actions/checkout@v2
|
28
|
+
- name: Set up Ruby
|
29
|
+
uses: ruby/setup-ruby@v1
|
30
|
+
with:
|
31
|
+
ruby-version: ${{ matrix.ruby-version }}
|
32
|
+
bundler-cache: true
|
33
|
+
- name: Run tests
|
34
|
+
run: bundle exec rspec
|
data/Appraisals
CHANGED
@@ -1,15 +1,19 @@
|
|
1
|
-
appraise 'rails-
|
2
|
-
gem 'rails', '~>
|
3
|
-
gem 'activeadmin', '1.0
|
4
|
-
gem 'jquery-ui-rails', '~> 5.0'
|
1
|
+
appraise 'rails-5.1-active-admin-1.x' do
|
2
|
+
gem 'rails', '~> 5.1.0'
|
3
|
+
gem 'activeadmin', '~> 1.0'
|
5
4
|
end
|
6
5
|
|
7
|
-
appraise 'rails-5.
|
8
|
-
gem 'rails', '~> 5.
|
6
|
+
appraise 'rails-5.x-active-admin-1.x' do
|
7
|
+
gem 'rails', '~> 5.2'
|
9
8
|
gem 'activeadmin', '~> 1.0'
|
10
9
|
end
|
11
10
|
|
12
|
-
appraise 'rails-5.
|
13
|
-
gem 'rails', '~> 5.
|
14
|
-
gem 'activeadmin', '~>
|
11
|
+
appraise 'rails-5.x-active-admin-2.x' do
|
12
|
+
gem 'rails', '~> 5.2'
|
13
|
+
gem 'activeadmin', '~> 2.0'
|
15
14
|
end
|
15
|
+
|
16
|
+
appraise 'rails-6.x-active-admin-2.x' do
|
17
|
+
gem 'rails', '~> 6.1'
|
18
|
+
gem 'activeadmin', '~> 2.0'
|
19
|
+
end
|
data/CHANGELOG.md
CHANGED
@@ -1,16 +1,20 @@
|
|
1
1
|
# CHANGELOG
|
2
2
|
|
3
|
-
### Version 1.0
|
3
|
+
### Version 1.3.0
|
4
4
|
|
5
|
-
|
5
|
+
2021-02-03
|
6
6
|
|
7
|
-
[Compare changes](https://github.com/codevise/activeadmin-searchable_select/compare/v1.
|
7
|
+
[Compare changes](https://github.com/codevise/activeadmin-searchable_select/compare/1-2-stable...v1.3.0)
|
8
8
|
|
9
|
-
-
|
10
|
-
([#
|
9
|
+
- Add support for Ruby 3
|
10
|
+
([#26](https://github.com/codevise/activeadmin-searchable_select/pull/26))
|
11
|
+
- Add a small description of how to pass options to Select2
|
12
|
+
([#27](https://github.com/codevise/activeadmin-searchable_select/pull/27))
|
13
|
+
- Update CI Setup
|
14
|
+
([#25](https://github.com/codevise/activeadmin-searchable_select/pull/25))
|
15
|
+
- Allow Bundler 2 in development dependencies
|
16
|
+
([#18](https://github.com/codevise/activeadmin-searchable_select/pull/18))
|
11
17
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
- Initial release.
|
18
|
+
See
|
19
|
+
[1-2-stable branch](https://github.com/codevise/activeadmin-searchable_select/blob/1-2-stable/CHANGELOG.md)
|
20
|
+
for previous changes.
|
data/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# ActiveAdmin Searchable Select
|
2
2
|
|
3
3
|
[![Gem Version](https://badge.fury.io/rb/activeadmin-searchable_select.svg)](http://badge.fury.io/rb/activeadmin-searchable_select)
|
4
|
-
[![Build Status](https://
|
4
|
+
[![Build Status](https://github.com/codevise/activeadmin-searchable_select.svg?branch=master)](https://github.com/codevise/activeadmin-searchable_select/actions)
|
5
5
|
|
6
6
|
Searchable select boxes (via [Select2](https://select2.org/)) for
|
7
7
|
ActiveAdmin forms and filters. Extends the ActiveAdmin resource DSL to
|
@@ -12,7 +12,7 @@ allow defining JSON endpoints to fetch options from asynchronously.
|
|
12
12
|
Add `activeadmin-searchable_select` to your Gemfile:
|
13
13
|
|
14
14
|
```ruby
|
15
|
-
gem 'activeadmin-searchable_select
|
15
|
+
gem 'activeadmin-searchable_select'
|
16
16
|
```
|
17
17
|
|
18
18
|
Import stylesheets and require javascripts:
|
@@ -23,8 +23,8 @@ Import stylesheets and require javascripts:
|
|
23
23
|
```
|
24
24
|
|
25
25
|
```coffee
|
26
|
-
|
27
|
-
|
26
|
+
// active_admin.js
|
27
|
+
//= require active_admin/searchable_select
|
28
28
|
```
|
29
29
|
|
30
30
|
## Usage
|
@@ -50,6 +50,15 @@ This also works for filters:
|
|
50
50
|
end
|
51
51
|
```
|
52
52
|
|
53
|
+
By default, you can only select one at a time for a filter. You can
|
54
|
+
specify a multi-select with:
|
55
|
+
|
56
|
+
```ruby
|
57
|
+
ActiveAdmin.register Product do
|
58
|
+
filter(:category, as: :searchable_select, multiple: true)
|
59
|
+
end
|
60
|
+
```
|
61
|
+
|
53
62
|
### Fetching Options via Ajax
|
54
63
|
|
55
64
|
For large collections, rendering the whole set of options can be to
|
@@ -138,7 +147,7 @@ based on the input attribute name, you can pass an object with a
|
|
138
147
|
end
|
139
148
|
```
|
140
149
|
|
141
|
-
####
|
150
|
+
#### Multiple Options Endpoints per Resource
|
142
151
|
|
143
152
|
A single ActiveAdmin resource can define multiple options endpoints:
|
144
153
|
|
@@ -167,6 +176,23 @@ To specify which collection to use, pass an object with a
|
|
167
176
|
end
|
168
177
|
```
|
169
178
|
|
179
|
+
#### Querying Multiple Attributes
|
180
|
+
|
181
|
+
ActiveAdmin Searchable Select querying is performed by Ransack. As such, you can
|
182
|
+
build your query in a way that it can query multiple attributes at once.
|
183
|
+
|
184
|
+
```ruby
|
185
|
+
ActiveAdmin.register User do
|
186
|
+
searchable_select_options(scope: User.all,
|
187
|
+
text_attribute: :username,
|
188
|
+
filter: lambda do |term, scope|
|
189
|
+
scope.ransack(email_or_username_cont: term).result
|
190
|
+
end)
|
191
|
+
end
|
192
|
+
```
|
193
|
+
|
194
|
+
In this example, the `all` scope will query `email OR username`.
|
195
|
+
|
170
196
|
#### Passing Parameters
|
171
197
|
|
172
198
|
You can pass additional parameters to the options endpoint:
|
@@ -218,6 +244,29 @@ for feature specs:
|
|
218
244
|
|
219
245
|
```
|
220
246
|
|
247
|
+
### Passing options to Select2
|
248
|
+
|
249
|
+
It is possible to pass and define configuration options to Select2
|
250
|
+
via `data-attributes` using nested (subkey) options.
|
251
|
+
|
252
|
+
Attributes need to be added to the `input_html` option in the form input.
|
253
|
+
For example you can tell Select2 how long to wait after a user
|
254
|
+
has stopped typing before sending the request:
|
255
|
+
|
256
|
+
```ruby
|
257
|
+
...
|
258
|
+
f.input(:category,
|
259
|
+
as: :searchable_select,
|
260
|
+
ajax: true,
|
261
|
+
input_html: {
|
262
|
+
data: {
|
263
|
+
'ajax--delay' => 500
|
264
|
+
}
|
265
|
+
})
|
266
|
+
...
|
267
|
+
```
|
268
|
+
|
269
|
+
|
221
270
|
## Development
|
222
271
|
|
223
272
|
To run the tests install bundled gems and invoke RSpec:
|
@@ -14,22 +14,28 @@ Gem::Specification.new do |spec|
|
|
14
14
|
spec.files = `git ls-files -z`.split("\x0")
|
15
15
|
spec.require_paths = ['lib']
|
16
16
|
|
17
|
-
spec.required_ruby_version = '
|
17
|
+
spec.required_ruby_version = ['>= 2.1', '< 4']
|
18
18
|
|
19
|
-
spec.add_development_dependency 'bundler', '
|
19
|
+
spec.add_development_dependency 'bundler', ['>= 1.5', '< 3']
|
20
20
|
spec.add_development_dependency 'rake'
|
21
21
|
spec.add_development_dependency 'appraisal', '~> 2.2'
|
22
22
|
spec.add_development_dependency 'rspec-rails', '~> 3.6'
|
23
|
-
spec.add_development_dependency 'combustion', '~>
|
23
|
+
spec.add_development_dependency 'combustion', '~> 1.0'
|
24
24
|
spec.add_development_dependency 'database_cleaner', '~> 1.6'
|
25
25
|
spec.add_development_dependency 'sqlite3', '~> 1.3'
|
26
|
-
|
27
|
-
spec.add_development_dependency '
|
26
|
+
|
27
|
+
spec.add_development_dependency 'capybara', '~> 3.9'
|
28
|
+
spec.add_development_dependency 'puma', '~> 5.0'
|
29
|
+
spec.add_development_dependency 'selenium-webdriver', '~> 3.6'
|
30
|
+
spec.add_development_dependency 'webdrivers', '~> 4.0'
|
31
|
+
|
32
|
+
spec.add_development_dependency 'coffee-rails'
|
33
|
+
spec.add_development_dependency 'rails'
|
28
34
|
spec.add_development_dependency 'rubocop', '~> 0.42.0'
|
29
35
|
spec.add_development_dependency 'semmy', '~> 1.0'
|
30
|
-
spec.add_development_dependency '
|
36
|
+
spec.add_development_dependency 'sprockets', '~> 3.7'
|
31
37
|
|
32
|
-
spec.add_runtime_dependency 'activeadmin', '
|
38
|
+
spec.add_runtime_dependency 'activeadmin', ['>= 1.x', '< 3']
|
33
39
|
spec.add_runtime_dependency 'jquery-rails', ['>= 3.0', '< 5']
|
34
40
|
spec.add_runtime_dependency 'select2-rails', '~> 4.0'
|
35
41
|
end
|
@@ -45,7 +45,7 @@ module ActiveAdmin
|
|
45
45
|
|
46
46
|
def ajax_url
|
47
47
|
return unless options[:ajax]
|
48
|
-
template.polymorphic_path([
|
48
|
+
template.polymorphic_path([template.active_admin_namespace.route_prefix, ajax_resource_class],
|
49
49
|
action: option_collection.collection_action_name,
|
50
50
|
**ajax_params)
|
51
51
|
end
|
@@ -57,23 +57,23 @@ module ActiveAdmin
|
|
57
57
|
end
|
58
58
|
|
59
59
|
def selected_value_collection
|
60
|
-
|
61
|
-
end
|
62
|
-
|
63
|
-
def selected_value_option
|
64
|
-
option_for_record(selected_record) if selected_record
|
60
|
+
selected_records.collect { |s| option_for_record(s) }
|
65
61
|
end
|
66
62
|
|
67
63
|
def option_for_record(record)
|
68
64
|
[option_collection.display_text(record), record.id]
|
69
65
|
end
|
70
66
|
|
71
|
-
def
|
72
|
-
@
|
73
|
-
|
67
|
+
def selected_records
|
68
|
+
@selected_records ||=
|
69
|
+
if selected_values
|
70
|
+
option_collection_scope.where(id: selected_values)
|
71
|
+
else
|
72
|
+
[]
|
73
|
+
end
|
74
74
|
end
|
75
75
|
|
76
|
-
def
|
76
|
+
def selected_values
|
77
77
|
@object.send(input_name) if @object
|
78
78
|
end
|
79
79
|
|
@@ -188,4 +188,54 @@ RSpec.describe 'filter input', type: :request do
|
|
188
188
|
text: 'Travel')
|
189
189
|
end
|
190
190
|
end
|
191
|
+
|
192
|
+
describe 'with the multiple option set to true' do
|
193
|
+
before(:each) do
|
194
|
+
ActiveAdminHelpers.setup do
|
195
|
+
ActiveAdmin.register(Category) do
|
196
|
+
searchable_select_options(scope: Category, text_attribute: :name)
|
197
|
+
end
|
198
|
+
|
199
|
+
ActiveAdmin.register(Post) do
|
200
|
+
filter(:category,
|
201
|
+
as: :searchable_select,
|
202
|
+
ajax: true,
|
203
|
+
multiple: true)
|
204
|
+
end
|
205
|
+
end
|
206
|
+
end
|
207
|
+
|
208
|
+
it 'renders select input with searchable-select-input css class and the multiple attribute' do
|
209
|
+
get '/admin/posts'
|
210
|
+
|
211
|
+
expect(response.body).to have_selector("select.searchable-select-input[multiple='multiple']")
|
212
|
+
end
|
213
|
+
|
214
|
+
it 'does not render options statically' do
|
215
|
+
Category.create!(name: 'Travel')
|
216
|
+
|
217
|
+
get '/admin/posts'
|
218
|
+
|
219
|
+
expect(response.body).not_to have_selector('.searchable-select-input option',
|
220
|
+
text: 'Travel')
|
221
|
+
end
|
222
|
+
|
223
|
+
it 'sets data-ajax-url attribute' do
|
224
|
+
get '/admin/posts'
|
225
|
+
|
226
|
+
expect(response.body).to have_selector('.searchable-select-input[data-ajax-url]')
|
227
|
+
end
|
228
|
+
|
229
|
+
it 'renders the filter for multiple values selected' do
|
230
|
+
category1 = Category.create!(name: 'Travel')
|
231
|
+
category2 = Category.create!(name: 'Leisure')
|
232
|
+
|
233
|
+
get "/admin/posts?q[category_id_in][]=#{category1.id}&q[category_id_in][]=#{category2.id}"
|
234
|
+
|
235
|
+
expect(response.body).to have_selector('.searchable-select-input option[selected]',
|
236
|
+
text: 'Travel')
|
237
|
+
expect(response.body).to have_selector('.searchable-select-input option[selected]',
|
238
|
+
text: 'Leisure')
|
239
|
+
end
|
240
|
+
end
|
191
241
|
end
|
data/spec/support/capybara.rb
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
require 'capybara/rspec'
|
2
|
-
require '
|
2
|
+
require 'selenium-webdriver'
|
3
|
+
require 'webdrivers/chromedriver'
|
3
4
|
|
4
|
-
Capybara.javascript_driver = :
|
5
|
+
Capybara.javascript_driver = :selenium_chrome_headless
|
5
6
|
|
6
7
|
RSpec.configure do |config|
|
7
8
|
config.include Capybara::RSpecMatchers, type: :request
|
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activeadmin-searchable_select
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Codevise Solutions Ltd
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-02-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.5'
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '3'
|
20
23
|
type: :development
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
25
28
|
- !ruby/object:Gem::Version
|
26
29
|
version: '1.5'
|
30
|
+
- - "<"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '3'
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: rake
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -72,14 +78,14 @@ dependencies:
|
|
72
78
|
requirements:
|
73
79
|
- - "~>"
|
74
80
|
- !ruby/object:Gem::Version
|
75
|
-
version:
|
81
|
+
version: '1.0'
|
76
82
|
type: :development
|
77
83
|
prerelease: false
|
78
84
|
version_requirements: !ruby/object:Gem::Requirement
|
79
85
|
requirements:
|
80
86
|
- - "~>"
|
81
87
|
- !ruby/object:Gem::Version
|
82
|
-
version:
|
88
|
+
version: '1.0'
|
83
89
|
- !ruby/object:Gem::Dependency
|
84
90
|
name: database_cleaner
|
85
91
|
requirement: !ruby/object:Gem::Requirement
|
@@ -114,28 +120,84 @@ dependencies:
|
|
114
120
|
requirements:
|
115
121
|
- - "~>"
|
116
122
|
- !ruby/object:Gem::Version
|
117
|
-
version: '
|
123
|
+
version: '3.9'
|
124
|
+
type: :development
|
125
|
+
prerelease: false
|
126
|
+
version_requirements: !ruby/object:Gem::Requirement
|
127
|
+
requirements:
|
128
|
+
- - "~>"
|
129
|
+
- !ruby/object:Gem::Version
|
130
|
+
version: '3.9'
|
131
|
+
- !ruby/object:Gem::Dependency
|
132
|
+
name: puma
|
133
|
+
requirement: !ruby/object:Gem::Requirement
|
134
|
+
requirements:
|
135
|
+
- - "~>"
|
136
|
+
- !ruby/object:Gem::Version
|
137
|
+
version: '5.0'
|
138
|
+
type: :development
|
139
|
+
prerelease: false
|
140
|
+
version_requirements: !ruby/object:Gem::Requirement
|
141
|
+
requirements:
|
142
|
+
- - "~>"
|
143
|
+
- !ruby/object:Gem::Version
|
144
|
+
version: '5.0'
|
145
|
+
- !ruby/object:Gem::Dependency
|
146
|
+
name: selenium-webdriver
|
147
|
+
requirement: !ruby/object:Gem::Requirement
|
148
|
+
requirements:
|
149
|
+
- - "~>"
|
150
|
+
- !ruby/object:Gem::Version
|
151
|
+
version: '3.6'
|
118
152
|
type: :development
|
119
153
|
prerelease: false
|
120
154
|
version_requirements: !ruby/object:Gem::Requirement
|
121
155
|
requirements:
|
122
156
|
- - "~>"
|
123
157
|
- !ruby/object:Gem::Version
|
124
|
-
version: '
|
158
|
+
version: '3.6'
|
125
159
|
- !ruby/object:Gem::Dependency
|
126
|
-
name:
|
160
|
+
name: webdrivers
|
127
161
|
requirement: !ruby/object:Gem::Requirement
|
128
162
|
requirements:
|
129
163
|
- - "~>"
|
130
164
|
- !ruby/object:Gem::Version
|
131
|
-
version: '
|
165
|
+
version: '4.0'
|
132
166
|
type: :development
|
133
167
|
prerelease: false
|
134
168
|
version_requirements: !ruby/object:Gem::Requirement
|
135
169
|
requirements:
|
136
170
|
- - "~>"
|
137
171
|
- !ruby/object:Gem::Version
|
138
|
-
version: '
|
172
|
+
version: '4.0'
|
173
|
+
- !ruby/object:Gem::Dependency
|
174
|
+
name: coffee-rails
|
175
|
+
requirement: !ruby/object:Gem::Requirement
|
176
|
+
requirements:
|
177
|
+
- - ">="
|
178
|
+
- !ruby/object:Gem::Version
|
179
|
+
version: '0'
|
180
|
+
type: :development
|
181
|
+
prerelease: false
|
182
|
+
version_requirements: !ruby/object:Gem::Requirement
|
183
|
+
requirements:
|
184
|
+
- - ">="
|
185
|
+
- !ruby/object:Gem::Version
|
186
|
+
version: '0'
|
187
|
+
- !ruby/object:Gem::Dependency
|
188
|
+
name: rails
|
189
|
+
requirement: !ruby/object:Gem::Requirement
|
190
|
+
requirements:
|
191
|
+
- - ">="
|
192
|
+
- !ruby/object:Gem::Version
|
193
|
+
version: '0'
|
194
|
+
type: :development
|
195
|
+
prerelease: false
|
196
|
+
version_requirements: !ruby/object:Gem::Requirement
|
197
|
+
requirements:
|
198
|
+
- - ">="
|
199
|
+
- !ruby/object:Gem::Version
|
200
|
+
version: '0'
|
139
201
|
- !ruby/object:Gem::Dependency
|
140
202
|
name: rubocop
|
141
203
|
requirement: !ruby/object:Gem::Requirement
|
@@ -165,33 +227,39 @@ dependencies:
|
|
165
227
|
- !ruby/object:Gem::Version
|
166
228
|
version: '1.0'
|
167
229
|
- !ruby/object:Gem::Dependency
|
168
|
-
name:
|
230
|
+
name: sprockets
|
169
231
|
requirement: !ruby/object:Gem::Requirement
|
170
232
|
requirements:
|
171
|
-
- - "
|
233
|
+
- - "~>"
|
172
234
|
- !ruby/object:Gem::Version
|
173
|
-
version: '
|
235
|
+
version: '3.7'
|
174
236
|
type: :development
|
175
237
|
prerelease: false
|
176
238
|
version_requirements: !ruby/object:Gem::Requirement
|
177
239
|
requirements:
|
178
|
-
- - "
|
240
|
+
- - "~>"
|
179
241
|
- !ruby/object:Gem::Version
|
180
|
-
version: '
|
242
|
+
version: '3.7'
|
181
243
|
- !ruby/object:Gem::Dependency
|
182
244
|
name: activeadmin
|
183
245
|
requirement: !ruby/object:Gem::Requirement
|
184
246
|
requirements:
|
185
|
-
- - "
|
247
|
+
- - ">="
|
186
248
|
- !ruby/object:Gem::Version
|
187
249
|
version: 1.x
|
250
|
+
- - "<"
|
251
|
+
- !ruby/object:Gem::Version
|
252
|
+
version: '3'
|
188
253
|
type: :runtime
|
189
254
|
prerelease: false
|
190
255
|
version_requirements: !ruby/object:Gem::Requirement
|
191
256
|
requirements:
|
192
|
-
- - "
|
257
|
+
- - ">="
|
193
258
|
- !ruby/object:Gem::Version
|
194
259
|
version: 1.x
|
260
|
+
- - "<"
|
261
|
+
- !ruby/object:Gem::Version
|
262
|
+
version: '3'
|
195
263
|
- !ruby/object:Gem::Dependency
|
196
264
|
name: jquery-rails
|
197
265
|
requirement: !ruby/object:Gem::Requirement
|
@@ -232,10 +300,10 @@ executables: []
|
|
232
300
|
extensions: []
|
233
301
|
extra_rdoc_files: []
|
234
302
|
files:
|
303
|
+
- ".github/workflows/tests.yml"
|
235
304
|
- ".gitignore"
|
236
305
|
- ".rspec"
|
237
306
|
- ".rubocop.yml"
|
238
|
-
- ".travis.yml"
|
239
307
|
- ".yardopts"
|
240
308
|
- Appraisals
|
241
309
|
- CHANGELOG.md
|
@@ -248,9 +316,10 @@ files:
|
|
248
316
|
- app/assets/javascripts/active_admin/searchable_select/init.js
|
249
317
|
- app/assets/stylesheets/active_admin/searchable_select.scss
|
250
318
|
- bin/rspec
|
251
|
-
- gemfiles/
|
252
|
-
- gemfiles/rails_5.
|
253
|
-
- gemfiles/rails_5.
|
319
|
+
- gemfiles/rails_5.1_active_admin_1.x.gemfile
|
320
|
+
- gemfiles/rails_5.x_active_admin_1.x.gemfile
|
321
|
+
- gemfiles/rails_5.x_active_admin_2.x.gemfile
|
322
|
+
- gemfiles/rails_6.x_active_admin_2.x.gemfile
|
254
323
|
- lib/activeadmin-searchable_select.rb
|
255
324
|
- lib/activeadmin/inputs/filters/searchable_select_input.rb
|
256
325
|
- lib/activeadmin/inputs/searchable_select_input.rb
|
@@ -294,17 +363,19 @@ require_paths:
|
|
294
363
|
- lib
|
295
364
|
required_ruby_version: !ruby/object:Gem::Requirement
|
296
365
|
requirements:
|
297
|
-
- - "
|
366
|
+
- - ">="
|
298
367
|
- !ruby/object:Gem::Version
|
299
368
|
version: '2.1'
|
369
|
+
- - "<"
|
370
|
+
- !ruby/object:Gem::Version
|
371
|
+
version: '4'
|
300
372
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
301
373
|
requirements:
|
302
374
|
- - ">="
|
303
375
|
- !ruby/object:Gem::Version
|
304
376
|
version: '0'
|
305
377
|
requirements: []
|
306
|
-
|
307
|
-
rubygems_version: 2.7.0
|
378
|
+
rubygems_version: 3.2.3
|
308
379
|
signing_key:
|
309
380
|
specification_version: 4
|
310
381
|
summary: Use searchable selects based on Select2 in Active Admin forms and filters.
|
data/.travis.yml
DELETED
@@ -1,16 +0,0 @@
|
|
1
|
-
language: ruby
|
2
|
-
rvm:
|
3
|
-
- 2.3.4
|
4
|
-
|
5
|
-
# Use container based travis infrastructure which allows caching
|
6
|
-
# features for open source projects.
|
7
|
-
sudo: false
|
8
|
-
cache:
|
9
|
-
bundler: true
|
10
|
-
|
11
|
-
gemfile:
|
12
|
-
- gemfiles/rails_4.2_active_admin_1.0.0.pre4.gemfile
|
13
|
-
- gemfiles/rails_5.1_active_admin_1.0.gemfile
|
14
|
-
- gemfiles/rails_5.1_active_admin_1.1.gemfile
|
15
|
-
|
16
|
-
script: bundle exec rspec
|