ms-core 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/ms/data/lazy_io.rb +6 -2
  3. metadata +3 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.4
1
+ 0.0.5
@@ -73,8 +73,12 @@ module Ms
73
73
  def to_a
74
74
  return @array if @array
75
75
  decoded = decode_format ? string.unpack(decode_format)[0] : string
76
- uncompressed = @compressed ? Zlib::Inflate.inflate(decoded) : decoded
77
- uncompressed.unpack(unpack_format)
76
+ if string.size == 0
77
+ []
78
+ else
79
+ uncompressed = @compressed ? Zlib::Inflate.inflate(decoded) : decoded
80
+ uncompressed.unpack(unpack_format)
81
+ end
78
82
  end
79
83
  end
80
84
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 4
9
- version: 0.0.4
8
+ - 5
9
+ version: 0.0.5
10
10
  platform: ruby
11
11
  authors:
12
12
  - Simon Chiang
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-07-08 00:00:00 -06:00
18
+ date: 2010-08-04 00:00:00 -06:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency