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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c7fde4e5708c362a8ec810faae1162f2612b97cf
4
- data.tar.gz: ef7c7bb277d4ee549e809386944e2f69977fafd9
3
+ metadata.gz: f31200b3f8f18c77f09f9e50d37337678d65f249
4
+ data.tar.gz: 9dfd0e03e4708f0e601e217a989a5162c924b370
5
5
  SHA512:
6
- metadata.gz: a60824ea4f343bc2c9dd072c80cd655260a6bb17dafa613ca8f99ed33e38d72414a458718523520b64e0029103dcb28309ea0ef1492103d642e0aad0fa21df86
7
- data.tar.gz: 12e53d44c0a580b1dbcbfaaa3d5abcb05a72ee4e7cf516a16ceebe1d5464cbebb1492b87a98bd77b4fa2e8d5d6486c1ca52c2e098fa6b5e139803ca110b217b2
6
+ metadata.gz: 6021c4c6707b822f7a9cef51ccd97357d886a6c33176fa6e36a8fb25e9df78a673415abd4983a51d536dee703c048de41a46069bc263b0ce8e8356883b67b2db
7
+ data.tar.gz: e220e4c3ffbfa5e3dc00d7e837d00e5d4b17764bf90d4eecc20ca017bb18752441ad074ae3067def35231fa8783d0c2ce8a52bda8615481ae2c9203b6041d287
data/.travis.yml CHANGED
@@ -1,4 +1,8 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.2.1
4
- before_install: gem install bundler -v 1.11.2
3
+ - 2.4.2
4
+ before_install: gem install bundler -v 1.16.4
5
+ env:
6
+ - MOZ_HEADLESS=1
7
+ addons:
8
+ firefox: latest
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # CapybaraSelect2 for select2 version 2/3/4
2
- !!! You need to specify which version of select2 you are using. See [Configuration](https://github.com/Hirurg103/capybara_select2#configuration)
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 should be loaded automatically
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
 
@@ -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
@@ -7,6 +7,8 @@ module CapybaraSelect2
7
7
  end
8
8
 
9
9
  if defined?(RSpec)
10
+ require 'rspec/core'
11
+
10
12
  RSpec.configure do |config|
11
13
  config.include CapybaraSelect2
12
14
  end
@@ -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 = {
@@ -1,3 +1,3 @@
1
1
  module CapybaraSelect2
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
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.1
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 00:00:00.000000000 Z
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