state_machina 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
  SHA256:
3
- metadata.gz: f91cfe9ff343cb7dfb2634ecc825a061ad776661216de23a6e04e8824710d959
4
- data.tar.gz: d8363c7847375ec9b9c95d52804017be4aa27fce82cc656a1e7102b4287ab423
3
+ metadata.gz: 31ba09ef350378e653c3f7c99c3ade469cdb2da45bffebd2669ab7e61e316a8c
4
+ data.tar.gz: 97b54c53c83db2dbc0fe7e25664b0feb98ef7b82b7c8a5ad5dde536aaba24f8f
5
5
  SHA512:
6
- metadata.gz: 118bed2d86e7f529bd5c395d5a0d988aa29b7fc1532bd989442e97f014a7410df632188c36b7350337c144a487497c9848218442458fe7a9672ac5dc45fd0772
7
- data.tar.gz: ff587876b7a1f2de84f9b573e044bd17ec0c5dde8a99c662291753fc9fac0bb4859897a390deadad5f55b76b535644d05dbf41df454e295f062dc1fb36ed7de1
6
+ metadata.gz: 1edbdd79a822c472e7eadb77869c68282c467f36602a323214170af7690dce27e18dec9b53f821690f47a65c7a189fb4441d1df8ed48301e96b05c855a71ea63
7
+ data.tar.gz: ed5e069229f0b4c8d6abae3fe050a97b73066a784b6abfe94d2e37a940a8b86f5cf4251fa1e6a9d632ad16af9743675e06c6b0e081a8566a41347459e08f7f1b
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- state_machina (0.1.4)
4
+ state_machina (0.1.5)
5
5
  concurrent-ruby (< 2)
6
6
 
7
7
  GEM
@@ -9,7 +9,7 @@ GEM
9
9
  specs:
10
10
  ast (2.4.2)
11
11
  coderay (1.1.3)
12
- concurrent-ruby (1.2.2)
12
+ concurrent-ruby (1.2.3)
13
13
  diff-lcs (1.5.0)
14
14
  method_source (1.0.0)
15
15
  parallel (1.21.0)
@@ -51,6 +51,7 @@ GEM
51
51
 
52
52
  PLATFORMS
53
53
  arm64-darwin-21
54
+ arm64-darwin-22
54
55
  x86_64-darwin-20
55
56
 
56
57
  DEPENDENCIES
@@ -56,7 +56,7 @@ module StateMachina
56
56
  end
57
57
 
58
58
  def self.find_transitions(model_name, machine_name, event_name)
59
- transitions.fetch(model_name.to_s, {}).fetch(machine_name.to_s, {}).fetch(event_name.to_s, [])
59
+ transitions.fetch(model_name.to_s, {}).fetch(machine_name.to_s, {}).fetch(event_name.to_s, []).map(&:dup)
60
60
  end
61
61
 
62
62
  def self.register_transition(transition)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module StateMachina
4
- VERSION = "0.1.4"
4
+ VERSION = "0.1.5"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: state_machina
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
  - Jan van der Pas
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-11-15 00:00:00.000000000 Z
11
+ date: 2024-01-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby