kmz_compressor 2.4.0 → 2.5.1
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
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 52b76e1e52932e9b5dc275997391a78decfb3fe03e89dd74737e218dbf5af1dd
|
|
4
|
+
data.tar.gz: 8e3b64f3f0699a006c28d4f1d32dad7ec024d7f3fd0a26832946badff018d2b4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4542ae1b7ada5fc6a8c864f1a4fa3490f34d661658a9083b498be0e48bd947f471060b6e133539a95176cc6e7348355be00158596c03fec2a485b335fec86255
|
|
7
|
+
data.tar.gz: a042cf127f05130cc350b79e1d54ecb1bf015d6fb113207687748791844843c65b8ad7b432e02b7833df69f83c5e9f2dacf25d76d4fefda03640dc1d6f52a111
|
|
@@ -28,7 +28,7 @@ window.MapLayerManager = function(map){
|
|
|
28
28
|
loadKMLLayerWithoutExtraParams(cachedKMZURL(kmlURL), layerName, options)
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
|
-
}}).
|
|
31
|
+
}}).fail(function(){
|
|
32
32
|
console.error("Server returned an error when checking if " + kmlURL + " was cached")
|
|
33
33
|
})
|
|
34
34
|
|
|
@@ -287,7 +287,7 @@ window.MapLayerManager = function(map){
|
|
|
287
287
|
search = search.replace(/\+/g, '%20') // Ensure all "plus spaces" are hex encoded spaces
|
|
288
288
|
search = decodeURIComponent(search).trim().replace(/^\?/, '') // Remove any leading ?
|
|
289
289
|
|
|
290
|
-
output = pathname
|
|
290
|
+
var output = pathname
|
|
291
291
|
if (search !== '') { output += '?' }
|
|
292
292
|
|
|
293
293
|
// Encode the individual uri components
|
|
@@ -34,7 +34,7 @@ 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
|
-
Zip::File.open(cache_path,
|
|
37
|
+
Zip::File.open(cache_path, create: true) do |zipfile|
|
|
38
38
|
zipfile.get_output_stream("doc.kml") { |os| os.write response.body }
|
|
39
39
|
end
|
|
40
40
|
response = [File.open(cache_path).read]
|
|
@@ -6,6 +6,9 @@ require 'kmz_compressor/middleware'
|
|
|
6
6
|
module KMZCompressor
|
|
7
7
|
class Railtie < Rails::Railtie
|
|
8
8
|
initializer "kmz_compressor.init" do |app|
|
|
9
|
+
# Google Earth Desktop doesn't support Zip64, so we need to disable it in rubyzip
|
|
10
|
+
Zip.write_zip64_support = false
|
|
11
|
+
|
|
9
12
|
app.config.middleware.use KMZCompressor::Middleware
|
|
10
13
|
|
|
11
14
|
Mime::Type.register "application/vnd.google-earth.kml+xml", :kml
|
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.
|
|
4
|
+
version: 2.5.1
|
|
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:
|
|
12
|
+
date: 2026-02-27 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rails
|
|
@@ -31,14 +31,14 @@ dependencies:
|
|
|
31
31
|
requirements:
|
|
32
32
|
- - ">="
|
|
33
33
|
- !ruby/object:Gem::Version
|
|
34
|
-
version:
|
|
34
|
+
version: 3.0.0
|
|
35
35
|
type: :runtime
|
|
36
36
|
prerelease: false
|
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
|
38
38
|
requirements:
|
|
39
39
|
- - ">="
|
|
40
40
|
- !ruby/object:Gem::Version
|
|
41
|
-
version:
|
|
41
|
+
version: 3.0.0
|
|
42
42
|
description: Rack Middleware which retrieves KML from Rails and produces KMZ for the
|
|
43
43
|
client.
|
|
44
44
|
email:
|
|
@@ -77,7 +77,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
77
77
|
- !ruby/object:Gem::Version
|
|
78
78
|
version: '0'
|
|
79
79
|
requirements: []
|
|
80
|
-
rubygems_version: 3.4.
|
|
80
|
+
rubygems_version: 3.4.1
|
|
81
81
|
signing_key:
|
|
82
82
|
specification_version: 4
|
|
83
83
|
summary: Rack Middleware which retrieves KML from Rails and produces KMZ for the client.
|