appbundle-updater 0.2.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -1
- data/bin/appbundle-updater +2 -14
- data/lib/appbundle_updater/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5ee2af6cee8b6d5c23bf4516458c8ef78c853a94
|
4
|
+
data.tar.gz: 98b37f27032d5b5a1ad5701b82260d5453f1b534
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: afd0e92282999029a0e0864b9e37cb03407e9d33cdf1d5b1b99ea150fcd50ed0f05da6311345c095cf58f05ed697715f4bbde61511c91a98c49be169c35507d4
|
7
|
+
data.tar.gz: 404499c037445276800aab9f9d585509989b8b1df1c79f06e3ff2f487038648be1f054583cc5194eec4e2abf758990bb774dfa7c0cdd81317afd2476cfa62b27
|
data/CHANGELOG.md
CHANGED
@@ -2,7 +2,18 @@
|
|
2
2
|
|
3
3
|
## [Unreleased](https://github.com/chef/appbundle-updater/tree/HEAD)
|
4
4
|
|
5
|
-
[Full Changelog](https://github.com/chef/appbundle-updater/compare/v0.2.
|
5
|
+
[Full Changelog](https://github.com/chef/appbundle-updater/compare/v0.2.4...HEAD)
|
6
|
+
|
7
|
+
**Merged pull requests:**
|
8
|
+
|
9
|
+
- correct windows fix is setting binmode [\#10](https://github.com/chef/appbundle-updater/pull/10) ([lamont-granquist](https://github.com/lamont-granquist))
|
10
|
+
- remove stray Dir.chdir call on windows [\#9](https://github.com/chef/appbundle-updater/pull/9) ([lamont-granquist](https://github.com/lamont-granquist))
|
11
|
+
|
12
|
+
## [v0.2.4](https://github.com/chef/appbundle-updater/tree/v0.2.4) (2015-09-29)
|
13
|
+
[Full Changelog](https://github.com/chef/appbundle-updater/compare/v0.2.3...v0.2.4)
|
14
|
+
|
15
|
+
## [v0.2.3](https://github.com/chef/appbundle-updater/tree/v0.2.3) (2015-09-29)
|
16
|
+
[Full Changelog](https://github.com/chef/appbundle-updater/compare/v0.2.2...v0.2.3)
|
6
17
|
|
7
18
|
**Merged pull requests:**
|
8
19
|
|
data/bin/appbundle-updater
CHANGED
@@ -60,22 +60,9 @@ end
|
|
60
60
|
|
61
61
|
TAR_LONGLINK = '././@LongLink'
|
62
62
|
|
63
|
-
def extract_tgz(file, destination = '.')
|
64
|
-
if windows?
|
65
|
-
extract_tgz_windows(file, destination)
|
66
|
-
else
|
67
|
-
extract_tgz_unix(file, destination)
|
68
|
-
end
|
69
|
-
end
|
70
|
-
|
71
|
-
# our windows omnibus packages all are guaranteed to have tar
|
72
|
-
def extract_tgz_windows(file, destination = '.')
|
73
|
-
run("tar xf #{file} --directory #{destination}")
|
74
|
-
end
|
75
|
-
|
76
63
|
# pure ruby `tar xzf`, handles longlinks and directories ending in '/'
|
77
64
|
# (http://stackoverflow.com/a/31310593/506908)
|
78
|
-
def
|
65
|
+
def extract_tgz(file, destination = '.')
|
79
66
|
# NOTE: THIS IS DELIBERATELY PURE RUBY USING NO NATIVE GEMS AND ONLY
|
80
67
|
# THE RUBY STDLIB BY DESIGN
|
81
68
|
Gem::Package::TarReader.new( Zlib::GzipReader.open file ) do |tar|
|
@@ -181,6 +168,7 @@ class Updater
|
|
181
168
|
banner("Extracting #{app} from #{git_url}")
|
182
169
|
Dir.chdir(chefdk.join("embedded/apps")) do
|
183
170
|
Tempfile.open('appbundle-updater') do |tempfile|
|
171
|
+
tempfile.binmode
|
184
172
|
open(git_url) do |uri|
|
185
173
|
tempfile.write(uri.read)
|
186
174
|
end
|