change_manager 0.3.1 → 0.3.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a55cd86261394e4da0e5af362ca8a31c26dc9b6d
|
4
|
+
data.tar.gz: c779db6ea8d7a6c47a4d73ddc9f516eb8ad30952
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f60222192959a837de36ae909f7708a4d616810f35506305df7b2f364c7d4f59d331de3c70b2fa1993573deb255a0a76d49f87a95b1b5e2b08417c540c335d26
|
7
|
+
data.tar.gz: f4df27ad95c6f22e1d130a4cf266f9df667d55447970b900920212d54b4e10d2534cd7e0a6f8f932c167057e4f78b0bd92b153c9c83e327f80ddc6075af49070
|
@@ -40,7 +40,10 @@ module ChangeManager
|
|
40
40
|
def inverse_of?(possible_inverse_change)
|
41
41
|
@change_types ||= YAML.load_file(File.join(ChangeManager::Engine.root, 'config/change_types.yml'))
|
42
42
|
if self.context == possible_inverse_change.context
|
43
|
-
self.change_type == @change_types[possible_inverse_change.change_type]['inverse']
|
43
|
+
if self.change_type == @change_types[possible_inverse_change.change_type]['inverse']
|
44
|
+
puts 'found inverse change'
|
45
|
+
return true
|
46
|
+
end
|
44
47
|
else
|
45
48
|
false
|
46
49
|
end
|
@@ -2,8 +2,7 @@ module ChangeManager
|
|
2
2
|
module Manager
|
3
3
|
def queue_change(owner, change_type, context, target)
|
4
4
|
change_id = Change.new_change(owner, change_type, context, target)
|
5
|
-
Resque.
|
6
|
-
# Resque.enqueue_in(5.minutes, ChangeManager::BeginChange, change_id)
|
5
|
+
Resque.enqueue_in(7.minutes, ChangeManager::BeginChange, change_id)
|
7
6
|
end
|
8
7
|
|
9
8
|
def process_change(change_id)
|