Hongli Lai (Phusion)
2335108162
When possible, use system_free() to free asprintf() results.
...
On OS X, Ruby Enterprise Edition allocates memory with tcmalloc which is
not compatible with the system malloc. asprintf() allocates memory with
the system malloc so we need to free its result with the system free()
function instead of tcmalloc's free() function. REE's system_free()
API call does that.
2011-02-14 09:41:39 -05:00
Kyle Banker
04c536292a
BUMP 1.2.1
2011-02-10 15:27:06 -05:00
Kyle Banker
76730d4a7c
RUBY-233 show invalid key on invalid key exception
2011-02-04 12:07:28 -05:00
Kyle Banker
648094c80f
BUMP 1.2.0
2011-01-18 11:20:59 -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
756ccfe877
BUMP 1.2.rc1
2011-01-05 12:31:49 -05:00
Kyle Banker
9798626053
RUBY-188 fix for bson_ext on Windows
2011-01-04 18:09:41 -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
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
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