Commit Graph

198 Commits

Author SHA1 Message Date
Kyle Banker
c0e972470e Fixed BSON_CODER.update_max_bson_size return value 2011-01-03 14:05:42 -05:00
Kyle Banker
9da68bb3db RUBY-189 use result of ismaster's maxBsonObjectSize 2010-12-29 18:06:31 -05:00
Kyle Banker
b244c28d1c 1.2.rc0 BUMP for development 2010-12-29 12:09:43 -05:00
eregon
191db33a1a fix declaration-after-statement warnings of ruby trunk
The commit bd0a9d2fb6
adds -Werror=declaration-after-statement. This may cause an error and make gem installation fail
See http://www.ruby-forum.com/topic/714046
2010-12-29 12:06:38 -05:00
Kyle Banker
3c9f0f39f6 BUMP 1.1.5 2010-12-15 15:21:51 -05:00
Kyle Banker
8fca10267a BUMP 1.1.4 2010-11-30 12:50:28 -05:00
Kyle Banker
f8ada701d9 BUMP 1.1.3 2010-11-29 17:05:41 -05:00
Kyle Banker
6f067756c8 Fix for serializing int/long 2010-11-08 17:21:17 -05:00
Kyle Banker
8e79793053 BUMP 1.1.2 and HISTORY 2010-11-04 17:50:48 -04:00
Kyle Banker
bc6e3b137a minor: stop tracking Java class files 2010-11-02 16:11:51 -04:00
Kyle Banker
df0377c3d4 JRuby Test fixes 2010-10-12 15:39:28 -04:00
Kyle Banker
b0f2911170 BUMP 1.1.1 2010-10-07 17:59:12 -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
13f49585e9 RUBY-185 fix JRuby null pointer exception on embedded docs
Better HashWithIndifferentAccess tests
2010-10-07 17:05:45 -04:00
Kyle Banker
850159cd7c BUMP 1.1 2010-10-04 15:19:14 -04:00
Kyle Banker
b8d6f57602 A few more BSON fixes 2010-10-04 14:25:44 -04:00
Kyle Banker
b3ed1486e5 minor: updates for removal deprecated DB and Connection methods and ObjectID 2010-10-04 13:28:26 -04:00
Kyle Banker
a743508611 removed prototype callback class 2010-10-04 12:14:16 -04:00
Kyle Banker
bf10db9b21 minor: ObjectId optimization 2010-10-04 12:09:29 -04:00
Kyle Banker
2ed0adbbc6 Fix C extension to handle BSON::Code (no longer a subclass of String) 2010-10-01 17:03:26 -04:00
Kyle Banker
3b5aac6de6 Encoder number handling cleanup 2010-10-01 16:29:31 -04:00
Kyle Banker
51964f8ad5 Fix INT / LONG serialization 2010-10-01 14:56:31 -04:00
Kyle Banker
c04dfec1db Revert JRuby callback to use RubyBSONCallback 2010-10-01 13:57:16 -04:00
Kyle Banker
159c89b8b4 Java callback class returns LinkedHashMap 2010-10-01 13:56:51 -04:00
Kyle Banker
315e608cd4 Optimized callback class to return Java objects 2010-10-01 09:52:29 -04:00
Kyle Banker
2daf86bb7b Added jar files 2010-09-30 12:00:22 -04:00
Kyle Banker
2a7b089a9b BSON for JRuby 2010-09-30 09:43:17 -04:00
Kyle Banker
a1565b3ac8 BUMP 1.0.9 2010-09-20 15:07:30 -04:00
Kyle Banker
45e6aaef43 minor: fast_pack no longer used 2010-09-20 14:01:17 -04:00
Kyle Banker
b077ef992d RUBY-182 Rubinius compatibility; use rb_ary_entry() in lieu of RARRAY_PTR 2010-09-20 13:48:06 -04:00
Kyle Banker
81395373e9 RUBY-183 better int bson performance (Chuck Remes) 2010-09-20 11:57:06 -04:00
Hongli Lai (Phusion)
bfa4926e1d Optimize ObjectId#generate: cache the MD5 of the host name and generate counters in C instead of Ruby. 2010-09-14 10:37:22 -04:00
Hongli Lai (Phusion)
3f66721858 Optimize BSON C extension: cache some symbols instead of interning them over and over. 2010-09-13 10:51:29 -04:00
Kyle Banker
c2955239a4 BUMP BSON 1.0.7 2010-08-28 20:08:50 -04:00
Kyle Banker
7ca4683843 RUBY-173 better hash class detection for BSON 2010-08-28 16:35:45 -04:00
Kyle Banker
a867ddd341 BUMP BSON 1.0.6 2010-08-28 12:20:58 -04:00
Kyle Banker
5838b9aef7 RUBY-173 allow HashWithIndifferentAccess 2010-08-28 12:19:26 -04:00
Mike Dirolf
06602bd41e clean up C ext Time handling 2010-08-25 11:27:38 -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
02a0c7c2dc RUBY-165 raise error if BSON.serialize is passed something other than a hash 2010-08-24 14:01:24 -04:00
Kyle Banker
e843891c8a BUMP BSON 1.0.5 2010-08-24 12:50:37 -04:00
Kyle Banker
c7c309b00d RUBY-158 deprecate BSON::ObjectID for BSON::ObjectId 2010-08-24 12:49:23 -04:00
Kyle Banker
a9c709f7a1 BUMP 1.0.4 2010-07-13 11:12:10 -04:00
Kyle Banker
a24448d911 attempted fix for bson_ext on solaris (slyphon) 2010-07-02 16:03:42 -04:00
Kyle Banker
713cf73b3d BUMP 1.0.1 2010-05-07 15:41:40 -04:00
Mike Dirolf
d68e42812e respect Encoding.default_internal in BSON decoder 2010-05-07 15:15:52 -04:00
sleverbor
ed76126a12 namespaced the OrderedHash class 2010-05-06 18:25:18 -07:00
Kyle Banker
159903ec95 BUMP 1.0; minor doc / example fixes 2010-04-29 11:11:53 -04:00
Kyle Banker
8ac3171981 ensure compatibility with early releases of Ruby 1.8.5 (dfitzgibbon) RUBY-125 2010-04-28 10:43:54 -04:00
Kyle Banker
b9f579876c RUBY-120 configurable batch size; begin 0.20.2 2010-04-12 11:57:14 -04:00
Kyle Banker
49bc88c4b3 BUMP 0.20.1 2010-04-07 23:47:06 -04:00
Kyle Banker
910a82de7e must use Connection.paired for paired connections 2010-04-07 17:10:28 -04:00
Kyle Banker
e18d2d6fbb removed deprecated RegexpOfHolding 2010-04-07 16:32:25 -04:00
Kyle Banker
45d3b91882 exception refinements for bson split 2010-04-05 18:24:31 -04:00
Kyle Banker
75091f5ae5 renamed mongo_bson to bson 2010-04-05 11:13:07 -04:00
Kyle Banker
c4d5cb641b renamed mongo_bson to bson 2010-04-05 10:39:55 -04:00
Charles Remes
b669b625cc Changed RREGEXP_SOURCE macro to RREGX_SRC so it matches all rubies 2010-03-19 09:10:08 -05:00
Charles Remes
a9b3c8e7a5 Try again: Split the BSON logic out to a separate gem
- changed the BSON constant to BSON_CODER and scoped it inside
      of a module

    - changed the directory layout for all of the BSON related files

    - updated the C extension to find the BSON files at their new
      directory locations

    - updated the C extension to use better/safer macros for accessing
      the C API; extension now compiles cleanly under rubinius/rbx

    - changed directory layout for BSON related tests

    - modified the Rakefile to understand the new layout
