beaker-docker 2.6.0 → 3.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: 9461ac90b3758ec88518396e0de669dab94f8e208565e8bd0489037aeb17bd96
4
- data.tar.gz: a14e3cdbed23ffa9e9b189ec3338572c6f8ea16ce63f8e1e513d94638b337ba7
3
+ metadata.gz: 17c2d4bee3cddacd85d34a58f05cfe7bacd408798b33fda5ad2dae86f6dfd54b
4
+ data.tar.gz: 7cace9fa1d40da17c5688d7c1e65e14ddbc4e6258af775443ce119eeccf06e80
5
5
  SHA512:
6
- metadata.gz: 107f131290bdf17ba2a768315a93bc7ba76bfa548a493ca557136c79ab3ea8fc35ef8071b24da72540b54d2c2e5cfcc7418a019f0e6f9aa94435ce79b2c4aafa
7
- data.tar.gz: 6aad94b620154a24ad669b49af1df9ecce4e22a0e833d6aa35e21d15c953eaa16dd5b807815bd8d1c054a4b758cfb04108226ca3505f2ae6a5df4234def243cf
6
+ metadata.gz: 153752e625e0b4326187f090d232ec7463ef433d464049817d701d153d861673dda80f90a6005bf07937fc0487e80b1fd18c252cc30a59386f82e40c0d43ae70
7
+ data.tar.gz: 6f027a769a4001fb1c1ec408e3931a3638765d47821077b8673844ceaeb0f4c96191174964be663e7494a431e3d69928b30a7debf1ccf106a78d32173140fa7a
@@ -0,0 +1,41 @@
1
+ ---
2
+ # https://docs.github.com/en/repositories/releasing-projects-on-github/automatically-generated-release-notes
3
+
4
+ changelog:
5
+ exclude:
6
+ labels:
7
+ - duplicate
8
+ - invalid
9
+ - modulesync
10
+ - question
11
+ - skip-changelog
12
+ - wont-fix
13
+ - wontfix
14
+ - github_actions
15
+
16
+ categories:
17
+ - title: Breaking Changes 🛠
18
+ labels:
19
+ - backwards-incompatible
20
+
21
+ - title: New Features 🎉
22
+ labels:
23
+ - enhancement
24
+
25
+ - title: Bug Fixes 🐛
26
+ labels:
27
+ - bug
28
+ - bugfix
29
+
30
+ - title: Documentation Updates 📚
31
+ labels:
32
+ - documentation
33
+ - docs
34
+
35
+ - title: Dependency Updates ⬆️
36
+ labels:
37
+ - dependencies
38
+
39
+ - title: Other Changes
40
+ labels:
41
+ - "*"
@@ -1,33 +1,106 @@
1
1
  ---
2
- name: Release
2
+ name: Gem Release
3
3
 
4
4
  on:
5
5
  push:
6
6
  tags:
7
7
  - '*'
8
8
 
9
+ permissions: {}
10
+
9
11
  jobs:
10
- release:
11
- runs-on: ubuntu-24.04
12
+ build-release:
13
+ # Prevent releases from forked repositories
12
14
  if: github.repository_owner == 'voxpupuli'
15
+ name: Build the gem
16
+ runs-on: ubuntu-24.04
13
17
  steps:
14
18
  - uses: actions/checkout@v4
15
- - name: Install Ruby 3.4
19
+ - name: Install Ruby
16
20
  uses: ruby/setup-ruby@v1
17
21
  with:
18
- ruby-version: '3.4'
19
- env:
20
- BUNDLE_WITHOUT: release
22
+ ruby-version: 'ruby'
21
23
  - name: Build gem
22
- 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
23
80
  - name: Publish gem to rubygems.org
81
+ shell: bash
24
82
  run: gem push *.gem
25
- env:
26
- GEM_HOST_API_KEY: '${{ secrets.RUBYGEMS_AUTH_TOKEN }}'
27
- - 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
28
104
  run: |
29
- mkdir -p ~/.gem
30
- echo ":github: Bearer ${{ secrets.GITHUB_TOKEN }}" >> ~/.gem/credentials
31
- chmod 0600 ~/.gem/credentials
32
- - name: Publish gem to GitHub packages
33
- run: gem push --key github --host https://rubygems.pkg.github.com/voxpupuli *.gem
105
+ gem install rubygems-await
106
+ gem await *.gem
@@ -7,8 +7,8 @@ on:
7
7
  branches:
8
8
  - master
9
9
 
10
- env:
11
- BUNDLE_WITHOUT: release
10
+ permissions:
11
+ contents: read
12
12
 
13
13
  jobs:
14
14
  rubocop_and_matrix:
@@ -65,24 +65,25 @@ jobs:
65
65
  - name: Run acceptance tests
66
66
  run: bundle exec rake test:acceptance
67
67
 
68
- beaker_in_container:
69
- runs-on: ubuntu-24.04
70
- needs: rubocop_and_matrix
71
- name: Docker - Beaker in container connection test
72
- steps:
73
- - uses: actions/checkout@v4
74
- # use this and not container key from gha to not have a docker network from github
75
- - name: Run Beaker in docker container
76
- uses: addnab/docker-run-action@v3
77
- with:
78
- image: puppet/puppet-dev-tools:2023-02-24-1bca42e
79
- options: -v ${{ github.workspace }}:/work
80
- run: |
81
- cd /work
82
- ls -la
83
- bundle install
84
- export DOCKER_IN_DOCKER=true
85
- bundle exec rake test:acceptance
68
+ # this job is currently broken because puppet/puppet-dev-tools:2023-02-24-1bca42e is too old
69
+ #beaker_in_container:
70
+ # runs-on: ubuntu-24.04
71
+ # needs: rubocop_and_matrix
72
+ # name: Docker - Beaker in container connection test
73
+ # steps:
74
+ # - uses: actions/checkout@v4
75
+ # # use this and not container key from gha to not have a docker network from github
76
+ # - name: Run Beaker in docker container
77
+ # uses: addnab/docker-run-action@v3
78
+ # with:
79
+ # image: puppet/puppet-dev-tools:2023-02-24-1bca42e
80
+ # options: -v ${{ github.workspace }}:/work
81
+ # run: |
82
+ # cd /work
83
+ # ls -la
84
+ # bundle install
85
+ # export DOCKER_IN_DOCKER=true
86
+ # bundle exec rake test:acceptance
86
87
 
87
88
  # verifies that podman service is a dropin replacement for docker
88
89
  podman:
@@ -111,7 +112,7 @@ jobs:
111
112
  needs:
112
113
  - rubocop_and_matrix
113
114
  - docker
114
- - beaker_in_container
115
+ # - beaker_in_container
115
116
  - podman
116
117
  - rspec
117
118
  runs-on: ubuntu-24.04
data/.rubocop.yml CHANGED
@@ -8,3 +8,6 @@ Naming/FileName:
8
8
  Description: Some files violates the snake_case convention
9
9
  Exclude:
10
10
  - 'lib/beaker-docker.rb'
