rutabaga 3.1.1 → 3.1.2
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/.rubocop.yml +8 -0
- data/.rubocop_todo.yml +87 -0
- data/examples/spec_helper.rb +1 -1
- data/examples/test_feature_example_group_spec.rb +1 -1
- data/lib/rspec/core/example_group_patch.rb +1 -1
- data/lib/rutabaga/util.rb +1 -1
- data/lib/rutabaga/version.rb +1 -1
- data/rutabaga.gemspec +5 -2
- data/spec/spec_helper.rb +1 -1
- metadata +34 -5
- data/.github/workflows/rubocop-analysis.yml +0 -22
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3664c6fddb7ac9990a36aa7c091c1e261a9cd88c088f980fc8de5995c7969c35
|
4
|
+
data.tar.gz: 839b771288cb1840607b4f0f4a5837f040fc200e44acadea5e67647744d212f5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 34173d9022527209803c302cf5ea5f1f400606019e8a81b568be5aa80b4214c37c3c5c847c246c35070197d814235c7ade43c0571cfa0f37d455057e85397fcf
|
7
|
+
data.tar.gz: c58fef945469431ba11b8bbe1e9ad2a0dd21b3dff0df2e9afd059251b85e4387d5e59e734122711d73cd690d83937c5b7606e9f93afd8e9d7fe6a418146ec18f
|
data/.rubocop.yml
ADDED
data/.rubocop_todo.yml
ADDED
@@ -0,0 +1,87 @@
|
|
1
|
+
# This configuration was generated by
|
2
|
+
# `rubocop --auto-gen-config`
|
3
|
+
# on 2023-05-12 14:28:04 UTC using RuboCop version 1.50.2.
|
4
|
+
# The point is for the user to remove these configuration records
|
5
|
+
# one by one as the offenses are removed from the code base.
|
6
|
+
# Note that changes in the inspected code, or installation of new
|
7
|
+
# versions of RuboCop, may require this file to be generated again.
|
8
|
+
|
9
|
+
# Offense count: 1
|
10
|
+
CustomCops/InstanceEval:
|
11
|
+
Exclude:
|
12
|
+
- 'lib/rutabaga/util.rb'
|
13
|
+
|
14
|
+
# Offense count: 1
|
15
|
+
# This cop supports safe autocorrection (--autocorrect).
|
16
|
+
# Configuration parameters: Severity, Include.
|
17
|
+
# Include: **/*.gemspec
|
18
|
+
Gemspec/DeprecatedAttributeAssignment:
|
19
|
+
Exclude:
|
20
|
+
- 'rutabaga.gemspec'
|
21
|
+
|
22
|
+
# Offense count: 1
|
23
|
+
# Configuration parameters: Severity, Include.
|
24
|
+
# Include: **/*.gemspec
|
25
|
+
Gemspec/RequiredRubyVersion:
|
26
|
+
Exclude:
|
27
|
+
- 'rutabaga.gemspec'
|
28
|
+
|
29
|
+
# Offense count: 1
|
30
|
+
# This cop supports safe autocorrection (--autocorrect).
|
31
|
+
# Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods, IgnoreNotImplementedMethods.
|
32
|
+
Lint/UnusedMethodArgument:
|
33
|
+
Exclude:
|
34
|
+
- 'lib/rutabaga/util.rb'
|
35
|
+
|
36
|
+
# Offense count: 3
|
37
|
+
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
|
38
|
+
Metrics/MethodLength:
|
39
|
+
Max: 15
|
40
|
+
|
41
|
+
# Offense count: 1
|
42
|
+
# Configuration parameters: ForbiddenDelimiters.
|
43
|
+
# ForbiddenDelimiters: (?i-mx:(^|\s)(EO[A-Z]{1}|END)(\s|$))
|
44
|
+
Naming/HeredocDelimiterNaming:
|
45
|
+
Exclude:
|
46
|
+
- 'lib/rutabaga/util.rb'
|
47
|
+
|
48
|
+
# Offense count: 4
|
49
|
+
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
|
50
|
+
# AllowedNames: as, at, by, cc, db, id, if, in, io, ip, of, on, os, pp, to
|
51
|
+
Naming/MethodParameterName:
|
52
|
+
Exclude:
|
53
|
+
- 'lib/rutabaga/no_turnip.rb'
|
54
|
+
- 'lib/rutabaga/turnip.rb'
|
55
|
+
|
56
|
+
# Offense count: 3
|
57
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
58
|
+
# Configuration parameters: EnforcedStyle.
|
59
|
+
# SupportedStyles: nested, compact
|
60
|
+
Style/ClassAndModuleChildren:
|
61
|
+
Exclude:
|
62
|
+
- 'lib/rspec/core/example_group_patch.rb'
|
63
|
+
- 'lib/rutabaga/util.rb'
|
64
|
+
|
65
|
+
# Offense count: 2
|
66
|
+
# This cop supports safe autocorrection (--autocorrect).
|
67
|
+
Style/EvalWithLocation:
|
68
|
+
Exclude:
|
69
|
+
- 'lib/rutabaga/util.rb'
|
70
|
+
|
71
|
+
# Offense count: 1
|
72
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
73
|
+
Style/SelectByRegexp:
|
74
|
+
Exclude:
|
75
|
+
- 'lib/rutabaga/turnip.rb'
|
76
|
+
|
77
|
+
# Offense count: 2
|
78
|
+
Style/Send:
|
79
|
+
Exclude:
|
80
|
+
- 'spec/rutabaga/util_spec.rb'
|
81
|
+
|
82
|
+
# Offense count: 3
|
83
|
+
# This cop supports safe autocorrection (--autocorrect).
|
84
|
+
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns.
|
85
|
+
# URISchemes: http, https
|
86
|
+
Layout/LineLength:
|
87
|
+
Max: 157
|
data/examples/spec_helper.rb
CHANGED
@@ -104,6 +104,6 @@ describe 'backgrounds are properly called' do
|
|
104
104
|
end
|
105
105
|
|
106
106
|
step 'my result is :result' do |result|
|
107
|
-
expect(@initial.to_i + @first.to_i * @second.to_i).to eq(result.to_i)
|
107
|
+
expect(@initial.to_i + (@first.to_i * @second.to_i)).to eq(result.to_i)
|
108
108
|
end
|
109
109
|
end
|
@@ -10,7 +10,7 @@ class RSpec::Core::Configuration
|
|
10
10
|
alias orig_alias_example_group_to alias_example_group_to
|
11
11
|
|
12
12
|
def alias_example_group_to(new_name, *args)
|
13
|
-
return if
|
13
|
+
return if [:feature, :xfeature, :ffeature].include?(new_name)
|
14
14
|
|
15
15
|
orig_alias_example_group_to(new_name, *args)
|
16
16
|
end
|
data/lib/rutabaga/util.rb
CHANGED
data/lib/rutabaga/version.rb
CHANGED
data/rutabaga.gemspec
CHANGED
@@ -3,8 +3,8 @@
|
|
3
3
|
require File.expand_path('lib/rutabaga/version', __dir__)
|
4
4
|
|
5
5
|
Gem::Specification.new do |gem|
|
6
|
-
gem.authors = ['
|
7
|
-
gem.email = ['
|
6
|
+
gem.authors = ['Simply Business']
|
7
|
+
gem.email = ['opensource@simplybusiness.co.uk']
|
8
8
|
gem.description = 'Allows using feature from within RSpec and is built on top of Turnip'
|
9
9
|
gem.summary = 'Calling Turnip feature files from RSpec, which allows encapsulating a feature inside a describe block'
|
10
10
|
gem.homepage = 'https://github.com/simplybusiness/rutabaga'
|
@@ -17,9 +17,12 @@ Gem::Specification.new do |gem|
|
|
17
17
|
gem.version = Rutabaga::VERSION
|
18
18
|
gem.license = 'MIT'
|
19
19
|
|
20
|
+
gem.add_runtime_dependency 'activesupport', ['< 7.1.0']
|
20
21
|
gem.add_runtime_dependency 'rspec', ['~> 3.0']
|
21
22
|
gem.add_runtime_dependency 'turnip', ['>= 3.1.0', '< 4.4']
|
22
23
|
|
23
24
|
gem.add_development_dependency 'capybara'
|
24
25
|
gem.add_development_dependency 'pry', '~> 0'
|
26
|
+
gem.add_development_dependency 'simplycop'
|
27
|
+
|
25
28
|
end
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,15 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rutabaga
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- Simply Business
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-10-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: activesupport
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "<"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 7.1.0
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "<"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 7.1.0
|
13
27
|
- !ruby/object:Gem::Dependency
|
14
28
|
name: rspec
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -72,9 +86,23 @@ dependencies:
|
|
72
86
|
- - "~>"
|
73
87
|
- !ruby/object:Gem::Version
|
74
88
|
version: '0'
|
89
|
+
- !ruby/object:Gem::Dependency
|
90
|
+
name: simplycop
|
91
|
+
requirement: !ruby/object:Gem::Requirement
|
92
|
+
requirements:
|
93
|
+
- - ">="
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
version: '0'
|
96
|
+
type: :development
|
97
|
+
prerelease: false
|
98
|
+
version_requirements: !ruby/object:Gem::Requirement
|
99
|
+
requirements:
|
100
|
+
- - ">="
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: '0'
|
75
103
|
description: Allows using feature from within RSpec and is built on top of Turnip
|
76
104
|
email:
|
77
|
-
-
|
105
|
+
- opensource@simplybusiness.co.uk
|
78
106
|
executables: []
|
79
107
|
extensions: []
|
80
108
|
extra_rdoc_files: []
|
@@ -83,8 +111,9 @@ files:
|
|
83
111
|
- ".github/workflows/codeql-analysis.yml"
|
84
112
|
- ".github/workflows/gempush.yml"
|
85
113
|
- ".github/workflows/project-board.yml"
|
86
|
-
- ".github/workflows/rubocop-analysis.yml"
|
87
114
|
- ".gitignore"
|
115
|
+
- ".rubocop.yml"
|
116
|
+
- ".rubocop_todo.yml"
|
88
117
|
- CHANGELOG.md
|
89
118
|
- CODEOWNERS
|
90
119
|
- Gemfile
|
@@ -1,22 +0,0 @@
|
|
1
|
-
name: "Rubocop"
|
2
|
-
|
3
|
-
on: [push]
|
4
|
-
|
5
|
-
jobs:
|
6
|
-
rubocop_job:
|
7
|
-
runs-on: ubuntu-latest
|
8
|
-
name: Code Scanning job run
|
9
|
-
strategy:
|
10
|
-
fail-fast: false
|
11
|
-
|
12
|
-
steps:
|
13
|
-
- name: Checkout repository
|
14
|
-
uses: actions/checkout@v2
|
15
|
-
|
16
|
-
- name: Rubocop run
|
17
|
-
uses: arthurnn/code-scanning-rubocop/rubocop-action@master
|
18
|
-
|
19
|
-
- name: Upload Sarif output
|
20
|
-
uses: github/codeql-action/upload-sarif@v1
|
21
|
-
with:
|
22
|
-
sarif_file: rubocop.sarif
|