This commit is contained in:
Jim Menard 2009-02-07 14:36:08 -05:00
parent 7281895f10
commit d40c31bb00
2 changed files with 3 additions and 5 deletions

View File

@ -8,8 +8,6 @@ module XGen
module GridFS module GridFS
# A chunk stores a portion of GridStore data. # A chunk stores a portion of GridStore data.
#
# TODO: user-defined chunk size
class Chunk class Chunk
DEFAULT_CHUNK_SIZE = 1024 * 256 DEFAULT_CHUNK_SIZE = 1024 * 256

View File

@ -54,7 +54,7 @@ class BSON
end end
else else
def self.to_utf8(str) def self.to_utf8(str)
str # TODO punt for now str # TODO Ruby 1.8 punt for now
end end
end end
@ -117,7 +117,7 @@ class BSON
when UNDEFINED when UNDEFINED
serialize_undefined_element(@buf, k) serialize_undefined_element(@buf, k)
when CODE_W_SCOPE when CODE_W_SCOPE
# TODO # TODO CODE_W_SCOPE unimplemented; may be removed
raise "unimplemented type #{type}" raise "unimplemented type #{type}"
else else
raise "unhandled type #{type}" raise "unhandled type #{type}"
@ -177,7 +177,7 @@ class BSON
key = deserialize_cstr(@buf) key = deserialize_cstr(@buf)
doc[key] = deserialize_binary_data(@buf) doc[key] = deserialize_binary_data(@buf)
when CODE_W_SCOPE when CODE_W_SCOPE
# TODO # TODO CODE_W_SCOPE unimplemented; may be removed
raise "unimplemented type #{type}" raise "unimplemented type #{type}"
when EOO when EOO
break break