mongodb-mongo 0.2.1 → 0.2.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/lib/mongo/util/byte_buffer.rb +8 -16
- data/mongo-ruby-driver.gemspec +1 -1
- metadata +1 -1
|
@@ -66,14 +66,10 @@ class ByteBuffer
|
|
|
66
66
|
@cursor += array.length
|
|
67
67
|
end
|
|
68
68
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
else
|
|
74
|
-
def put_int(i, offset=nil)
|
|
75
|
-
put_array([i].pack(@int_pack_order).split(//).collect{|c| c[0]}, offset)
|
|
76
|
-
end
|
|
69
|
+
def put_int(i, offset=nil)
|
|
70
|
+
a = []
|
|
71
|
+
[i].pack(@int_pack_order).each_byte { |b| a << b }
|
|
72
|
+
put_array(a, offset)
|
|
77
73
|
end
|
|
78
74
|
|
|
79
75
|
def put_long(i, offset=nil)
|
|
@@ -87,14 +83,10 @@ class ByteBuffer
|
|
|
87
83
|
end
|
|
88
84
|
end
|
|
89
85
|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
else
|
|
95
|
-
def put_double(d, offset=nil)
|
|
96
|
-
put_array([d].pack(@double_pack_order).split(//).collect{|c| c[0]}, offset)
|
|
97
|
-
end
|
|
86
|
+
def put_double(d, offset=nil)
|
|
87
|
+
a = []
|
|
88
|
+
[d].pack(@double_pack_order).each_byte { |b| a << b }
|
|
89
|
+
put_array(a, offset)
|
|
98
90
|
end
|
|
99
91
|
|
|
100
92
|
# If +size+ == nil, returns one byte. Else returns array of bytes of length
|
data/mongo-ruby-driver.gemspec
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Gem::Specification.new do |s|
|
|
2
2
|
s.name = 'mongo'
|
|
3
|
-
s.version = '0.2.
|
|
3
|
+
s.version = '0.2.2'
|
|
4
4
|
s.platform = Gem::Platform::RUBY
|
|
5
5
|
s.summary = 'Simple pure-Ruby driver for the 10gen Mongo DB'
|
|
6
6
|
s.description = 'A pure-Ruby driver for the 10gen Mongo DB. For more information about Mongo, see http://www.mongodb.org.'
|