gv_fsm 0.3.2 → 0.3.4

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 +38 -37
  3. data/lib/version.rb +1 -1
  4. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 784139036e73fde8dd29fd8cc87228b2829241cdea0a8398cdf0cbc31d4ab385
4
- data.tar.gz: 4d2ec2d3506a652e9db040fc4a58eb669052813837e310a3349393763a7ba207
3
+ metadata.gz: 30faaffebbf1ff42588fc435f59e31bfaa4220bb3e32522476eefb5c6d10cbc8
4
+ data.tar.gz: 02d6b6289dcbded60a6d65555e1decfcc61016cb55c02bcc29534187f6442fcd
5
5
  SHA512:
6
- metadata.gz: b89e1ee3e0aadde8e3b36085759696ccb27701b02cd895f93b1e0007f238d7415ae93f5f19e47fad99b7002c2df28ff496044a5c805cf9d6c36f3679b96acd52
7
- data.tar.gz: aa06c8df94a679aaeae10eb635a10adceacfc3e3738ed03481d75941c106da4ef91ede9a59f042f8430a62f6b4fa3acfd7d2187dc3d33fde199c11ac797c4425
6
+ metadata.gz: ea781eee2cabb30095e1ec7dd96a0b017bc0db35ee99e15dd760405387fd77b59068f5056827ab916c3d2745c06cf5b468a578ab7b8379b11aea06e965763a7b
7
+ data.tar.gz: 87904b3267f573a7364a9f9c8d08eb01056f15cc9863f182ec465a665d490ce072f5b20166e0d53569a099901a650b2e74d7bb35a7810d7b6cab57d5c36c56c7
data/lib/templates.rb CHANGED
@@ -153,18 +153,18 @@ module GV_FSM
153
153
  // No transition functions
154
154
  <% end %>
155
155
 
156
- // ____ _ _
157
- // / ___|| |_ __ _| |_ ___
158
- // \\___ \\| __/ _` | __/ _ \\
159
- // ___) | || (_| | || __/
160
- // |____/ \\__\\__,_|\\__\\___|
161
- //
162
- // __ _ _
163
- // / _|_ _ _ __ ___| |_(_) ___ _ __ ___
164
- // | |_| | | | '_ \\ / __| __| |/ _ \\| '_ \\/ __|
165
- // | _| |_| | | | | (__| |_| | (_) | | | \\__ \\
166
- // |_| \\__,_|_| |_|\\___|\\__|_|\\___/|_| |_|___/
167
- //
156
+ /* ____ _ _
157
+ * / ___|| |_ __ _| |_ ___
158
+ * \\___ \\| __/ _` | __/ _ \\
159
+ * ___) | || (_| | || __/
160
+ * |____/ \\__\\__,_|\\__\\___|
161
+ *
162
+ * __ _ _
163
+ * / _|_ _ _ __ ___| |_(_) ___ _ __ ___
164
+ * | |_| | | | '_ \\ / __| __| |/ _ \\| '_ \\/ __|
165
+ * | _| |_| | | | | (__| |_| | (_) | | | \\__ \\
166
+ * |_| \\__,_|_| |_|\\___|\\__|_|\\___/|_| |_|___/
167
+ */
168
168
  <% dest = destinations.dup %>
169
169
  <% topo = self.topology %>
170
170
  <% @states.each do |s| %>
@@ -214,18 +214,18 @@ module GV_FSM
214
214
  <% end %>
215
215
 
216
216
  <% if transition_functions_list.count > 0 then %>
217
- // _____ _ _ _
218
- // |_ _| __ __ _ _ __ ___(_) |_(_) ___ _ __
219
- // | || '__/ _` | '_ \\/ __| | __| |/ _ \\| '_ \\
220
- // | || | | (_| | | | \\__ \\ | |_| | (_) | | | |
221
- // |_||_| \\__,_|_| |_|___/_|\\__|_|\\___/|_| |_|
222
- //
223
- // __ _ _
224
- // / _|_ _ _ __ ___| |_(_) ___ _ __ ___
225
- // | |_| | | | '_ \\ / __| __| |/ _ \\| '_ \\/ __|
226
- // | _| |_| | | | | (__| |_| | (_) | | | \\__ \\
227
- // |_| \\__,_|_| |_|\\___|\\__|_|\\___/|_| |_|___/
228
- //
217
+ /* _____ _ _ _
218
+ * |_ _| __ __ _ _ __ ___(_) |_(_) ___ _ __
219
+ * | || '__/ _` | '_ \\/ __| | __| |/ _ \\| '_ \\
220
+ * | || | | (_| | | | \\__ \\ | |_| | (_) | | | |
221
+ * |_||_| \\__,_|_| |_|___/_|\\__|_|\\___/|_| |_|
222
+ *
223
+ * __ _ _
224
+ * / _|_ _ _ __ ___| |_(_) ___ _ __ ___
225
+ * | |_| | | | '_ \\ / __| __| |/ _ \\| '_ \\/ __|
226
+ * | _| |_| | | | | (__| |_| | (_) | | | \\__ \\
227
+ * |_| \\__,_|_| |_|\\___|\\__|_|\\___/|_| |_|___/
228
+ */
229
229
 
230
230
  <% transition_functions_list.each do |t| %>
231
231
  <% next if t == "NULL" %>
@@ -246,18 +246,19 @@ module GV_FSM
246
246
  <% end %>
247
247
  <% end %>
248
248
 
249
- // ____ _ _
250
- // / ___|| |_ __ _| |_ ___
251
- // \\___ \\| __/ _` | __/ _ \\
252
- // ___) | || (_| | || __/
253
- // |____/ \\__\\__,_|\\__\\___|
254
- //
255
- //
256
- // _ __ ___ __ _ _ __ __ _ __ _ ___ _ __
257
- // | '_ ` _ \\ / _` | '_ \\ / _` |/ _` |/ _ \\ '__|
258
- // | | | | | | (_| | | | | (_| | (_| | __/ |
259
- // |_| |_| |_|\\__,_|_| |_|\\__,_|\\__, |\\___|_|
260
- // |___/
249
+ /* ____ _ _
250
+ * / ___|| |_ __ _| |_ ___
251
+ * \\___ \\| __/ _` | __/ _ \\
252
+ * ___) | || (_| | || __/
253
+ * |____/ \\__\\__,_|\\__\\___|
254
+ *
255
+ *
256
+ * _ __ ___ __ _ _ __ __ _ __ _ ___ _ __
257
+ * | '_ ` _ \\ / _` | '_ \\ / _` |/ _` |/ _ \\ '__|
258
+ * | | | | | | (_| | | | | (_| | (_| | __/ |
259
+ * |_| |_| |_|\\__,_|_| |_|\\__,_|\\__, |\\___|_|
260
+ * |___/
261
+ */
261
262
 
262
263
  <%= @prefix %>state_t <%= @prefix %>run_state(<%= @prefix %>state_t cur_state, <%= @prefix %>state_data_t *data) {
263
264
  <%= @prefix %>state_t new_state = <%= @prefix %>state_table[cur_state](data);
@@ -267,7 +268,7 @@ module GV_FSM
267
268
  if (transition)
268
269
  transition(data);
269
270
  <% end %>
270
- return new_state == <%= @prefix.upcase %>NO_CHANGE ? cur_state : new_state;
271
+ return new_state;
271
272
  };
272
273
 
273
274
  <% if @ino then %>
data/lib/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module GV_FSM
2
- VERSION = "0.3.2"
2
+ VERSION = "0.3.4"
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.3.2
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paolo Bosetti
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-05-05 00:00:00.000000000 Z
11
+ date: 2023-04-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruby-graphviz
@@ -55,7 +55,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
55
55
  - !ruby/object:Gem::Version
56
56
  version: '0'
57
57
  requirements: []
58
- rubygems_version: 3.1.2
58
+ rubygems_version: 3.2.3
59
59
  signing_key:
60
60
  specification_version: 4
61
61
  summary: Graphviz to Finite state machine