Permalink
Browse files

update lockfile. use correct implementation for binary_type_id.

  • Loading branch information...
1 parent 2bd3e5c commit b84cfa3fd61d8828b6c99c9f9d57029bf3a5b523 mpd committed Feb 26, 2011
Showing with 4 additions and 7 deletions.
  1. +2 −2 Gemfile.lock
  2. +2 −5 lib/nbt_utils/tag.rb
View
4 Gemfile.lock
@@ -1,8 +1,8 @@
PATH
remote: .
specs:
- nbt_utils (0.0.1)
- bindata (~> 1.2)
+ nbt_utils (0.0.3)
+ bindata (~> 1.3)
GEM
remote: http://rubygems.org/
View
7 lib/nbt_utils/tag.rb
@@ -17,10 +17,7 @@ def type_id
end
def binary_type_id
- # I hope i'm doing this wrong.
- byte = ::BinData::Int8be.new
- byte.value = type_id
- byte.to_binary_s
+ type_id.chr
end
def to_s(indent = 0)
@@ -78,4 +75,4 @@ def self.add_tag_type(index, tag_type)
@tag_types[index] = tag_type
end
end
-end
+end

0 comments on commit b84cfa3

Please sign in to comment.