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 +5 -5
- data/.travis.yml +5 -13
- data/README.md +5 -9
- data/examples/steps/backtick_steps.rb +1 -1
- data/examples/steps/steps.rb +2 -2
- data/gemfiles/{Gemfile-rspec-3.2.x → Gemfile-rspec-3.6.x} +1 -1
- data/gemfiles/{Gemfile-rspec-3.3.x → Gemfile-rspec-3.7.x} +1 -1
- data/lib/turnip/version.rb +1 -1
- data/spec/dsl_spec.rb +1 -1
- data/spec/step_definition_spec.rb +2 -3
- data/turnip.gemspec +2 -1
- metadata +9 -9
- data/gemfiles/Gemfile-rspec-3.4.x +0 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: db04bddfd94b8b6e3e3c5a43fb62f45cb8322873b06ff8a0dd8636efb249b524
|
4
|
+
data.tar.gz: 3aaa0f8839286df02a563fa2b7903e79747dedf29d27f93f7d737dceda0dfed3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e9deb546d2b5747a9ab0667e70baccb0469ac59eaa665ac97876258435d9bcfb512e74956ee3567237e8363238251d1a567749547f3e2b991a9d021bedfd733
|
7
|
+
data.tar.gz: c824cf5ae72f02fd6150e38ec53f9c551a1a2a20768359b1e20efae22948fecce49e07dd6afb0131dbd212b50fbfb2ffbef6082a3e64b9602f41a661b91cced2
|
data/.travis.yml
CHANGED
@@ -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.
|
20
|
-
-
|
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.
|
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.
|
52
|
-
- Does not support Ruby
|
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.
|
62
|
+
Example `If the latest version is 3.5.x`:
|
64
63
|
|
64
|
+
- Support `3.5.x`
|
65
65
|
- Support `3.4.x`
|
66
|
-
-
|
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
|
|
data/examples/steps/steps.rb
CHANGED
@@ -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
|
data/lib/turnip/version.rb
CHANGED
data/spec/dsl_spec.rb
CHANGED
@@ -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
|
-
|
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
|
-
|
56
|
+
step.match("3 monsters and 2 knights")
|
58
57
|
end
|
59
58
|
|
60
59
|
it "matches quoted placeholders" do
|
data/turnip.gemspec
CHANGED
@@ -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", "~>
|
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.
|
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:
|
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: '
|
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: '
|
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.
|
118
|
-
- gemfiles/Gemfile-rspec-3.
|
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.
|
169
|
+
rubygems_version: 2.7.3
|
170
170
|
signing_key:
|
171
171
|
specification_version: 4
|
172
172
|
summary: Gherkin extension for RSpec
|