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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b2963841f918ce0e61c81d70b8caa1d34976ad40b2f0397c6281dd833285c3fc
4
- data.tar.gz: 9cb247c993501833086eb5bb822071d6db863d9de7c7ffcd18964fc2f3a8b96c
3
+ metadata.gz: cb9a01d9e95e9334d789999deed11a5f4eeff7f7bf4aded85153ccb90e2cdb60
4
+ data.tar.gz: e0598c9ee4777bffaee6f134fe1f8d0b01d9bfc2d5e93291f24246d94a7ecabe
5
5
  SHA512:
6
- metadata.gz: d0b67362efc9377427c07a8caa02711129a288b98883b0abeee64bba9690436c2d7381680aee87540a7856caecfd3ac0c32854739c0871b985491d7240dcc309
7
- data.tar.gz: 9aba7b0cd10a66fd587bdb87c470892afd00ea83555994a2aa0484a0092a6813bf159fc5e67bb073bf1fe54904ec0af0ffeb48c6d8833f92950f9f7c61b239fb
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
 
@@ -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)
@@ -1,6 +1,6 @@
1
1
  module Chosen
2
2
  module Rails
3
- VERSION = '1.9.0'
3
+ VERSION = '1.10.0'
4
4
  CHOSEN_VERSION = '1.8.7'
5
5
  end
6
6
  end
data/lib/chosen-rails.rb CHANGED
@@ -6,7 +6,7 @@ module Chosen
6
6
  end
7
7
 
8
8
  case ::Rails.version.to_s
9
- when /^(4|5|6)/
9
+ when /^(4|5|6|7)/
10
10
  require 'chosen-rails/engine'
11
11
  when /^3\.[12]/
12
12
  require 'chosen-rails/engine3'
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.9.0
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: 2019-10-29 00:00:00.000000000 Z
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.0.6
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: []