beaker-rspec 8.3.0 → 9.0.0

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: 8d0a7f04c69a6173d2ce221249d63d8cc7f89921c60b150625c2a07d2d959bd8
4
- data.tar.gz: 0634aaf5431a951b2c9a8b2114471aa8f997392edfc5b3895fa0d46a6d5a00fd
3
+ metadata.gz: 9c5bbbb615965d4437d3816e434f7784b0c67b40c4a17c89332997777de9638b
4
+ data.tar.gz: 465fb8eed2ee81871b4d2ad45e1af7eb271f63145f2b902fda04bfd2af41ea01
5
5
  SHA512:
6
- metadata.gz: 1767b40fff985cc37a7c13ad032bf908d76e9a3829ddb29f01cd61c6048b7151bcfa573998434d2f40bf73ae11f8cec67fb9153546591cfb75c843b36651d089
7
- data.tar.gz: 17732231fb3ed5fb615b74c45b83eaa7e7af4ce85bb8826612d06f5e215d22ce30e6062ec1a9c8d30cdb8f02bb31c299b95f30bb9a9ae762b570416ad9f21bfa
6
+ metadata.gz: 364b59937f776b1a289098554ef88891773ffd5175268a08da544b29fc48fa6b3a1729b3a16c3e73ffcb08af81e98f6869dc6d2c6e597ec5a4a42bafee4fdbce
7
+ data.tar.gz: 3e69b85ae12de86d688f1ef98e184a5d88ea490ee2f6ebe629b9a438ca577074689e17bc2d77eb10453aec136438d3c3b861bca2270fe2b025404de8c86f2a4d
@@ -1,31 +1,106 @@
1
- name: Release
1
+ ---
2
+ name: Gem Release
2
3
 
3
4
  on:
4
5
  push:
5
6
  tags:
6
7
  - '*'
7
8
 
9
+ permissions: {}
10
+
8
11
  jobs:
9
- release:
10
- runs-on: ubuntu-24.04
12
+ build-release:
13
+ # Prevent releases from forked repositories
11
14
  if: github.repository_owner == 'voxpupuli'
15
+ name: Build the gem
16
+ runs-on: ubuntu-24.04
12
17
  steps:
13
18
  - uses: actions/checkout@v4
14
- - name: Install Ruby 3.4
19
+ - name: Install Ruby
15
20
  uses: ruby/setup-ruby@v1
16
21
  with:
17
- ruby-version: '3.4'
18
- bundler: 'none'
22
+ ruby-version: 'ruby'
19
23
  - name: Build gem
20
- run: gem build --strict --verbose *.gemspec
24
+ shell: bash
25
+ run: gem build --verbose *.gemspec
26
+ - name: Upload gem to GitHub cache
27
+ uses: actions/upload-artifact@v4
28
+ with:
29
+ name: gem-artifact
30
+ path: '*.gem'
31
+ retention-days: 1
32
+ compression-level: 0
33
+
34
+ create-github-release:
35
+ needs: build-release
36
+ name: Create GitHub release
37
+ runs-on: ubuntu-24.04
38
+ permissions:
39
+ contents: write # clone repo and create release
40
+ steps:
41
+ - name: Download gem from GitHub cache
42
+ uses: actions/download-artifact@v5
43
+ with:
44
+ name: gem-artifact
45
+ - name: Create Release
46
+ shell: bash
47
+ env:
48
+ GH_TOKEN: ${{ github.token }}
49
+ run: gh release create --repo ${{ github.repository }} ${{ github.ref_name }} --generate-notes *.gem
50
+
51
+ release-to-github:
52
+ needs: build-release
53
+ name: Release to GitHub
54
+ runs-on: ubuntu-24.04
55
+ permissions:
56
+ packages: write # publish to rubygems.pkg.github.com
57
+ steps:
58
+ - name: Download gem from GitHub cache
59
+ uses: actions/download-artifact@v5
60
+ with:
61
+ name: gem-artifact
62
+ - name: Publish gem to GitHub packages
63
+ run: gem push --host https://rubygems.pkg.github.com/${{ github.repository_owner }} *.gem
64
+ env:
65
+ GEM_HOST_API_KEY: ${{ secrets.GITHUB_TOKEN }}
66
+
67
+ release-to-rubygems:
68
+ needs: build-release
69
+ name: Release gem to rubygems.org
70
+ runs-on: ubuntu-24.04
71
+ environment: release # recommended by rubygems.org
72
+ permissions:
73
+ id-token: write # rubygems.org authentication
74
+ steps:
75
+ - name: Download gem from GitHub cache
76
+ uses: actions/download-artifact@v5
77
+ with:
78
+ name: gem-artifact
79
+ - uses: rubygems/configure-rubygems-credentials@v1.0.0
21
80
  - name: Publish gem to rubygems.org
