delayed_after_commit 0.1.4 → 0.1.5

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: 687299ca082fb4e9f214519ae1220db104880877
4
- data.tar.gz: e1b04ed34dcc255948620b00b646385ae1bf2de2
3
+ metadata.gz: 5df4be9819e4564b080faeb3288b16b49a53e476
4
+ data.tar.gz: f35ffa1709c0121436a1c1506dd3112cb0ead1ca
5
5
  SHA512:
6
- metadata.gz: 4796260a88f2bfee9a0a6814f8cb82ecc42bd36aaee0df1b5de1bbe1e26fa02fadf2a11d08cfe661c933d405329ce19df66913f8e767cd2229651526e24a1587
7
- data.tar.gz: c48126fdfd2615356965c8dbb03ebe296f022bb437400e1949e48956a4a40773bf0f314e7e46b3fa9cebf744d0be6a7e2ebbd4155fc4d5003ac7962e898182a4
6
+ metadata.gz: 7adbc03b4a60e32220d308634dface75b156a88b3ff290b2a255a1edcafa928cd6fe9930f1f4adff73a9da9f42b77121a2b11f385bf61e15703d3756e13514a2
7
+ data.tar.gz: a25240494c8f59a1e5366d1b6c29e1e2d96e26b7f626170c6a39e6628d1f4da1feb6b7994b1a9f758d0b2479551bdbb81d6ae7259ae0b7003582a5c86df487d6
data/.travis.yml CHANGED
@@ -16,4 +16,11 @@ gemfile:
16
16
  - gemfiles/rails_42.gemfile
17
17
  - gemfiles/rails_5.gemfile
18
18
 
19
- script: 'bundle exec rake spec'
19
+ script: 'bundle exec rake spec'
20
+
21
+ notifications:
22
+ email:
23
+ recipients:
24
+ - simon@rentzke.com
25
+ on_success: 'never'
26
+ on_failure: 'change'
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
11
11
 
12
12
  spec.summary = %q{delayed after commit}
13
13
  spec.description = %q{defer your after commit callbacks to sidekiq}
14
- spec.homepage = "https://intellum.com"
14
+ spec.homepage = "https://github.com/intellum/delayed_after_commit"
15
15
 
16
16
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
17
17
  spec.bindir = "exe"
@@ -7,8 +7,9 @@ module DelayedAfterCommit
7
7
  def enqueue_delayed_method(method, id)
8
8
  # this is used as a generic method that is created to run asyncronously from within sidekiq
9
9
  # it finds the object, and runs the deferred method
10
- obj = self.find(id)
11
- obj.send(method)
10
+ if obj = self.find_by_id(id)
11
+ obj.send(method)
12
+ end
12
13
  end
13
14
 
14
15
  def delayed_after_create(*args, &block)
@@ -1,3 +1,3 @@
1
1
  module DelayedAfterCommit
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: delayed_after_commit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Simon Rentzke
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-10-21 00:00:00.000000000 Z
11
+ date: 2016-10-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -145,7 +145,7 @@ files:
145
145
  - gemfiles/rails_5.gemfile.lock
146
146
  - lib/delayed_after_commit.rb
147
147
  - lib/delayed_after_commit/version.rb
148
- homepage: https://intellum.com
148
+ homepage: https://github.com/intellum/delayed_after_commit
149
149
  licenses: []
150
150
  metadata: {}
151
151
  post_install_message: