beaker-rspec 8.0.1 → 8.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7eb89288be6b420c005b4e61a7e797e6b57765eff9c3903b6608372520ad78b1
4
- data.tar.gz: 83cadbf9863069e1543ef05446b795e33d3be3fa6bfeb94db67bd9b123617675
3
+ metadata.gz: 6c46429320ae5aa83876303c5dd74b4e616bf6b6baf6b675a425b535c7faa282
4
+ data.tar.gz: f71fe4b5b8026cddc415701f66238feb7a9109026facf8595c534e44de6a1a07
5
5
  SHA512:
6
- metadata.gz: 8f8b543ab3b6345d93cf35ce43630711baf9408ceae2657d7e7d40e814008648bd229f89c55b9c067680ab3eb4135ffafef328d0e48e96da0f7922533875256d
7
- data.tar.gz: f6af26db672f1f1ad50c7e2897e2122a86d955d4055039cd936e7453cfb7545678fbd68f41cb77b8990ef689fdadc2f4bce19bb781ab64d12a04539ebc48fca7
6
+ metadata.gz: dea35921662d220f1d704305a549cb460f22bd18dbb0d9464b3e8a9302ea0607a7593658c702008e240a7782af85b09b70f9172f37351d9678ec363a0fc0bf09
7
+ data.tar.gz: 281cdf66ea2dcf41471c48b64b9e03d18089ebdcf396ea9325676687eb50505815b67852aef2a359b6145e4278957b0da56d3b1f170e4d8522436335f47c6096
@@ -10,14 +10,14 @@ jobs:
10
10
  runs-on: ubuntu-latest
11
11
  if: github.repository_owner == 'voxpupuli'
12
12
  steps:
13
- - uses: actions/checkout@v3
14
- - name: Install Ruby 3.2
13
+ - uses: actions/checkout@v4
14
+ - name: Install Ruby 3.3
15
15
  uses: ruby/setup-ruby@v1
16
16
  with:
17
- ruby-version: '3.2'
17
+ ruby-version: '3.3'
18
18
  bundler: 'none'
19
19
  - name: Build gem
20
- run: gem build *.gemspec
20
+ run: gem build --strict --verbose *.gemspec
21
21
  - name: Publish gem to rubygems.org
22
22
  run: gem push *.gem
23
23
  env:
@@ -14,11 +14,11 @@ jobs:
14
14
  rubocop:
15
15
  runs-on: ubuntu-latest
16
16
  steps:
17
- - uses: actions/checkout@v3
17
+ - uses: actions/checkout@v4
18
18
  - name: Install Ruby ${{ matrix.ruby }}
19
19
  uses: ruby/setup-ruby@v1
20
20
  with:
21
- ruby-version: "3.2"
21
+ ruby-version: "3.3"
22
22
  bundler-cache: true
23
23
  - name: Run Rubocop
24
24
  run: bundle exec rake rubocop
@@ -32,16 +32,17 @@ jobs:
32
32
  - "3.0"
33
33
  - "3.1"
34
34
  - "3.2"
35
+ - "3.3"
35
36
  name: Ruby ${{ matrix.ruby }}
36
37
  steps:
37
- - uses: actions/checkout@v3
38
+ - uses: actions/checkout@v4
38
39
  - name: Install Ruby ${{ matrix.ruby }}
39
40
  uses: ruby/setup-ruby@v1
40
41
  with:
41
42
  ruby-version: ${{ matrix.ruby }}
42
43
  bundler-cache: true
43
44
  - name: Verify gem builds
44
- run: gem build beaker-rspec.gemspec
45
+ run: gem build --strict --verbose *.gemspec
45
46
  - name: Run acceptance tests
46
47
  run: bundle exec rake beaker
47
48
 
data/.rubocop_todo.yml CHANGED
@@ -1,12 +1,14 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config`
3
- # on 2023-03-27 16:58:25 UTC using RuboCop version 1.48.1.
3
+ # on 2024-05-28 09:46:46 UTC using RuboCop version 1.63.5.
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
7
7
  # versions of RuboCop, may require this file to be generated again.
8
8
 
9
9
  # Offense count: 3
10
+ # This cop supports unsafe autocorrection (--autocorrect-all).
11
+ # Configuration parameters: AutoCorrect.
10
12
  Lint/UselessAssignment:
11
13
  Exclude:
12
14
  - 'lib/beaker-rspec/helpers/serverspec.rb'
@@ -22,6 +24,7 @@ Naming/AccessorMethodName:
22
24
  # AllowedAcronyms: CLI, DSL, ACL, API, ASCII, CPU, CSS, DNS, EOF, GUID, HTML, HTTP, HTTPS, ID, IP, JSON, LHS, QPS, RAM, RHS, RPC, SLA, SMTP, SQL, SSH, TCP, TLS, TTL, UDP, UI, UID, UUID, URI, URL, UTF8, VM, XML, XMPP, XSRF, XSS
23
25
  Naming/FileName:
24
26
  Exclude:
27
+ - 'Rakefile.rb'
25
28
  - 'lib/beaker-rspec.rb'
26
29
 
27
30
  # Offense count: 1
data/CHANGELOG.md CHANGED
@@ -2,6 +2,35 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ ## [8.2.0](https://github.com/voxpupuli/beaker-rspec/tree/8.2.0) (2024-05-28)
6
+
7
+ [Full Changelog](https://github.com/voxpupuli/beaker-rspec/compare/8.1.0...8.2.0)
8
+
9
+ **Implemented enhancements:**
10
+
11
+ - beaker: Allow 6.x [\#137](https://github.com/voxpupuli/beaker-rspec/pull/137) ([bastelfreak](https://github.com/bastelfreak))
12
+ - Add Ruby 3.3 to CI [\#135](https://github.com/voxpupuli/beaker-rspec/pull/135) ([bastelfreak](https://github.com/bastelfreak))
13
+
14
+ **Fixed bugs:**
15
+
16
+ - Correct BEAKER\_debug text that it respects no [\#134](https://github.com/voxpupuli/beaker-rspec/pull/134) ([ekohl](https://github.com/ekohl))
17
+
18
+ **Merged pull requests:**
19
+
20
+ - voxpupuli-rubocop: Require 2.7.0 [\#136](https://github.com/voxpupuli/beaker-rspec/pull/136) ([bastelfreak](https://github.com/bastelfreak))
21
+
22
+ ## [8.1.0](https://github.com/voxpupuli/beaker-rspec/tree/8.1.0) (2023-07-11)
23
+
24
+ [Full Changelog](https://github.com/voxpupuli/beaker-rspec/compare/8.0.1...8.1.0)
25
+
26
+ **Implemented enhancements:**
27
+
28
+ - fakefs: Allow 2.x [\#131](https://github.com/voxpupuli/beaker-rspec/pull/131) ([bastelfreak](https://github.com/bastelfreak))
29
+
30
+ **Merged pull requests:**
31
+
32
+ - Drop docs dev dependencies & CI: Build gems with strictness and verbosity [\#130](https://github.com/voxpupuli/beaker-rspec/pull/130) ([bastelfreak](https://github.com/bastelfreak))
33
+
5
34
  ## [8.0.1](https://github.com/voxpupuli/beaker-rspec/tree/8.0.1) (2023-05-05)
6
35
 
7
36
  [Full Changelog](https://github.com/voxpupuli/beaker-rspec/compare/8.0.0...8.0.1)
data/README.md CHANGED
@@ -48,7 +48,7 @@ cd .vagrant/beaker_vagrant_files/default.yml ; vagrant destroy --force
48
48
  ### Supported ENV variables
49
49
 
50
50
  * `BEAKER_color`: set to `no` to disable color output
51
- * `BEAKER_debug`: set to any value to enable beaker debug logging
51
+ * `BEAKER_debug`: set to any value other than `no` to enable beaker debug logging
52
52
  * `BEAKER_destroy`: set to `no` to keep the VMs after the test run. Set to `onpass` to keep the VMs around only after a test failure.
53
53
  * `BEAKER_keyfile`: specify alternate SSH key to access the test VMs
54
54
  * `BEAKER_options_file`: set to the file path of the options file to be used as the default options for beaker. Equivalent to the `--options-file` parameter.
data/Rakefile CHANGED
@@ -12,7 +12,7 @@ rescue LoadError
12
12
  else
13
13
  GitHubChangelogGenerator::RakeTask.new :changelog do |config|
14
14
  config.header = "# Changelog\n\nAll notable changes to this project will be documented in this file."
15
- config.exclude_labels = %w[duplicate question invalid wontfix wont-fix skip-changelog]
15
+ config.exclude_labels = %w[duplicate question invalid wontfix wont-fix skip-changelog github_actions]
16
16
  config.user = 'voxpupuli'
17
17
  config.project = 'beaker-rspec'
18
18
  config.future_release = Gem::Specification.load("#{config.project}.gemspec").version
@@ -20,14 +20,7 @@ else
20
20
  end
21
21
 
22
22
  begin
23
- require 'rubocop/rake_task'
23
+ require 'voxpupuli/rubocop/rake'
24
24
  rescue LoadError
25
- # RuboCop is an optional group
26
- else
27
- RuboCop::RakeTask.new(:rubocop) do |task|
28
- # These make the rubocop experience maybe slightly less terrible
29
- task.options = ['--display-cop-names', '--display-style-guide', '--extra-details']
30
- # Use Rubocop's Github Actions formatter if possible
31
- task.formatters << 'github' if ENV['GITHUB_ACTIONS'] == 'true'
32
- end
25
+ # the voxpupuli-rubocop gem is optional
33
26
  end
data/beaker-rspec.gemspec CHANGED
@@ -18,17 +18,13 @@ Gem::Specification.new do |s|
18
18
  s.require_paths = ['lib']
19
19
 
20
20
  # Testing dependencies
21
- s.add_development_dependency 'fakefs', '>= 0.6', '< 2'
21
+ s.add_development_dependency 'fakefs', '>= 0.6', '< 3'
22
22
  s.add_development_dependency 'minitest', '~> 5.4'
23
23
  s.add_development_dependency 'rake', '~> 13.0'
24
- s.add_development_dependency 'voxpupuli-rubocop', '~> 1.3'
25
-
26
- # Documentation dependencies
27
- s.add_development_dependency 'thin'
28
- s.add_development_dependency 'yard'
24
+ s.add_development_dependency 'voxpupuli-rubocop', '~> 2.7.0'
29
25
 
30
26
  # Run time dependencies
31
- s.add_runtime_dependency 'beaker', '>= 4.0', '< 6'
27
+ s.add_runtime_dependency 'beaker', '>= 4.0', '< 7'
32
28
  s.add_runtime_dependency 'rspec', '~> 3.0'
33
29
  s.add_runtime_dependency 'serverspec', '~> 2'
34
30
  s.add_runtime_dependency 'specinfra', '~> 2'
@@ -32,17 +32,17 @@ RSpec.configure do |c|
32
32
  debug: ENV['BEAKER_DEBUG'] || ENV['BEAKER_debug'] || ENV.fetch('RS_DEBUG', nil),
33
33
  destroy: ENV['BEAKER_DESTROY'] || ENV['BEAKER_destroy'] || ENV.fetch('RS_DESTROY', nil),
34
34
  optionsfile: ENV['BEAKER_OPTIONS_FILE'] || ENV['BEAKER_options_file'] || ENV.fetch('RS_OPTIONS_FILE', nil),
35
- }.delete_if { |_key, value| value.nil? }
35
+ }.compact
36
36
  # combine defaults and env_vars to determine overall options
37
37
  options = defaults.merge(env_vars)
38
38
 
39
39
  # process options to construct beaker command string
40
40
  nodesetdir = options[:nodesetdir] || File.join('spec', 'acceptance', 'nodesets')
41
41
  nodesetfile = options[:nodesetfile] || File.join(nodesetdir, "#{options[:nodeset]}.yml")
42
- fresh_nodes = options[:provision] == 'no' ? '--no-provision' : nil
42
+ fresh_nodes = (options[:provision] == 'no') ? '--no-provision' : nil
43
43
  keyfile = options[:keyfile] ? ['--keyfile', options[:keyfile]] : nil
44
- debug = options[:debug] && options[:debug] != 'no' ? ['--log-level', 'debug'] : nil
45
- color = options[:color] == 'no' ? ['--no-color'] : nil
44
+ debug = (options[:debug] && options[:debug] != 'no') ? ['--log-level', 'debug'] : nil
45
+ color = (options[:color] == 'no') ? ['--no-color'] : nil
46
46
  options_file = options[:optionsfile] ? ['--options-file', options[:optionsfile]] : nil
47
47
 
48
48
  # Configure all nodes in nodeset
@@ -1,5 +1,5 @@
1
1
  module BeakerRSpec
2
2
  module Version
3
- STRING = '8.0.1'
3
+ STRING = '8.2.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beaker-rspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 8.0.1
4
+ version: 8.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vox Pupuli
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-05 00:00:00.000000000 Z
11
+ date: 2024-05-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fakefs
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '0.6'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '2'
22
+ version: '3'
23
23
  type: :development
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '0.6'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '2'
32
+ version: '3'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: minitest
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -64,42 +64,14 @@ dependencies:
64
64
  requirements:
65
65
  - - "~>"
66
66
  - !ruby/object:Gem::Version
67
- version: '1.3'
67
+ version: 2.7.0
68
68
  type: :development
69
69
  prerelease: false
70
70
  version_requirements: !ruby/object:Gem::Requirement
71
71
  requirements:
72
72
  - - "~>"
73
73
  - !ruby/object:Gem::Version
74
- version: '1.3'
75
- - !ruby/object:Gem::Dependency
76
- name: thin
77
- requirement: !ruby/object:Gem::Requirement
78
- requirements:
79
- - - ">="
80
- - !ruby/object:Gem::Version
81
- version: '0'
82
- type: :development
83
- prerelease: false
84
- version_requirements: !ruby/object:Gem::Requirement
85
- requirements:
86
- - - ">="
87
- - !ruby/object:Gem::Version
88
- version: '0'
89
- - !ruby/object:Gem::Dependency
90
- name: yard
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'
74
+ version: 2.7.0
103
75
  - !ruby/object:Gem::Dependency
104
76
  name: beaker
105
77
  requirement: !ruby/object:Gem::Requirement
@@ -109,7 +81,7 @@ dependencies:
109
81
  version: '4.0'
110
82
  - - "<"
111
83
  - !ruby/object:Gem::Version
112
- version: '6'
84
+ version: '7'
113
85
  type: :runtime
114
86
  prerelease: false
115
87
  version_requirements: !ruby/object:Gem::Requirement
@@ -119,7 +91,7 @@ dependencies:
119
91
  version: '4.0'
120
92
  - - "<"
121
93
  - !ruby/object:Gem::Version
122
- version: '6'
94
+ version: '7'
123
95
  - !ruby/object:Gem::Dependency
124
96
  name: rspec
125
97
  requirement: !ruby/object:Gem::Requirement
@@ -212,7 +184,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
212
184
  - !ruby/object:Gem::Version
213
185
  version: '0'
214
186
  requirements: []
215
- rubygems_version: 3.4.10
187
+ rubygems_version: 3.5.9
216
188
  signing_key:
217
189
  specification_version: 4
218
190
  summary: RSpec bindings for beaker