kmz_compressor 2.4.0 → 2.5.0

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: 900db2f711c16f75ccd0ab7f909163baae81d4aed79e5caf1200e3e80f9db373
4
+ data.tar.gz: a02a1ef19618a795256d9d3bcaebd3c73077a97570babcdb2ac9a3830671839d
5
5
  SHA512:
6
- metadata.gz: 2460a4dbb8c2d967decb7d4a5879769b429b727fed3c78dc7791df967bb6f8ee8010e891192d71b95e2006380fe804d7cc53f145bf3b9db26894429a28a6ccad
7
- data.tar.gz: 6772159987da4d9f1510d70ccb4376b79189b038d807c8cc35383be5a642a4dfce34a47da1dcdf9ea1ac93abf6ec501b4f27b66929a67577de216b0084e4d945
6
+ metadata.gz: c1b5f47150dbf3190c9b02e272b532b9c1e4823d3f5e4ec7f02cede4403cfea759fe93445a60ce069bb97f21a811f76e2cd39a5b195e57b7ce0253bb3a8bfb3f
7
+ data.tar.gz: 5bf904fcdddee23b9007f417a20fabed3038789d6ed6e0125c469cd8f8c08cd4167101291de6393d70fe65a82f361a1ec4d7b1ecfb4e02c4033cae66452e3fa4
@@ -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]
@@ -1,3 +1,3 @@
1
1
  module KMZCompressor
2
- VERSION = "2.4.0"
2
+ VERSION = "2.5.0"
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.0
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-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -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.