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 +4 -4
- data/.dockerignore +0 -0
- data/lib/puppet-debugger/debugger_code.rb +5 -4
- data/lib/puppet-debugger/support.rb +3 -1
- data/lib/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 105152a505637bcde7438d1a2ba964e998148a9d
|
4
|
+
data.tar.gz: d427ad2728e18736d85fa587b927a0a629cac26f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
-
|
253
|
-
|
253
|
+
print_output << loc.line
|
254
|
+
print_output << "\n"
|
254
255
|
end
|
255
|
-
|
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
|
-
|
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
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.
|
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.
|
152
|
+
rubygems_version: 2.6.10
|
152
153
|
signing_key:
|
153
154
|
specification_version: 4
|
154
155
|
summary: A repl for the puppet language
|