2010-03-17 14:55:19 -05:00
Kyle Banker
661a0a4120 update version for development 2010-03-04 11:34:07 -05:00
Kyle Banker
4229402b81 BUMP 0.19.1 2010-03-02 11:25:42 -05:00
Kyle Banker
0709b98082 Rails 3 HashWithIndifferentAccess fixes 2010-03-02 11:11:07 -05:00
Kyle Banker
e3d746096d minor: docs 2010-03-01 12:09:21 -05:00
Kyle Banker
2d9e10c192 CBson HashWithIndifferentAccess error 2010-02-27 12:22:34 -05:00
Kyle Banker
fc2ddf3bbd deserialize to RegexpOfHolding only when necessary 2010-02-15 09:47:53 -05:00
Kyle Banker
e075d25a91 move id only when necessary RUBY-88 2010-01-28 18:44:50 -05:00
Kyle Banker
205ff5547b Advanced VERSION for development of 0.18.4. 2010-01-25 14:26:29 -05:00
Kyle Banker
5cdf835811 BUMP 0.18.3 2010-01-25 13:45:42 -05:00
Kyle Banker
28227f8ac6 minor: fix for 1.8.6 Complex type checking 2010-01-21 15:42:59 -05:00
Kyle Banker
95d9d6b4f6 Handle unsupported types: Complex, Rational, and BigDecimal RUBY-85 2010-01-21 14:49:20 -05:00
Kyle Banker
bf7ffcfa82 support BSON MinKey and MaxKey RUBY-84 2010-01-20 18:50:07 -05:00
Kyle Banker
8c6e0a3591 Raise better error message when trying to serialize TimeWithZone 2010-01-20 12:11:58 -05:00
Mike Dirolf
f2de52351a minor: fix some warnings 2010-01-11 18:01:36 -05:00
Kyle Banker
3762e52ac2 minor: fixed exception organization 2010-01-11 11:38:35 -05:00
Kyle Banker
42b835243e warn if using Date or DateTime instead of Time 2010-01-06 14:30:58 -05:00
Kyle Banker
2087cd4286 BUMP 0.18.2 2009-12-29 17:32:10 -05:00
Mike Dirolf
e013618a8f RUBY-74 raise InvalidDocument for any unrecognized types 2009-12-29 12:59:30 -05:00
Mike Dirolf
f8d45c405e check for asprintf instead of _MSC_VER - better for mingw 2009-12-18 14:19:53 -05:00
Mike Dirolf
65c36ca943 null checking for keys and regex patterns, allow nulls for regular strings 2009-12-17 12:17:19 -05:00
Mike Dirolf
f9fb823c53 Merge branch 'master' of github.com:mongodb/mongo-ruby-driver 2009-12-17 09:47:29 -05:00
Mike Dirolf
d5f0443fc1 better error message 2009-12-17 09:47:27 -05:00
Kyle Banker
5d85cf384f minor: free buffer on invalid doc 2009-12-16 14:14:15 -05:00
Kyle Banker
aaf590214c enforce 4MB limit when inserting BSON docs 2009-12-16 11:32:54 -05:00
Kyle Banker
f7825eab82 BUMP 0.18.1 2009-12-05 09:35:31 -05:00
Mike Dirolf
0161ea3962 fix for negative dates on 1.9 RUBY-65 2009-12-03 10:07:02 -05:00
Mike Dirolf
584a4d68f7 minor: free buffer on exceptions 2009-12-02 17:01:49 -05:00
Mike Dirolf
84da36c380 utf-8 encoding for 1.9 and checking for 1.8 in C 2009-12-02 16:53:49 -05:00
Mike Dirolf
5995572a3e minor: missing return 2009-12-02 16:15:13 -05:00
Mike Dirolf
c893b9269f move buffer stuff out to buffer.c/h and be safer about allocs 2009-12-02 15:31:58 -05:00
Kyle Banker
d39169530a minor: version checking for cbson 2009-12-02 11:53:59 -05:00
Mike Dirolf
6de555f19c fix for gethostname call 2009-12-02 11:10:30 -05:00
Mike Dirolf
572bf10110 C ext: build on ruby 1.9 and fix objectid generation 2009-11-13 11:41:50 -05:00
Sean Cribbs
cb4d94f541 Optimize ByteBuffer#to_s and Mongo::ObjectID#generate via C extensions. 2009-10-29 11:44:07 -04:00
Mike Dirolf
79acba5417 fix for inserting duplicate _id when using C extension and doc responds to has_key? for both '_id' and :_id (MongoMapper related) 2009-10-22 15:20:27 -05:00
Mike Dirolf
2b701119e1 complete deprecation of a bunch of stuff 2009-09-17 15:28:45 -04:00
Mike Dirolf
902c3120c8 decode strings as UTF-8 when using C extension on 1.9 2009-09-04 11:02:04 -04:00
Mike Dirolf
3d304b1a02 better support for 64-bit 2009-09-04 10:22:28 -04:00
Mike Dirolf
ef0a150f81 support packing and unpacking 64-bit pointers 2009-09-01 11:26:19 -04:00
Mike Dirolf
e65dd99667 API CHANGE: moving XGen::Mongo::Driver and XGen::Mongo to Mongo and XGen::Mongo::GridFS to GridFS 2009-08-20 10:50:48 -04:00
Mike Dirolf
bb13fbe687 use nil for BSON undefined instead of useless Undefined class. deprecate Undefined class 2009-08-19 15:18:02 -04:00
Mike Dirolf
431039a82a add InvalidName exception and use that where appropriate 2009-08-13 15:52:11 -04:00