pdk 1.3.0 → 1.3.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: 581c9f97137a76ce3de4f61ea52e04558e588332
4
- data.tar.gz: 60ff06765e3e2b9058082f1e99dae371ea38f6d6
3
+ metadata.gz: 849b417ba98de92f7d243560e9b2193dd898f9b8
4
+ data.tar.gz: badf3fc8fc3cf2698ad3ea37eb4eea53fda61859
5
5
  SHA512:
6
- metadata.gz: 21bfb6eb5ec235fd9710be44cc31935a4130dc0ff3dc7117e3d025ea542446facbc2a01e77668453f8ccc8e677547925ce7aa5f639b5af3551f9f6e2f53ae0a7
7
- data.tar.gz: 4be9a13156ce5173cbe69efbb122df2d458bb2b2bba713bd3712b8597e7732724d610981a5ab2c966fc4040ad8a918eea3d6a330df62f790c64765868cdade6c
6
+ metadata.gz: 8b58b9543ba8b4e556115694e23dc820d0aafd286d7719a36d103d7f1957a2d041f5eaf1e8a5f270e9103bc823926f2359258628c405b0239a4303492292ce66
7
+ data.tar.gz: c63a7b3f68b91e0a632fedf3c74d759bbfa3b137a9428a9bf28a231d2ded635794106841d4da65ef7802973029a45c313260c3ed33183f3cf9efd1cb70c58abf
@@ -4,6 +4,13 @@ All changes to this repo will be documented in this file.
4
4
  See the [release notes](https://puppet.com/docs/pdk/latest/release_notes.html) for a high-level summary.
5
5
 
6
6
 
7
+ ## [v1.3.1](https://github.com/puppetlabs/pdk/tree/v1.3.1) (2017-12-20)
8
+ [Full Changelog](https://github.com/puppetlabs/pdk/compare/v1.3.0...v1.3.1)
9
+
10
+ **Fixed bugs:**
11
+
12
+ - \(PDK-736\) Improve handling of old template-url and template-ref [\#397](https://github.com/puppetlabs/pdk/pull/397) ([scotje](https://github.com/scotje))
13
+
7
14
  ## [v1.3.0](https://github.com/puppetlabs/pdk/tree/v1.3.0) (2017-12-15)
8
15
  [Full Changelog](https://github.com/puppetlabs/pdk/compare/v1.2.1...v1.3.0)
9
16
 
@@ -34,6 +41,7 @@ See the [release notes](https://puppet.com/docs/pdk/latest/release_notes.html) f
34
41
 
35
42
  **Merged pull requests:**
36
43
 
44
+ - Release 1.3.0 [\#394](https://github.com/puppetlabs/pdk/pull/394) ([bmjen](https://github.com/bmjen))
37
45
  - \(PDK-729\) Remove Set usage in metadata [\#393](https://github.com/puppetlabs/pdk/pull/393) ([rodjek](https://github.com/rodjek))
38
46
  - \(maint\) Various UX fixes [\#391](https://github.com/puppetlabs/pdk/pull/391) ([bmjen](https://github.com/bmjen))
39
47
  - Minor updates to convert dialog [\#390](https://github.com/puppetlabs/pdk/pull/390) ([HelenCampbell](https://github.com/HelenCampbell))
@@ -173,11 +173,15 @@ module PDK
173
173
  module_function :targets_relative_to_pwd
174
174
 
175
175
  def default_template_url
176
- if !PDK.answers['template-url'].nil?
177
- PDK.answers['template-url']
178
- else
179
- puppetlabs_template_url
180
- end
176
+ answer_file_url = PDK.answers['template-url']
177
+
178
+ return puppetlabs_template_url if answer_file_url.nil?
179
+
180
+ # Ignore answer file template-url if the value is the old or new default.
181
+ return puppetlabs_template_url if answer_file_url == 'https://github.com/puppetlabs/pdk-module-template'
182
+ return puppetlabs_template_url if answer_file_url == puppetlabs_template_url
183
+
184
+ answer_file_url
181
185
  end
182
186
  module_function :default_template_url
183
187
 
@@ -191,19 +195,18 @@ module PDK
191
195
  module_function :puppetlabs_template_url
192
196
 
193
197
  def default_template_ref
194
- if !PDK.answers['template-ref'].nil?
195
- PDK.answers['template-ref']
196
- else
197
- puppetlabs_template_ref
198
- end
198
+ # TODO: This should respect a --template-ref option if we add that
199
+ return 'origin/master' if default_template_url != puppetlabs_template_url
200
+
201
+ puppetlabs_template_ref
199
202
  end
200
203
  module_function :default_template_ref
201
204
 
202
205
  def puppetlabs_template_ref
203
- if PDK::Util.package_install? || PDK::Util.gem_install?
204
- PDK::TEMPLATE_REF
205
- else
206
+ if PDK::Util.development_mode?
206
207
  'origin/master'
208
+ else
209
+ PDK::TEMPLATE_REF
207
210
  end
208
211
  end
209
212
  module_function :puppetlabs_template_ref
@@ -1,4 +1,4 @@
1
1
  module PDK
2
- VERSION = '1.3.0'.freeze
2
+ VERSION = '1.3.1'.freeze
3
3
  TEMPLATE_REF = '1.3.0'.freeze
4
4
  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: 1.3.0
4
+ version: 1.3.1
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-12-18 00:00:00.000000000 Z
11
+ date: 2017-12-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler