turnip 3.0.0 → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 6a00c53fa38cd0680b3a679b5d549ef120864b6e
4
- data.tar.gz: 865af33f390825e03f7f606e8fd856c2c53b32b7
2
+ SHA256:
3
+ metadata.gz: db04bddfd94b8b6e3e3c5a43fb62f45cb8322873b06ff8a0dd8636efb249b524
4
+ data.tar.gz: 3aaa0f8839286df02a563fa2b7903e79747dedf29d27f93f7d737dceda0dfed3
5
5
  SHA512:
6
- metadata.gz: f9e80894edb9d59fc914e6be6ffe9a3ee0c7586e522922575d475c3aba366a85ce07d09a7f2927f382e46e079fd83c62e7d3e0e81609aca38f80a4abbb4e1d26
7
- data.tar.gz: dc6c50896273921d2e60f6b85e0b8de654c8e9afe50d6c9ebf438c677cfe17895cc8d08fcf868e3883f847d48b1bf93b74c1d6a577b94feddc6277f2beeada45
6
+ metadata.gz: 1e9deb546d2b5747a9ab0667e70baccb0469ac59eaa665ac97876258435d9bcfb512e74956ee3567237e8363238251d1a567749547f3e2b991a9d021bedfd733
7
+ data.tar.gz: c824cf5ae72f02fd6150e38ec53f9c551a1a2a20768359b1e20efae22948fecce49e07dd6afb0131dbd212b50fbfb2ffbef6082a3e64b9602f41a661b91cced2
@@ -7,21 +7,13 @@ branches:
7
7
  only:
8
8
  - master
9
9
 
10
- matrix:
11
- allow_failures:
12
- - gemfile: Gemfile
13
- - gemfile: gemfiles/Gemfile-rspec-3.2.x
14
- - rvm: ruby-head
15
-
16
10
  rvm:
17
- - 2.1
18
11
  - 2.2
19
- - 2.3.0
20
- - ruby-head
12
+ - 2.3.6
13
+ - 2.4.3
14
+ - 2.5.0
21
15
  - jruby-19mode
22
16
 
23
17
  gemfile:
24
- - Gemfile
25
- - gemfiles/Gemfile-rspec-3.2.x
26
- - gemfiles/Gemfile-rspec-3.3.x
27
- - gemfiles/Gemfile-rspec-3.4.x
18
+ - gemfiles/Gemfile-rspec-3.6.x
19
+ - gemfiles/Gemfile-rspec-3.7.x
data/README.md CHANGED
@@ -48,9 +48,8 @@ Please create a topic branch for every separate change you make.
48
48
 
49
49
  ### 1. Ruby
50
50
 
51
- - Support Ruby 2.1 or higher
52
- - Does not support Ruby 1.9.X and 2.0.X
53
- - Does not work on Ruby 1.8.X
51
+ - Support Ruby 2.2 or higher
52
+ - Does not support Ruby (or does not work) 2.1.X or earlier
54
53
 
55
54
  ### 2. RSpec
56
55
 
@@ -60,14 +59,11 @@ In accordance with the RSpec support policy https://github.com/jnicklas/turnip/i
60
59
  - Does not support **two version before the latest or earlier**
61
60
  - Does not work on **RSpec 2 or earlier**
62
61
 
63
- Example `If the latest version is 3.4.x`:
62
+ Example `If the latest version is 3.5.x`:
64
63
 
64
+ - Support `3.5.x`
65
65
  - Support `3.4.x`
66
- - Support `3.3.x`
67
- - Does not support `3.2.x`
68
- - Does not support `3.1.x`
69
- - Does not support `2.x.y`
70
-
66
+ - Does not support (or does not work) `3.3.x` or earlier
71
67
 
72
68
  ## Usage
73
69
 
@@ -3,7 +3,7 @@ step "I run :cmd" do |cmd|
3
3
  end
4
4
 
5
5
  placeholder :cmd do
6
- match /`([^`]*)`/ do |cmd|
6
+ match (/`([^`]*)`/) do |cmd|
7
7
  cmd
8
8
  end
9
9
  end
@@ -108,13 +108,13 @@ step "raise error" do
108
108
  end
109
109
 
110
110
  placeholder :count do
111
- match /\d+/ do |count|
111
+ match (/\d+/) do |count|
112
112
  count.to_i
113
113
  end
114
114
  end
115
115
 
116
116
  placeholder :color do
117
- match /blue|green|red/ do |color|
117
+ match (/blue|green|red/) do |color|
118
118
  color.to_sym
119
119
  end
120
120
  end
@@ -3,4 +3,4 @@ source "https://rubygems.org"
3
3
  # Specify your gem's dependencies in turnip.gemspec
4
4
  gemspec :path => '..'
5
5
 
6
- gem 'rspec', '~> 3.2.0'
6
+ gem 'rspec', '~> 3.6.0'
@@ -3,4 +3,4 @@ source "https://rubygems.org"
3
3
  # Specify your gem's dependencies in turnip.gemspec
4
4
  gemspec :path => '..'
5
5
 
6
- gem 'rspec', '~> 3.3.0'
6
+ gem 'rspec', '~> 3.7.0'
@@ -1,3 +1,3 @@
1
1
  module Turnip
2
- VERSION = '3.0.0'
2
+ VERSION = '3.1.0'
3
3
  end
@@ -31,7 +31,7 @@ describe Turnip::DSL do
31
31
 
32
32
  it 'warns of deprecation when called with :global' do
33
33
  context.should_receive(:warn)
34
- mod = context.steps_for(:global) do
34
+ context.steps_for(:global) do
35
35
  step("foo") { "foo" }
36
36
  end
37
37
  an_object.extend Turnip::Steps
@@ -45,8 +45,7 @@ describe Turnip::StepDefinition do
45
45
  Turnip::Placeholder.stub(:resolve).with(:count).and_return(/\d+/)
46
46
  Turnip::Placeholder.should_receive(:find).with(:count).twice.and_return(placeholder)
47
47
  step = Turnip::StepDefinition.new(":count monsters and :count knights") {}
48
- match = step.match("3 monsters and 2 knights")
49
- #match.params.should eq([3, 2])
48
+ step.match("3 monsters and 2 knights")
50
49
  end
51
50
 
52
51
  it "does apply the same custom placeholder several times" do
@@ -54,7 +53,7 @@ describe Turnip::StepDefinition do
54
53
  Turnip::Placeholder.stub(:resolve).with(:count).and_return(/\d+/)
55
54
  placeholder.should_receive(:apply).twice
56
55
  step = Turnip::StepDefinition.new(":count monsters and :count knights") {}
57
- match = step.match("3 monsters and 2 knights")
56
+ step.match("3 monsters and 2 knights")
58
57
  end
59
58
 
60
59
  it "matches quoted placeholders" do
@@ -8,6 +8,7 @@ Gem::Specification.new do |s|
8
8
  s.authors = ["Jonas Nicklas"]
9
9
  s.email = ["jonas.nicklas@gmail.com"]
10
10
  s.homepage = ""
11
+ s.license = "MIT"
11
12
  s.summary = %q{Gherkin extension for RSpec}
12
13
  s.description = %q{Provides the ability to define steps and run Gherkin files from with RSpec}
13
14
 
@@ -19,7 +20,7 @@ Gem::Specification.new do |s|
19
20
  s.require_paths = ["lib"]
20
21
 
21
22
  s.add_runtime_dependency "rspec", [">=3.0", "<4.0"]
22
- s.add_runtime_dependency "gherkin", "~> 4.0"
23
+ s.add_runtime_dependency "gherkin", "~> 5.0"
23
24
  s.add_development_dependency "rake"
24
25
  s.add_development_dependency "pry"
25
26
  end
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: 3.0.0
4
+ version: 3.1.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: 2017-04-03 00:00:00.000000000 Z
11
+ date: 2018-02-01 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: '4.0'
39
+ version: '5.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: '4.0'
46
+ version: '5.0'
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rake
49
49
  requirement: !ruby/object:Gem::Requirement
@@ -114,9 +114,8 @@ files:
114
114
  - examples/tags.feature
115
115
  - examples/with_backticks.feature
116
116
  - examples/with_comments.feature
117
- - gemfiles/Gemfile-rspec-3.2.x
118
- - gemfiles/Gemfile-rspec-3.3.x
119
- - gemfiles/Gemfile-rspec-3.4.x
117
+ - gemfiles/Gemfile-rspec-3.6.x
118
+ - gemfiles/Gemfile-rspec-3.7.x
120
119
  - lib/turnip.rb
121
120
  - lib/turnip/builder.rb
122
121
  - lib/turnip/capybara.rb
@@ -148,7 +147,8 @@ files:
148
147
  - spec/table_spec.rb
149
148
  - turnip.gemspec
150
149
  homepage: ''
151
- licenses: []
150
+ licenses:
151
+ - MIT
152
152
  metadata: {}
153
153
  post_install_message:
154
154
  rdoc_options: []
@@ -166,7 +166,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
166
166
  version: '0'
167
167
  requirements: []
168
168
  rubyforge_project: turnip
169
- rubygems_version: 2.5.1
169
+ rubygems_version: 2.7.3
170
170
  signing_key:
171
171
  specification_version: 4
172
172
  summary: Gherkin extension for RSpec
@@ -1,6 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- # Specify your gem's dependencies in turnip.gemspec
4
- gemspec :path => '..'
5
-
6
- gem 'rspec', '~> 3.4.0'