81
+ shell: bash
22
82
  run: gem push *.gem
23
- env:
24
- GEM_HOST_API_KEY: '${{ secrets.RUBYGEMS_AUTH_TOKEN }}'
25
- - name: Setup GitHub packages access
83
+
84
+ release-verification:
85
+ name: Check that all releases are done
86
+ runs-on: ubuntu-24.04
87
+ permissions:
88
+ contents: read # minimal permissions that we have to grant
89
+ needs:
90
+ - create-github-release
91
+ - release-to-github
92
+ - release-to-rubygems
93
+ steps:
94
+ - name: Download gem from GitHub cache
95
+ uses: actions/download-artifact@v5
96
+ with:
97
+ name: gem-artifact
98
+ - name: Install Ruby
99
+ uses: ruby/setup-ruby@v1
100
+ with:
101
+ ruby-version: 'ruby'
102
+ - name: Wait for release to propagate
103
+ shell: bash
26
104
  run: |
27
- mkdir -p ~/.gem
28
- echo ":github: Bearer ${{ secrets.GITHUB_TOKEN }}" >> ~/.gem/credentials
29
- chmod 0600 ~/.gem/credentials
30
- - name: Publish gem to GitHub packages
31
- run: gem push --key github --host https://rubygems.pkg.github.com/${{ github.repository_owner }} *.gem
105
+ gem install rubygems-await
106
+ gem await *.gem
data/.rubocop.yml CHANGED
@@ -2,3 +2,6 @@
2
2
  inherit_from: .rubocop_todo.yml
3
3
  inherit_gem:
4
4
  voxpupuli-rubocop: rubocop.yml
5
+
6
+ AllCops:
7
+ TargetRubyVersion: 3.2
data/.rubocop_todo.yml CHANGED
@@ -1,6 +1,6 @@
1
1
  # This configuration was generated by
2
- # `rubocop --auto-gen-config`
3
- # on 2025-05-27 12:15:34 UTC using RuboCop version 1.75.7.
2
+ # `rubocop --auto-gen-config --no-auto-gen-timestamp`
3
+ # using RuboCop version 1.75.8.
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
@@ -94,14 +94,6 @@ Style/MixinUsage:
94
94
  Exclude:
95
95
  - 'lib/beaker-rspec/spec_helper.rb'
96
96
 
97
- # Offense count: 1
98
- # This cop supports unsafe autocorrection (--autocorrect-all).
99
- # Configuration parameters: EnforcedStyle.
100
- # SupportedStyles: literals, strict
101
- Style/MutableConstant:
102
- Exclude:
103
- - 'lib/beaker-rspec/version.rb'
104
-
105
97
  # Offense count: 1
106
98
  # This cop supports unsafe autocorrection (--autocorrect-all).
107
99
  # Configuration parameters: RequireEnglish.