11
+
12
+ AllCops:
13
+ 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 19:37:43 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
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## [3.0.0](https://github.com/voxpupuli/beaker-docker/tree/3.0.0) (2025-08-11)
4
+
5
+ [Full Changelog](https://github.com/voxpupuli/beaker-docker/compare/2.6.0...3.0.0)
6
+
7
+ **Breaking changes:**
8
+
9
+ - Require Ruby 3.2 or newer [\#163](https://github.com/voxpupuli/beaker-docker/pull/163) ([bastelfreak](https://github.com/bastelfreak))
10
+
11
+ **Implemented enhancements:**
12
+
13
+ - beaker: Allow 7.x [\#162](https://github.com/voxpupuli/beaker-docker/pull/162) ([bastelfreak](https://github.com/bastelfreak))
14
+
3
15
  ## [2.6.0](https://github.com/voxpupuli/beaker-docker/tree/2.6.0) (2025-05-28)
4
16
 
5
17
  [Full Changelog](https://github.com/voxpupuli/beaker-docker/compare/2.5.2...2.6.0)
data/Gemfile CHANGED
@@ -4,7 +4,7 @@ source ENV['GEM_SOURCE'] || 'https://rubygems.org'
4
4
 
5
5
  gemspec
6
6
 
7
- group :release do
8
- gem 'faraday-retry', require: false
9
- gem 'github_changelog_generator', require: false
7
+ group :release, optional: true do
8
+ gem 'faraday-retry', '~> 2.1', require: false
9
+ gem 'github_changelog_generator', '~> 1.16.4', require: false
10
10
  end
@@ -22,16 +22,16 @@ Gem::Specification.new do |s|
22
22
  s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
23
23
  s.require_paths = ['lib']
24
24
 
25
- s.required_ruby_version = '>= 2.7', '< 4'
25
+ s.required_ruby_version = '>= 3.2', '< 4'
26
26
 
27
27
  # Testing dependencies
28
28
  s.add_development_dependency 'fakefs', '>= 1.3', '< 4'
29
29
  s.add_development_dependency 'rake', '~> 13.0'
30
30
  s.add_development_dependency 'rspec', '~> 3.0'
31
- s.add_development_dependency 'voxpupuli-rubocop', '~> 3.1.0'
31
+ s.add_development_dependency 'voxpupuli-rubocop', '~> 4.1.0'
32
32
 
33
33
  # Run time dependencies
34
- s.add_dependency 'beaker', '>= 4', '< 7'
34
+ s.add_dependency 'beaker', '>= 4', '< 8'
35
35
  s.add_dependency 'docker-api', '~> 2.3'
36
36
  # excon is a docker-api dependency, 1.2.6 is broken
37
37
  # https://github.com/excon/excon/issues/884
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BeakerDocker
4
- VERSION = '2.6.0'
4
+ VERSION = '3.0.0'
5
5
  end
data/spec/spec_helper.rb CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  require 'beaker'
4
4
 
5
- Dir['./lib/beaker/hypervisor/*.rb'].sort.each { |file| require file }
5
+ Dir['./lib/beaker/hypervisor/*.rb'].each { |file| require file }
6
6
 
7
7
  # setup & require beaker's spec_helper.rb
8
8
  beaker_gem_spec = Gem::Specification.find_by_name('beaker')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beaker-docker
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.0
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vox Pupuli
@@ -66,14 +66,14 @@ dependencies:
66
66
  requirements:
67
67
  - - "~>"
68
68
  - !ruby/object:Gem::Version
69
- version: 3.1.0
69
+ version: 4.1.0
70
70
  type: :development
71
71
  prerelease: false
72
72
  version_requirements: !ruby/object:Gem::Requirement
73
73
  requirements:
74
74
  - - "~>"
75
75
  - !ruby/object:Gem::Version
76
- version: 3.1.0
76
+ version: 4.1.0
77
77
  - !ruby/object:Gem::Dependency
78
78
  name: beaker
79
79
  requirement: !ruby/object:Gem::Requirement
@@ -83,7 +83,7 @@ dependencies:
83
83
  version: '4'
84
84
  - - "<"
85
85
  - !ruby/object:Gem::Version
86
- version: '7'
86
+ version: '8'
87
87
  type: :runtime
88
88
  prerelease: false
89
89
  version_requirements: !ruby/object:Gem::Requirement
@@ -93,7 +93,7 @@ dependencies:
93
93
  version: '4'
94
94
  - - "<"
95
95
  - !ruby/object:Gem::Version
96
- version: '7'
96
+ version: '8'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: docker-api
99
99
  requirement: !ruby/object:Gem::Requirement
@@ -158,6 +158,7 @@ extra_rdoc_files: []
158
158
  files:
159
159
  - ".editorconfig"
160
160
  - ".github/dependabot.yml"
161
+ - ".github/release.yml"
161
162
  - ".github/workflows/release.yml"
162
163
  - ".github/workflows/test.yml"
163
164
  - ".gitignore"
@@ -193,7 +194,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
193
194
  requirements:
194
195
  - - ">="
195
196
  - !ruby/object:Gem::Version
196
- version: '2.7'
197
+ version: '3.2'
197
198
  - - "<"
198
199
  - !ruby/object:Gem::Version
199
200
  version: '4'
@@ -203,7 +204,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
203
204
  - !ruby/object:Gem::Version
204
205
  version: '0'
205
206
  requirements: []
206
- rubygems_version: 3.6.7
207
+ rubygems_version: 3.6.9
207
208
  specification_version: 4
208
209
  summary: Docker hypervisor for Beaker acceptance testing framework
209
210
  test_files: []