puppet-debugger 1.3.0 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitlab-ci.yml +47 -46
- data/.rubocop_todo.yml +1 -1
- data/CHANGELOG.md +5 -0
- data/Gemfile +2 -2
- data/lib/plugins/puppet-debugger/input_responders/datatypes.rb +4 -3
- data/lib/puppet-debugger/debugger_code.rb +1 -1
- data/lib/puppet-debugger/plugin_test_helper.rb +1 -1
- data/lib/puppet-debugger/version.rb +1 -1
- data/puppet-debugger.gemspec +5 -5
- data/spec/input_responders/exit_spec.rb +1 -1
- data/spec/pdb_spec.rb +1 -1
- data/spec/remote_node_spec.rb +2 -2
- metadata +14 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 588f4c8928181443aa7e98e820530d79c9efb705a7a9b95f5e447066d87cac96
|
4
|
+
data.tar.gz: 109e0616bd93547ea2e6975bbdd4e58b27e92bcc9533b206c4194d37be6a49e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 592067114dea290451e1933655d0f72ee254c8c7fb063e5bcf7901d2f3caf9afb45c7f370a5c6cbbc2c9dfff22e35a2a60d776ad94e4ba5b6a6b476e2bd82c29
|
7
|
+
data.tar.gz: b7b2a003cdc1051f58e7be727ffcdd61d5d888312eac091015c54ea1ea137ba23ad4ac2d2c1514b0a4dd5d1ef7872a850dbf576b67d25ec49f419f0d6995c3b1
|
data/.gitlab-ci.yml
CHANGED
@@ -5,17 +5,26 @@ stages:
|
|
5
5
|
- validate
|
6
6
|
- test
|
7
7
|
- release
|
8
|
-
- deploy
|
8
|
+
# - deploy
|
9
9
|
#- web_deploy
|
10
10
|
|
11
|
-
.
|
11
|
+
.puppet_job_def_ruby27: &puppet_job_def_ruby27
|
12
12
|
stage: test
|
13
13
|
script:
|
14
14
|
- rm -f Gemfile.lock
|
15
|
-
- gem
|
16
|
-
- gem install bundler > /dev/null
|
15
|
+
- gem install bundler -v 2.4.22 > /dev/null
|
17
16
|
- bundle install --without development validate
|
18
|
-
- bundle exec puppet module install puppetlabs-stdlib
|
17
|
+
- bundle exec puppet module install puppetlabs-stdlib --version 8.6.0
|
18
|
+
- bundle exec rspec
|
19
|
+
tags:
|
20
|
+
- ruby
|
21
|
+
|
22
|
+
.puppet_job_def_ruby30plus: &puppet_job_def_ruby30plus
|
23
|
+
stage: test
|
24
|
+
script:
|
25
|
+
- rm -f Gemfile.lock
|
26
|
+
- bundle install --without development validate
|
27
|
+
- puppet module install puppetlabs-stdlib --version 9.4.1
|
19
28
|
- bundle exec rspec
|
20
29
|
tags:
|
21
30
|
- ruby
|
@@ -64,67 +73,59 @@ bump_and_tag:
|
|
64
73
|
# script:
|
65
74
|
# - "curl -X POST -F token=$PREPL_BUILD_TRIGGER_TOKEN -F ref=$REF https://gitlab.com/api/v3/projects/1146764/trigger/builds"
|
66
75
|
|
67
|
-
.ruby_24: &ruby24
|
68
|
-
image: ruby:2.4
|
69
|
-
|
70
|
-
.ruby_25: &ruby25
|
71
|
-
image: ruby:2.5
|
72
|
-
|
73
|
-
.ruby_26: &ruby26
|
74
|
-
image: ruby:2.6
|
75
|
-
|
76
76
|
.ruby_27: &ruby27
|
77
77
|
image: ruby:2.7
|
78
78
|
|
79
|
-
.ruby_30: &ruby30
|
80
|
-
image: ruby:3.0
|
81
|
-
|
82
79
|
.ruby_31: &ruby31
|
83
80
|
image: ruby:3.1
|
84
81
|
|
85
|
-
|
86
|
-
image: ruby:2
|
87
|
-
tags:
|
88
|
-
- ruby
|
89
|
-
before_script:
|
90
|
-
- gem install dpl
|
91
|
-
stage: deploy
|
92
|
-
script:
|
93
|
-
- dpl --provider=rubygems --api-key=$RUBYGEMS_API_KEY
|
94
|
-
only:
|
95
|
-
- tags
|
82
|
+
.ruby_32: &ruby32
|
83
|
+
image: ruby:3.2
|
96
84
|
|
97
|
-
|
98
|
-
|
99
|
-
PUPPET_GEM_VERSION: "~> 6.0"
|
100
|
-
<<: *puppet_job_def
|
101
|
-
<<: *ruby25
|
85
|
+
.ruby_33: &ruby33
|
86
|
+
image: ruby:3.3
|
102
87
|
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
88
|
+
.ruby_34: &ruby34
|
89
|
+
image: ruby:3.4
|
90
|
+
|
91
|
+
# gem_production:
|
92
|
+
# image: ruby:2.7
|
93
|
+
# tags:
|
94
|
+
# - ruby
|
95
|
+
# before_script:
|
96
|
+
# - gem install dpl
|
97
|
+
# stage: deploy
|
98
|
+
# script:
|
99
|
+
# - dpl --provider=rubygems --api-key=$RUBYGEMS_API_KEY
|
100
|
+
# only:
|
101
|
+
# - tags
|
108
102
|
|
109
103
|
puppet_6_ruby27:
|
110
104
|
allow_failure: false
|
111
105
|
variables:
|
112
106
|
PUPPET_GEM_VERSION: "~> 6.0"
|
113
|
-
<<: *
|
107
|
+
<<: *puppet_job_def_ruby27
|
114
108
|
<<: *ruby27
|
115
109
|
|
116
110
|
puppet_7_ruby27:
|
117
111
|
allow_failure: false
|
118
112
|
variables:
|
119
113
|
PUPPET_GEM_VERSION: "~> 7.0"
|
120
|
-
<<: *
|
114
|
+
<<: *puppet_job_def_ruby27
|
121
115
|
<<: *ruby27
|
122
116
|
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
117
|
+
puppet_8_ruby3.2:
|
118
|
+
allow_failure: true
|
119
|
+
variables:
|
120
|
+
PUPPET_GEM_VERSION: "~> 8.0"
|
121
|
+
<<: *puppet_job_def_ruby30plus
|
122
|
+
<<: *ruby32
|
123
|
+
|
124
|
+
puppet_8_ruby3.4:
|
125
|
+
allow_failure: true
|
126
|
+
variables:
|
127
|
+
PUPPET_GEM_VERSION: "~> 8.2"
|
128
|
+
<<: *puppet_job_def_ruby30plus
|
129
|
+
<<: *ruby32
|
129
130
|
|
130
131
|
|
data/.rubocop_todo.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
# Puppet Debugger Changelog
|
2
2
|
|
3
3
|
## Unreleased
|
4
|
+
## 1.4
|
5
|
+
- Add support for puppet 8
|
6
|
+
- Add support for ruby 3 (tested with 3.0-3.4)
|
7
|
+
- Updates rdoc to 6.0 due to json issue
|
8
|
+
|
4
9
|
## 1.3
|
5
10
|
- Fix failures when using Bolt 3.23+
|
6
11
|
- Relax tty-pager constraints (for Bolt)
|
data/Gemfile
CHANGED
@@ -4,7 +4,7 @@ source 'http://rubygems.org'
|
|
4
4
|
gem 'awesome_print', '~> 1.7'
|
5
5
|
gem 'facterdb', '>= 0.5.0'
|
6
6
|
gem 'pluginator', '~> 1.5.0'
|
7
|
-
gem 'puppet', ENV['PUPPET_GEM_VERSION'] || '~>
|
7
|
+
gem 'puppet', ENV['PUPPET_GEM_VERSION'] || '~> 8'
|
8
8
|
gem 'rb-readline'
|
9
9
|
gem 'table_print'
|
10
10
|
gem 'tty-pager'
|
@@ -16,7 +16,7 @@ group :test, :development do
|
|
16
16
|
gem 'pry'
|
17
17
|
gem 'puppet-debugger', path: './'
|
18
18
|
gem 'rake', '~> 13.0'
|
19
|
-
gem 'rdoc', '~>
|
19
|
+
gem 'rdoc', '~> 6.0'
|
20
20
|
gem 'release_me'
|
21
21
|
gem 'rspec', '~> 3.6'
|
22
22
|
gem 'rubocop'
|
@@ -29,9 +29,10 @@ module PuppetDebugger
|
|
29
29
|
files = globs.map { |g| Dir.glob(g) }.flatten
|
30
30
|
files.map do |f|
|
31
31
|
m = File.read(f).match(/type\s([a-z\d\:_]+)/i)
|
32
|
-
|
33
|
-
|
34
|
-
|
32
|
+
if m
|
33
|
+
next if m[1] =~ /type|alias/ # can't figure out the best way to filter type and alias out
|
34
|
+
m[1] if m[1] =~ /::/
|
35
|
+
end
|
35
36
|
end.uniq.compact
|
36
37
|
end
|
37
38
|
|
data/puppet-debugger.gemspec
CHANGED
@@ -27,7 +27,7 @@ Gem::Specification.new do |s|
|
|
27
27
|
'LICENSE.txt',
|
28
28
|
'README.md'
|
29
29
|
]
|
30
|
-
s.required_ruby_version = '>= 2.
|
30
|
+
s.required_ruby_version = '>= 2.7'
|
31
31
|
s.homepage = 'https://gitlab.com/puppet-debugger/puppet-debugger'
|
32
32
|
s.licenses = ['MIT']
|
33
33
|
s.rubygems_version = '2.4.5.1'
|
@@ -36,11 +36,11 @@ 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', ['>=
|
39
|
+
s.add_runtime_dependency('puppet', ['>= 6'])
|
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'])
|
43
|
-
s.add_runtime_dependency('tty-pager', ['~> 0.
|
44
|
-
s.add_development_dependency('rdoc', ['
|
45
|
-
s.add_development_dependency('rspec', ['
|
43
|
+
s.add_runtime_dependency('tty-pager', ['~> 0.14'])
|
44
|
+
s.add_development_dependency('rdoc', ['>= 6.0'])
|
45
|
+
s.add_development_dependency('rspec', ['>= 3.6'])
|
46
46
|
end
|
data/spec/pdb_spec.rb
CHANGED
data/spec/remote_node_spec.rb
CHANGED
@@ -29,7 +29,7 @@ describe 'PuppetDebugger' do
|
|
29
29
|
|
30
30
|
describe 'remote node' do
|
31
31
|
let(:node_obj) do
|
32
|
-
YAML.
|
32
|
+
YAML.unsafe_load_file(File.join(fixtures_dir, 'node_obj.yaml'))
|
33
33
|
end
|
34
34
|
let(:node_name) do
|
35
35
|
'puppetdev.localdomain'
|
@@ -69,7 +69,7 @@ describe 'PuppetDebugger' do
|
|
69
69
|
end
|
70
70
|
describe 'use defaults when invalid' do
|
71
71
|
let(:node_obj) do
|
72
|
-
YAML.
|
72
|
+
YAML.unsafe_load_file(File.join(fixtures_dir, 'invalid_node_obj.yaml'))
|
73
73
|
end
|
74
74
|
let(:node_name) do
|
75
75
|
'invalid.localdomain'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: puppet-debugger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Corey Osman
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-01-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: awesome_print
|
@@ -72,14 +72,14 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
75
|
+
version: '6'
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '
|
82
|
+
version: '6'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: rb-readline
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -114,40 +114,40 @@ dependencies:
|
|
114
114
|
requirements:
|
115
115
|
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: '0.
|
117
|
+
version: '0.14'
|
118
118
|
type: :runtime
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
122
|
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version: '0.
|
124
|
+
version: '0.14'
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: rdoc
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
|
-
- - "
|
129
|
+
- - ">="
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version: '
|
131
|
+
version: '6.0'
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
|
-
- - "
|
136
|
+
- - ">="
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version: '
|
138
|
+
version: '6.0'
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
140
|
name: rspec
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
|
-
- - "
|
143
|
+
- - ">="
|
144
144
|
- !ruby/object:Gem::Version
|
145
145
|
version: '3.6'
|
146
146
|
type: :development
|
147
147
|
prerelease: false
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
|
-
- - "
|
150
|
+
- - ">="
|
151
151
|
- !ruby/object:Gem::Version
|
152
152
|
version: '3.6'
|
153
153
|
description: A interactive command line tool for evaluating and debugging the puppet
|
@@ -315,14 +315,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
315
315
|
requirements:
|
316
316
|
- - ">="
|
317
317
|
- !ruby/object:Gem::Version
|
318
|
-
version: '2.
|
318
|
+
version: '2.7'
|
319
319
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
320
320
|
requirements:
|
321
321
|
- - ">="
|
322
322
|
- !ruby/object:Gem::Version
|
323
323
|
version: '0'
|
324
324
|
requirements: []
|
325
|
-
rubygems_version: 3.
|
325
|
+
rubygems_version: 3.4.10
|
326
326
|
signing_key:
|
327
327
|
specification_version: 4
|
328
328
|
summary: A repl based debugger for the puppet language
|