capybara-select-2 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +6 -2
- data/README.md +4 -2
- data/capybara_select2.gemspec +1 -0
- data/lib/capybara_select2.rb +2 -0
- data/lib/capybara_select2/helpers.rb +1 -3
- data/lib/capybara_select2/version.rb +1 -1
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f31200b3f8f18c77f09f9e50d37337678d65f249
|
4
|
+
data.tar.gz: 9dfd0e03e4708f0e601e217a989a5162c924b370
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6021c4c6707b822f7a9cef51ccd97357d886a6c33176fa6e36a8fb25e9df78a673415abd4983a51d536dee703c048de41a46069bc263b0ce8e8356883b67b2db
|
7
|
+
data.tar.gz: e220e4c3ffbfa5e3dc00d7e837d00e5d4b17764bf90d4eecc20ca017bb18752441ad074ae3067def35231fa8783d0c2ce8a52bda8615481ae2c9203b6041d287
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
# CapybaraSelect2 for select2 version 2/3/4
|
2
|
-
!!!
|
2
|
+
!!! For select2 versions 2 and 3 you need to specify which version you are using. See [Configuration](https://github.com/Hirurg103/capybara_select2#configuration)
|
3
|
+
|
4
|
+
[![Build Status](https://travis-ci.org/Hirurg103/capybara_select2.svg?branch=master)](https://travis-ci.org/Hirurg103/capybara_select2)
|
3
5
|
|
4
6
|
## Installation
|
5
7
|
|
@@ -19,7 +21,7 @@ Or install it yourself as:
|
|
19
21
|
|
20
22
|
$ gem install capybara-select-2
|
21
23
|
|
22
|
-
[Note] In the projects which use RSpec or Cucumber `select2` helper
|
24
|
+
[Note] In the projects which use RSpec or Cucumber `select2` helper is available out of the box
|
23
25
|
|
24
26
|
### Manual installation with Rspec
|
25
27
|
|
data/capybara_select2.gemspec
CHANGED
@@ -33,5 +33,6 @@ Gem::Specification.new do |spec|
|
|
33
33
|
spec.add_development_dependency "selenium-webdriver", "~> 2.53"
|
34
34
|
spec.add_development_dependency "capybara-screenshot" , "~> 1.0"
|
35
35
|
spec.add_development_dependency "capybara-webkit", "~> 1.15"
|
36
|
+
spec.add_development_dependency "puma", "~> 3.12"
|
36
37
|
spec.add_development_dependency "pry", "~> 0.11.0"
|
37
38
|
end
|
data/lib/capybara_select2.rb
CHANGED
@@ -12,9 +12,7 @@ module CapybaraSelect2
|
|
12
12
|
search_input = {
|
13
13
|
'2' => ".select2-dropdown-open input.select2-focused",
|
14
14
|
'3' => ".select2-dropdown-open input.select2-input",
|
15
|
-
'4' =>
|
16
|
-
".select2-container--focus input.select2-search__field," + # single
|
17
|
-
".select2-container--open input.select2-search__field") # multi
|
15
|
+
'4' => ".select2-container--open input.select2-search__field"
|
18
16
|
}[version]
|
19
17
|
|
20
18
|
option = {
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capybara-select-2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dzmitry Kavalionak
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-09-
|
11
|
+
date: 2018-09-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -108,6 +108,20 @@ dependencies:
|
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '1.15'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: puma
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '3.12'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '3.12'
|
111
125
|
- !ruby/object:Gem::Dependency
|
112
126
|
name: pry
|
113
127
|
requirement: !ruby/object:Gem::Requirement
|