puppet-debugger 0.10.0 → 0.10.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +1 -1
- data/bin/pdb +2 -1
- data/bin/puppet-debugger +6 -0
- data/lib/puppet-debugger/cli.rb +13 -10
- data/lib/puppet-debugger/version.rb +1 -1
- data/spec/input_responders/datatypes_spec.rb +6 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8f9bd98c3f39120e0a4c81cb99cb17b0d1f745417a474afda28e2935b617c4f9
|
4
|
+
data.tar.gz: a52155f0c8ae1ca4e0266e104281e7d517094ded50e1e6955765d5f90551840a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a61d5f96919882d2eb43c443880116a13ca9bdde0b87dfe0d30d02b377dc3adfc5b4b1ad2d5548f8284f78a5e6e8cf59da83f2d3785609e38e82ab1a2f388adc
|
7
|
+
data.tar.gz: e6e7d58a790305f85bce9ffa837cd94cd99d7d1aa9eb25c058422fda52a180de0cd8c6321f3a2557f3a2e45f1654248ed3a4d387851fe68b3f2c8e42183a37d3
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
## Unreleased
|
2
2
|
|
3
|
+
## 0.10.1
|
4
|
+
* Fixes puppet6 multiline issue
|
5
|
+
* adds puppet-debugger command in addition to pdb
|
6
|
+
* deprecate pdb command
|
7
|
+
|
3
8
|
## 0.10.0
|
4
9
|
* Fix for puppet 6 and trusted server facts
|
5
10
|
* Adds puppet 6 support and remove ruby 1.9.3 from test matrix
|
data/README.md
CHANGED
data/bin/pdb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
# frozen_string_literal: true
|
3
3
|
|
4
|
-
|
4
|
+
require 'puppet-debugger'
|
5
5
|
|
6
|
+
puts "The debugger pdb command will be removed in a future release please use puppet-debugger or puppet debugger instead".warning
|
6
7
|
PuppetDebugger::Cli.start
|
data/bin/puppet-debugger
ADDED
data/lib/puppet-debugger/cli.rb
CHANGED
@@ -186,9 +186,10 @@ or "help" to show the help screen.
|
|
186
186
|
|
187
187
|
# tries to determine if the input is going to be a multiline input
|
188
188
|
# by reading the parser error message
|
189
|
+
# @return [Boolean] - return true if this is a multiline input, false otherwise
|
189
190
|
def multiline_input?(e)
|
190
191
|
case e.message
|
191
|
-
when /Syntax error at end of
|
192
|
+
when /Syntax error at end of/i
|
192
193
|
true
|
193
194
|
else
|
194
195
|
false
|
@@ -209,17 +210,19 @@ or "help" to show the help screen.
|
|
209
210
|
# unless this is puppet code, otherwise skip repl keywords
|
210
211
|
unless PuppetDebugger::InputResponders::Commands.command_list_regex.match(buf)
|
211
212
|
line_number = line_number.next
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
213
|
+
begin
|
214
|
+
parser.parse_string(full_buffer)
|
215
|
+
rescue Puppet::ParseErrorWithIssue => e
|
216
|
+
if multiline_input?(e)
|
217
|
+
out_buffer.print ' '
|
218
|
+
full_buffer += "\n"
|
219
|
+
next
|
220
|
+
end
|
221
|
+
end
|
219
222
|
end
|
223
|
+
handle_input(full_buffer)
|
224
|
+
full_buffer = ''
|
220
225
|
end
|
221
|
-
handle_input(full_buffer)
|
222
|
-
full_buffer = ''
|
223
226
|
end
|
224
227
|
end
|
225
228
|
|
@@ -16,7 +16,12 @@ describe :datatypes do
|
|
16
16
|
end
|
17
17
|
|
18
18
|
it 'returns core datatypes' do
|
19
|
-
|
19
|
+
if Gem::Version.new(Puppet.version) >= Gem::Version.new('6.0.0')
|
20
|
+
expect(plugin.all_data_types.count).to be >= 19 if supports_datatypes?
|
21
|
+
else
|
22
|
+
expect(plugin.all_data_types.count).to be >= 30 if supports_datatypes?
|
23
|
+
end
|
24
|
+
|
20
25
|
end
|
21
26
|
|
22
27
|
it 'returns environment datatypes' do
|
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: 0.10.
|
4
|
+
version: 0.10.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Corey Osman
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-10-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pluginator
|
@@ -122,6 +122,7 @@ files:
|
|
122
122
|
- README.md
|
123
123
|
- Rakefile
|
124
124
|
- bin/pdb
|
125
|
+
- bin/puppet-debugger
|
125
126
|
- lib/awesome_print/ext/awesome_puppet.rb
|
126
127
|
- lib/plugins/puppet-debugger/input_responders/benchmark.rb
|
127
128
|
- lib/plugins/puppet-debugger/input_responders/classes.rb
|