kmz_compressor 2.0.4 → 2.0.5

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
  SHA1:
3
- metadata.gz: c576bf27491bbd056f5568cd90b92e515825298d
4
- data.tar.gz: d95f6409fe18975bd648b162c8d559e8f6d2dc9f
3
+ metadata.gz: 3b91bb80ad3cd6eba96d461f849d18e6bfa7df99
4
+ data.tar.gz: e1449adf0d97d7516aac843318be794421b67f63
5
5
  SHA512:
6
- metadata.gz: 4771f6df6cc335d22c6581ae08903bd527d228ccadb8acfa9cf2632be8900478e9cb35893b6740c37539b36faede4638183f7f584e0b717353803d209e808670
7
- data.tar.gz: 00fb859290d526dd74b2c099cd639903297edfb28ff337298164bd774e4f8058c6b837be1ab5fc31fa15a3f7c0ea11579c7ac7c68dab57bb2db15b709d93b35d
6
+ metadata.gz: f85edbd4c7a5b1b98d8c1b8364d95ebc0935833d36928863b0f4bad2a109cdd968be0f9e228024539120ccd4473626156aa038c49d14553a7eef2a2a49f1c0c4
7
+ data.tar.gz: b76b23cdc3e2a3acaff042aa916985b524ab3a484e1809420f251c61b81c3ae41d2e795bbce13c861c5069760d9e6e03c699386e986ea5055989e7a698d4bfd0
@@ -40,6 +40,10 @@ module KMZCompressor
40
40
  response = [response.data]
41
41
  end
42
42
 
43
+ # Allow Cross-Domain HEAD/GET requests to support subdomains
44
+ headers['Access-Control-Allow-Origin'] ||= '*'
45
+ headers['Access-Control-Request-Method'] ||= %w{HEAD GET}.join(",")
46
+
43
47
  # Return the response to the next middleware in the chain
44
48
  [status, headers, response]
45
49
  else
@@ -1,3 +1,3 @@
1
1
  module KMZCompressor
2
- VERSION = "2.0.4"
2
+ VERSION = "2.0.5"
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.0.4
4
+ version: 2.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Wallace