data/CHANGELOG.md CHANGED
@@ -2,6 +2,18 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ ## [9.0.0](https://github.com/voxpupuli/beaker-rspec/tree/9.0.0) (2025-08-07)
6
+
7
+ [Full Changelog](https://github.com/voxpupuli/beaker-rspec/compare/8.3.0...9.0.0)
8
+
9
+ **Breaking changes:**
10
+
11
+ - Require Ruby 3.2 or newer [\#150](https://github.com/voxpupuli/beaker-rspec/pull/150) ([bastelfreak](https://github.com/bastelfreak))
12
+
13
+ **Implemented enhancements:**
14
+
15
+ - beaker: Allow 7.x [\#149](https://github.com/voxpupuli/beaker-rspec/pull/149) ([bastelfreak](https://github.com/bastelfreak))
16
+
5
17
  ## [8.3.0](https://github.com/voxpupuli/beaker-rspec/tree/8.3.0) (2025-05-27)
6
18
 
7
19
  [Full Changelog](https://github.com/voxpupuli/beaker-rspec/compare/8.2.0...8.3.0)
data/beaker-rspec.gemspec CHANGED
@@ -13,7 +13,7 @@ Gem::Specification.new do |s|
13
13
  s.description = 'RSpec bindings for beaker, see https://github.com/voxpupuli/beaker'
14
14
  s.license = 'Apache-2.0'
15
15
 
16
- s.required_ruby_version = '>= 2.7.0', '<4.0.0'
16
+ s.required_ruby_version = '>= 3.2.0', '<4.0.0'
17
17
 
18
18
  s.files = `git ls-files`.split("\n")
19
19
  s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
@@ -23,10 +23,10 @@ Gem::Specification.new do |s|
23
23
  s.add_development_dependency 'fakefs', '>= 0.6', '< 4'
24
24
  s.add_development_dependency 'minitest', '~> 5.4'
25
25
  s.add_development_dependency 'rake', '~> 13.0'
26
- s.add_development_dependency 'voxpupuli-rubocop', '~> 3.1.0'
26
+ s.add_development_dependency 'voxpupuli-rubocop', '~> 4.1.0'
27
27
 
28
28
  # Run time dependencies
29
- s.add_dependency 'beaker', '>= 4.0', '< 7'
29
+ s.add_dependency 'beaker', '>= 4.0', '< 8'
30
30
  s.add_dependency 'rspec', '~> 3.0'
31
31
  s.add_dependency 'serverspec', '~> 2'
32
32
  s.add_dependency 'specinfra', '~> 2'
@@ -91,22 +91,22 @@ end
91
91
  module Specinfra
92
92
  # Rewrite the runner to use the appropriate backend based upon platform information
93
93
  class Runner
94
- def self.method_missing(meth, *args)
94
+ def self.method_missing(meth, *)
95
95
  backend = Specinfra.backend
96
96
  node = get_working_node
97
97
  if !node['platform'].include?('windows')
98
98
  processor = Specinfra::Processor
99
99
  if processor.respond_to?(meth)
100
- processor.send(meth, *args)
100
+ processor.send(meth, *)
101
101
  elsif backend.respond_to?(meth)
102
- backend.send(meth, *args)
102
+ backend.send(meth, *)
103
103
  else
104
- run(meth, *args)
104
+ run(meth, *)
105
105
  end
106
106
  elsif backend.respond_to?(meth)
107
- backend.send(meth, *args)
107
+ backend.send(meth, *)
108
108
  else
109
- run(meth, *args)
109
+ run(meth, *)
110
110
  end
111
111
  end
112
112
  end
@@ -148,11 +148,11 @@ end
148
148
  # Used as a container for the two backends, dispatches as windows/nix depending on node platform
149
149
  module Specinfra::Backend
150
150
  class BeakerDispatch < BeakerBase
151
- def dispatch_method(meth, *args)
151
+ def dispatch_method(meth, *)
152
152
  if get_working_node['platform'].include?('windows')
153
- cygwin_backend.send(meth, *args)
153
+ cygwin_backend.send(meth, *)
154
154
  else
155
- exec_backend.send(meth, *args)
155
+ exec_backend.send(meth, *)
156
156
  end
157
157
  end
158
158
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module BeakerRSpec
4
4
  module Version
5
- STRING = '8.3.0'
5
+ STRING = '9.0.0'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beaker-rspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 8.3.0
4
+ version: 9.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vox Pupuli
@@ -63,14 +63,14 @@ dependencies:
63
63
  requirements:
64
64
  - - "~>"
65
65
  - !ruby/object:Gem::Version
66
- version: 3.1.0
66
+ version: 4.1.0
67
67
  type: :development
68
68
  prerelease: false
69
69
  version_requirements: !ruby/object:Gem::Requirement
70
70
  requirements:
71
71
  - - "~>"
72
72
  - !ruby/object:Gem::Version
73
- version: 3.1.0
73
+ version: 4.1.0
74
74
  - !ruby/object:Gem::Dependency
75
75
  name: beaker
76
76
  requirement: !ruby/object:Gem::Requirement
@@ -80,7 +80,7 @@ dependencies:
80
80
  version: '4.0'
81
81
  - - "<"
82
82
  - !ruby/object:Gem::Version
83
- version: '7'
83
+ version: '8'
84
84
  type: :runtime
85
85
  prerelease: false
86
86
  version_requirements: !ruby/object:Gem::Requirement
@@ -90,7 +90,7 @@ dependencies:
90
90
  version: '4.0'
91
91
  - - "<"
92
92
  - !ruby/object:Gem::Version
93
- version: '7'
93
+ version: '8'
94
94
  - !ruby/object:Gem::Dependency
95
95
  name: rspec
96
96
  requirement: !ruby/object:Gem::Requirement
@@ -172,7 +172,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
172
172
  requirements:
173
173
  - - ">="
174
174
  - !ruby/object:Gem::Version
175
- version: 2.7.0
175
+ version: 3.2.0
176
176
  - - "<"
177
177
  - !ruby/object:Gem::Version
178
178
  version: 4.0.0
@@ -182,7 +182,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
182
182
  - !ruby/object:Gem::Version
183
183
  version: '0'
184
184
  requirements: []
185
- rubygems_version: 3.6.7
185
+ rubygems_version: 3.6.9
186
186
  specification_version: 4
187
187
  summary: RSpec bindings for beaker
188
188
  test_files: []