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: a1c694d9e66c435b9127a56a3ca74e55144ca297
4
- data.tar.gz: 678a13d9d8910617571120f256dc957253e59070
3
+ metadata.gz: a55cd86261394e4da0e5af362ca8a31c26dc9b6d
4
+ data.tar.gz: c779db6ea8d7a6c47a4d73ddc9f516eb8ad30952
5
5
  SHA512:
6
- metadata.gz: d7acd8d6f3ebd8a260fa79daf3ff65da4763029e5eade12be8ae9277f4f1effde735389db22e240a2f2832f9c24dbd66c3f1f199d568c9b786f9bcb2420fbc5c
7
- data.tar.gz: e1706571b28f431a562e43d83406ec183cd7e2cc007c70b7ae977a4132d3d95e446614e367568ad74817a51016a910c8525e22c7b793d6eb9e4a2a17557795c5
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.enqueue(ChangeManager::BeginChange, change_id)
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)
@@ -1,3 +1,3 @@
1
1
  module ChangeManager
2
- VERSION = "0.3.1"
2
+ VERSION = "0.3.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: change_manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kyle Lawhorn