batali 0.3.2 → 0.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f637704499224868a3fd2692253a75c7d6d46410
4
- data.tar.gz: f56b260976f1130a477dc8d67291b15df1d15574
3
+ metadata.gz: a62524ceac899f5554c34d8efa5ca6f072d9103b
4
+ data.tar.gz: cf3772dace3e7fa574fc280b1791550fd8a5b38f
5
5
  SHA512:
6
- metadata.gz: 9d9603e1b93ea909264f089b07b7ec8c23c75dafe8f8203a4a9c0363ed693a55d25a67cabe65b56e3ea9300dcddf69a637d47abbd0ffb9853039e0cf8c3df4ff
7
- data.tar.gz: 288c3e2806666f8e54f558283b3aed2f074e055a34e5b9649d14e2502ec5c612327294cbf0704be297042b1db19631f97f99caa0d62d5435cc9222ab69629433
6
+ metadata.gz: 995481f64d68154dd36d959a55cda7bc731e6ea071ee13a5010a2c2abff43a6c0760bd526109113557d4efba2148da0fb46235cb2d80eda4674c794a82df3c80
7
+ data.tar.gz: 38653dbfc9133ed45da0654d81dfbf5f536d8b360133ef45de7705e2e3748c887143bc42026cb2415b51591b2816f42738a03304c2b89aebae7d8a5efae1def6
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ # v0.3.4
2
+ * [fix] Open file as binary when storing compressed asset (#60 and #61 thanks @kenny-evitt!)
3
+
1
4
  # v0.3.2
2
5
  * [enhancement] Error on infrastructure resolution if full requirement list isn't available
3
6
 
@@ -70,7 +70,7 @@ module Batali
70
70
  :entitystore => "file:#{File.join(cache_directory, 'entitystore')}"
71
71
  ).get(result.headers['Location'])
72
72
  end
73
- File.open(a_path = File.join(path, 'asset'), 'w') do |file|
73
+ File.open(a_path = File.join(path, 'asset'), 'wb') do |file|
74
74
  while(content = result.body.readpartial(2048))
75
75
  file.write content
76
76
  end
@@ -83,7 +83,7 @@ module Batali
83
83
  next unless entry.file?
84
84
  n_path = File.join(path, entry.full_name)
85
85
  FileUtils.mkdir_p(File.dirname(n_path))
86
- File.open(n_path, 'w') do |file|
86
+ File.open(n_path, 'wb') do |file|
87
87
  while(content = entry.read(2048))
88
88
  file.write(content)
89
89
  end
@@ -1,4 +1,4 @@
1
1
  module Batali
2
2
  # Current version
3
- VERSION = Gem::Version.new('0.3.2')
3
+ VERSION = Gem::Version.new('0.3.4')
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: batali
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Roberts
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-03 00:00:00.000000000 Z
11
+ date: 2015-12-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: attribute_struct