delayed_after_commit 0.1.2 → 0.1.3

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: ed5c2eaced3dc09bcd1478656122d4b108ed0f2e
4
- data.tar.gz: ceb37a45202f51e11b36ded5eb7e193ca9951acf
3
+ metadata.gz: 505deeff3ceb5cbe3e84a6ce674673877cfcc3d7
4
+ data.tar.gz: 9fc961563f97c2192353fa2e6f7dcbb3cb34076d
5
5
  SHA512:
6
- metadata.gz: b4fa32073e9e9127762c3e4a5242b8f1152a76a1392696182b45e104adf7690716fd173dade874fcded27a93431cfcbf5cd8289767f7139d61a6dba9453a68c5
7
- data.tar.gz: 2eab58dd585a70865cd61732845c740108f3552f58597826c5499172e5f379ff00370eec164b5bc3f359bc967c508722bb54d80067b0ccce69fb117c78d3d5ea
6
+ metadata.gz: 149a3108f3434350a7ca566385be95788c2e4d4eb62454770efadef9e3f13349ff904042fe3a5ed60b9025f62673a084158e2b5a448309f44dac49016c28edd2
7
+ data.tar.gz: b95789a1e63856354cd6673508685653c8178f60afe202e69499e35fd29da29c29d7d760f6c21e310d5f1b98a06d94d3479d0e854165067dfe4240e7a071e01a
data/README.md CHANGED
@@ -30,8 +30,8 @@ Or install it yourself as:
30
30
 
31
31
  class User < ActiveRecord::Base
32
32
  include DelayedAfterCommit
33
- delayed_on_update :hi_ive_been_updated
34
- delayed_on_create :hi_im_new_around_here
33
+ delayed_after_update :hi_ive_been_updated
34
+ delayed_after_create :hi_im_new_around_here
35
35
 
36
36
  def hi_ive_been_updated
37
37
  puts "Hi - I've been updated"
@@ -11,11 +11,11 @@ module DelayedAfterCommit
11
11
  obj.send(method)
12
12
  end
13
13
 
14
- def delayed_on_create(method, &block)
14
+ def delayed_after_create(method, &block)
15
15
  delayed_after_commit(method, on: :create, &block)
16
16
  end
17
17
 
18
- def delayed_on_update(method, &block)
18
+ def delayed_after_update(method, &block)
19
19
  delayed_after_commit(method, on: :update, &block)
20
20
  end
21
21
 
@@ -1,3 +1,3 @@
1
1
  module DelayedAfterCommit
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: delayed_after_commit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Simon Rentzke