Commit Graph

33 Commits

Author SHA1 Message Date
Farrel Lifson 078354a39a Added BSON::ObjectId#to_ary 2012-05-26 01:16:11 +02:00
Tyler Brock 6944794fb2 RUBY-422 Cleanup testing output 2012-03-16 16:17:33 -04:00
Nandor Kracser 1b595316c6 use BSON::ObjectId rather than Mongo::ObjectId for return values in doc 2011-09-01 21:33:23 +02: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 e9195c83ad Remove unused exception class. 2011-04-26 07:48:16 -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
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
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
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 8dce3a613d Removed deprecated ObjectID class (use ObjectId now) 2010-10-04 12:15:14 -04:00
Kyle Banker bf10db9b21 minor: ObjectId optimization 2010-10-04 12:09:29 -04:00
Kyle Banker 315e608cd4 Optimized callback class to return Java objects 2010-10-01 09:52:29 -04:00
Kyle Banker 2a7b089a9b BSON for JRuby 2010-09-30 09:43:17 -04:00
Hongli Lai (Phusion) b9de2eaa5c When possible, have BSON::ByteBuffer store the underlying binary data as a binary String instead of an array.
This dramatically improves the performance of BSON::ByteBuffer.new(a_string).
On Ruby 1.9.2 it is about 130 times faster.
2010-09-09 15:59:17 -04:00
Mike Dirolf 7702d671ea Use C objectid_generate for ObjectId in addition to ObjectID.
Also, remove broken defined? check from objectid.rb and object_id.rb -
it was never doing anything since we require those files at the top of
cbson.c.
2010-08-25 10:23:18 -04:00
Kyle Banker c7c309b00d RUBY-158 deprecate BSON::ObjectID for BSON::ObjectId 2010-08-24 12:49:23 -04:00
Kyle Banker e9de3e56ea RUBY-139 add new sub-type 0. Will become default with the release of mongod 1.8 2010-08-04 15:39:31 -04:00
Kyle Banker bb7cb79030 minor: fix for to_json 2010-07-07 17:04:45 -04:00
Kyle Banker 653d156a8a better object id representation for inspect 2010-05-18 12:22:19 -04:00
Kyle Banker 97ee66be02 minor: source file encoding with magic comment 2010-05-07 15:33:27 -04:00
Kyle Banker cc0192b2cc represent inspected ObjectID using extended JSON format 2010-04-13 11:30:13 -04:00
Kyle Banker e18d2d6fbb removed deprecated RegexpOfHolding 2010-04-07 16:32:25 -04:00
Kyle Banker 982d9a7765 minor: removed swp 2010-04-05 14:14:02 -04:00
Kyle Banker 8426a06244 minor: some minor details 2010-04-05 14:09:06 -04:00