tantot 0.1.7 → 0.1.8

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: 7cbd85617052b9bd28db70b1c802e4fedfb30d0c
4
- data.tar.gz: 0ad4111d192342e209a3663822f21a03b8021fa8
3
+ metadata.gz: 6a523888d6f676374dba88050d7cb0026383aefa
4
+ data.tar.gz: db6d802ec982feae01b1bcf0f4926f1cc46d3141
5
5
  SHA512:
6
- metadata.gz: 28ab45b2f7522d326c7d914f7759ba62f172eea2e97c6a7cdc492fd3c63fcffe0d4a850a20992e6d4a47c164ff73934ed3f6cd58882bf1feb05586d5f8b18029
7
- data.tar.gz: 6b1e5eb3c767c78a00c985aec5e5902f6f0c6ebba18d2427f41e164f38a264945e323303da92648aec254e3dc3042d4bf5f259bae0fce9e56591db95aec547dc
6
+ metadata.gz: 3f53c127a4a7f8f51fcb9667bf6e58d6ff5e0c5f51746dcb3c14f11527805183cce3ed409083db36b3077c23c6aa531490ee5126bca29f33f7044d631fe437ee
7
+ data.tar.gz: 75dcd526791dd3f77b760c1f12afab72b73a94bfe9f5c2b4094024757243ac21ecbd50053c3e838da05979bfcff03bec6cc5bbd110a8c2bb2830cc63cb651d29
@@ -9,23 +9,5 @@ module Tantot
9
9
  def sweep(strategy_name = nil)
10
10
  Tantot.agent_registry.each_agent {|agent| agent.sweep(strategy_name)}
11
11
  end
12
-
13
- def perform(context, changes_by_model)
14
- collector = resolve!(context)
15
- Tantot.logger.debug { "[Tantot] [Run] [#{collector.class.name.demodulize}] #{collector.debug_perform(context, changes)}" }
16
- collector.perform(context, changes_by_model)
17
- end
18
-
19
- def marshal(watch, changes)
20
- collector.marshal(context, changes)
21
- end
22
-
23
- def unmarshal(context, changes)
24
- context.deep_symbolize_keys!
25
- collector_class = context[:collector_class].constantize
26
- collector = @watches[collector_class] || @watches[collector_class] = collector_class.new
27
- collector.unmarshal(context, changes)
28
- end
29
-
30
12
  end
31
13
  end
@@ -6,7 +6,7 @@ module Tantot
6
6
  end
7
7
 
8
8
  def call(env)
9
- Tantot.collector.run { @app.call(env) }
9
+ Tantot.manager.run { @app.call(env) }
10
10
  end
11
11
  end
12
12
 
@@ -10,7 +10,7 @@ module Tantot
10
10
 
11
11
  ::Chewy.strategy(chewy_strategy) do
12
12
  agent.peform(Tantot::Strategy::Sidekiq.unmarshal(changes_by_model))
13
- Tantot.collector.perform(context, changes)
13
+ Tantot.manager.perform(context, changes)
14
14
  end
15
15
  end
16
16
  end
@@ -1,3 +1,3 @@
1
1
  module Tantot
2
- VERSION = "0.1.7"
2
+ VERSION = "0.1.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tantot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - François-Pierre Bouchard