scon 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/scon/generator.rb +1 -1
- data/lib/scon/parser.rb +1 -1
- data/lib/scon/version.rb +1 -1
- data/lib/scon.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 48fda0e6cfb2a5bbf2946502c85a14e920dc81b4
|
4
|
+
data.tar.gz: 41a8ca03de33493ab66f872207c3eb00e8167379
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1fb72472a5244f9867551508f66aae66f0329827145ab900dc58aa87721268357317234d16046844766554737ceaf4ccf192ec238a5e08fc4e48bac2da791c66
|
7
|
+
data.tar.gz: c0bf18290842b6cb162fee48dba7a56312352f0191732064afcc6123eeff6a0b96c90333c9b931ecc76bd58405fcff6876c3d6205d8b020f8e462986613dda5a
|
data/lib/scon/generator.rb
CHANGED
@@ -103,7 +103,7 @@ private
|
|
103
103
|
end
|
104
104
|
@body_bytes << Constants::DATA[:arr_end]
|
105
105
|
return
|
106
|
-
elsif value.is_a?
|
106
|
+
elsif value.is_a?(Fixnum) || value.is_a?(Bignum)
|
107
107
|
instruct, serial = auto_number(value)
|
108
108
|
elsif value.is_a? Float
|
109
109
|
instruct = Constants::DATA[:float]
|
data/lib/scon/parser.rb
CHANGED
@@ -65,7 +65,7 @@ private
|
|
65
65
|
elsif instruct == Constants::DATA[:integer]
|
66
66
|
return @data.shift(4).pack("c*").unpack("i<")[0]
|
67
67
|
elsif instruct == Constants::DATA[:long]
|
68
|
-
return @data.shift(8).pack("c*").unpack("
|
68
|
+
return @data.shift(8).pack("c*").unpack("q<")[0]
|
69
69
|
elsif instruct == Constants::DATA[:float]
|
70
70
|
return @data.shift(4).pack("c*").unpack("e")[0]
|
71
71
|
elsif instruct == Constants::DATA[:double]
|
data/lib/scon/version.rb
CHANGED
data/lib/scon.rb
CHANGED