microfsm 0.1.11 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1197992dfa4e55658f487f94e6e55a23dc8fa46205c9447fd9bc6f377b07f925
4
- data.tar.gz: d50e64aaf7d87b103f01b32be2329fc1f071bea96956c727015e7de4099ef560
3
+ metadata.gz: a7974725af299cb54f56eb1542a52799c2b7530d5e389c66eec09c8a4c02de1b
4
+ data.tar.gz: a5651e39934546af36c5764f8fab0ba5703e7aac59ffc8d11c84564c066c087b
5
5
  SHA512:
6
- metadata.gz: 5d6113d4d804542085b0219226b9f5796241f33eb5d0b4c4a4fd5b1d66d19807f0327da0d78c45345027162d28ec5606e146cf4325a15909aa7847c75613b482
7
- data.tar.gz: e78499aee954585e205136923437c1cb0769c092d90def8c557de3501d3a161cb633750b5aaf5ee227a32ebb849c531ea76b4092a143986e03283b0ac296c167
6
+ metadata.gz: 5338e4e3b5f018c149c8941199f971722ff382222b8fb5b4032f629fb2687b7caf1eda320d3484b5aa1766c644a918caa994aa72b528c4ea54acd97ed8747135
7
+ data.tar.gz: a89939784e83be8223b391703301167e3f9b4f1098e5a2132837d5c9f93e7b517c1fa88591d165aded7ae0533ce40039b3f4a26ac6fc2f88e9ea59c0399732ab
data/MIT-LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2021-2025 Dittmar Krall (www.matiq.com)
1
+ Copyright (c) 2021-2026 Dittmar Krall (www.matiq.com)
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/README.md CHANGED
@@ -109,5 +109,5 @@ Check the _examples_ directory for more information.
109
109
 
110
110
  ## Miscellaneous
111
111
 
112
- Copyright (c) 2021-2025 Dittmar Krall (www.matiq.com),
112
+ Copyright (c) 2021-2026 Dittmar Krall (www.matiq.com),
113
113
  released under the [MIT license](https://opensource.org/licenses/MIT).
@@ -6,8 +6,8 @@ fsm = MicroFSM.new(:pending)
6
6
  .when(:confirm, pending: :confirmed) { puts "Confirmed" }
7
7
  .when(:ignore, pending: :ignored) { puts "Ignored" }
8
8
  .when(:reset, confirmed: :pending, ignored: :pending) {
9
- puts "Reset"
10
- }
9
+ puts "Reset"
10
+ }
11
11
 
12
12
  puts "Should print Confirmed, Reset and Ignored:"
13
13
  fsm.trigger(:confirm)
@@ -1,7 +1,7 @@
1
- # frozen_string_literal: true
2
-
3
1
  class MicroFSM
4
- VERSION = "0.1.11" # 2025-06-19
2
+ VERSION = "0.2.1" # 2026-03-31
3
+ # VERSION = "0.2.0" # 2026-01-01
4
+ # VERSION = "0.1.11" # 2025-06-19
5
5
  # VERSION = "0.1.10" # 2024-10-20
6
6
  # VERSION = "0.1.9" # 2024-05-22
7
7
  # VERSION = "0.1.7" # 2023-12-12
@@ -1,7 +1,7 @@
1
- # frozen_string_literal: true
2
-
3
1
  class MicroFSM
4
- VERSION = "0.1.10" # 2024-10-20
2
+ VERSION = "0.2.0" # 2026-01-01
3
+ # VERSION = "0.1.11" # 2025-06-19
4
+ # VERSION = "0.1.10" # 2024-10-20
5
5
  # VERSION = "0.1.9" # 2024-05-22
6
6
  # VERSION = "0.1.7" # 2023-12-12
7
7
  # VERSION = "0.1.6" # 2023-04-25
data/lib/microfsm.rb CHANGED
@@ -1,5 +1,3 @@
1
- # frozen_string_literal: true
2
-
3
1
  class MicroFSM
4
2
  InvalidEvent = Class.new(NoMethodError)
5
3
  InvalidState = Class.new(ArgumentError)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: microfsm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.11
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dittmar Krall
@@ -63,7 +63,7 @@ require_paths:
63
63
  - lib
64
64
  required_ruby_version: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - "~>"
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '3'
69
69
  required_rubygems_version: !ruby/object:Gem::Requirement
@@ -72,7 +72,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
72
72
  - !ruby/object:Gem::Version
73
73
  version: '0'
74
74
  requirements: []
75
- rubygems_version: 3.6.7
75
+ rubygems_version: 4.0.6
76
76
  specification_version: 4
77
77
  summary: Minimal Finite State Machine.
78
78
  test_files: []