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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 098b14042d0c514e02c1996d8c71f4433aaeb367
4
- data.tar.gz: db1878459ece191bc864fcf791535dbeae5aec26
3
+ metadata.gz: 5ee2af6cee8b6d5c23bf4516458c8ef78c853a94
4
+ data.tar.gz: 98b37f27032d5b5a1ad5701b82260d5453f1b534
5
5
  SHA512:
6
- metadata.gz: 002a8b2ca84bbac6e36a9f34f0224be4780856fc26a1dd50083d140b9c23f119ad2a1d6428d5ebacfb178d91876302bdc5f0ead396ab8d19f6ffba6986dba7ab
7
- data.tar.gz: 1f05d0a78b755a92d5aa7f15abfe152136790e07563ef556b8845b63ef01c2df0fac0b32db6cba041c7fd262244b163a6cab133ee77c7346633a757847706d68
6
+ metadata.gz: afd0e92282999029a0e0864b9e37cb03407e9d33cdf1d5b1b99ea150fcd50ed0f05da6311345c095cf58f05ed697715f4bbde61511c91a98c49be169c35507d4
7
+ data.tar.gz: 404499c037445276800aab9f9d585509989b8b1df1c79f06e3ff2f487038648be1f054583cc5194eec4e2abf758990bb774dfa7c0cdd81317afd2476cfa62b27
@@ -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.2...HEAD)
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
 
@@ -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 extract_tgz_unix(file, destination = '.')
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
@@ -1,3 +1,3 @@
1
1
  module AppbundleUpdater
2
- VERSION = "0.2.4"
2
+ VERSION = "0.2.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appbundle-updater
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - lamont-granquist