Tyler Brock
4c032c4d31
Merge pull request #101 from farrel/master
...
Added BSON::ObjectId#to_ary
2012-06-01 11:33:52 -07:00
Tyler Brock
f55fc95bf4
RUBY-432
...
Do not encode strings to utf-8 after checking that utf-8 is valid.
Before this fix, an encoding operation could turn valid utf-8 into
invalid utf-8 if an encoding that requires conversion is forced on a
valid string.
2012-06-01 14:20:15 -04:00
Farrel Lifson
078354a39a
Added BSON::ObjectId#to_ary
2012-05-26 01:16:11 +02:00
Tyler Brock
95a831c0b3
RELEASE 1.6.2
2012-04-05 13:51:20 -04:00
Tyler Brock
6944794fb2
RUBY-422 Cleanup testing output
2012-03-16 16:17:33 -04:00
Tyler Brock
ddc3e893cb
RELEASE 1.6.1
2012-03-07 16:59:27 -05:00
Kyle Banker
c5890cd56d
minor: reverting to 1.6.0 for BSON version
2012-02-28 12:09:23 -05:00
Kyle Banker
73f9acf4fb
Cleaned up BSON gem versioning.
2012-02-28 12:04:49 -05:00
Kyle Banker
24b9653366
RUBY-359 Fix for OrderedHash on 1.8.7
2011-11-15 12:43:29 -05:00
Nandor Kracser
1b595316c6
use BSON::ObjectId rather than Mongo::ObjectId for return values in doc
2011-09-01 21:33:23 +02:00
Kyle Banker
d999a5ba4d
RUBY-315 deprecate BSON.max_bson_size and BSON.update_max_bson_size.
2011-08-25 15:03:40 -04:00
Kyle Banker
3c127984a3
RUBY-242 check BSON size on a per-connection basis.
2011-08-25 14:57:24 -04:00
Kyle Banker
eca6653bc2
RUBY-281 make BSON::OrderedHash#inspect more precise.
2011-08-05 17:43:39 -04:00
Kyle Banker
28f0f7af3e
RUBY-292 OrderedHash should hash with same value as Hash.
2011-08-05 17:27:44 -04:00
Bernerd Schaefer
ee198c7643
ObjectId#generate uses java.bson.types.ObjectId
...
Delegating ObjectId#generate when running under jruby to the java BSON
library halves the time needed to generate a new object id.
2011-06-29 14:49:53 +02:00
Bernerd Schaefer
5572663d40
Cache hostname digest at load time
...
This brings pure-ruby BSON::ObjectId performance more in line with that
of the cbson extension.
2011-06-29 12:31:10 +02:00
Kyle Banker
20d916bf98
RUBY-287
2011-06-20 23:13:32 -04:00
Kyle Banker
fbf7b754ac
RUBY-287 OrderedHash#replace
2011-06-15 16:25:20 -04:00
Kyle Banker
93d7e1512a
RUBY-272 ensure that JRuby deserializes binary type 2 properly.
2011-05-11 10:59:21 -04:00
Kyle Banker
135bebd9ab
RUBY-270 support 's' regex option.
...
Note: Ruby includes dotall 's' semantics on 'm' option.
2011-05-09 14:17:56 -04:00
Ian Warshak
7c0843f29c
implement the yaml_initialize method
2011-04-28 17:32:32 -05:00
Kyle Banker
e9195c83ad
Remove unused exception class.
2011-04-26 07:48:16 -04:00
Kyle Banker
af6552ed3c
RUBY-265 semantics should == Hash#reject!
2011-04-15 16:19:00 -04:00
Kyle Banker
d0a4483713
RUBY-265 fix OrderedHash#reject!
2011-04-15 16:10:38 -04:00
Kyle Banker
3187761670
RUBY-258 Bytebuffer#unpack takes arbitrary format string
2011-04-01 13:36:28 -04:00
Kyle Banker
113eeb4254
minor: remove unused code in OrderedHash
2011-04-01 12:26:56 -04:00
Kyle Banker
db1213fc5d
RUBY-139 Use BSON binary subtype 0 by default
2011-03-29 12:25:48 -04:00
Kyle Banker
05bf234bb8
RUBY-255 Support BSON Timestamp
2011-03-28 14:36:49 -04:00
Hongli Lai (Phusion)
6b4ca2461f
Implement BSON::ByteBuffer#==
2011-03-28 11:16:54 -04:00
Hongli Lai (Phusion)
08daf9c5f9
Implement BSON::OrderedHash#dup
2011-03-28 11:16:46 -04:00
Kyle Banker
b48a2bd84f
RUBY-253 fix UTF8 check for Ruby 1.9
2011-03-24 12:11:12 -04:00
Kyle Banker
2bfe205c51
Merged wpiekutowski's commits to enable warnings
...
on test suite and clean up some code.
Conflicts:
test/cursor_test.rb
2011-03-23 16:02:04 -04:00
Kyle Banker
a8ce896c9f
RUBY-245 Unique object id with timestamp
2011-03-15 16:40:27 -04:00
Wojciech Piekutowski
95911166f3
Avoid using instance_variable_get on objects of other class
2011-02-20 17:01:57 +01:00
Wojciech Piekutowski
730118539e
Remove duplicated #data reader from BSON::ObjectId
2011-02-20 15:35:22 +01:00
Wojciech Piekutowski
e6b6074910
Remove unneeded variable
2011-02-20 15:34:11 +01:00
Kyle Banker
0d91faf6b1
RUBY-226 minor: license update
2011-01-17 12:26:32 -05:00
Kyle Banker
bcb37e62c7
RUBY-222 BSON::Code must be a string.
2011-01-06 10:11:15 -05:00
Kyle Banker
65f59ba2d6
RUBY-222 Collection#group gets a new, reasonable API
2011-01-06 10:05:19 -05:00
Kyle Banker
a197ea7852
RUBY-219 minor: use opts instead of options throughout
2011-01-05 11:30:20 -05:00
Kyle Banker
9da68bb3db
RUBY-189 use result of ismaster's maxBsonObjectSize
2010-12-29 18:06:31 -05:00
David A. Cuadrado
e4eca05447
optimize ObjectId#to_s
2010-11-30 12:46:04 -05:00
Steve Shreeve
5e81cf2f82
simplify logic
2010-11-11 15:31:27 -05:00
Ryan Fitzgerald
4a1bccefae
implementing as_json for object id to return structure of mongoDB extended json
2010-11-11 15:26:06 -05:00
Kyle Banker
f1ddd871f2
major: typo
2010-10-13 18:38:15 -04:00
Kyle Banker
cd03fafb27
RUBY-187 ByteBuffer should take another ByteBuffer as initial data
2010-10-13 17:08:45 -04:00
Kyle Banker
0c82f01d97
JRuby: validate key names and only move _id when necessary.
2010-10-07 17:42:39 -04:00
Kyle Banker
b8d6f57602
A few more BSON fixes
2010-10-04 14:25:44 -04:00
Jari Bakken
112870b537
Get rid of missing parentheses warning.
2010-10-04 13:32:46 -04:00
Jari Bakken
9d2f3fbc27
Call super in BSON::OrderedHash#== instead of doing the comparison in Ruby.
...
This has a notable performance impact for large hashes.
2010-10-04 13:32:33 -04:00