nbtfile 0.0.1 → 0.0.2

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.
data/.gitignore CHANGED
@@ -19,3 +19,4 @@ rdoc
19
19
  pkg
20
20
 
21
21
  ## PROJECT::SPECIFIC
22
+ nbtfile.gemspec
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.1
1
+ 0.0.2
data/lib/nbtfile.rb CHANGED
@@ -511,7 +511,7 @@ def self.load(io)
511
511
  end
512
512
  end
513
513
 
514
- root
514
+ root.first
515
515
  end
516
516
 
517
517
  end
data/spec/nbtfile_spec.rb CHANGED
@@ -173,12 +173,12 @@ describe "NBTFile::load" do
173
173
  end
174
174
  end
175
175
 
176
- nbtfile_load "should generate a top-level hash",
176
+ nbtfile_load "should generate a top-level pair",
177
177
  [Tokens::TAG_Compound["foo", nil],
178
178
  Tokens::TAG_Byte["a", 19],
179
179
  Tokens::TAG_Byte["b", 23],
180
180
  Tokens::TAG_End[nil, nil]],
181
- {"foo" => {"a" => 19, "b" => 23}}
181
+ ["foo", {"a" => 19, "b" => 23}]
182
182
 
183
183
  nbtfile_load "should map compound structures to hashes",
184
184
  [Tokens::TAG_Compound["foo", nil],
@@ -187,7 +187,7 @@ describe "NBTFile::load" do
187
187
  Tokens::TAG_Byte["b", 56],
188
188
  Tokens::TAG_End[nil, nil],
189
189
  Tokens::TAG_End[nil, nil]],
190
- {"foo" => {"bar" => {"a" => 123, "b" => 56}}}
190
+ ["foo", {"bar" => {"a" => 123, "b" => 56}}]
191
191
 
192
192
  nbtfile_load "should map lists to arrays",
193
193
  [Tokens::TAG_Compound["foo", nil],
@@ -196,7 +196,7 @@ describe "NBTFile::load" do
196
196
  Tokens::TAG_Byte[1, 45],
197
197
  Tokens::TAG_End[2, nil],
198
198
  Tokens::TAG_End["", nil]],
199
- {"foo" => {"bar" => [32, 45]}}
199
+ ["foo", {"bar" => [32, 45]}]
200
200
  end
201
201
 
202
202
  describe NBTFile::Reader do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nbtfile
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - MenTaLguY