puppet-debugger 0.8.0 → 0.8.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
  SHA1:
3
- metadata.gz: 06bfeaee11d72cc1f5e2a68a325bf5c892df207a
4
- data.tar.gz: 3ddd0743cc4daa1079174a4477c4863a373c326b
3
+ metadata.gz: b7649431296d68631a37a5c0d65dcc9f9b83e8f3
4
+ data.tar.gz: 3d6b70fed0bea5b1d4190df2fa6bfdd26635c6a7
5
5
  SHA512:
6
- metadata.gz: 07523f3f0f261e283c35c2d74f4feceba1f0d8a5b5416aa6b5f1206870fc28948fa231758ce41988c02788fc94ea7c5d11fcc17c2d922ef811e733c4a1959a20
7
- data.tar.gz: accdd33ea736b3948e5191f27384135aada416962e740eaecde54a4147ed2bc4e0276c620272a725c5b5c6fca6f21df0e71a9111c73f2662e8bd5a26a268b93b
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
- * accidently bump
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
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PuppetDebugger
4
- VERSION = '0.8.0'
4
+ VERSION = '0.8.1'
5
5
  end
@@ -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.0
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-04 00:00:00.000000000 Z
11
+ date: 2017-07-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pluginator