rutabaga 3.0.0 → 3.0.1
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 +4 -4
- data/.travis.yml +0 -2
- data/CHANGELOG.md +4 -0
- data/README.md +9 -3
- data/examples/compatibility/compatibility_spec.rb +0 -15
- data/lib/rutabaga/util.rb +1 -1
- data/lib/rutabaga/version.rb +1 -1
- data/spec/feature_spec.rb +1 -6
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5a428f0756500bdf33b08768d84ce7ce8fc3aa9c8ee071c99b921d88042b2f89
|
4
|
+
data.tar.gz: 57ad954ce4765e539343405560428fc89bbdb2aa128e4191e3f92a052680ab38
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4b30b188a8e070606fac177a662d41cb1ab27ef11fa0294cfd5526fd733f5c81a88552e9ef92a62a28367719cf97e1657a1b29d2e0bb2eb736f7b126e3e20d53
|
7
|
+
data.tar.gz: fddbe585d7eb6b91954f9097b7b4b1dbe791430644df58f9f576390f10aa89acfb5db9bc06a2d880e4908ce907a284344e142a159c190c1775aa9c4d63dcdab4
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -176,19 +176,25 @@ Use `gem-release` to maintain versions https://github.com/svenfuchs/gem-release.
|
|
176
176
|
To update the patch version (e.g. 0.0.1 to 0.0.2), after merging the PR to `master` run:
|
177
177
|
|
178
178
|
```
|
179
|
-
gem bump --tag --release
|
179
|
+
gem bump --tag --release --push
|
180
180
|
```
|
181
181
|
|
182
182
|
if instead you want to bump the minor version (e.g. 0.0.1 to 0.1.0):
|
183
183
|
|
184
184
|
```
|
185
|
-
gem bump --version minor --tag --release
|
185
|
+
gem bump --version minor --tag --release --push
|
186
186
|
```
|
187
187
|
|
188
188
|
or major version (e.g. 0.0.1 to 1.0.0):
|
189
189
|
|
190
190
|
```
|
191
|
-
gem bump --version major --tag --release
|
191
|
+
gem bump --version major --tag --release --push
|
192
|
+
```
|
193
|
+
|
194
|
+
If you've updated the version already, after merging to `master` run:
|
195
|
+
|
196
|
+
```
|
197
|
+
gem release --tag --push
|
192
198
|
```
|
193
199
|
|
194
200
|
## Testing alternate versions
|
@@ -13,18 +13,3 @@ describe "capaybara rails does not overwrite the feature command" do
|
|
13
13
|
end
|
14
14
|
end
|
15
15
|
end
|
16
|
-
|
17
|
-
describe "turnip doesn't overwrite the type", type: :parent_group do
|
18
|
-
feature '../test2.feature' do
|
19
|
-
step "that :first + :second is calculated" do |first, second|
|
20
|
-
metadata_type = RSpec.current_example.example_group.metadata[:type]
|
21
|
-
|
22
|
-
puts "feature metadata type is preserved as #{metadata_type}"
|
23
|
-
|
24
|
-
expect(metadata_type).to eq(:parent_group)
|
25
|
-
end
|
26
|
-
|
27
|
-
step "my result is :result" do |result|
|
28
|
-
end
|
29
|
-
end
|
30
|
-
end
|
data/lib/rutabaga/util.rb
CHANGED
@@ -6,7 +6,7 @@ module Turnip::RSpec
|
|
6
6
|
features = Rutabaga::Util.build_scenario_groups(feature_file)
|
7
7
|
features.each do |feature|
|
8
8
|
instance_eval <<-EOS, feature_file, feature.line
|
9
|
-
describe = example_group_class.describe feature.name, feature.metadata_hash
|
9
|
+
describe = example_group_class.describe feature.name, feature.metadata_hash
|
10
10
|
if Turnip::VERSION[0].to_i >= 4
|
11
11
|
run_scenario_group(describe, feature, feature_file)
|
12
12
|
else # run against turnip 3
|
data/lib/rutabaga/version.rb
CHANGED
data/spec/feature_spec.rb
CHANGED
@@ -57,16 +57,11 @@ describe 'integration', :type => :integration do
|
|
57
57
|
end
|
58
58
|
|
59
59
|
it "passes all tests" do
|
60
|
-
expect(@result).to include('
|
60
|
+
expect(@result).to include('1 example, 0 failures')
|
61
61
|
end
|
62
62
|
|
63
63
|
it "runs feature blocks even if capybara/rspec is installed" do
|
64
64
|
expect(@result).to include("capaybara rails does not overwrite the feature command")
|
65
65
|
end
|
66
|
-
|
67
|
-
it "preserves the type from the surrounding describe blocks (for example rspec rails example groups)" do
|
68
|
-
expect(@result).to include("feature metadata type is preserved as parent_group")
|
69
|
-
end
|
70
|
-
|
71
66
|
end
|
72
67
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rutabaga
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lukas Oberhuber
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-07-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: turnip
|
@@ -132,7 +132,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
132
132
|
- !ruby/object:Gem::Version
|
133
133
|
version: '0'
|
134
134
|
requirements: []
|
135
|
-
rubygems_version: 3.0.
|
135
|
+
rubygems_version: 3.0.3
|
136
136
|
signing_key:
|
137
137
|
specification_version: 4
|
138
138
|
summary: Calling Turnip feature files from RSpec, which allows encapsulating a feature
|