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 +4 -4
- data/lib/kmz_compressor/middleware.rb +4 -4
- data/lib/kmz_compressor/railtie.rb +1 -1
- data/lib/kmz_compressor/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: de2072221986c625e573f0189fc8b054f228b728
|
4
|
+
data.tar.gz: c03af3b0b09fe3dcc5ccdeb38078881155e01b7d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
38
|
-
|
39
|
-
|
40
|
-
response = [
|
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
|
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.
|
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:
|
35
|
+
name: rubyzip
|
36
36
|
requirement: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
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:
|
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:
|