pdk 0.4.0 → 0.4.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: eaa8d8a0b82102681c9b61fe39ba2222cd252a3a
4
- data.tar.gz: 586bc04ec9a42581020f88a03d5ed58f01b52d62
3
+ metadata.gz: 9ea5f48c79dcfed30096538854272bcc6bca4ec3
4
+ data.tar.gz: a696b79de41f728412f956e8e85278b5e7049001
5
5
  SHA512:
6
- metadata.gz: 33b02d12161649fd01c1b5e9c259646cfff45e0b0ffd4625ac28caea26aa995ce0346866eb81042c29f900d8dd99a5cb1f71d5347416da332a0376cf9f6ed166
7
- data.tar.gz: 9f17d85f76f08d2feb31a9b6e5c2f8c7c39240be48f6a9c51f06cf3f441dddaf239b6da10d45ae075ce38b15d356c3a9572b9305691f3d069e4af5d83fb2576a
6
+ metadata.gz: 49cb66d1d8000fb2df7b8eeba4ff75d096fbb0880b63c8f81160696182dc3580e914ebc916e443a15d544031ced1365a0fa72c3ffa228921d3c589517a10c0dc
7
+ data.tar.gz: a4e7975893a393179ebfb0ec77504e37ce981521466d3639a165a0783d80837042511ba54afd2ff7c4d6f23a85e29938ab413a72f3a826616e00a2bab5dc8038
@@ -3,6 +3,13 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
5
 
6
+ ## [v0.4.1](https://github.com/puppetlabs/pdk/tree/v0.4.1) (2017-07-14)
7
+ [Full Changelog](https://github.com/puppetlabs/pdk/compare/v0.4.0...v0.4.1)
8
+
9
+ **Fixed bugs:**
10
+
11
+ - \(FIXUP\) Resolve conflation of cachedir concepts [\#153](https://github.com/puppetlabs/pdk/pull/153) ([scotje](https://github.com/scotje))
12
+
6
13
  ## [v0.4.0](https://github.com/puppetlabs/pdk/tree/v0.4.0) (2017-07-14)
7
14
  [Full Changelog](https://github.com/puppetlabs/pdk/compare/v0.3.0...v0.4.0)
8
15
 
@@ -104,10 +104,13 @@ module PDK
104
104
  end
105
105
 
106
106
  if context == :module
107
- # Subprocesses use their own set of gems which are managed by pdk or installed with the package.
108
- @process.environment['GEM_HOME'] = File.join(PDK::Util.cachedir, 'ruby', RbConfig::CONFIG['ruby_version'])
107
+ if PDK::Util.package_install?
108
+ # Subprocesses use their own set of gems which are managed by pdk or installed with the package.
109
+ @process.environment['GEM_HOME'] = File.join(PDK::Util.package_cachedir, 'ruby', RbConfig::CONFIG['ruby_version'])
110
+ else
111
+ # Subprocesses use their own set of gems which are managed by pdk or installed with the package.
112
+ @process.environment['GEM_HOME'] = File.join(PDK::Util.cachedir, 'ruby', RbConfig::CONFIG['ruby_version'])
109
113
 
110
- if PDK::Util.gem_install?
111
114
  # This allows the subprocess to find the 'bundler' gem, which isn't in the cachedir above for gem installs.
112
115
  # bundler_gem_path = File.absolute_path(File.join(Gem.loaded_specs['bundler'].gem_dir, '..', '..', '..', '..', '..'))
113
116
  bundler_gem_path = File.absolute_path(File.join(`bundle show bundler`, '..', '..'))
@@ -70,13 +70,16 @@ module PDK
70
70
  end
71
71
  module_function :pdk_package_basedir
72
72
 
73
+ def package_cachedir
74
+ File.join(pdk_package_basedir, 'share', 'cache')
75
+ end
76
+ module_function :package_cachedir
77
+
73
78
  # Returns the fully qualified path to a per-user PDK cachedir.
74
79
  #
75
80
  # @return [String] Fully qualified path to per-user PDK cachedir.
76
81
  def cachedir
77
- if package_install?
78
- File.join(pdk_package_basedir, 'share', 'cache')
79
- elsif Gem.win_platform?
82
+ if Gem.win_platform?
80
83
  File.join(ENV['LOCALAPPDATA'], 'PDK', 'cache')
81
84
  else
82
85
  File.join(Dir.home, '.pdk', 'cache')
@@ -146,7 +146,7 @@ module PDK
146
146
  end
147
147
 
148
148
  def bundle_cachedir
149
- @bundle_cachedir ||= File.join(PDK::Util.cachedir)
149
+ @bundle_cachedir ||= PDK::Util.package_install? ? PDK::Util.package_cachedir : File.join(PDK::Util.cachedir)
150
150
  end
151
151
  end
152
152
  end
@@ -1,3 +1,3 @@
1
1
  module PDK
2
- VERSION = '0.4.0'.freeze
2
+ VERSION = '0.4.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Puppet, Inc.
@@ -201,7 +201,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
201
201
  version: '0'
202
202
  requirements: []
203
203
  rubyforge_project:
204
- rubygems_version: 2.6.12
204
+ rubygems_version: 2.2.5
205
205
  signing_key:
206
206
  specification_version: 4
207
207
  summary: A key part of the Puppet Development Kit, the shortest path to better modules