puppet-debugger 0.8.0 → 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -1
- data/lib/puppet-debugger/cli.rb +1 -0
- data/lib/version.rb +1 -1
- data/spec/puppet_debugger_spec.rb +7 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b7649431296d68631a37a5c0d65dcc9f9b83e8f3
|
4
|
+
data.tar.gz: 3d6b70fed0bea5b1d4190df2fa6bfdd26635c6a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7d8b304f2aa1f107975741c58a90cc1fb5524f00760a3470fcd82beee80d6a12da4f9d4968121c767a5fe5473396bc8fa539822674326294d77d9e66bb390ecc
|
7
|
+
data.tar.gz: fefe9b07906cfe977fcba927bfd05776e069f903565b2922205786bd68109c8bdcd6a3d7fd736d4749ae70f117dcbc64ddd4608500a1ce5d7d60322f9d9ece9e
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
## Unreleased
|
2
2
|
|
3
|
+
## 0.8.1
|
4
|
+
* Fixes bug with command completion and blank inputs
|
3
5
|
## 0.8.0
|
4
6
|
* Fixes bug with playback of multiline input
|
5
7
|
* Updates pluginator Gem to 1.5.0
|
@@ -20,7 +22,7 @@
|
|
20
22
|
* Adds ability to list puppet types
|
21
23
|
* Adds ability to list puppet datatypes
|
22
24
|
## 0.5.1
|
23
|
-
*
|
25
|
+
* accidental bump
|
24
26
|
## 0.5.0
|
25
27
|
* Fixes #gh-49 - puppet 4 functions don't seem to work
|
26
28
|
* Disables trying to set trusted_node_data for puppet versions that do not support it
|
data/lib/puppet-debugger/cli.rb
CHANGED
@@ -45,6 +45,7 @@ module PuppetDebugger
|
|
45
45
|
def command_completion
|
46
46
|
proc do |input|
|
47
47
|
words = Readline.line_buffer.split(Readline.basic_word_break_characters)
|
48
|
+
next key_words.grep(/^#{Regexp.escape(input)}/) if words.empty?
|
48
49
|
first_word = words.shift
|
49
50
|
plugins = PuppetDebugger::InputResponders::Commands.plugins.find_all do |p|
|
50
51
|
p::COMMAND_WORDS.find { |word| word.start_with?(first_word)}
|
data/lib/version.rb
CHANGED
@@ -221,6 +221,13 @@ describe 'PuppetDebugger' do
|
|
221
221
|
end
|
222
222
|
end
|
223
223
|
|
224
|
+
describe 'command_completion' do
|
225
|
+
it 'should complete on tabs' do
|
226
|
+
allow(Readline).to receive(:line_buffer).and_return("\n")
|
227
|
+
expect(debugger.command_completion.call("").count).to be >= 200
|
228
|
+
end
|
229
|
+
end
|
230
|
+
|
224
231
|
describe 'error message' do
|
225
232
|
let(:input) do
|
226
233
|
"file{'/tmp/test': ensure => present, contact => 'blah'}"
|
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.8.
|
4
|
+
version: 0.8.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: 2017-07-
|
11
|
+
date: 2017-07-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pluginator
|