state_machines-after_transition_commit 0.1.0 → 0.1.1

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
  SHA256:
3
- metadata.gz: '003861e4c0cb1550f000dc45f44539f3888cfe9c2a9fbb3f8e3d8152e0587c5e'
4
- data.tar.gz: e200d230b7f7b0fcf732f291afffdc5eae084165ef7cbe29b0e20132f35ee4f1
3
+ metadata.gz: 4fc2a4733434549e3c138e3fd6e443d51ae0dadad4608da97c6c8f81ade8d7c7
4
+ data.tar.gz: 56187a1602173c09cd9e0aa520d593b7aa29d103113818185e503955066f20b2
5
5
  SHA512:
6
- metadata.gz: a4c4a9589808417fe86c76b5d7da92bc5a572ed36ac26c0980d9a314f046080259b825cc8154ce186f230f94091e096169e5f8c9963fedb31fc6047fc90c19b1
7
- data.tar.gz: 6085ade70f57610b99c7b35cac58c59aa770d5afdf88cb1bac78c07acbc925435579b723441eef00e242666bbdaa69986c6c40d2521805a3bb91bed0d6eb459c
6
+ metadata.gz: c490a7acec41201a4c113a3fef2da071639347fadc8f4cc9efb330a75c91b16fd21aad644ac53265641ca997952766a1389d99b9396703ad4ddf9a5501107e38
7
+ data.tar.gz: d2308912548a4322d939576c51a3bb05cabb8396bcc7d3ae8eb96e1682462a77b01baba5a2514298d8f527052f0db2e88cda7b6024b0a6a51074332c6d1c8e69
data/.gitignore CHANGED
@@ -9,3 +9,4 @@
9
9
 
10
10
  # rspec failure tracking
11
11
  .rspec_status
12
+ *.gem
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- state_machines-after_transition_commit (0.1.0)
4
+ state_machines-after_transition_commit (0.1.1)
5
5
  activerecord (>= 5.2, < 7.0)
6
6
  state_machines-activerecord (>= 0.6.0, < 1)
7
7
 
@@ -16,9 +16,9 @@ module StateMachines
16
16
  end
17
17
  end
18
18
 
19
- def after_transition_commit(**args, &after_transistion_block)
19
+ def after_transition_commit(*args, &after_transistion_block)
20
20
  state_machine = self
21
- state_machine.after_transition(**args) do |object, _transition|
21
+ state_machine.after_transition(*args) do |object, _transition|
22
22
  blocks_to_call_after_commit = object.instance_variable_get(:@blocks_to_call_after_commit) || []
23
23
  blocks_to_call_after_commit << after_transistion_block
24
24
  object.instance_variable_set(:@blocks_to_call_after_commit, blocks_to_call_after_commit)
@@ -1,5 +1,5 @@
1
1
  module StateMachines
2
2
  module AfterTransitionCommit
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: state_machines-after_transition_commit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Fong