actionpack-page_caching 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of actionpack-page_caching might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: aec40ddc90cc6e4f0c88a1d041a4e2368e74f590
4
- data.tar.gz: 284f9f8a27525401639aa769aca2d832386f1119
3
+ metadata.gz: 781564cc88b5d47624ce552331dbbf58634f5891
4
+ data.tar.gz: f7dfd38f06481f38eef9f7630258dae673ecd881
5
5
  SHA512:
6
- metadata.gz: a842015d58450597cce2b09cfb0d72c0646e74633b7ac8f73f0d81beaa3f96745395039791121f23dfc7328fc2bf4b938976fb54135686d1c4362913e145660d
7
- data.tar.gz: 842609d530ac853bad6bdf6ef14320c26197421953c3b1af9d0e3711b31166cbad88276874966ea82a90869468eb40c9a8e18498fa31eced78b99dc3cf6c1aa8
6
+ metadata.gz: 96c15cb3d1b344f31655c04b265ba1c3fb6484726880af6a36165eefcc3dfbbff89851fd47de410429c2a3c1e75e0baa038ef23ecb3b0fbf75c69ed7e9c3c708
7
+ data.tar.gz: d005f7998314f2311492592d958b78397934de01bec68f16806ef5b99ee122e426007bdaecbad7a5d71e2309b53fe56d3bad0b7ce0ca7395fb153cc462082826
@@ -1,3 +1,7 @@
1
+ # 1.0.2
2
+
3
+ * Fix load order problem with other gems.
4
+
1
5
  # 1.0.1
2
6
 
3
7
  * Add Railtie to set `page_cache_directory` by default to `public` folder. (Fixes #5)
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |gem|
4
4
  gem.name = 'actionpack-page_caching'
5
- gem.version = '1.0.1'
5
+ gem.version = '1.0.2'
6
6
  gem.author = 'David Heinemeier Hansson'
7
7
  gem.email = 'david@loudthinking.com'
8
8
  gem.description = 'Static page caching for Action Pack (removed from core in Rails 4.0)'
@@ -1,3 +1,5 @@
1
+ require 'action_controller/caching/pages'
2
+
1
3
  module ActionController
2
4
  module Caching
3
5
  eager_autoload do
@@ -7,3 +9,5 @@ module ActionController
7
9
  include Pages
8
10
  end
9
11
  end
12
+
13
+ ActionController::Base.send(:include, ActionController::Caching::Pages)
@@ -1,2 +1 @@
1
- require 'action_controller/page_caching'
2
1
  require 'actionpack/page_caching/railtie'
@@ -3,6 +3,12 @@ require 'rails/railtie'
3
3
  module ActionPack
4
4
  module PageCaching
5
5
  class Railtie < Rails::Railtie
6
+ initializer 'action_pack.page_caching' do
7
+ ActiveSupport.on_load(:action_controller) do
8
+ require 'action_controller/page_caching'
9
+ end
10
+ end
11
+
6
12
  initializer 'action_pack.page_caching.set_config', before: 'action_controller.set_configs' do |app|
7
13
  app.config.action_controller.page_cache_directory ||= app.config.paths['public'].first
8
14
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: actionpack-page_caching
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Heinemeier Hansson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-24 00:00:00.000000000 Z
11
+ date: 2013-11-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionpack
@@ -86,7 +86,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
86
86
  version: '0'
87
87
  requirements: []
88
88
  rubyforge_project:
89
- rubygems_version: 2.0.6
89
+ rubygems_version: 2.0.3
90
90
  signing_key:
91
91
  specification_version: 4
92
92
  summary: Static page caching for Action Pack (removed from core in Rails 4.0)