Tyler Brock
9be394b623
Merge pull request #104 from seamusabshere/from_uri_implicit_arg
...
Make ENV['MONGODB_URI'] the default first arg for `Mongo::Connection.from_uri`
2012-06-04 20:59:35 -07:00
Tyler Brock
c0a4ae6b44
Merge pull request #103 from seamusabshere/ruby_18_url_decoding
...
Since `URI.decode_www_form` is Ruby 1.9-only, use `CGI.parse` instead
2012-06-04 20:58:47 -07:00
Tyler Brock
4195ce35c6
Merge pull request #105 from ukd1/patch-1
...
Fix broken links in github
2012-06-04 20:55:26 -07:00
Russell Smith
f60301e43d
Fix broken links in github
2012-06-04 19:34:52 -07:00
Seamus Abshere
90773ebeb8
Make ENV['MONGODB_URI'] the default first arg for `Mongo::Connection.from_uri`
2012-06-04 12:57:01 -05:00
Seamus Abshere
d88e6d730f
Since it's confusing anyway that CGI.parse returns values as arrays, use an array-specific method (as opposed to one that could be for strings or hashes) to access it
2012-06-04 12:55:31 -05:00
Seamus Abshere
d8f94e6f63
Since `URI.decode_www_form` is Ruby 1.9-only, use `CGI.parse` instead
...
Conflicts:
lib/mongo/util/uri_parser.rb - replaced @TylerBrock's (temp?) fix with this one, which uses the stdlib
test/uri_test.rb - reintroduced test for conflicting URL separators... and added a new test for URL-encoded parts
2012-06-04 12:54:48 -05:00
Tyler Brock
9d859d2b5c
minor: URI.decode_www_form not available pre 1.9.x, alternative solution
2012-06-04 13:24:30 -04:00
John Bintz
89d2130306
add test for save_chunk fix
2012-06-04 13:24:30 -04:00
John Bintz
f93e05de83
use collection#save instead of collection#insert to save gridio chunks so that replacement chunks overwrite existing ones
2012-06-04 13:24:30 -04:00
Seamus Abshere
1454210d9f
Use ENV["MONGODB_URI"] if available.
2012-06-04 13:24:30 -04:00
Tyler Brock
351eeb65a2
minor: read preference test fix
...
Secondary to remove is randomly chosen so test would randomly fail
before this fix.
2012-06-04 13:23:56 -04:00
Tyler Brock
4df2564519
RUBY-444
...
Additional fix for threading tests to ensure a manager for a new thread is always set.
2012-06-01 15:47:10 -04:00
Tyler Brock
a3555ba404
minor: logger fix for mocha tests that expect an non-hash argument
2012-06-01 15:16:05 -04:00
Tyler Brock
c76160c2f2
Merge pull request #97 from asinbow/fix_log_debug_level_detect
...
fix log debug level detect
2012-06-01 11:38:37 -07:00
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
291a9334b6
RUBY-444
...
During a refresh Thread.current[:managers] has the potential to be nil.
This fix checks to make sure Thread.current[:managers] exists before
trying to access the managers hash.
2012-06-01 14:20:25 -04: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
Tyler Brock
ad8a933cd4
minor: fix extension compile errors
2012-06-01 13:11:00 -04:00
Tyler Brock
65a1ecc42d
RUBY-441
...
Remove connect_nonblock from tcp_socket implementation to reduce
problems due to inconsistent implementation in JRuby and Windows.
Connection timeouts are now reverted to using the timeout module for all
platforms.
2012-06-01 12:25:42 -04:00
Tyler Brock
b23be322c0
minor: adding devkit to Rakefile for windows
2012-05-30 15:10:49 -04:00
Tyler Brock
6c102f36c2
minor: rake task to compile and test c extension
2012-05-30 14:06:55 -04:00
Tyler Brock
cf4cecb417
minor: remove perftools
2012-05-30 13:54:57 -04:00
Tyler Brock
b7d34071b5
Merge pull request #102 from balexand/patch-1
...
Fix copy-paste mistake in doc comment
2012-05-29 14:20:21 -07:00
Brian Alexander
beea7d1320
Fix copy-paste mistake in doc comment
2012-05-29 15:05:50 -06:00
Farrel Lifson
078354a39a
Added BSON::ObjectId#to_ary
2012-05-26 01:16:11 +02:00
Kyle Banker
5591e3dfe3
RUBY-444 keep multiple replica set connections separate
2012-05-25 13:58:07 -04:00
gjmurakami-10gen
3e04550e34
Merge pull request #100 from kzk/master
...
b2json,j2bson: don't assume fixed ruby location
2012-05-22 11:10:50 -07:00
Kazuki Ohta
23b75ed5fc
b2json,j2bson: don't assume fixed ruby location
2012-05-20 20:24:45 +09:00
Tyler Brock
823abc2ad9
minor: authors++
2012-05-16 09:45:12 -04:00
Tyler Brock
6acf9df49e
minor: removing bson_ext from Gemfile
2012-05-15 16:57:27 -04:00
Tyler Brock
9b38c3a70f
minor: JRUBY hacks
2012-05-15 16:52:59 -04:00
Tyler Brock
746687bb86
minor: testing fixes
2012-05-15 16:52:58 -04:00
Tyler Brock
2de3dcab94
RUBY-442
...
Using sysread so Ruby 1.8.x won't complain about nonblocking IO#read
2012-05-15 16:52:58 -04:00
Tyler Brock
d86c4d95f7
RUBY-435
...
Use rb_time_num_new for Time value when available (Ruby >= 1.9)
2012-05-15 16:52:53 -04:00
gjmurakami-10gen
f5dc37fe68
Merge pull request #98 from ismell/patch-1
...
Fixed a typo
2012-05-14 13:57:07 -07:00
Raul E Rangel
e6c084345b
Fixed a typo
2012-05-14 14:20:51 -06:00
Tyler Brock
8a49614c7e
RUBY-437
...
Document batchSize better
2012-05-14 16:03:08 -04:00
Tyler Brock
6663660d92
RUBY-442
...
Use read instead of readpartial.
Rescue ETIMEDOUT and raise appropriate ConnectionError
2012-05-14 16:03:08 -04:00
Gary Murakami
71650076de
documentation improvements for Yard/Ydoc newbies, also relative links replace absolute links where possible so that the user is left with the exact version and not forced to current web docs, in accordance with DOCS-197
2012-05-14 11:54:28 -04:00
Gary Murakami
7b7171e478
Performance test and graphing improvements, includes results and graphs for safe mode, find one, and find many.
2012-05-11 15:19:38 -04:00
Gary Murakami
2be7a46b93
Performance test and graphing improvements.
2012-05-04 17:16:57 -04:00
Gary Murakami
50d6902d80
Revert cbson.c, to be revisited for malloc/free reduction.
...
README.md has API Documentation note at the top to help users match documentation to driver version, DOCS-197.
Expanded performance tests, for insert with multiple docs.
2012-05-03 16:43:12 -04:00
Gary Murakami
ca7bf209dd
DOCS-197 Fully qualify examples in the code with Mongo::
2012-05-02 17:43:54 -04:00
Gary Murakami
962c4f2f2e
eliminate last explicit malloc/free for array key name, more performance measurements
2012-04-30 17:22:01 -04:00
asinbow.wang
56968e8ad3
fix log debug level detect
...
* reason
there hardcodes DEBUG_LEVEL in logging.rb:
DEBUG_LEVEL = defined?(Logger) ? Logger::DEBUG : 0
this could cause some incompatibility between different logger tools
for Logger, DEBUG/0 < INFO/1 < WARN/2 < ERROR/3 < FATAL/4,
for Log4r, ALL/0 < DETAIL/1 < DEBUG/2 < INFO/3 < WARN/4 < ERROR/5 < FATAL/6.
anyway, it is not in good pattern.
* suggestion
logger.debug { ... }
if current level is greater than DEBUG, the block will not be
evaluated. it is also efficient.
following is also supported by most loggers.
logger.info { ... }
logger.warn { ... }
logger.error { ... }
...
2012-04-27 15:26:49 +08:00
Tyler Brock
d176c2a0f3
RUBY-436 Handle IRB::Abort Exception
2012-04-26 13:53:21 -04:00
Gary Murakami
7384585d98
write_element optimization for T_ARRAY to only allocate the buffer for the index key once instead of repeatedly for every index. This results in a 2.5x improvement for array sizes around 32. Also includes improvements to the performance tests and graphs, with plothover to show [x,y] values.
2012-04-25 17:15:31 -04:00
Gary Murakami
bc5944899b
Merge branch 'master' of github.com:mongodb/mongo-ruby-driver
...
Conflicts:
Gemfile
2012-04-25 11:05:00 -04:00
Tyler Brock
f5efe08d91
minor: Gemfile fix
2012-04-24 15:25:35 -04:00