puppet-debugger 0.15.2 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (86) hide show
  1. checksums.yaml +4 -4
  2. data/.gitlab-ci.yml +21 -45
  3. data/.rubocop.yml +64 -233
  4. data/.rubocop_todo.yml +89 -147
  5. data/.ruby-version +1 -1
  6. data/.vscode/launch.json +15 -0
  7. data/CHANGELOG.md +34 -2
  8. data/Gemfile +7 -5
  9. data/README.md +29 -261
  10. data/Rakefile +11 -12
  11. data/bin/pdb +1 -1
  12. data/lib/awesome_print/ext/awesome_puppet.rb +22 -8
  13. data/lib/plugins/puppet-debugger/input_responders/benchmark.rb +5 -4
  14. data/lib/plugins/puppet-debugger/input_responders/classes.rb +14 -2
  15. data/lib/plugins/puppet-debugger/input_responders/classification.rb +4 -2
  16. data/lib/plugins/puppet-debugger/input_responders/commands.rb +18 -18
  17. data/lib/plugins/puppet-debugger/input_responders/datatypes.rb +22 -6
  18. data/lib/plugins/puppet-debugger/input_responders/environment.rb +4 -2
  19. data/lib/plugins/puppet-debugger/input_responders/exit.rb +4 -2
  20. data/lib/plugins/puppet-debugger/input_responders/facterdb_filter.rb +4 -2
  21. data/lib/plugins/puppet-debugger/input_responders/facts.rb +4 -2
  22. data/lib/plugins/puppet-debugger/input_responders/functions.rb +34 -32
  23. data/lib/plugins/puppet-debugger/input_responders/help.rb +4 -2
  24. data/lib/plugins/puppet-debugger/input_responders/krt.rb +4 -2
  25. data/lib/plugins/puppet-debugger/input_responders/play.rb +22 -24
  26. data/lib/plugins/puppet-debugger/input_responders/reset.rb +5 -3
  27. data/lib/plugins/puppet-debugger/input_responders/resources.rb +16 -7
  28. data/lib/plugins/puppet-debugger/input_responders/set.rb +34 -32
  29. data/lib/plugins/puppet-debugger/input_responders/stacktrace.rb +23 -0
  30. data/lib/plugins/puppet-debugger/input_responders/types.rb +6 -2
  31. data/lib/plugins/puppet-debugger/input_responders/vars.rb +8 -7
  32. data/lib/plugins/puppet-debugger/input_responders/whereami.rb +5 -3
  33. data/lib/puppet-debugger.rb +1 -45
  34. data/lib/puppet-debugger/cli.rb +120 -92
  35. data/lib/puppet-debugger/code/code_file.rb +13 -14
  36. data/lib/puppet-debugger/code/code_range.rb +5 -3
  37. data/lib/puppet-debugger/code/loc.rb +1 -1
  38. data/lib/puppet-debugger/debugger_code.rb +2 -0
  39. data/lib/puppet-debugger/hooks.rb +15 -16
  40. data/lib/puppet-debugger/input_responder_plugin.rb +54 -52
  41. data/lib/puppet-debugger/monkey_patches.rb +57 -0
  42. data/lib/puppet-debugger/plugin_test_helper.rb +9 -8
  43. data/lib/puppet-debugger/support.rb +27 -17
  44. data/lib/puppet-debugger/support/environment.rb +10 -3
  45. data/lib/puppet-debugger/support/errors.rb +25 -27
  46. data/lib/puppet-debugger/support/facts.rb +5 -5
  47. data/lib/puppet-debugger/support/node.rb +4 -7
  48. data/lib/puppet-debugger/support/scope.rb +29 -0
  49. data/lib/puppet-debugger/trollop.rb +38 -31
  50. data/lib/puppet-debugger/version.rb +1 -1
  51. data/lib/puppet/application/debugger.rb +151 -126
  52. data/output.json +1 -0
  53. data/puppet-debugger.gemspec +17 -15
  54. data/spec/awesome_print/ext/awesome_puppet_spec.rb +30 -30
  55. data/spec/fixtures/pe-xl-core-0.puppet.vm.json +1 -0
  56. data/spec/fixtures/sample_start_debugger.pp +3 -2
  57. data/spec/hooks_spec.rb +33 -35
  58. data/spec/input_responder_plugin_spec.rb +7 -6
  59. data/spec/input_responders/benchmark_spec.rb +3 -1
  60. data/spec/input_responders/classes_spec.rb +12 -13
  61. data/spec/input_responders/classification_spec.rb +4 -2
  62. data/spec/input_responders/commands_spec.rb +2 -0
  63. data/spec/input_responders/datatypes_spec.rb +8 -2
  64. data/spec/input_responders/environment_spec.rb +2 -0
  65. data/spec/input_responders/exit_spec.rb +9 -11
  66. data/spec/input_responders/facterdb_filter_spec.rb +2 -0
  67. data/spec/input_responders/facts_spec.rb +2 -0
  68. data/spec/input_responders/functions_spec.rb +30 -28
  69. data/spec/input_responders/help_spec.rb +5 -3
  70. data/spec/input_responders/krt_spec.rb +3 -1
  71. data/spec/input_responders/play_spec.rb +10 -20
  72. data/spec/input_responders/reset_spec.rb +2 -0
  73. data/spec/input_responders/resources_spec.rb +7 -1
  74. data/spec/input_responders/set_spec.rb +3 -1
  75. data/spec/input_responders/stacktrace_spec.rb +15 -0
  76. data/spec/input_responders/types_spec.rb +2 -0
  77. data/spec/input_responders/vars_spec.rb +4 -4
  78. data/spec/input_responders/whereami_spec.rb +2 -0
  79. data/spec/pdb_spec.rb +0 -9
  80. data/spec/puppet/application/debugger_spec.rb +35 -17
  81. data/spec/puppet_debugger_spec.rb +81 -83
  82. data/spec/remote_node_spec.rb +1 -5
  83. data/spec/spec_helper.rb +22 -18
  84. data/spec/support_spec.rb +3 -5
  85. data/test_matrix.rb +1 -1
  86. metadata +53 -19
metadata CHANGED
@@ -1,29 +1,57 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puppet-debugger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.2
4
+ version: 1.0.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: 2019-10-04 00:00:00.000000000 Z
11
+ date: 2020-08-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: table_print
14
+ name: awesome_print
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.7'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.7'
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
15
29
  requirement: !ruby/object:Gem::Requirement
16
30
  requirements:
17
31
  - - ">="
18
32
  - !ruby/object:Gem::Version
19
- version: 1.0.0
33
+ version: '0'
20
34
  type: :runtime
21
35
  prerelease: false
22
36
  version_requirements: !ruby/object:Gem::Requirement
23
37
  requirements:
24
38
  - - ">="
25
39
  - !ruby/object:Gem::Version
26
- version: 1.0.0
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: facterdb
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: 0.4.0
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: 0.4.0
27
55
  - !ruby/object:Gem::Dependency
28
56
  name: pluginator
29
57
  requirement: !ruby/object:Gem::Requirement
@@ -39,61 +67,61 @@ dependencies:
39
67
  - !ruby/object:Gem::Version
40
68
  version: 1.5.0
41
69
  - !ruby/object:Gem::Dependency
42
- name: rb-readline
70
+ name: puppet
43
71
  requirement: !ruby/object:Gem::Requirement
44
72
  requirements:
45
73
  - - ">="
46
74
  - !ruby/object:Gem::Version
47
- version: 0.5.5
75
+ version: '5.5'
48
76
  type: :runtime
49
77
  prerelease: false
50
78
  version_requirements: !ruby/object:Gem::Requirement
51
79
  requirements:
52
80
  - - ">="
53
81
  - !ruby/object:Gem::Version
54
- version: 0.5.5
82
+ version: '5.5'
55
83
  - !ruby/object:Gem::Dependency
56
- name: puppet
84
+ name: rb-readline
57
85
  requirement: !ruby/object:Gem::Requirement
58
86
  requirements:
59
87
  - - ">="
60
88
  - !ruby/object:Gem::Version
61
- version: '3.8'
89
+ version: 0.5.5
62
90
  type: :runtime
63
91
  prerelease: false
64
92
  version_requirements: !ruby/object:Gem::Requirement
65
93
  requirements:
66
94
  - - ">="
67
95
  - !ruby/object:Gem::Version
68
- version: '3.8'
96
+ version: 0.5.5
69
97
  - !ruby/object:Gem::Dependency
70
- name: facterdb
98
+ name: table_print
71
99
  requirement: !ruby/object:Gem::Requirement
72
100
  requirements:
73
101
  - - ">="
74
102
  - !ruby/object:Gem::Version
75
- version: 0.4.0
103
+ version: 1.0.0
76
104
  type: :runtime
77
105
  prerelease: false
78
106
  version_requirements: !ruby/object:Gem::Requirement
79
107
  requirements:
80
108
  - - ">="
81
109
  - !ruby/object:Gem::Version
82
- version: 0.4.0
110
+ version: 1.0.0
83
111
  - !ruby/object:Gem::Dependency
84
- name: awesome_print
112
+ name: tty-pager
85
113
  requirement: !ruby/object:Gem::Requirement
86
114
  requirements:
87
115
  - - "~>"
88
116
  - !ruby/object:Gem::Version
89
- version: '1.7'
117
+ version: 0.13.0
90
118
  type: :runtime
91
119
  prerelease: false
92
120
  version_requirements: !ruby/object:Gem::Requirement
93
121
  requirements:
94
122
  - - "~>"
95
123
  - !ruby/object:Gem::Version
96
- version: '1.7'
124
+ version: 0.13.0
97
125
  - !ruby/object:Gem::Dependency
98
126
  name: rdoc
99
127
  requirement: !ruby/object:Gem::Requirement
@@ -143,6 +171,7 @@ files:
143
171
  - ".rubocop.yml"
144
172
  - ".rubocop_todo.yml"
145
173
  - ".ruby-version"
174
+ - ".vscode/launch.json"
146
175
  - CHANGELOG.md
147
176
  - DEVELOPMENT.md
148
177
  - Gemfile
@@ -169,6 +198,7 @@ files:
169
198
  - lib/plugins/puppet-debugger/input_responders/reset.rb
170
199
  - lib/plugins/puppet-debugger/input_responders/resources.rb
171
200
  - lib/plugins/puppet-debugger/input_responders/set.rb
201
+ - lib/plugins/puppet-debugger/input_responders/stacktrace.rb
172
202
  - lib/plugins/puppet-debugger/input_responders/types.rb
173
203
  - lib/plugins/puppet-debugger/input_responders/vars.rb
174
204
  - lib/plugins/puppet-debugger/input_responders/whereami.rb
@@ -180,6 +210,7 @@ files:
180
210
  - lib/puppet-debugger/debugger_code.rb
181
211
  - lib/puppet-debugger/hooks.rb
182
212
  - lib/puppet-debugger/input_responder_plugin.rb
213
+ - lib/puppet-debugger/monkey_patches.rb
183
214
  - lib/puppet-debugger/plugin_test_helper.rb
184
215
  - lib/puppet-debugger/support.rb
185
216
  - lib/puppet-debugger/support/compiler.rb
@@ -192,6 +223,7 @@ files:
192
223
  - lib/puppet-debugger/trollop.rb
193
224
  - lib/puppet-debugger/version.rb
194
225
  - lib/puppet/application/debugger.rb
226
+ - output.json
195
227
  - puppet-debugger.gemspec
196
228
  - run_container_test.sh
197
229
  - spec/awesome_print/ext/awesome_puppet_spec.rb
@@ -238,6 +270,7 @@ files:
238
270
  - spec/fixtures/modules/extlib/lib/puppet/functions/resources_deep_merge.rb
239
271
  - spec/fixtures/modules/extlib/metadata.json
240
272
  - spec/fixtures/node_obj.yaml
273
+ - spec/fixtures/pe-xl-core-0.puppet.vm.json
241
274
  - spec/fixtures/sample_manifest.pp
242
275
  - spec/fixtures/sample_start_debugger.pp
243
276
  - spec/hooks_spec.rb
@@ -258,6 +291,7 @@ files:
258
291
  - spec/input_responders/reset_spec.rb
259
292
  - spec/input_responders/resources_spec.rb
260
293
  - spec/input_responders/set_spec.rb
294
+ - spec/input_responders/stacktrace_spec.rb
261
295
  - spec/input_responders/types_spec.rb
262
296
  - spec/input_responders/vars_spec.rb
263
297
  - spec/input_responders/whereami_spec.rb
@@ -281,14 +315,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
281
315
  requirements:
282
316
  - - ">="
283
317
  - !ruby/object:Gem::Version
284
- version: '2.1'
318
+ version: '2.4'
285
319
  required_rubygems_version: !ruby/object:Gem::Requirement
286
320
  requirements:
287
321
  - - ">="
288
322
  - !ruby/object:Gem::Version
289
323
  version: '0'
290
324
  requirements: []
291
- rubygems_version: 3.0.6
325
+ rubygems_version: 3.0.3
292
326
  signing_key:
293
327
  specification_version: 4
294
328
  summary: A repl based debugger for the puppet language