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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8377b28ee321f0b44e28772d23efe4dfc0ff73ca
4
- data.tar.gz: 8bc2deaba18501338f17f91da0497b320b4a6942
3
+ metadata.gz: 48fda0e6cfb2a5bbf2946502c85a14e920dc81b4
4
+ data.tar.gz: 41a8ca03de33493ab66f872207c3eb00e8167379
5
5
  SHA512:
6
- metadata.gz: 934760cee171efb0514fee07c8cfa966f12afd6b054852a748ba671aae8ce1bceef47992872d99ebb97295cd2e5c5cc999ce71d88b88ed7a257809bfe6946570
7
- data.tar.gz: 842a0b902be8ed91a5ee0afadbca0efb3c4cffba8db4f9e756671de7c9ee117d2be6d94c7d19753b2e48f2e69f0e61b34b3b777a9ef0996df6ab91d07d6dbbf9
6
+ metadata.gz: 1fb72472a5244f9867551508f66aae66f0329827145ab900dc58aa87721268357317234d16046844766554737ceaf4ccf192ec238a5e08fc4e48bac2da791c66
7
+ data.tar.gz: c0bf18290842b6cb162fee48dba7a56312352f0191732064afcc6123eeff6a0b96c90333c9b931ecc76bd58405fcff6876c3d6205d8b020f8e462986613dda5a
@@ -103,7 +103,7 @@ private
103
103
  end
104
104
  @body_bytes << Constants::DATA[:arr_end]
105
105
  return
106
- elsif value.is_a? Fixnum
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("l<")[0]
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
@@ -1,3 +1,3 @@
1
1
  module SCON
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
data/lib/scon.rb CHANGED
@@ -24,7 +24,7 @@ module SCON
24
24
  end
25
25
 
26
26
  def self.long_bytes long
27
- [long].pack("l<").bytes
27
+ [long].pack("q<").bytes
28
28
  end
29
29
 
30
30
  def self.string_bytes str
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - JacisNonsense