gv_fsm 0.2.9 → 0.2.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gv_fsm.rb +1 -1
- data/lib/templates.rb +4 -4
- data/lib/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bf5e9e3cf0f82f27179188c0a3e994b2114278d723f4df2530b59a5ee87bdb72
|
4
|
+
data.tar.gz: 6dda52c8b001d8043e888d139cca35939fb5682acb93c00f1e2a9a7373343b3b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3fe7b3e14362c3a35692785df7fc35b1756575499b94de2c2441828096c5d479b15bfa5736ede6d7691908f646edb7f625b385b877a53d7423a27fab41adbf6b
|
7
|
+
data.tar.gz: d99ed400cdc9ac9f13831952059e9b9ccd352bfd8b55f5fdc570b1667070cb6c1181ae4942e69c732eb6159639928e46f57debd3e05db969eaa99b9cc0e91a75
|
data/lib/gv_fsm.rb
CHANGED
data/lib/templates.rb
CHANGED
@@ -23,8 +23,8 @@ module GV_FSM
|
|
23
23
|
|
24
24
|
HH =<<~EOH
|
25
25
|
<% if !@ino then %>
|
26
|
-
#ifndef <%= @cname.upcase %>_H
|
27
|
-
#define <%= @cname.upcase %>_H
|
26
|
+
#ifndef <%= File::basename(@cname).upcase %>_H
|
27
|
+
#define <%= File::basename(@cname).upcase %>_H
|
28
28
|
#include <stdlib.h>
|
29
29
|
<% else %>
|
30
30
|
#include <arduino.h>
|
@@ -92,7 +92,7 @@ module GV_FSM
|
|
92
92
|
<% end %>
|
93
93
|
|
94
94
|
// state manager
|
95
|
-
<%= @prefix %>state_t <%= @prefix %>run_state(<%= @prefix %>state_t cur_state, state_data_t *data);
|
95
|
+
<%= @prefix %>state_t <%= @prefix %>run_state(<%= @prefix %>state_t cur_state, <%= @prefix %>state_data_t *data);
|
96
96
|
|
97
97
|
<% if !@ino then %>
|
98
98
|
#endif
|
@@ -108,7 +108,7 @@ module GV_FSM
|
|
108
108
|
<% else %>
|
109
109
|
<% if @syslog then log = :ino end %>
|
110
110
|
<% end %>
|
111
|
-
#include "<%= @cname %>.h"
|
111
|
+
#include "<%= File::basename(@cname) %>.h"
|
112
112
|
|
113
113
|
<% placeholder = "Your Code Here" %>
|
114
114
|
// SEARCH FOR <%= placeholder %> FOR CODE INSERTION POINTS!
|
data/lib/version.rb
CHANGED
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.2.
|
4
|
+
version: 0.2.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paolo Bosetti
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-05-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ruby-graphviz
|