rutabaga 3.0.0 → 3.0.1

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: 396a9f18753e8f782961dc51ab7921804cc5f7aa860367de27c374a8b1f5cc50
4
- data.tar.gz: cc7123622b454d61a9fe058ded68011153f4101ad6d40382e2ab1c254677bcd5
3
+ metadata.gz: 5a428f0756500bdf33b08768d84ce7ce8fc3aa9c8ee071c99b921d88042b2f89
4
+ data.tar.gz: 57ad954ce4765e539343405560428fc89bbdb2aa128e4191e3f92a052680ab38
5
5
  SHA512:
6
- metadata.gz: 8e0d4ba85c3125c08b13a62a2ef5baaa3ce89f1f3a10eaa19493979d0b7a897af1f39c29b140e9a24c3d913b190a0456047f02a73c71487a6b6b00ea5b30a47d
7
- data.tar.gz: 26b1d0ba08c4ae8a75f81b7f19fa332b228f834557a7c6175d6970ceb97de55856df29fa48fdeebbff2dd67b16d388a9973e61ac0e5b21c2feeb09300b52895f
6
+ metadata.gz: 4b30b188a8e070606fac177a662d41cb1ab27ef11fa0294cfd5526fd733f5c81a88552e9ef92a62a28367719cf97e1657a1b29d2e0bb2eb736f7b126e3e20d53
7
+ data.tar.gz: fddbe585d7eb6b91954f9097b7b4b1dbe791430644df58f9f576390f10aa89acfb5db9bc06a2d880e4908ce907a284344e142a159c190c1775aa9c4d63dcdab4
data/.travis.yml CHANGED
@@ -11,8 +11,6 @@ gemfile:
11
11
 
12
12
  matrix:
13
13
  allow_failures:
14
- - rvm: 2.6 # Google protobuf, requirement for turnip 4 not compatible yet
15
- gemfile: Gemfile
16
14
  - rvm: jruby # Google protobuf, requirement for turnip 4 not compatible yet
17
15
  gemfile: Gemfile
18
16
 
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changes
2
2
 
3
+ ## Version 3.0.1
4
+
5
+ - Removes legacy compatibility hack which stops `capybara-screenshot` from working.
6
+
3
7
  ## Version 3.0.0
4
8
 
5
9
  - Adds Turnip 4 support
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.reject { |key, _| key == :type }
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
@@ -1,3 +1,3 @@
1
1
  module Rutabaga
2
- VERSION = '3.0.0'
2
+ VERSION = '3.0.1'
3
3
  end
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('2 examples, 0 failures')
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.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-03-03 00:00:00.000000000 Z
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.2
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