gv_fsm 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/templates.rb +5 -1
  3. data/lib/version.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 73902a6a767d8a5642f9f611cd7d6d73e5edfa34d17181b95a17c94ac45dfeed
4
- data.tar.gz: 7729bd9ef72ebe5ec2cdd8734d3aa9a42114932418ca9189b176af90012803c6
3
+ metadata.gz: 36de89f3e2479b1f535f199601a58af93d53065aaff940143330244597e88a3d
4
+ data.tar.gz: 58c148315536416ffb99555fb6e3a88253a2f83a6776a17691b5c39019aee4cb
5
5
  SHA512:
6
- metadata.gz: 044106cb2470f4189a44ff8b3988119d3c65a25417a380a10bd115dab85738655429b3f90cd0bbaa40353a2de9cdbbee6cbe549d2cdf9554e0555af7b132d9e3
7
- data.tar.gz: 359bbefb9df9567a012660b23ed6c04c323be54f2c411198e00c85833adb4a682099c2aea9386d5b4114ec6e9cedde5eb08246fc3b4d386d6838f4e33074990d
6
+ metadata.gz: 514f56b578dc4093df80b45ed139a4f129e55a2441a2abb2b93f1dff3997782e0cb78e4df07720b06703a277f6df4a84374ded23d37b4ff55318411d393b87a3
7
+ data.tar.gz: 429480975d005883b23862eec8c2f834e835dc7f6de2d404c980fe31a30947e3232fc45decde91e2eafd44a0a5cb5d7310c3382551090c77d9929156e16cbff3
data/lib/templates.rb CHANGED
@@ -442,7 +442,11 @@ public:
442
442
  if (_states.find(state) == _states.end()) {
443
443
  throw std::runtime_error("State not found: "s + state_names[state]);
444
444
  }
445
- return _states[state](*_data);
445
+ state_t next = _states[state](*_data);
446
+ if (next == NO_CHANGE) {
447
+ next = state;
448
+ }
449
+ return next;
446
450
  }
447
451
 
448
452
  void operator()(<%= @prefix %>state_t from, <%= @prefix %>state_t to) {
data/lib/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module GV_FSM
2
- VERSION = "0.4.1"
2
+ VERSION = "0.4.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gv_fsm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paolo Bosetti
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-10-10 00:00:00.000000000 Z
11
+ date: 2025-01-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruby-graphviz