deferred_loader 0.0.1 → 0.0.2

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: 2fc5260dd5725a58c1b301930df14318e7453623
4
- data.tar.gz: 38babf5d5879c7e2a5ac4e9bc640a99b47a7e685
3
+ metadata.gz: 5587795312b8c5882cb2b391c92c2fdcc3e7d2b9
4
+ data.tar.gz: 9d6be6c5ed1793c3f015d6b1902a3d502959bde4
5
5
  SHA512:
6
- metadata.gz: 605063699ffc73e5bd93f9f65d38cf1f681f9cbe64d7947bf850d96127c0d03afdce952ed6f52669936bdd35547719ad06b665a505d125f2aa0fa2b811c21c64
7
- data.tar.gz: 50dede1344eb479a915447584d0193c5fab6b56b1693ad67c2cf7fe9a2bf0433403743d4b63340ca258c988aac4601f441a6d31b0db557eec232f23e7abf72fd
6
+ metadata.gz: bbd1d5bffa29e879d37d648e702cdeb1897508da396e4b730c03031045429323a9540dcbcfba461eabaefc5cc298371e0f8522262810599055a3e64ba66167e1
7
+ data.tar.gz: e8bba565ec56f6f94803f68739586dd08e879af60e3decf90aa9c31f514e4741bd52b47188c00b35f8777a55c992ceb498affe3153fd5f76d683687e3089e7dd
@@ -50,7 +50,7 @@ module DeferredLoader
50
50
  end
51
51
  end
52
52
 
53
- def clear
53
+ def self.clear
54
54
  @@registry.clear
55
55
  end
56
56
  end
@@ -1,3 +1,4 @@
1
+ require 'deferred_loader/executable'
1
2
  module DeferredLoader
2
3
  class Railtie < ::Rails::Railtie
3
4
  initializer 'deferred_loader' do |_app|
@@ -12,6 +13,9 @@ module DeferredLoader
12
13
  require 'deferred_loader/active_support_cache_store_extention'
13
14
  ::ActiveSupport::Cache::Store.send :include, DeferredLoader::ActiveSupportCacheStoreExtention
14
15
  end
16
+ ActiveSupport::Notifications.subscribe('start_processing.action_controller') do |*args|
17
+ DeferredLoader::Executable.clear
18
+ end
15
19
  end
16
20
  end
17
21
  end
@@ -1,3 +1,3 @@
1
1
  module DeferredLoader
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deferred_loader
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - maedama
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-05 00:00:00.000000000 Z
11
+ date: 2015-03-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler