turnip 4.4.0 → 4.4.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: 32d3aecd977c3e3d73df64781c8c929c6375ca79e86e94ba3339f18541db5450
4
- data.tar.gz: 89d504ed60b272b9d31f90756c6f4f0e7fd28a136ab7444a7b11fbc88298d452
3
+ metadata.gz: 858d3655d11832f0679cd4ef003f9ee9c88a17df303736bc3117caffc8cc62a0
4
+ data.tar.gz: 32c308e81c49dacfed48ca6d09a035d0f243b959ac289ba8d89cff27192d44ce
5
5
  SHA512:
6
- metadata.gz: c7473753934fb4d5deaa5b3c3856be1206aceea11bbdd8c1692e11cef24f340d96c95c78065b887772402fbe724c75581ee9788717193fa577e1c9044530b86e
7
- data.tar.gz: ad6e2fc48ab21319383eaa81fb51fdb943bd716f4350912c3336b8a574d386d75f27f684ad96005d114623f69aefd5cfc902630973fe1f8d1f377aed44476774
6
+ metadata.gz: 824c0258f5cbfbfee5609cf27c60d3e2793f84889a2b1b99c0a7bd3839b59b554daeb2272a0b9bb42388a31f88d63558d747c7929f54625b0b8fb8d271a7bd04
7
+ data.tar.gz: a57d0d377021932476f7f5e9ea4272ac3a82135f75e93df0b8d9021f63870fb0c8d6f947422a9ecd18cf799305170adc973b9a65cadc6f931238d1616c6aa080
data/.envrc ADDED
@@ -0,0 +1 @@
1
+ use flake
data/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [4.4.1] - 2024-08-09
6
+
7
+ ### Fixed
8
+
9
+ - Fix tags on scenario outline [[GH-252](https://github.com/jnicklas/turnip/pull/252)]
10
+
5
11
  ## [4.4.0] - 2022-11-04
6
12
 
7
13
  ### Added
data/README.md CHANGED
@@ -48,8 +48,10 @@ Please create a topic branch for every separate change you make.
48
48
 
49
49
  ### 1. Ruby
50
50
 
51
- - Support Ruby 2.5 or higher
52
- - Does not support Ruby (or does not work) 2.4.X or earlier
51
+ Supports Non-EOL Rubies:
52
+
53
+ - Support Ruby 2.7 or higher
54
+ - Does not support Ruby (or does not work) 2.6.X or earlier
53
55
 
54
56
  ### 2. RSpec
55
57
 
@@ -255,7 +257,7 @@ Before loading your `spec_helper`, Turnip also tries to load a file called
255
257
  You might find it beneficial to load your steps from this file so that they
256
258
  don't have to be loaded when you run your other tests.
257
259
 
258
- If you use Turnip with [rspec-rails](https://github.com/rspec/rspec-rails) v3.x, most configuration written to `rails_helper.rb` but not `spec_helper.rb`. So you should write to `turnip_helper` like this:
260
+ If you use Turnip with [rspec-rails](https://github.com/rspec/rspec-rails), most configuration written to `rails_helper.rb` but not `spec_helper.rb`. So you should write to `turnip_helper` like this:
259
261
 
260
262
  ```ruby
261
263
  require 'rails_helper'
@@ -12,3 +12,15 @@ Feature: With tags
12
12
  When I attack it
13
13
  And I attack it
14
14
  Then it should die
15
+
16
+ @variety
17
+ Scenario Outline: With tag on scenario outline
18
+ Given there is a <Monster Type> monster
19
+ When I attack it
20
+ And I attack it
21
+ Then it should die
22
+
23
+ Examples:
24
+ | Monster Type |
25
+ | weak |
26
+ | strong |
data/flake.lock ADDED
@@ -0,0 +1,24 @@
1
+ {
2
+ "nodes": {
3
+ "nixpkgs": {
4
+ "locked": {
5
+ "lastModified": 1697723726,
6
+ "narHash": "sha256-SaTWPkI8a5xSHX/rrKzUe+/uVNy6zCGMXgoeMb7T9rg=",
7
+ "path": "/nix/store/4jfc6vrkmq7z5pb651jh5b4kra5f1kwp-source",
8
+ "rev": "7c9cc5a6e5d38010801741ac830a3f8fd667a7a0",
9
+ "type": "path"
10
+ },
11
+ "original": {
12
+ "id": "nixpkgs",
13
+ "type": "indirect"
14
+ }
15
+ },
16
+ "root": {
17
+ "inputs": {
18
+ "nixpkgs": "nixpkgs"
19
+ }
20
+ }
21
+ },
22
+ "root": "root",
23
+ "version": 7
24
+ }
data/flake.nix ADDED
@@ -0,0 +1,30 @@
1
+ {
2
+ description = "Ruby dev environment";
3
+
4
+ inputs = { };
5
+
6
+ outputs = { self, nixpkgs }:
7
+ let
8
+ # Helper to provide system-specific attributes
9
+ forAllSupportedSystems = f: nixpkgs.lib.genAttrs supportedSystems (system: f {
10
+ pkgs = import nixpkgs { inherit system; };
11
+ });
12
+
13
+ supportedSystems = [
14
+ "aarch64-darwin"
15
+ "aarch64-linux"
16
+ "x86_64-darwin"
17
+ "x86_64-linux"
18
+ ];
19
+ in
20
+
21
+ {
22
+ devShells = forAllSupportedSystems ({ pkgs }: {
23
+ default = pkgs.mkShell {
24
+ packages = with pkgs; [
25
+ ruby_3_2
26
+ ];
27
+ };
28
+ });
29
+ };
30
+ }
@@ -125,6 +125,7 @@ module Turnip
125
125
  scenario.steps = original.steps
126
126
  scenario.source_line = original.source_line
127
127
  scenario.source_column = original.source_column
128
+ scenario.tags = original.tags
128
129
  end
129
130
  end
130
131
 
@@ -1,3 +1,3 @@
1
1
  module Turnip
2
- VERSION = '4.4.0'
2
+ VERSION = '4.4.1'
3
3
  end
data/spec/builder_spec.rb CHANGED
@@ -48,6 +48,8 @@ describe Turnip::Builder do
48
48
  expect(feature.tags[0]).to be_instance_of Turnip::Node::Tag
49
49
  expect(feature.scenarios[0].tags[0].name).to eq 'cool'
50
50
  expect(feature.scenarios[1].tag_names).to eq ['stealthy', 'wicked']
51
+ expect(feature.scenarios[2].tag_names).to eq ['variety']
52
+ expect(feature.scenarios[3].tag_names).to eq ['variety']
51
53
  end
52
54
  end
53
55
 
@@ -12,7 +12,7 @@ describe 'The CLI', :type => :integration do
12
12
  end
13
13
 
14
14
  it "prints out failures and successes" do
15
- @result.should include('46 examples, 4 failures, 6 pending')
15
+ @result.should include('48 examples, 4 failures, 7 pending')
16
16
  end
17
17
 
18
18
  it "includes features in backtraces" do
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.4.0
4
+ version: 4.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonas Nicklas
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-11-09 00:00:00.000000000 Z
11
+ date: 1980-01-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -94,6 +94,7 @@ executables: []
94
94
  extensions: []
95
95
  extra_rdoc_files: []
96
96
  files:
97
+ - ".envrc"
97
98
  - ".github/workflows/test.yml"
98
99
  - ".gitignore"
99
100
  - ".rspec"
@@ -133,6 +134,8 @@ files:
133
134
  - examples/tags.feature
134
135
  - examples/with_backticks.feature
135
136
  - examples/with_comments.feature
137
+ - flake.lock
138
+ - flake.nix
136
139
  - gemfiles/Gemfile-rspec-3.11.x
137
140
  - gemfiles/Gemfile-rspec-3.12.x
138
141
  - lib/turnip.rb
@@ -188,7 +191,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
188
191
  - !ruby/object:Gem::Version
189
192
  version: '0'
190
193
  requirements: []
191
- rubygems_version: 3.1.2
194
+ rubygems_version: 3.4.19
192
195
  signing_key:
193
196
  specification_version: 4
194
197
  summary: Gherkin extension for RSpec