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 +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/pdk/cli/exec.rb +6 -3
- data/lib/pdk/util.rb +6 -3
- data/lib/pdk/util/bundler.rb +1 -1
- data/lib/pdk/version.rb +1 -1
- 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: 9ea5f48c79dcfed30096538854272bcc6bca4ec3
|
4
|
+
data.tar.gz: a696b79de41f728412f956e8e85278b5e7049001
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 49cb66d1d8000fb2df7b8eeba4ff75d096fbb0880b63c8f81160696182dc3580e914ebc916e443a15d544031ced1365a0fa72c3ffa228921d3c589517a10c0dc
|
7
|
+
data.tar.gz: a4e7975893a393179ebfb0ec77504e37ce981521466d3639a165a0783d80837042511ba54afd2ff7c4d6f23a85e29938ab413a72f3a826616e00a2bab5dc8038
|
data/CHANGELOG.md
CHANGED
@@ -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
|
|
data/lib/pdk/cli/exec.rb
CHANGED
@@ -104,10 +104,13 @@ module PDK
|
|
104
104
|
end
|
105
105
|
|
106
106
|
if context == :module
|
107
|
-
|
108
|
-
|
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`, '..', '..'))
|
data/lib/pdk/util.rb
CHANGED
@@ -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
|
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')
|
data/lib/pdk/util/bundler.rb
CHANGED
data/lib/pdk/version.rb
CHANGED
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.
|
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.
|
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
|