chewy_kiqqer 0.1.3 → 0.1.4

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: c9bae4da58d909b44300b9d31d016c894aa1d1b2
4
- data.tar.gz: 418f8fc4223f123d3ade0dfc092bdbfa9c713739
3
+ metadata.gz: cb3f4ba0613a2a7aaf26d0420b24b04b71e4e7d8
4
+ data.tar.gz: eb448452aea67e4fd1cdc10abd2994730b9313e0
5
5
  SHA512:
6
- metadata.gz: cfb145ae5e7562e191b1296ea9536ce15b643afb05fe771e52f5cafca062104d0ba68800a9be8afe54a2a6531a8a4332fe0f5a0386adca42ff8ecb7428606fe0
7
- data.tar.gz: 7501d9ca3a1c8a74ae6d6edf40f504642c6a93b4339aef7f49ad562f04c8e26e4f5733c95c4bf8450c9472e97c4cdf8d7b55821afa3fbea4874474f0a05a7626
6
+ metadata.gz: cc1e952e7d5563ba29a3c66062dd3b60b530b97e6a0bd0823b21f480ab21e2dc1028d0890c3940dbb198e234ef5e492d05b394c369564a99170599a39c3495e5
7
+ data.tar.gz: 58781a4e0677d625b432a733b46cd741f6ba9fd647d6d72350c0aca3824563d62c2e8a3249f8eec2acfdc34fa85d0b660266f43e86ca2513609d6e5e75ab3207
@@ -30,8 +30,7 @@ module ChewyKiqqer
30
30
  end
31
31
 
32
32
  def install_chewy_hooks
33
- after_save :queue_chewy_jobs
34
- after_destroy :queue_chewy_jobs
33
+ after_commit :queue_chewy_jobs
35
34
  end
36
35
  end
37
36
 
@@ -1,3 +1,3 @@
1
1
  module ChewyKiqqer
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
data/spec/mixin_spec.rb CHANGED
@@ -3,8 +3,7 @@ require 'chewy_kiqqer'
3
3
  class Gummi
4
4
  include ChewyKiqqer::Mixin
5
5
 
6
- def self.after_save(*args) ; end
7
- def self.after_destroy(*args) ; end
6
+ def self.after_commit(*args) ; end
8
7
 
9
8
  end
10
9
 
@@ -38,8 +37,7 @@ describe ChewyKiqqer::Mixin do
38
37
  context '#install hooks' do
39
38
 
40
39
  it 'installs the hooks' do
41
- Gummi.should_receive(:after_save).with(:queue_chewy_jobs)
42
- Gummi.should_receive(:after_destroy).with(:queue_chewy_jobs)
40
+ Gummi.should_receive(:after_commit).with(:queue_chewy_jobs)
43
41
  Gummi.install_chewy_hooks
44
42
  end
45
43
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chewy_kiqqer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Hahn
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-14 00:00:00.000000000 Z
11
+ date: 2014-06-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sidekiq