simply_fsm 0.1.0 → 0.1.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: aba0392debc9515f01b6b95bca88ed5c3a4aace120a3b725c4d1a840854a1725
4
- data.tar.gz: 1d7883abe1ce6b0db890203293ea4f3ff2ab275fb876628daf07fb0f9ea087d6
3
+ metadata.gz: 0b86e3a94184036d2ba485db8452bcf2c4ad3c8314e71b56b481f1a428d253ad
4
+ data.tar.gz: 445b68adba6dc1d0376473288af06a04026bdeb055616c0ef3a31acb6f1b068d
5
5
  SHA512:
6
- metadata.gz: 9320692222abae9ec39bebf5b5594f023d97efecec721d400f6aacb5ed758cf0e02d23fc4e5845d604a0ec39682de16d7e919d8024ce69f762722cf134d1243b
7
- data.tar.gz: c1552d33ce0b9e1d682e7e1d7cbbc7cd6ec59fbc4435d63582f67735f6a75cb0fe114910266624aee241f694aa77c2031634351466b798563981fc71f112ef71
6
+ metadata.gz: c754997ecccc818fab23c9079cf6f4f274cd8ab484ea56af7eee49ebc69ce97985814cb0ef0910088e339e8839b6fc4ab8f07848b014313c1106f8f8f310cdb0
7
+ data.tar.gz: e11e94844f8a0e6dcad77b4cc8dc642afeced63c31678d1ac0278d19825e7e194062fa3d569381bac36be9465f85ccf1f500355a08681372cf455a43f03dbbf9
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.1.1] - 2022-02-21
4
+
5
+ - Separated version file, fixed URLs in Gem spec, added badge to README
6
+
3
7
  ## [0.1.0] - 2022-02-21
4
8
 
5
9
  - Initial release supports finite state machine with event guards and failure handling
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- simply_fsm (0.1.0)
4
+ simply_fsm (0.1.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # SimplyFSM
2
2
 
3
+ [![Gem Version](https://badge.fury.io/rb/simply_fsm.svg)](https://badge.fury.io/rb/simply_fsm)
4
+
3
5
  `simply_fsm` is a bare-necessities finite state machine data-type for use with any Ruby class. I created `simply_fsm` because I wanted the minimal FSM data type that was easy to use and did everything I would expect from a core data type.
4
6
 
5
7
  If you need storage/persistence/Rails/etc support, I recommend [AASM](https://github.com/aasm/aasm) whose API was an inspiration for this gem.
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module SimplyFSM
4
+ VERSION = "0.1.1"
5
+ end
data/lib/simply_fsm.rb CHANGED
@@ -1,8 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- module SimplyFSM
4
- VERSION = "0.1.0"
3
+ require 'simply_fsm/version'
5
4
 
5
+ module SimplyFSM
6
6
  def self.included(base)
7
7
  base.extend(ClassMethods)
8
8
  end
data/simply_fsm.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "lib/simply_fsm"
3
+ require_relative "lib/simply_fsm/version"
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "simply_fsm"
@@ -10,14 +10,14 @@ Gem::Specification.new do |spec|
10
10
 
11
11
  spec.summary = "Simple finite state mechine (FSM) data-type mixin for Ruby objects."
12
12
  spec.description = "Use it to setup one or more FSMs in any Ruby object."
13
- spec.homepage = "https://github.com/nogginly/simply_fsm"
13
+ spec.homepage = "https://github.com/nogginly/simply_fsm#simplyfsm"
14
14
  spec.license = "MIT"
15
15
  spec.required_ruby_version = ">= 2.7.0"
16
16
  spec.date = Time.now
17
17
 
18
18
  spec.metadata["homepage_uri"] = spec.homepage
19
- spec.metadata["source_code_uri"] = spec.homepage
20
- spec.metadata["changelog_uri"] = "https://github.com/nogginly/simply_fsm/CHANGELOG.md"
19
+ spec.metadata["source_code_uri"] = "https://github.com/nogginly/simply_fsm"
20
+ spec.metadata["changelog_uri"] = "https://github.com/nogginly/simply_fsm/blob/main/CHANGELOG.md"
21
21
 
22
22
  spec.files = `git ls-files`.split("\n")
23
23
  spec.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simply_fsm
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
  - nogginly
@@ -45,6 +45,7 @@ files:
45
45
  - bin/console
46
46
  - bin/setup
47
47
  - lib/simply_fsm.rb
48
+ - lib/simply_fsm/version.rb
48
49
  - simply_fsm.gemspec
49
50
  - spec/spec_helper.rb
50
51
  - spec/support/state_machine_examples.rb
@@ -53,13 +54,13 @@ files:
53
54
  - spec/unit/one_state_machine_spec.rb
54
55
  - spec/unit/simply_fsm_spec.rb
55
56
  - spec/unit/two_state_machines_spec.rb
56
- homepage: https://github.com/nogginly/simply_fsm
57
+ homepage: https://github.com/nogginly/simply_fsm#simplyfsm
57
58
  licenses:
58
59
  - MIT
59
60
  metadata:
60
- homepage_uri: https://github.com/nogginly/simply_fsm
61
+ homepage_uri: https://github.com/nogginly/simply_fsm#simplyfsm
61
62
  source_code_uri: https://github.com/nogginly/simply_fsm
62
- changelog_uri: https://github.com/nogginly/simply_fsm/CHANGELOG.md
63
+ changelog_uri: https://github.com/nogginly/simply_fsm/blob/main/CHANGELOG.md
63
64
  post_install_message:
64
65
  rdoc_options: []
65
66
  require_paths: