puppet-debugger 1.5.0 → 1.6.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 +4 -4
- data/.gitlab-ci.yml +13 -2
- data/CHANGELOG.md +5 -0
- data/Gemfile +7 -4
- data/lib/puppet-debugger/cli.rb +6 -2
- data/lib/puppet-debugger/support.rb +1 -2
- data/lib/puppet-debugger/version.rb +1 -1
- data/puppet-debugger.gemspec +1 -1
- data/spec/support_spec.rb +2 -2
- metadata +2 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f6b9c123d8e301638f736a18ee3a6330e677e8a74d21ae6a99725f1f06c3251b
|
4
|
+
data.tar.gz: 7a2508ee6b72443c40ca67150768bae8f60ea58845681f52094547d645d053ad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2925d1834927404340779da63fc1eabb2d39012a49cd9579a2deb45c6fd48d7b24a99ad18b84599bcee30d9ea4053ba80e493554749fe2bcf5883b13ae1a2e7c
|
7
|
+
data.tar.gz: 0beca4164a1f6aeb6a698ac7e960a4dea353f7c870f400ab93035a0544c523022221bc18cb40882803cbe32ed64873f98ad6cab3be8dae9d1c198547896b3b0b
|
data/.gitlab-ci.yml
CHANGED
@@ -24,7 +24,7 @@ stages:
|
|
24
24
|
script:
|
25
25
|
- rm -f Gemfile.lock
|
26
26
|
- bundle install --without development validate
|
27
|
-
- puppet module install puppetlabs-stdlib --version 9.4.1
|
27
|
+
- bundle exec puppet module install puppetlabs-stdlib --version 9.4.1
|
28
28
|
- bundle exec rspec
|
29
29
|
tags:
|
30
30
|
- ruby
|
@@ -115,7 +115,7 @@ puppet_7_ruby27:
|
|
115
115
|
<<: *ruby27
|
116
116
|
|
117
117
|
puppet_8_ruby3.2:
|
118
|
-
allow_failure:
|
118
|
+
allow_failure: false
|
119
119
|
variables:
|
120
120
|
PUPPET_GEM_VERSION: "~> 8.0"
|
121
121
|
<<: *puppet_job_def_ruby30plus
|
@@ -126,6 +126,17 @@ puppet_8_ruby3.4:
|
|
126
126
|
variables:
|
127
127
|
PUPPET_GEM_VERSION: "~> 8.2"
|
128
128
|
<<: *puppet_job_def_ruby30plus
|
129
|
+
<<: *ruby34
|
130
|
+
|
131
|
+
openvox_puppet_8_ruby3.2:
|
132
|
+
allow_failure: false
|
133
|
+
variables:
|
134
|
+
USE_OPENVOX: true
|
135
|
+
PUPPET_GEM_VERSION: "8.15.0"
|
136
|
+
<<: *puppet_job_def_ruby30plus
|
129
137
|
<<: *ruby32
|
130
138
|
|
131
139
|
|
140
|
+
|
141
|
+
|
142
|
+
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,11 @@
|
|
2
2
|
|
3
3
|
## Unreleased
|
4
4
|
|
5
|
+
## 1.6 (4/23/25)
|
6
|
+
- Add support for openvox puppet
|
7
|
+
|
8
|
+
This drops the require of puppet gem because of the recent changes in the community opensource version and now closed source legacy version. Puppet or Openvox gem is still required just not stated in the gemspec file.
|
9
|
+
|
5
10
|
## 1.5 (3/28/25)
|
6
11
|
- Fix legacy facterdb fact issue
|
7
12
|
|
data/Gemfile
CHANGED
@@ -1,17 +1,20 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
source 'http://rubygems.org'
|
4
|
-
gem 'awesome_print', '~> 1.
|
5
|
-
gem 'facterdb', '>= 0.
|
4
|
+
gem 'awesome_print', '~> 1.9'
|
5
|
+
gem 'facterdb', '>= 2.0.0'
|
6
6
|
gem 'pluginator', '~> 1.5.0'
|
7
|
-
gem 'puppet', ENV['PUPPET_GEM_VERSION'] || '~> 8'
|
8
7
|
gem 'rb-readline'
|
9
8
|
gem 'table_print'
|
10
9
|
gem 'tty-pager'
|
10
|
+
if ENV['USE_OPENVOX']
|
11
|
+
gem 'openvox', git: 'https://github.com/OpenVoxProject/puppet.git', ref: ENV['PUPPET_GEM_VERSION'] || '8.15.0'
|
12
|
+
else
|
13
|
+
gem 'puppet', ENV['PUPPET_GEM_VERSION'] || '~> 8'
|
14
|
+
end
|
11
15
|
#gem 'bolt' if Gem::Version(ENV['PUPPET_GEM_VERSION'])
|
12
16
|
|
13
17
|
group :test, :development do
|
14
|
-
# ruby versions prior to 2.0 cannot install json_pure 2.0.2+
|
15
18
|
gem 'bundler'
|
16
19
|
gem 'pry'
|
17
20
|
gem 'puppet-debugger', path: './'
|
data/lib/puppet-debugger/cli.rb
CHANGED
@@ -1,6 +1,9 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'puppet'
|
2
|
+
begin
|
3
|
+
require 'puppet'
|
4
|
+
rescue LoadError
|
5
|
+
abort "puppet-debugger requires either the 'puppet' or 'openvox' gem to be installed."
|
6
|
+
end
|
4
7
|
require 'readline'
|
5
8
|
require 'json'
|
6
9
|
require 'puppet-debugger/support'
|
@@ -16,6 +19,7 @@ module PuppetDebugger
|
|
16
19
|
extend Forwardable
|
17
20
|
attr_accessor :settings, :log_level, :in_buffer, :out_buffer, :html_mode, :extra_prompt, :bench
|
18
21
|
attr_reader :source_file, :source_line_num, :hooks, :options
|
22
|
+
|
19
23
|
def_delegators :hooks, :exec_hook, :add_hook, :delete_hook
|
20
24
|
OUT_SYMBOL = ' => '
|
21
25
|
def initialize(options = {})
|
@@ -142,7 +142,7 @@ module PuppetDebugger
|
|
142
142
|
file
|
143
143
|
end
|
144
144
|
|
145
|
-
# @return [Bolt::PuppetDB::Client]
|
145
|
+
# @return [Bolt::PuppetDB::Client]
|
146
146
|
def bolt_pdb_client
|
147
147
|
@bolt_pdb_client ||=
|
148
148
|
begin
|
@@ -196,7 +196,6 @@ module PuppetDebugger
|
|
196
196
|
def puppet_lib_dir
|
197
197
|
# returns something like "/Library/Ruby/Gems/2.0.0/gems/puppet-4.2.2/lib/puppet.rb"
|
198
198
|
# "/Users/adam/.rbenv/versions/2.2.6/lib/ruby/gems/2.2.0/gems/puppet-4.9.4/lib"
|
199
|
-
|
200
199
|
# this is only useful when returning a namespace with the functions
|
201
200
|
@puppet_lib_dir ||= File.dirname(Puppet.method(:[]).source_location.first)
|
202
201
|
end
|
data/puppet-debugger.gemspec
CHANGED
@@ -36,7 +36,7 @@ Gem::Specification.new do |s|
|
|
36
36
|
s.add_runtime_dependency('bundler')
|
37
37
|
s.add_runtime_dependency('facterdb', ['>= 0.4.0'])
|
38
38
|
s.add_runtime_dependency('pluginator', ['~> 1.5.0'])
|
39
|
-
s.add_runtime_dependency('puppet', ['>= 6'])
|
39
|
+
# s.add_runtime_dependency('puppet', ['>= 6']) - since there is now puppet and openvox, this is now a grey dependency
|
40
40
|
# s.add_runtime_dependency('bolt', ['>= 2.42.0'])
|
41
41
|
s.add_runtime_dependency('rb-readline', ['>= 0.5.5'])
|
42
42
|
s.add_runtime_dependency('table_print', ['>= 1.0.0'])
|
data/spec/support_spec.rb
CHANGED
@@ -17,7 +17,7 @@ describe 'support' do
|
|
17
17
|
end
|
18
18
|
|
19
19
|
let(:puppet_version) do
|
20
|
-
|
20
|
+
Puppet.version
|
21
21
|
end
|
22
22
|
|
23
23
|
let(:manifest_file) do
|
@@ -41,7 +41,7 @@ describe 'support' do
|
|
41
41
|
end
|
42
42
|
|
43
43
|
it 'should return a puppet version' do
|
44
|
-
expect(puppet_version).to match(
|
44
|
+
expect(puppet_version).to match(/\d\.\d+.\d/)
|
45
45
|
end
|
46
46
|
|
47
47
|
it 'should return lib dirs' do
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: puppet-debugger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Corey Osman
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-
|
10
|
+
date: 2025-04-23 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: awesome_print
|
@@ -65,20 +65,6 @@ dependencies:
|
|
65
65
|
- - "~>"
|
66
66
|
- !ruby/object:Gem::Version
|
67
67
|
version: 1.5.0
|
68
|
-
- !ruby/object:Gem::Dependency
|
69
|
-
name: puppet
|
70
|
-
requirement: !ruby/object:Gem::Requirement
|
71
|
-
requirements:
|
72
|
-
- - ">="
|
73
|
-
- !ruby/object:Gem::Version
|
74
|
-
version: '6'
|
75
|
-
type: :runtime
|
76
|
-
prerelease: false
|
77
|
-
version_requirements: !ruby/object:Gem::Requirement
|
78
|
-
requirements:
|
79
|
-
- - ">="
|
80
|
-
- !ruby/object:Gem::Version
|
81
|
-
version: '6'
|
82
68
|
- !ruby/object:Gem::Dependency
|
83
69
|
name: rb-readline
|
84
70
|
requirement: !ruby/object:Gem::Requirement
|