pdk 0.4.1 → 0.4.2

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: 9ea5f48c79dcfed30096538854272bcc6bca4ec3
4
- data.tar.gz: a696b79de41f728412f956e8e85278b5e7049001
3
+ metadata.gz: 52a991fe12ecd24520bdaed3e3f1ed1577db8872
4
+ data.tar.gz: bc54e71ebd0df4343e374d759388b68bd5803a8f
5
5
  SHA512:
6
- metadata.gz: 49cb66d1d8000fb2df7b8eeba4ff75d096fbb0880b63c8f81160696182dc3580e914ebc916e443a15d544031ced1365a0fa72c3ffa228921d3c589517a10c0dc
7
- data.tar.gz: a4e7975893a393179ebfb0ec77504e37ce981521466d3639a165a0783d80837042511ba54afd2ff7c4d6f23a85e29938ab413a72f3a826616e00a2bab5dc8038
6
+ metadata.gz: 4c54335168cb059b850593b8f27fb9b88026b29f64f9c0a0b5908217e9a463fb7cf6665d5715578b8c0c989dce2ea231482fd72e5328ab4c7fdaa6ab45163621
7
+ data.tar.gz: 43170b01a0bd8ebfe1ce1e8c0d0781d301e73bb66bef587be6943dfbca2887ac96c08180042d11c501551a1416ddc6ae8f87a48fed28e9a77843b0b5f084feef
data/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
5
 
6
+ ## [v0.4.2](https://github.com/puppetlabs/pdk/tree/v0.4.2) (2017-07-17)
7
+ [Full Changelog](https://github.com/puppetlabs/pdk/compare/v0.4.1...v0.4.2)
8
+
9
+ **Fixed bugs:**
10
+
11
+ - \(FIXUP\) Add missing newlines in new module interview prompts [\#161](https://github.com/puppetlabs/pdk/pull/161) ([scotje](https://github.com/scotje))
12
+ - Use default username when Etc.getlogin fails [\#160](https://github.com/puppetlabs/pdk/pull/160) ([austb](https://github.com/austb))
13
+
6
14
  ## [v0.4.1](https://github.com/puppetlabs/pdk/tree/v0.4.1) (2017-07-14)
7
15
  [Full Changelog](https://github.com/puppetlabs/pdk/compare/v0.4.0...v0.4.1)
8
16
 
@@ -27,9 +27,9 @@ module PDK
27
27
  num_questions = @questions.count
28
28
  @questions.each do |question_name, question|
29
29
  @name = question_name
30
- @prompt.print pastel.bold(_('[Q %{current_number}/%{questions_total}]') % { current_number: i, questions_total: num_questions })
31
- @prompt.print pastel.bold(question[:question])
32
- @prompt.print question[:help]
30
+ @prompt.print pastel.bold(_('[Q %{current_number}/%{questions_total}]') % { current_number: i, questions_total: num_questions }) + ' '
31
+ @prompt.puts pastel.bold(question[:question])
32
+ @prompt.puts question[:help]
33
33
  ask(_('-->')) do |q|
34
34
  q.required(question.fetch(:required, false))
35
35
 
@@ -40,7 +40,7 @@ module PDK
40
40
  q.default(question[:default]) if question.key?(:default)
41
41
  end
42
42
  i += 1
43
- @prompt.print ''
43
+ @prompt.puts ''
44
44
  end
45
45
  @answers
46
46
  rescue TTY::Prompt::Reader::InputInterrupt
@@ -54,7 +54,7 @@ module PDK
54
54
  end
55
55
 
56
56
  def self.username_from_login
57
- login = Etc.getlogin
57
+ login = Etc.getlogin || ''
58
58
  login_clean = login.gsub(%r{[^0-9a-z]}i, '')
59
59
  login_clean = 'username' if login_clean.empty?
60
60
 
data/lib/pdk/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module PDK
2
- VERSION = '0.4.1'.freeze
2
+ VERSION = '0.4.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Puppet, Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-07-14 00:00:00.000000000 Z
11
+ date: 2017-07-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler