Commit Graph

28 Commits

Author SHA1 Message Date
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
Seamus Abshere 1454210d9f Use ENV["MONGODB_URI"] if available. 2012-06-04 13:24:30 -04:00
Tyler Brock d42eee278b minor: testing fixes, cleaning output 2012-04-04 16:44:01 -04:00
Tyler Brock fb77743f60 RUBY-392 fix to support ruby < 1.9 (1.9 is needed to support named capture groups in regular expressions) 2012-01-30 16:55:47 -05:00
Tyler Brock a193c055ab RUBY-404 make uri option paramaters case insensitive, test included 2012-01-30 12:06:20 -05:00
Tyler Brock 6ae5dbd37c minor: removed redundant code from uri_parser configure connect method 2012-01-29 19:38:41 -05:00
Tyler Brock b31d51ba7a minor: updates to uri parser for MS granularity 2012-01-26 16:52:25 -05:00
Kyle Banker f56846b444 Merge pull request #84 from TylerBrock/392-uriparser-spec
RUBY-392 Update URIParser for consistency with Mongo URI spec.
2012-01-20 11:23:25 -08:00
Tyler Brock 4a35bf1ccb formatting fix 2012-01-17 19:37:15 -05:00
Tyler Brock 9a39987737 depricated wtimeout in favor of wtimeoutMS 2012-01-17 19:35:46 -05:00
Tyler Brock 1124918502 added journal, connectTimeoutMS and socketTimeoutMS to URI options 2012-01-17 18:45:09 -05:00
Tyler Brock b3b50f7273 changes 2012-01-04 13:03:44 -05:00
Tyler Brock d79ca1f994 small change to regex 2011-12-20 16:02:17 -05:00
Tyler Brock 899241eefe more readability changes to uri_parser regex 2011-12-20 15:56:00 -05:00
Tyler Brock 1d22c75811 made MONGODB_URI_MATCHER regular expression in uri_parser.rb easier to interpret by breaking it into parts 2011-12-20 11:31:39 -05:00
Kyle Banker 63ca1c7648 RUBY-350 allow ':' in usernames in URI 2011-11-15 16:31:21 -05:00
David E. Chen 9eaf6b7b83 Support the current MongoDB URI scheme with multiple hosts/ports separated by commas all using the same authentication and database. 2011-09-26 17:39:47 -04:00
Michael Glass fd0e858021 MongoDB URI should allow db with no username or password. 2011-09-26 16:21:43 -04:00
Wojciech Piekutowski e4867b542e Initialize instance variables for available options 2011-02-20 16:12:30 +01:00
Wojciech Piekutowski b541972bdc Remove duplicating character classes from URI regexp in Mongo::URIParser 2011-02-20 15:36:15 +01:00
Kyle Banker 0d91faf6b1 RUBY-226 minor: license update 2011-01-17 12:26:32 -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 70bbb6f1fc minor: claification 2011-01-03 14:11:29 -05:00
Kyle Banker b83877527e minor: docs 2010-12-30 15:45:24 -05:00
Kyle Banker 4e5b1a7d23 RUBY-205 RUBY-150 Support new connection URI options 2010-12-30 15:40:50 -05:00
Kyle Banker 08b7cddc81 Initial ReplSetConnection checking. Refactoring. 2010-12-10 16:00:35 -05:00