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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 689b3a2da79e0659d3146fb3924ed76318e1ca8a42ba619a4215afe115c94647
4
- data.tar.gz: 259b72d9d1a67e485e0bc5cdc0e0320692575d36ee72c142169658163bcd13ce
3
+ metadata.gz: 8f9bd98c3f39120e0a4c81cb99cb17b0d1f745417a474afda28e2935b617c4f9
4
+ data.tar.gz: a52155f0c8ae1ca4e0266e104281e7d517094ded50e1e6955765d5f90551840a
5
5
  SHA512:
6
- metadata.gz: 0a19b9da2ede1a609d75cf110e0792e5b9ad76a60e382fdb38d8c805a76fc64a05485aee668f521e8d80b2e1bf6dc07aebf49a3924ad8f6f58a776c51624e64b
7
- data.tar.gz: cff3363d015789e659ff17aea90f9d559c3c33425e3d0e9f167f3a7f951c2476d9363f7fae4fc876595c00031f1a25f520b89adf81e3f0fe869cb89320e30bd1
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
@@ -328,5 +328,5 @@ Pull requests welcomed.
328
328
 
329
329
  ## Copyright
330
330
 
331
- Copyright (c) 2017 Corey Osman. See LICENSE.txt for
331
+ Copyright (c) 2018 NWOPS, LLC. See LICENSE.txt for
332
332
  further details.
data/bin/pdb CHANGED
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
  # frozen_string_literal: true
3
3
 
4
- require_relative '../lib/puppet-debugger'
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
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require 'puppet-debugger'
5
+
6
+ PuppetDebugger::Cli.start
@@ -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 file/i
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
- parser.parse_string(full_buffer)
213
- end
214
- rescue Puppet::ParseErrorWithIssue => e
215
- if multiline_input?(e)
216
- out_buffer.print ' '
217
- full_buffer += "\n"
218
- next
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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PuppetDebugger
4
- VERSION = '0.10.0'
4
+ VERSION = '0.10.1'
5
5
  end
@@ -16,7 +16,12 @@ describe :datatypes do
16
16
  end
17
17
 
18
18
  it 'returns core datatypes' do
19
- expect(plugin.all_data_types.count).to be >= 30 if supports_datatypes?
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.0
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-09-24 00:00:00.000000000 Z
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