Skip to content

Commit

Permalink
update lockfile. use correct implementation for binary_type_id.
Browse files Browse the repository at this point in the history
  • Loading branch information
mpd committed Feb 26, 2011
1 parent 2bd3e5c commit b84cfa3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
4 changes: 2 additions & 2 deletions 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/
Expand Down
7 changes: 2 additions & 5 deletions lib/nbt_utils/tag.rb
Expand Up @@ -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)
Expand Down Expand Up @@ -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.