tantot 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tantot/manager.rb +0 -18
- data/lib/tantot/railtie.rb +1 -1
- data/lib/tantot/strategy/chewy.rb +1 -1
- data/lib/tantot/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6a523888d6f676374dba88050d7cb0026383aefa
|
4
|
+
data.tar.gz: db6d802ec982feae01b1bcf0f4926f1cc46d3141
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3f53c127a4a7f8f51fcb9667bf6e58d6ff5e0c5f51746dcb3c14f11527805183cce3ed409083db36b3077c23c6aa531490ee5126bca29f33f7044d631fe437ee
|
7
|
+
data.tar.gz: 75dcd526791dd3f77b760c1f12afab72b73a94bfe9f5c2b4094024757243ac21ecbd50053c3e838da05979bfcff03bec6cc5bbd110a8c2bb2830cc63cb651d29
|
data/lib/tantot/manager.rb
CHANGED
@@ -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
|
data/lib/tantot/railtie.rb
CHANGED
data/lib/tantot/version.rb
CHANGED