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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4140426c0b56837adcc9a4e2e9535fcbfd265aa53067be71f74475a03c06eafb
4
- data.tar.gz: bd0e23b3d6f26c8755345147fdd2c455f09302ac645a0bafcd17e38ad2e713d1
3
+ metadata.gz: c86f0ce3b7829fd47b7383b07a322c1726f84c91b5da26882e7595ff9113c6d2
4
+ data.tar.gz: 35fd833aac33e1eab40239bdfac960f63c762ac6c5fcdc990cfc8a4669f927cc
5
5
  SHA512:
6
- metadata.gz: 7a98529bd8e3e2021baeadf51a4a2b94164b34127953612e4010b4fd0e937f5afbc664b881d458e143dcd74a38d290ead78159cc8d017fcb34282bc33cc21bee
7
- data.tar.gz: 687d9f88818ddb37c2143a9b97165104fd612fd8a35d1783df834c45727a55df64ae31748fe085e8b7f2ec7954d41e5012fe70553f8fa5f9223982ec9d31332d
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
@@ -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.3.6
19
- - 2.4.3
20
- - 2.5.3
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
@@ -1,3 +1,5 @@
1
1
  source "https://rubygems.org"
2
2
 
3
3
  gemspec
4
+
5
+ gem "pry-byebug", platforms: :mri
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.3 or higher
52
- - Does not support Ruby (or does not work) 2.2.X or earlier
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
 
@@ -4,3 +4,4 @@ source "https://rubygems.org"
4
4
  gemspec :path => '..'
5
5
 
6
6
  gem 'rspec', '~> 3.7.0'
7
+ gem 'pry-byebug', platforms: :mri
@@ -4,3 +4,4 @@ source "https://rubygems.org"
4
4
  gemspec :path => '..'
5
5
 
6
6
  gem 'rspec', '~> 3.8.0'
7
+ gem 'pry-byebug', platforms: :mri
@@ -0,0 +1,7 @@
1
+ source "https://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in turnip.gemspec
4
+ gemspec :path => '..'
5
+
6
+ gem 'rspec', '~> 3.9.0'
7
+ gem 'pry-byebug', platforms: :mri
@@ -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
- if Capybara.drivers.has_key?(tag)
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
@@ -1,3 +1,3 @@
1
1
  module Turnip
2
- VERSION = '4.1.0'
2
+ VERSION = '4.2.0'
3
3
  end
@@ -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", "~> 10.0"
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.1.0
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-03-02 00:00:00.000000000 Z
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: '10.0'
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: '10.0'
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