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 +4 -4
- data/.travis.yml +8 -1
- data/delayed_after_commit.gemspec +1 -1
- data/lib/delayed_after_commit.rb +3 -2
- data/lib/delayed_after_commit/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5df4be9819e4564b080faeb3288b16b49a53e476
|
4
|
+
data.tar.gz: f35ffa1709c0121436a1c1506dd3112cb0ead1ca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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://
|
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"
|
data/lib/delayed_after_commit.rb
CHANGED
@@ -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.
|
11
|
-
|
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)
|
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
|
+
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-
|
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://
|
148
|
+
homepage: https://github.com/intellum/delayed_after_commit
|
149
149
|
licenses: []
|
150
150
|
metadata: {}
|
151
151
|
post_install_message:
|