kmz_compressor 2.0.8 → 2.0.9
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/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9c7923fe3dfcc2c50afee65808b17b21325d9c6c
|
4
|
+
data.tar.gz: 5756db8aaabb107fed7cc7c516d6f7059030c97c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
38
|
-
|
39
|
-
|
40
|
-
response = [
|
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
|
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.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-
|
12
|
+
date: 2014-06-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|