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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d2ecd959d63c76f440f4f5b74b04166f9dbc2ba165800fa004b892bc22f684c9
4
- data.tar.gz: c1df0714aa1f05965d6f07143e20114a553cd44cd6095da977aa52c5caa050e0
3
+ metadata.gz: 3664c6fddb7ac9990a36aa7c091c1e261a9cd88c088f980fc8de5995c7969c35
4
+ data.tar.gz: 839b771288cb1840607b4f0f4a5837f040fc200e44acadea5e67647744d212f5
5
5
  SHA512:
6
- metadata.gz: 123655471276a44200a7c94094fbdc4328f5b7176c1ee3b4f37f5cab492322f9cd651e309e033581a75f07bcae3317ed114583aa1787817181d4e19a655b8f0b
7
- data.tar.gz: 375e7d819ca6c3278f46130d312b101dd937cd883f659d7f95f9c286eb3d76729480f6fcba83db3ac4ae785a70f5427dbc84b0ad1419e091952996c1cfb7b811
6
+ metadata.gz: 34173d9022527209803c302cf5ea5f1f400606019e8a81b568be5aa80b4214c37c3c5c847c246c35070197d814235c7ade43c0571cfa0f37d455057e85397fcf
7
+ data.tar.gz: c58fef945469431ba11b8bbe1e9ad2a0dd21b3dff0df2e9afd059251b85e4387d5e59e734122711d73cd690d83937c5b7606e9f93afd8e9d7fe6a418146ec18f
data/.rubocop.yml ADDED
@@ -0,0 +1,8 @@
1
+ inherit_from: .rubocop_todo.yml
2
+
3
+ inherit_gem:
4
+ simplycop: .simplycop.yml
5
+
6
+ AllCops:
7
+ Exclude:
8
+ - 'vendor/**/*'
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  RSpec.configure do |config|
4
4
  config.expect_with :rspec do |c|
5
- c.syntax = %i[should expect]
5
+ c.syntax = [:should, :expect]
6
6
  end
7
7
  end
@@ -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 %i[feature xfeature ffeature].include?(new_name)
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
@@ -68,7 +68,7 @@ module Rutabaga
68
68
  base = caller(0).find do |call|
69
69
  call =~ /_spec.rb:/
70
70
  end.gsub(/_spec.rb:.*\Z/, '')
71
- [base + '.feature', base + '.rutabaga']
71
+ ["#{base}.feature", "#{base}.rutabaga"]
72
72
  end
73
73
  end
74
74
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Rutabaga
4
- VERSION = '3.1.1'
4
+ VERSION = '3.1.2'
5
5
  end
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 = ['Lukas Oberhuber']
7
- gem.email = ['lukas.oberhuber@simplybusiness.co.uk']
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  RSpec.configure do |config|
4
4
  config.expect_with :rspec do |c|
5
- c.syntax = %i[should expect]
5
+ c.syntax = [:should, :expect]
6
6
  end
7
7
  end
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.1
4
+ version: 3.1.2
5
5
  platform: ruby
6
6
  authors:
7
- - Lukas Oberhuber
7
+ - Simply Business
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-01-11 00:00:00.000000000 Z
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
- - lukas.oberhuber@simplybusiness.co.uk
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