kmz_compressor 2.0.8 → 2.0.9

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: 65db92edb568571f0dcd7be6b65898e8d0a8aed1
4
- data.tar.gz: 3d0189bcfab3627170a72e2f32076889f8589a91
3
+ metadata.gz: 9c7923fe3dfcc2c50afee65808b17b21325d9c6c
4
+ data.tar.gz: 5756db8aaabb107fed7cc7c516d6f7059030c97c
5
5
  SHA512:
6
- metadata.gz: 069c187f9884e2f3fde0e1aaae283296a28541ac38040e07aa8b37dd0f6433f051ad8c004229b27161ed93535412b9cba210557c8fd0b42952c532c260616933
7
- data.tar.gz: 57d1276e71dd73a9ed36f83fff793ef6eb9ef15a1c4820fade890ac6e06489607c10293bcb70be7a5fa15ce36a5c07c9e19eed5668baa3a234805b981a7eaf86
6
+ metadata.gz: 518dbe4543455963feeb7c499eab3bb35fd9fc0b36a16009c5b954d3b8ce1285e8732ef0bb0da5af617342b588817e9912a1776ac0fcd4069b60558b623858ef
7
+ data.tar.gz: d9ca743c4584382a68c099dbf6b8615e6dbeccffe1aaa5404c6789a1c658f45f4e2fdd0f7575c22040b84201c97d29201586873f2248fda6d68637cf4e3a7f56
@@ -34,10 +34,10 @@ module KMZCompressor
34
34
  if status == 200 && !file_exists
35
35
  # Zip the KML response and save it on the HD
36
36
  FileUtils.mkdir_p(File.dirname(cache_path))
37
- zipfile = Zip::File.open(cache_path, Zip::File::CREATE)
38
- zipfile.get_output_stream("doc.kml") { |os| os.write response.body }
39
- zipfile.commit
40
- response = [zipfile]
37
+ Zip::File.open(cache_path, Zip::File::CREATE) do |zipfile|
38
+ zipfile.get_output_stream("doc.kml") { |os| os.write response.body }
39
+ end
40
+ response = [File.open(cache_path).read]
41
41
  end
42
42
 
43
43
  # Allow Cross-Domain HEAD/GET requests to support subdomains
@@ -1,3 +1,3 @@
1
1
  module KMZCompressor
2
- VERSION = "2.0.8"
2
+ VERSION = "2.0.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kmz_compressor
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.8
4
+ version: 2.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Wallace
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-06-19 00:00:00.000000000 Z
12
+ date: 2014-06-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails