turnip 4.1.0 → 4.2.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/test.yml +24 -0
- data/.travis.yml +4 -11
- data/Gemfile +2 -0
- data/README.md +3 -2
- data/gemfiles/Gemfile-rspec-3.7.x +1 -0
- data/gemfiles/Gemfile-rspec-3.8.x +1 -0
- data/gemfiles/Gemfile-rspec-3.9.x +7 -0
- data/lib/turnip/capybara.rb +2 -1
- data/lib/turnip/version.rb +1 -1
- data/turnip.gemspec +1 -1
- metadata +6 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c86f0ce3b7829fd47b7383b07a322c1726f84c91b5da26882e7595ff9113c6d2
|
4
|
+
data.tar.gz: 35fd833aac33e1eab40239bdfac960f63c762ac6c5fcdc990cfc8a4669f927cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7dff32468733fbdc9998ece81cea23877098f51e24f2a06d32da65ac3fb7afe4beb22f2f45bce45ee3e1e5961193b3bb859cccee8fb72266de83dfddfe187441
|
7
|
+
data.tar.gz: 7a3123de579bf41c9a8aeee4ef04cb9f25814c90e051b77a15319cff29f935634256f4d845668ac8ea83b6782ed0251d2354563023c9a58035a1f6a5730610b6
|
@@ -0,0 +1,24 @@
|
|
1
|
+
name: Test
|
2
|
+
on: [push, pull_request]
|
3
|
+
jobs:
|
4
|
+
test:
|
5
|
+
strategy:
|
6
|
+
fail-fast: false
|
7
|
+
matrix:
|
8
|
+
ruby:
|
9
|
+
- '2.5'
|
10
|
+
- '2.6'
|
11
|
+
- '2.7'
|
12
|
+
- jruby
|
13
|
+
gemfiles:
|
14
|
+
- gemfiles/Gemfile-rspec-3.7.x
|
15
|
+
- gemfiles/Gemfile-rspec-3.8.x
|
16
|
+
- gemfiles/Gemfile-rspec-3.9.x
|
17
|
+
runs-on: ubuntu-latest
|
18
|
+
steps:
|
19
|
+
- uses: actions/checkout@v2
|
20
|
+
- uses: ruby/setup-ruby@v1
|
21
|
+
with:
|
22
|
+
ruby-version: ${{ matrix.ruby }}
|
23
|
+
- run: bundle install --gemfile ${{ matrix.gemfiles }} --jobs 4 --retry 3
|
24
|
+
- run: bundle exec --gemfile ${{ matrix.gemfiles }} rake
|
data/.travis.yml
CHANGED
@@ -7,20 +7,13 @@ branches:
|
|
7
7
|
only:
|
8
8
|
- master
|
9
9
|
|
10
|
-
#
|
11
|
-
# Ignore JRuby until https://github.com/cucumber/cucumber/pull/486 is merged
|
12
|
-
#
|
13
|
-
matrix:
|
14
|
-
allow_failures:
|
15
|
-
- rvm: jruby
|
16
|
-
|
17
10
|
rvm:
|
18
|
-
- 2.
|
19
|
-
- 2.
|
20
|
-
- 2.
|
21
|
-
- 2.6.0
|
11
|
+
- 2.5.8
|
12
|
+
- 2.6.6
|
13
|
+
- 2.7.1
|
22
14
|
- jruby
|
23
15
|
|
24
16
|
gemfile:
|
25
17
|
- gemfiles/Gemfile-rspec-3.7.x
|
26
18
|
- gemfiles/Gemfile-rspec-3.8.x
|
19
|
+
- gemfiles/Gemfile-rspec-3.9.x
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -3,6 +3,7 @@
|
|
3
3
|
[![Join the chat at https://gitter.im/jnicklas/turnip](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/jnicklas/turnip?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
4
4
|
|
5
5
|
[![Build Status](https://secure.travis-ci.org/jnicklas/turnip.png)](http://travis-ci.org/jnicklas/turnip)
|
6
|
+
![Test](https://github.com/jnicklas/turnip/workflows/Test/badge.svg)
|
6
7
|
[![Code Climate](https://codeclimate.com/github/jnicklas/turnip.png)](https://codeclimate.com/github/jnicklas/turnip)
|
7
8
|
|
8
9
|
Turnip is a [Gherkin](https://github.com/cucumber/cucumber/wiki/Gherkin)
|
@@ -48,8 +49,8 @@ Please create a topic branch for every separate change you make.
|
|
48
49
|
|
49
50
|
### 1. Ruby
|
50
51
|
|
51
|
-
- Support Ruby 2.
|
52
|
-
- Does not support Ruby (or does not work) 2.
|
52
|
+
- Support Ruby 2.5 or higher
|
53
|
+
- Does not support Ruby (or does not work) 2.4.X or earlier
|
53
54
|
|
54
55
|
### 2. RSpec
|
55
56
|
|
data/lib/turnip/capybara.rb
CHANGED
@@ -7,7 +7,8 @@ RSpec.configure do |config|
|
|
7
7
|
if self.class.include?(Capybara::DSL) and current_example.metadata[:turnip]
|
8
8
|
Capybara.current_driver = Capybara.javascript_driver if current_example.metadata.has_key?(:javascript)
|
9
9
|
current_example.metadata.each do |tag, value|
|
10
|
-
|
10
|
+
has_driver = Capybara::VERSION >= '3.33.0' ? !Capybara.drivers[tag].nil? : Capybara.drivers.has_key?(tag)
|
11
|
+
if has_driver
|
11
12
|
Capybara.current_driver = tag
|
12
13
|
end
|
13
14
|
end
|
data/lib/turnip/version.rb
CHANGED
data/turnip.gemspec
CHANGED
@@ -19,7 +19,7 @@ Gem::Specification.new do |s|
|
|
19
19
|
s.require_paths = ["lib"]
|
20
20
|
|
21
21
|
s.add_runtime_dependency "rspec", [">=3.0", "<4.0"]
|
22
|
-
s.add_runtime_dependency "cucumber-gherkin", "~>
|
22
|
+
s.add_runtime_dependency "cucumber-gherkin", "~> 14.0"
|
23
23
|
s.add_development_dependency "rake"
|
24
24
|
s.add_development_dependency "pry"
|
25
25
|
s.add_development_dependency "pry-byebug"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: turnip
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonas Nicklas
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-09-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -36,14 +36,14 @@ dependencies:
|
|
36
36
|
requirements:
|
37
37
|
- - "~>"
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version: '
|
39
|
+
version: '14.0'
|
40
40
|
type: :runtime
|
41
41
|
prerelease: false
|
42
42
|
version_requirements: !ruby/object:Gem::Requirement
|
43
43
|
requirements:
|
44
44
|
- - "~>"
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version: '
|
46
|
+
version: '14.0'
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: rake
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
@@ -94,6 +94,7 @@ executables: []
|
|
94
94
|
extensions: []
|
95
95
|
extra_rdoc_files: []
|
96
96
|
files:
|
97
|
+
- ".github/workflows/test.yml"
|
97
98
|
- ".gitignore"
|
98
99
|
- ".rspec"
|
99
100
|
- ".travis.yml"
|
@@ -131,6 +132,7 @@ files:
|
|
131
132
|
- examples/with_comments.feature
|
132
133
|
- gemfiles/Gemfile-rspec-3.7.x
|
133
134
|
- gemfiles/Gemfile-rspec-3.8.x
|
135
|
+
- gemfiles/Gemfile-rspec-3.9.x
|
134
136
|
- lib/turnip.rb
|
135
137
|
- lib/turnip/builder.rb
|
136
138
|
- lib/turnip/capybara.rb
|