gv_fsm 0.5.0 → 0.5.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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/templates.rb +3 -1
  3. data/lib/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d68d7b8b4f48a17af5644963368c61753c85fb3a8d123afe69b2da116c9a8c5a
4
- data.tar.gz: 7382660cd013e45590400a24b22c5f4c4dd4330fc3cb31e80e519b27ae24149a
3
+ metadata.gz: '0782e93cbf0e08c4303d44dc04009aef716f2f507afc5973974bad03522aaa68'
4
+ data.tar.gz: 518998f197d1387c5a0fc11f5eab9fafa24d55712108d92289f8f69a9d02da5d
5
5
  SHA512:
6
- metadata.gz: 744f50d13ce948610b36437078cf8ef400eb205853a6292c013c450bd3ff3d3fb5fa353df42ea8af4f6f15e5ca3936c697d424e9f85090b27739ca157cc7d0a3
7
- data.tar.gz: ed3c8b97769969dce3446074a79e232963b1860dd7e134191f3c12f25acd1f0ece779d10f666d6a53a0faf86e0b17121c1a2687e4a4b23f4fe6a0e651780ec08
6
+ metadata.gz: 074f68593e58f11e80c4a8c93306796cdef2f61d52b5489a60efc6e6ea229f02e2e81e59bc0b30c5aba2bdf148d7ce6a1502a64588c37f60d25110ec77d44c57
7
+ data.tar.gz: 7f662ded03c0eecafb6e2e6c84a94ec3cbe501458e1a9e5a8bf6446aa96ff25da4d6692392f59f51c0f611770d12dd0caebd279bb0beab40acef0e3bf02f286e
data/lib/templates.rb CHANGED
@@ -460,7 +460,9 @@ public:
460
460
 
461
461
  // Setup initial state links
462
462
  void setup(state_t state) {
463
+ <% if sigint then -%>
463
464
  <%= ns %>::<%= self.sigint %>_requested = false;
465
+ <% end %>
464
466
  _state.first = state;
465
467
  _state.second = state;
466
468
  }
@@ -468,9 +470,9 @@ public:
468
470
  // Evaluate the current state and update the next state
469
471
  // to be used when main loop is customized (i.e., not using FSM::run())
470
472
  state_t eval_state() {
471
- (*this)(_state.first, _state.second);
472
473
  _state.first = _state.second;
473
474
  _state.second = (*this)(_state.second);
475
+ (*this)(_state.first, _state.second);
474
476
  return _state.second;
475
477
  }
476
478
 
data/lib/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module GV_FSM
2
- VERSION = "0.5.0"
2
+ VERSION = "0.5.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gv_fsm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paolo Bosetti