fwi 1.2.7 → 1.2.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/fwi.gemspec +1 -1
- data/lib/fwi/compilers/js/gen.rb +4 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7ad6a9eefc35a8b15b169786d6c23c5d7893067f
|
4
|
+
data.tar.gz: b6c8cdc0bc8fff8dacbddb510ad831c684a8bf5f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5dab20079eed40466057cd118a5c59fb17d42ecc9c439d86fa892e4850c159de2811edc53fa9e9e6d1aaec58af5be28a8639b86bbbe7f7ce91677b8e181e11c7
|
7
|
+
data.tar.gz: ca04360cfe96aa383db344bb1286f94affba040d6c19d1792c15880f90d4aa16424e9a059183a9c05b2750d85bcf6082106685db35d70d33d21a0d663a067ada
|
data/fwi.gemspec
CHANGED
data/lib/fwi/compilers/js/gen.rb
CHANGED
@@ -50,6 +50,8 @@ module Generator
|
|
50
50
|
else
|
51
51
|
append(str, indent + 1, "return this.get_bool(#{member[:index]} + index / 8, index % 8);")
|
52
52
|
end
|
53
|
+
elsif type == :string
|
54
|
+
append(str, indent + 1, "return this.get_string(#{util[:index]}, #{member[:size]});")
|
53
55
|
else
|
54
56
|
append(str, indent + 1, "return this.get_#{util[:internal_type]}(#{util[:index]});")
|
55
57
|
end
|
@@ -69,6 +71,8 @@ module Generator
|
|
69
71
|
else
|
70
72
|
append(str, indent + 1, "this.set_bool(#{member[:index]} + index / 8, index % 8, value);")
|
71
73
|
end
|
74
|
+
elsif type == :string
|
75
|
+
append(str, indent + 1, "this.set_string(#{util[:index]}, value, value.length);")
|
72
76
|
else
|
73
77
|
append(str, indent + 1, "this.set_#{util[:internal_type]}(#{util[:index]}, value);")
|
74
78
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fwi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jaci Brunning
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-08-
|
11
|
+
date: 2016-08-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|