kmz_compressor 2.0.6 → 2.0.7

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: a71746fd72cb32fc4d29b66ab6f8c245da066ef4
4
- data.tar.gz: dbdd894f1a77c8466e13fb89447e58e97da38679
3
+ metadata.gz: de2072221986c625e573f0189fc8b054f228b728
4
+ data.tar.gz: c03af3b0b09fe3dcc5ccdeb38078881155e01b7d
5
5
  SHA512:
6
- metadata.gz: 3ab860c237b60c82bc0369b8c5f7b8e90beacfa6663e8149253dc989cd243fe72ece1ad4d52c97ec7ff339739a05e53d22414d7a1bd1919f1da88f169fa327b5
7
- data.tar.gz: 0ca85d575e72195297241597662b74f760e640b38fffec9861bde3187f9e41590245a442f1be4e48e6d5e5464f906b3956324260f51f6669055efaea63c998b9
6
+ metadata.gz: 2b59acfc01f00117a8adf96da431bfd119872b63fe5dc48e443794bfb60a3adf374e8c9245847fe7fcdb7b52b24473bd3e483fae611bf609644bcb4f6e037895
7
+ data.tar.gz: 357f6ced15de86ecb3c7d2cd5ee94f46b095795e1d147e80164e37205a3ac546eb2f8c5bdc559f177ac30ad3a76726b96bfbfaeae01e2af0745a761eb9c061bf
@@ -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
- response = Zippy.create(cache_path) do |zip|
38
- zip['doc.kml'] = response.body
39
- end
40
- response = [response.data]
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]
41
41
  end
42
42
 
43
43
  # Allow Cross-Domain HEAD/GET requests to support subdomains
@@ -1,6 +1,6 @@
1
1
  require 'fileutils'
2
2
  require 'digest'
3
- require 'zippy'
3
+ require 'zip'
4
4
  require 'kmz_compressor/middleware'
5
5
 
6
6
  module KMZCompressor
@@ -1,3 +1,3 @@
1
1
  module KMZCompressor
2
- VERSION = "2.0.6"
2
+ VERSION = "2.0.7"
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.6
4
+ version: 2.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Wallace
@@ -32,19 +32,19 @@ dependencies:
32
32
  - !ruby/object:Gem::Version
33
33
  version: 4.1.0
34
34
  - !ruby/object:Gem::Dependency
35
- name: zippy
35
+ name: rubyzip
36
36
  requirement: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 0.2.0
40
+ version: 1.1.4
41
41
  type: :runtime
42
42
  prerelease: false
43
43
  version_requirements: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 0.2.0
47
+ version: 1.1.4
48
48
  description: Rack Middleware which retrieves KML from Rails and produces KMZ for the
49
49
  client.
50
50
  email: