chosen-rails 1.9.0 → 1.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +0 -2
- data/lib/chosen-rails/rspec.rb +4 -4
- data/lib/chosen-rails/version.rb +1 -1
- data/lib/chosen-rails.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb9a01d9e95e9334d789999deed11a5f4eeff7f7bf4aded85153ccb90e2cdb60
|
4
|
+
data.tar.gz: e0598c9ee4777bffaee6f134fe1f8d0b01d9bfc2d5e93291f24246d94a7ecabe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: deff791359ce236e7bcb49d58979c8e57e4732e4feb8b6707359ff93ce4e918a143a7e8010e9a0a346c723bad9364596babb8081e5d97680b1afee2fc0a130ba
|
7
|
+
data.tar.gz: '0832921699aa80ee2771bc75074e651261587f620aa6a70118208e5035cbe8f567d4bae95e4006587a52e3a0964e0eb7ce758414453634332b1c35cfc83eeb4e'
|
data/README.md
CHANGED
@@ -29,7 +29,6 @@ Add to your `app/assets/javascripts/application.js` if use with jQuery
|
|
29
29
|
|
30
30
|
```coffee
|
31
31
|
//= require jquery
|
32
|
-
//= require jquery_ujs
|
33
32
|
//= require chosen-jquery
|
34
33
|
```
|
35
34
|
|
@@ -37,7 +36,6 @@ Or with Prototype
|
|
37
36
|
|
38
37
|
```coffee
|
39
38
|
//= require jquery
|
40
|
-
//= require jquery_ujs
|
41
39
|
//= require chosen-prototype
|
42
40
|
```
|
43
41
|
|
data/lib/chosen-rails/rspec.rb
CHANGED
@@ -38,18 +38,18 @@ module Chosen
|
|
38
38
|
id = "##{id}" unless from.start_with?('#')
|
39
39
|
id = "#{id}_chosen" unless from.end_with?('_chosen')
|
40
40
|
|
41
|
-
find(:css, id, options)
|
41
|
+
find(:css, id, **options)
|
42
42
|
rescue Capybara::ElementNotFound
|
43
|
-
label = find('label', { text: from }.merge(options))
|
43
|
+
label = find('label', **{ text: from }.merge(options))
|
44
44
|
|
45
|
-
find(:css, "##{label[:for].underscore}_chosen", options)
|
45
|
+
find(:css, "##{label[:for].underscore}_chosen", **options)
|
46
46
|
end
|
47
47
|
|
48
48
|
def chosen_find_input(from, options)
|
49
49
|
from = from.to_s
|
50
50
|
from = "##{from}" unless from.start_with?('#')
|
51
51
|
|
52
|
-
find(:css, from.underscore, options)
|
52
|
+
find(:css, from.underscore, **options)
|
53
53
|
end
|
54
54
|
|
55
55
|
def chosen_multiselect?(input)
|
data/lib/chosen-rails/version.rb
CHANGED
data/lib/chosen-rails.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chosen-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tse-Ching Ho
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-01-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -130,7 +130,7 @@ homepage: https://github.com/tsechingho/chosen-rails
|
|
130
130
|
licenses:
|
131
131
|
- MIT
|
132
132
|
metadata: {}
|
133
|
-
post_install_message:
|
133
|
+
post_install_message:
|
134
134
|
rdoc_options: []
|
135
135
|
require_paths:
|
136
136
|
- lib
|
@@ -145,8 +145,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
145
145
|
- !ruby/object:Gem::Version
|
146
146
|
version: '0'
|
147
147
|
requirements: []
|
148
|
-
rubygems_version: 3.
|
149
|
-
signing_key:
|
148
|
+
rubygems_version: 3.2.22
|
149
|
+
signing_key:
|
150
150
|
specification_version: 4
|
151
151
|
summary: Integrate Chosen javascript library with Rails asset pipeline
|
152
152
|
test_files: []
|