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: 33de4b9e427af100565086251882dabaa301e7d7043b97412fbf58e4056e6daa
4
- data.tar.gz: 35aecd98712fe4a363e46420d48a7ef033f808d50e4e2fbd97364d7796183001
3
+ metadata.gz: 52b76e1e52932e9b5dc275997391a78decfb3fe03e89dd74737e218dbf5af1dd
4
+ data.tar.gz: 8e3b64f3f0699a006c28d4f1d32dad7ec024d7f3fd0a26832946badff018d2b4
5
5
  SHA512:
6
- metadata.gz: 2460a4dbb8c2d967decb7d4a5879769b429b727fed3c78dc7791df967bb6f8ee8010e891192d71b95e2006380fe804d7cc53f145bf3b9db26894429a28a6ccad
7
- data.tar.gz: 6772159987da4d9f1510d70ccb4376b79189b038d807c8cc35383be5a642a4dfce34a47da1dcdf9ea1ac93abf6ec501b4f27b66929a67577de216b0084e4d945
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
- }}).error(function(){
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, Zip::File::CREATE) do |zipfile|
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
@@ -1,3 +1,3 @@
1
1
  module KMZCompressor
2
- VERSION = "2.4.0"
2
+ VERSION = "2.5.1"
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.4.0
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: 2023-07-07 00:00:00.000000000 Z
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: 1.0.0
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: 1.0.0
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.5
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.