kmz_compressor 2.0.21 → 2.0.22

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e22aba0509514efb8239afffafda9f4b54109f40
4
- data.tar.gz: 7a21381d0c48f1136c234c2ee11efb423793963a
3
+ metadata.gz: 7c0cdb891c953271f526cefac46162b65e7a59b1
4
+ data.tar.gz: 0791487c75fa6d75b41e548ae60b69f59df13603
5
5
  SHA512:
6
- metadata.gz: c81b20493bd109cf7b692b16430aed4a5d47e32014c0c7e2bc7cbf2cdd36254f2ff30120ac45c080f40064d19471c59176d0c84174ab28f3cef9126331e59ab9
7
- data.tar.gz: ceb030a69d360f877d38154d1aa081c86a00121cafea3dfef8ab59460fc9d68cfe800b9a2db07d0ff4833745662bf4dabc2cf440d54f3c210f16770b56936d23
6
+ metadata.gz: ef555f72d4b36e225868ec7c210a714d8240b67d14dd8e7664eaad25d311505b691aafcc7e650e7d45034c6b97d87f5213d37587d41cb6d0227dbd1a1c2b7db2
7
+ data.tar.gz: abb60b427a83111edf4bea5b6b2ff5e3896e914a550c4f66f35f419004dbf75294d7817de69f11a55ae2f7abc0b40f0dcf8fddd729cecf221adb34645cdd74bb
@@ -21,7 +21,7 @@ module KMZCompressor
21
21
  Rails.cache.write(cache_key, true, :expires_in => 1.hour) # Expire in case we somehow leave the cache key behind
22
22
  action.call
23
23
  ensure
24
- # Rails.cache.delete(cache_key)
24
+ Rails.cache.delete(cache_key)
25
25
  end
26
26
  end
27
27
  end
@@ -3,9 +3,11 @@ require 'kmz_compressor/controller_extensions'
3
3
  module KMZCompressor
4
4
  class Engine < Rails::Engine
5
5
 
6
- initializer 'kmz_compressor.extend_application_controller' do |app|
7
- ApplicationController.extend ControllerExtensions::ClassMethods
8
- ApplicationController.include ControllerExtensions::InstanceMethods
6
+ initializer 'kmz_compressor.load_controller_extensions' do |app|
7
+ ActiveSupport.on_load(:action_controller) do
8
+ extend ControllerExtensions::ClassMethods
9
+ include ControllerExtensions::InstanceMethods
10
+ end
9
11
  end
10
12
 
11
13
  end
@@ -1,3 +1,3 @@
1
1
  module KMZCompressor
2
- VERSION = "2.0.21"
2
+ VERSION = "2.0.22"
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.21
4
+ version: 2.0.22
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: 2015-03-11 00:00:00.000000000 Z
12
+ date: 2015-04-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -85,7 +85,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
85
85
  version: '0'
86
86
  requirements: []
87
87
  rubyforge_project:
88
- rubygems_version: 2.2.2
88
+ rubygems_version: 2.4.6
89
89
  signing_key:
90
90
  specification_version: 4
91
91
  summary: Rack Middleware which retrieves KML from Rails and produces KMZ for the client.