puppet-debugger 0.4.3 → 0.4.4

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
  SHA1:
3
- metadata.gz: 44157088748216b3865e03bdc616b673e32b7d9f
4
- data.tar.gz: 415c08646267e60a8d8837bf84221f9e9ba91257
3
+ metadata.gz: 105152a505637bcde7438d1a2ba964e998148a9d
4
+ data.tar.gz: d427ad2728e18736d85fa587b927a0a629cac26f
5
5
  SHA512:
6
- metadata.gz: 8da56d0a316d219aa41711bd7b2c06c81995dfe11717ec4acba9723bd53865f2722d1272021972b44d55522f6add205b2c84ed415294212bc5da42d1b5b6c23d
7
- data.tar.gz: ae7dee824edf9d3fec7f850db1199a74d43601532f203e7b41e815a64785e42c0d25d2e34971c3782af381913c412175669253b477dd76b67dbe4f9a90bdc1cf
6
+ metadata.gz: 87b64225065ac3ad3cfb1642e3339730381ebabf44ff038f58a62138bb6d0be9d0749cba4ae74ecfcedff19c8b3a7fc39157c5badf308e7b95ba2fabc0065653
7
+ data.tar.gz: 31a94b04b47e67eb857d9c4923513ae6c4eb4e6274af046738d3459763b3e230db947cdc0acbbf9bc123db08eaa86b67a83ec4795fea7b03131679a767c5fdb8
data/.dockerignore ADDED
File without changes
@@ -243,16 +243,17 @@ class DebuggerCode
243
243
  # Writes a formatted representation (based on the configuration of the
244
244
  # object) to the given output, which must respond to `#<<`.
245
245
  def print_to_output(output, _color = false)
246
- output << add_file_reference if @with_file_reference
246
+ print_output = output.dup
247
+ print_output << add_file_reference if @with_file_reference
247
248
  @lines.each do |loc|
248
249
  loc = loc.dup
249
250
  loc.add_line_number(max_lineno_width) if @with_line_numbers
250
251
  loc.add_marker(@marker_lineno) if @with_marker
251
252
  loc.indent(@indentation_num) if @with_indentation
252
- output << loc.line
253
- output << "\n"
253
+ print_output << loc.line
254
+ print_output << "\n"
254
255
  end
255
- output
256
+ print_output
256
257
  end
257
258
 
258
259
  # Get the comment that describes the expression on the given line number.
@@ -119,7 +119,9 @@ module PuppetDebugger
119
119
  # * a Model::Program
120
120
  # * a Model::Expression
121
121
  #
122
- model = parse_result.nil? ? nil : parse_result.current
122
+ # should return nil or Puppet::Pops::Model::Program
123
+ # puppet 5 does not have the method current
124
+ model = parse_result.respond_to?(:current) ? parse_result.current : parse_result
123
125
  args = {}
124
126
  ::Puppet::Pops::Model::AstTransformer.new('').merge_location(args, model)
125
127
 
data/lib/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module PuppetDebugger
3
- VERSION = '0.4.3'
3
+ VERSION = '0.4.4'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puppet-debugger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
4
+ version: 0.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Corey Osman
@@ -76,6 +76,7 @@ extra_rdoc_files:
76
76
  - LICENSE.txt
77
77
  - README.md
78
78
  files:
79
+ - ".dockerignore"
79
80
  - ".document"
80
81
  - ".gitignore"
81
82
  - ".gitlab-ci.yml"
@@ -148,7 +149,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
148
149
  version: '0'
149
150
  requirements: []
150
151
  rubyforge_project:
151
- rubygems_version: 2.6.8
152
+ rubygems_version: 2.6.10
152
153
  signing_key:
153
154
  specification_version: 4
154
155
  summary: A repl for the puppet language