rutabaga 3.1.3 → 3.2.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/.github/dependabot.yml +24 -0
- data/.github/workflows/ci.yml +4 -4
- data/.github/workflows/codeql-analysis.yml +4 -4
- data/.github/workflows/gempush.yml +16 -19
- data/.rubocop_todo.yml +10 -11
- data/Gemfile +1 -1
- data/Gemfile.turnip4 +5 -0
- data/Rakefile +10 -2
- data/lib/rspec/core/example_group_patch.rb +4 -4
- data/lib/rutabaga/no_turnip.rb +1 -1
- data/lib/rutabaga/turnip.rb +1 -1
- data/lib/rutabaga/version.rb +1 -1
- data/rutabaga.gemspec +3 -4
- metadata +15 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d3fee6c18d6a5f9a94780565d17d069aa25193484fb53c13637a57a1710ba512
|
4
|
+
data.tar.gz: d3fee33361b3678c9987a73aa62b0068ab37249be197df080e4d64f9bbfbd701
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 102597835a3843a3ba3a93ff226a7b0fef107159a81404e2725ac5b7f485479cb0a39865de2e911caef8ba7a961c2ae8bb04cc530a043733d4f7166741a34fff
|
7
|
+
data.tar.gz: 954c2f6f4fbe8679ba2d623a881662e8b587aa8bc4bd4abefbc069d47c02156b9490366531d2096f3b23b20b450de8b0a4f56d95a0f8fef140b4c7c1bb74eca6
|
@@ -0,0 +1,24 @@
|
|
1
|
+
version: 2
|
2
|
+
updates:
|
3
|
+
- package-ecosystem: github-actions
|
4
|
+
directory: "/"
|
5
|
+
schedule:
|
6
|
+
interval: weekly
|
7
|
+
day: monday
|
8
|
+
time: "07:30"
|
9
|
+
timezone: "Europe/London"
|
10
|
+
open-pull-requests-limit: 99
|
11
|
+
- package-ecosystem: bundler
|
12
|
+
directory: "/"
|
13
|
+
schedule:
|
14
|
+
interval: weekly
|
15
|
+
day: monday
|
16
|
+
time: "07:30"
|
17
|
+
open-pull-requests-limit: 99
|
18
|
+
allow:
|
19
|
+
- dependency-type: "all"
|
20
|
+
groups:
|
21
|
+
code-quality-dependencies:
|
22
|
+
patterns:
|
23
|
+
- "rubocop*"
|
24
|
+
- "simplycop"
|
data/.github/workflows/ci.yml
CHANGED
@@ -11,17 +11,17 @@ jobs:
|
|
11
11
|
fail-fast: false
|
12
12
|
matrix:
|
13
13
|
os: [ubuntu-latest, macos-latest]
|
14
|
-
ruby: [2
|
15
|
-
gemfile: [Gemfile, Gemfile.turnip3]
|
14
|
+
ruby: [3.2, 3.3, 3.4, jruby]
|
15
|
+
gemfile: [Gemfile, Gemfile.turnip3, Gemfile.turnip4]
|
16
16
|
runs-on: ${{ matrix.os }}
|
17
17
|
steps:
|
18
|
-
- uses: actions/checkout@
|
18
|
+
- uses: actions/checkout@v4
|
19
19
|
|
20
20
|
- uses: ruby/setup-ruby@v1
|
21
21
|
with:
|
22
22
|
ruby-version: ${{matrix.ruby}}
|
23
23
|
|
24
|
-
- uses: actions/cache@
|
24
|
+
- uses: actions/cache@v4
|
25
25
|
with:
|
26
26
|
path: vendor/bundle
|
27
27
|
key: bundle-use-ruby-${{matrix.os}}-${{matrix.ruby}}-${{hashFiles('**/${{matrix.gemfile}}')}}
|
@@ -38,11 +38,11 @@ jobs:
|
|
38
38
|
|
39
39
|
steps:
|
40
40
|
- name: Checkout repository
|
41
|
-
uses: actions/checkout@
|
41
|
+
uses: actions/checkout@v4
|
42
42
|
|
43
43
|
# Initializes the CodeQL tools for scanning.
|
44
44
|
- name: Initialize CodeQL
|
45
|
-
uses: github/codeql-action/init@
|
45
|
+
uses: github/codeql-action/init@v3
|
46
46
|
with:
|
47
47
|
languages: ${{ matrix.language }}
|
48
48
|
# If you wish to specify custom queries, you can do so here or in a config file.
|
@@ -53,7 +53,7 @@ jobs:
|
|
53
53
|
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
|
54
54
|
# If this step fails, then you should remove it and run the build manually (see below)
|
55
55
|
- name: Autobuild
|
56
|
-
uses: github/codeql-action/autobuild@
|
56
|
+
uses: github/codeql-action/autobuild@v3
|
57
57
|
|
58
58
|
# ℹ️ Command-line programs to run using the OS shell.
|
59
59
|
# 📚 https://git.io/JvXDl
|
@@ -67,4 +67,4 @@ jobs:
|
|
67
67
|
# make release
|
68
68
|
|
69
69
|
- name: Perform CodeQL Analysis
|
70
|
-
uses: github/codeql-action/analyze@
|
70
|
+
uses: github/codeql-action/analyze@v3
|
@@ -7,26 +7,23 @@ on:
|
|
7
7
|
- 'lib/rutabaga/version.rb'
|
8
8
|
|
9
9
|
jobs:
|
10
|
-
|
11
|
-
name: Build + Publish
|
10
|
+
push:
|
12
11
|
runs-on: ubuntu-latest
|
13
12
|
|
13
|
+
permissions:
|
14
|
+
contents: write
|
15
|
+
id-token: write
|
16
|
+
|
14
17
|
steps:
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
18
|
+
# Set up
|
19
|
+
- uses: actions/checkout@v4
|
20
|
+
with:
|
21
|
+
persist-credentials: false
|
22
|
+
- name: Set up Ruby
|
23
|
+
uses: ruby/setup-ruby@v1
|
24
|
+
with:
|
25
|
+
bundler-cache: true
|
26
|
+
ruby-version: 3.2.8
|
20
27
|
|
21
|
-
|
22
|
-
|
23
|
-
gem install gem-release
|
24
|
-
mkdir -p $HOME/.gem
|
25
|
-
touch $HOME/.gem/credentials
|
26
|
-
chmod 0600 $HOME/.gem/credentials
|
27
|
-
git config --global user.email ${{ github.event.pusher.email }}
|
28
|
-
git config --global user.name ${{ github.event.pusher.name }}
|
29
|
-
printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
|
30
|
-
gem release --tag --push
|
31
|
-
env:
|
32
|
-
GEM_HOST_API_KEY: ${{secrets.RUBYGEMS_AUTH_TOKEN}}
|
28
|
+
# Release
|
29
|
+
- uses: rubygems/release-gem@v1
|
data/.rubocop_todo.yml
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# This configuration was generated by
|
2
2
|
# `rubocop --auto-gen-config`
|
3
|
-
# on
|
3
|
+
# on 2025-07-21 16:48:54 UTC using RuboCop version 1.78.0.
|
4
4
|
# The point is for the user to remove these configuration records
|
5
5
|
# one by one as the offenses are removed from the code base.
|
6
6
|
# Note that changes in the inspected code, or installation of new
|
@@ -28,7 +28,8 @@ Gemspec/RequiredRubyVersion:
|
|
28
28
|
|
29
29
|
# Offense count: 1
|
30
30
|
# This cop supports safe autocorrection (--autocorrect).
|
31
|
-
# Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods, IgnoreNotImplementedMethods.
|
31
|
+
# Configuration parameters: AutoCorrect, AllowUnusedKeywordArguments, IgnoreEmptyMethods, IgnoreNotImplementedMethods, NotImplementedExceptions.
|
32
|
+
# NotImplementedExceptions: NotImplementedError
|
32
33
|
Lint/UnusedMethodArgument:
|
33
34
|
Exclude:
|
34
35
|
- 'lib/rutabaga/util.rb'
|
@@ -45,7 +46,7 @@ Naming/HeredocDelimiterNaming:
|
|
45
46
|
Exclude:
|
46
47
|
- 'lib/rutabaga/util.rb'
|
47
48
|
|
48
|
-
# Offense count:
|
49
|
+
# Offense count: 2
|
49
50
|
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
|
50
51
|
# AllowedNames: as, at, by, cc, db, id, if, in, io, ip, of, on, os, pp, to
|
51
52
|
Naming/MethodParameterName:
|
@@ -55,14 +56,17 @@ Naming/MethodParameterName:
|
|
55
56
|
|
56
57
|
# Offense count: 3
|
57
58
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
58
|
-
# Configuration parameters: EnforcedStyle.
|
59
|
+
# Configuration parameters: EnforcedStyle, EnforcedStyleForClasses, EnforcedStyleForModules.
|
59
60
|
# SupportedStyles: nested, compact
|
61
|
+
# SupportedStylesForClasses: ~, nested, compact
|
62
|
+
# SupportedStylesForModules: ~, nested, compact
|
60
63
|
Style/ClassAndModuleChildren:
|
61
64
|
Exclude:
|
65
|
+
- 'spec/**/*.rb'
|
62
66
|
- 'lib/rspec/core/example_group_patch.rb'
|
63
67
|
- 'lib/rutabaga/util.rb'
|
64
68
|
|
65
|
-
# Offense count:
|
69
|
+
# Offense count: 1
|
66
70
|
# This cop supports safe autocorrection (--autocorrect).
|
67
71
|
Style/EvalWithLocation:
|
68
72
|
Exclude:
|
@@ -74,14 +78,9 @@ Style/SelectByRegexp:
|
|
74
78
|
Exclude:
|
75
79
|
- 'lib/rutabaga/turnip.rb'
|
76
80
|
|
77
|
-
# Offense count: 2
|
78
|
-
Style/Send:
|
79
|
-
Exclude:
|
80
|
-
- 'spec/rutabaga/util_spec.rb'
|
81
|
-
|
82
81
|
# Offense count: 3
|
83
82
|
# This cop supports safe autocorrection (--autocorrect).
|
84
|
-
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns.
|
83
|
+
# Configuration parameters: AllowHeredoc, AllowURI, AllowQualifiedName, URISchemes, IgnoreCopDirectives, AllowedPatterns, SplitStrings.
|
85
84
|
# URISchemes: http, https
|
86
85
|
Layout/LineLength:
|
87
86
|
Max: 157
|
data/Gemfile
CHANGED
data/Gemfile.turnip4
ADDED
data/Rakefile
CHANGED
@@ -1,4 +1,12 @@
|
|
1
|
-
#!/usr/bin/env rake
|
2
1
|
# frozen_string_literal: true
|
3
2
|
|
4
|
-
require
|
3
|
+
require "bundler/gem_tasks"
|
4
|
+
require "rspec/core/rake_task"
|
5
|
+
|
6
|
+
RSpec::Core::RakeTask.new(:spec)
|
7
|
+
|
8
|
+
require "rubocop/rake_task"
|
9
|
+
|
10
|
+
RuboCop::RakeTask.new
|
11
|
+
|
12
|
+
task default: %i[spec rubocop]
|
@@ -9,10 +9,10 @@
|
|
9
9
|
class RSpec::Core::Configuration
|
10
10
|
alias orig_alias_example_group_to alias_example_group_to
|
11
11
|
|
12
|
-
def alias_example_group_to(new_name, *
|
12
|
+
def alias_example_group_to(new_name, *)
|
13
13
|
return if [:feature, :xfeature, :ffeature].include?(new_name)
|
14
14
|
|
15
|
-
orig_alias_example_group_to(new_name, *
|
15
|
+
orig_alias_example_group_to(new_name, *)
|
16
16
|
end
|
17
17
|
end
|
18
18
|
|
@@ -21,10 +21,10 @@ class RSpec::Core::ExampleGroup
|
|
21
21
|
class << self
|
22
22
|
alias orig_subclass subclass
|
23
23
|
|
24
|
-
def subclass(parent, description, *all_args, &
|
24
|
+
def subclass(parent, description, *all_args, &)
|
25
25
|
rutabaga = all_args.first.any? { |arg| arg.is_a?(Hash) && arg[:rutabaga] }
|
26
26
|
|
27
|
-
orig_subclass(parent, description, *all_args, &
|
27
|
+
orig_subclass(parent, description, *all_args, &).tap do |describe|
|
28
28
|
if rutabaga
|
29
29
|
Rutabaga::ExampleGroup::Feature.feature(describe, description, all_args.last)
|
30
30
|
end
|
data/lib/rutabaga/no_turnip.rb
CHANGED
@@ -12,7 +12,7 @@ require 'rutabaga'
|
|
12
12
|
module Turnip
|
13
13
|
module RSpec
|
14
14
|
module Loader
|
15
|
-
def load(*a, &
|
15
|
+
def load(*a, &)
|
16
16
|
if a.first.end_with?('.feature')
|
17
17
|
::RSpec.warning 'Calling features directly has been disabled by rutabaga. To re-enable, do not require rutabaga/no_turnip.'
|
18
18
|
else
|
data/lib/rutabaga/turnip.rb
CHANGED
@@ -8,7 +8,7 @@ require 'rutabaga'
|
|
8
8
|
module Turnip
|
9
9
|
module RSpec
|
10
10
|
module Loader
|
11
|
-
def load(*a, &
|
11
|
+
def load(*a, &)
|
12
12
|
if a.first.end_with?('.feature')
|
13
13
|
if legal_directories.none? { |d| a.first.end_with? d }
|
14
14
|
::RSpec.warning 'Features can only be called from turnip enable directories. These are configured ' \
|
data/lib/rutabaga/version.rb
CHANGED
data/rutabaga.gemspec
CHANGED
@@ -17,12 +17,11 @@ Gem::Specification.new do |gem|
|
|
17
17
|
gem.version = Rutabaga::VERSION
|
18
18
|
gem.license = 'MIT'
|
19
19
|
|
20
|
-
gem.
|
21
|
-
gem.
|
22
|
-
gem.
|
20
|
+
gem.add_dependency 'activesupport'
|
21
|
+
gem.add_dependency 'rspec', ['~> 3.0']
|
22
|
+
gem.add_dependency 'turnip', ['>= 3.1.0', '< 5.0.0']
|
23
23
|
|
24
24
|
gem.add_development_dependency 'capybara'
|
25
25
|
gem.add_development_dependency 'pry', '~> 0'
|
26
26
|
gem.add_development_dependency 'simplycop'
|
27
|
-
|
28
27
|
end
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rutabaga
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1
|
4
|
+
version: 3.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Simply Business
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: activesupport
|
@@ -47,7 +46,7 @@ dependencies:
|
|
47
46
|
version: 3.1.0
|
48
47
|
- - "<"
|
49
48
|
- !ruby/object:Gem::Version
|
50
|
-
version:
|
49
|
+
version: 5.0.0
|
51
50
|
type: :runtime
|
52
51
|
prerelease: false
|
53
52
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -57,7 +56,7 @@ dependencies:
|
|
57
56
|
version: 3.1.0
|
58
57
|
- - "<"
|
59
58
|
- !ruby/object:Gem::Version
|
60
|
-
version:
|
59
|
+
version: 5.0.0
|
61
60
|
- !ruby/object:Gem::Dependency
|
62
61
|
name: capybara
|
63
62
|
requirement: !ruby/object:Gem::Requirement
|
@@ -107,6 +106,7 @@ executables: []
|
|
107
106
|
extensions: []
|
108
107
|
extra_rdoc_files: []
|
109
108
|
files:
|
109
|
+
- ".github/dependabot.yml"
|
110
110
|
- ".github/workflows/ci.yml"
|
111
111
|
- ".github/workflows/codeql-analysis.yml"
|
112
112
|
- ".github/workflows/gempush.yml"
|
@@ -118,6 +118,7 @@ files:
|
|
118
118
|
- CODEOWNERS
|
119
119
|
- Gemfile
|
120
120
|
- Gemfile.turnip3
|
121
|
+
- Gemfile.turnip4
|
121
122
|
- LICENSE
|
122
123
|
- README.md
|
123
124
|
- Rakefile
|
@@ -152,7 +153,6 @@ homepage: https://github.com/simplybusiness/rutabaga
|
|
152
153
|
licenses:
|
153
154
|
- MIT
|
154
155
|
metadata: {}
|
155
|
-
post_install_message:
|
156
156
|
rdoc_options: []
|
157
157
|
require_paths:
|
158
158
|
- lib
|
@@ -167,9 +167,15 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
167
167
|
- !ruby/object:Gem::Version
|
168
168
|
version: '0'
|
169
169
|
requirements: []
|
170
|
-
rubygems_version: 3.
|
171
|
-
signing_key:
|
170
|
+
rubygems_version: 3.6.9
|
172
171
|
specification_version: 4
|
173
172
|
summary: Calling Turnip feature files from RSpec, which allows encapsulating a feature
|
174
173
|
inside a describe block
|
175
|
-
test_files:
|
174
|
+
test_files:
|
175
|
+
- spec/feature_spec.rb
|
176
|
+
- spec/features/fixture.feature
|
177
|
+
- spec/formatter_spec.rb
|
178
|
+
- spec/no_turnip_spec.rb
|
179
|
+
- spec/rspec_formatter/formatter.rb
|
180
|
+
- spec/rutabaga/util_spec.rb
|
181
|
+
- spec/spec_helper.rb
|