Commit Graph

1780 Commits

Author SHA1 Message Date
Kyle Banker 648094c80f BUMP 1.2.0 2011-01-18 11:20:59 -05:00
Kyle Banker fab538ed5e minor: alias #read_primary? with #primary? 2011-01-17 13:37:41 -05:00
Kyle Banker 0d91faf6b1 RUBY-226 minor: license update 2011-01-17 12:26:32 -05:00
Kyle Banker af43e9c2ce RUBY-255 2011-01-17 12:06:03 -05:00
Kyle Banker 2b835c0e48 RUBY-227 passwords in URIs can contain all
characters excepts commas now.
2011-01-17 11:05:24 -05:00
Kyle Banker 428d959128 minor: recomplile Java extensions 2011-01-14 10:50:55 -05:00
Kyle Banker 016743b015 RUBY-224 encode JRuby strings with byte[] 2011-01-14 10:50:32 -05:00
Kyle Banker 3d1934a92c BUMP 1.2.rc2 2011-01-06 10:33:54 -05:00
Kyle Banker ba88f239de RUBY-222 update tests for new Collection#group API 2011-01-06 10:32:50 -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 756ccfe877 BUMP 1.2.rc1 2011-01-05 12:31:49 -05:00
Kyle Banker 12a9e021be BUMP 1.2.rc0 and HISTORY 2011-01-05 12:13:35 -05:00
Kyle Banker a197ea7852 RUBY-219 minor: use opts instead of options throughout 2011-01-05 11:30:20 -05:00
Nick Stielau 0b07efeb37 Fixing link to tutorial; changed from relative to absolute. 2011-01-05 11:29:55 -05:00
Kyle Banker 8a646fbf00 RUBY-135 Oops. Yajl compability mode doesn't support object_class 2011-01-05 10:23:09 -05:00
Kyle Banker f8fa61d4e0 RUBY-135 Use yajl in JSON compatibility mode for j2bson 2011-01-05 10:18:07 -05:00
Kyle Banker af0ecde925 RUBY-204 Collection construct now has analogous API
to DB constructor (i.e., name comes first)
2011-01-05 09:44:46 -05:00
Kyle Banker fa583762e7 RUBY-203 Use Hash#fetch when possible 2011-01-05 09:34:09 -05:00
Kyle Banker 556d4aa271 Test for RUBY-188 2011-01-05 09:28:42 -05:00
Kyle Banker 9798626053 RUBY-188 fix for bson_ext on Windows 2011-01-04 18:09:41 -05:00
Kyle Banker e55136e056 minor: doc and Collection#update clarification 2011-01-04 18:08:29 -05:00
Kyle Banker ae202d590e RUBY-192; Updates for Collection#ensure_index 2011-01-03 16:16:24 -05:00
Kyle Banker bc5dcdfc7f Fix for undefined symbol rb_long2int 2011-01-03 16:15:58 -05:00
Kyle Banker dbcc9042bf Updated to Java driver 2.4 for JRuby 2011-01-03 15:09:46 -05:00
Kyle Banker 9babfc95bb minor: BSON constant fix 2011-01-03 15:09:07 -05:00
Ben Burkert 2828b19111 Better .gemspec.
* Seperate gemspec for the java platform gem.
* Don't include jruby.jar.
* Don't include unnecessary files.
2011-01-03 14:24:17 -05:00
eregon a0389b0668 define R{ARRAY,STRING}_LENINT if there are not 2011-01-03 14:21:12 -05:00
eregon 3ab2acbf4f Get rid of "implicit conversion 64-bit 32-bit" warnings
This resolves "warning: implicit conversion shortens 64-bit value into a 32-bit value"
The problem is String/Array length is a long (so 64 bits on some platforms instead of 32) and the extension use int
There are 2 solutions:
* use long everywhere (but waste of memory, and hard to do)
* cast into ints (but potential lost of data)
I did the second, because all these cases are about String/Array lengths,
and it is very unlikely to have a String/Array of more than 2 billions elements (that would mean at least 2GB in memory).

The last cast might need to be reviewed (htonl((int)time(NULL))) because htonl want a 32-bit int, but time(NULL) will overflow with the year 2038 problem.
2011-01-03 14:20:58 -05:00
Kyle Banker 70bbb6f1fc minor: claification 2011-01-03 14:11:29 -05:00
Kyle Banker 4d2d0a26af minor: docs 2011-01-03 14:06:41 -05:00
Kyle Banker c0e972470e Fixed BSON_CODER.update_max_bson_size return value 2011-01-03 14:05:42 -05:00
Kyle Banker b83877527e minor: docs 2010-12-30 15:45:24 -05:00
Kyle Banker 49d7bb0883 minor: specify mapreduce output collection (required as of 1.7.5) 2010-12-30 15:43:35 -05:00
Kyle Banker 4e5b1a7d23 RUBY-205 RUBY-150 Support new connection URI options 2010-12-30 15:40:50 -05:00
Kyle Banker 9da68bb3db RUBY-189 use result of ismaster's maxBsonObjectSize 2010-12-29 18:06:31 -05:00
Kyle Banker 01c38eabdd Use retry instead of while loop for rescuing connection failure (quasor) 2010-12-29 13:13:54 -05:00
Kyle Banker b77b3fe1e6 RUBY-215 added Connection#read_primary? and ReplSetConnection#read_primary? 2010-12-29 13:01:05 -05:00
Nick Stielau b3b1cd091a Updating docs about using :fields to exclude _id. 2010-12-29 12:10:24 -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
thickpaddy 30cce6322e Update check for little endian to work with ruby 1.8.6 2010-12-28 10:40:55 +00:00
Kyle Banker 505f149291 1.1.5 history and credits. 2010-12-15 15:29:36 -05:00
Kyle Banker 3c9f0f39f6 BUMP 1.1.5 2010-12-15 15:21:51 -05:00
Kyle Banker 96e1adbb23 minor: ensure index tests 2010-12-15 15:16:36 -05:00
Kyle Banker 8b1f20b3cb RUBY-210 GridIO#seek with GridIO#read_all 2010-12-15 15:07:30 -05:00
Kyle Banker 196a84ebd0 Fix for repl set manager 2010-12-15 15:07:01 -05:00
Kyle Banker 1095a39299 Better tests for reading rs secondaries 2010-12-15 14:16:05 -05:00
Kyle Banker 70135a6b67 minor: docs 2010-12-15 14:15:49 -05:00
Kyle Banker 6196c8728a RUBY-206 handle wtimeout behavior on 1.7.3 2010-12-15 14:15:20 -05:00