File tree Expand file tree Collapse file tree 9 files changed +30
-9
lines changed Expand file tree Collapse file tree 9 files changed +30
-9
lines changed Original file line number Diff line number Diff line change 1- 0.20 will require some minor code upgrades.
1+ You can upgrade freely from v0.20 to v1.0.
2+
3+ However, if you're running a version < 0.20, upgrade to 0.20
4+ before upgrading to 1.0.
5+
6+ The upgrade to 0.20 requires some minor code upgrades.
27
381. Note the exception changes in HISTORY. Certain exceptions are now scoped under the BSON
49module; if you're catching these, you will need to modify your code.
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ Adrian Madrid, aemadrid@gmail.com
1010
1111Aman Gupta, aman@tmm1.net
1212* Collection#save
13+ * Noted bug in returning query batch size.
1314
1415Jon Crosby, jon@joncrosby.me
1516* Some code clean-up
@@ -74,3 +75,6 @@ Chuck Remes
7475
7576Dmitrii Golub (Houdini) and Jacques Crocker (railsjedi)
7677* Support open to exclude fields on query
78+
79+ dfitzgibbon
80+ * patch for ensuring bson_ext compatibility with early release of Ruby 1.8.5
Original file line number Diff line number Diff line change 1+ 1.0 2010-4-29
2+ Note: if upgrading from versions prior to 0.20, be sure to upgrade
3+ to 0.20 before upgrading to 1.0.
4+
5+ * Inspected ObjectID is represented in MongoDB extended json format.
6+ * Support for tailable cursors.
7+ * Configurable query response batch size (thx. to Aman Gupta)
8+
9+ * bson_ext installs on early release of Ruby 1.8.5 (dfitzgibbon)
10+ * Deprecated DB#create_index. Use Collection#create_index index.
11+ * Removed deprecated Grid#put syntax; no longer requires a filename.
12+
1130.20.1 2010-4-7
214 * Added bson gem dependency.
315
Original file line number Diff line number Diff line change @@ -35,7 +35,6 @@ The driver also requires the BSON gem:
3535 $ gem install bson
3636
3737And for a significant performance boost, you'll want to install the C extensions:
38- extensions:
3938
4039 $ gem install bson_ext
4140
Original file line number Diff line number Diff line change 99port = ENV [ 'MONGO_RUBY_DRIVER_PORT' ] || Connection ::DEFAULT_PORT
1010
1111puts "Connecting to #{ host } :#{ port } "
12- db = Mongo ::Connection . new ( host , port ) . db ( 'ruby-mongo-examples' )
12+ con = Mongo ::Connection . new ( host , port )
13+ db = con . db ( 'ruby-mongo-examples' )
1314coll = db . create_collection ( 'test' )
1415
1516# Erase all records from collection, if any
1617coll . remove
1718
18- admin = db . admin
19+ admin = con [ ' admin' ]
1920
2021# Profiling level set/get
2122puts "Profiling level: #{ admin . profiling_level } "
3435
3536# Validate returns a hash if all is well and
3637# raises an exception if there is a problem.
37- info = admin . validate_collection ( coll . name )
38+ info = db . validate_collection ( coll . name )
3839puts "valid = #{ info [ 'ok' ] } "
3940puts info [ 'result' ]
4041
Original file line number Diff line number Diff line change 2424p db . collections_info
2525
2626# Index information
27- db . create_index ( 'test' , 'a' )
27+ coll . create_index ( 'a' )
2828p db . index_information ( 'test' )
2929
3030# Destroy the collection
Original file line number Diff line number Diff line change 1414 * limitations under the License.
1515 */
1616
17- #define VERSION "0.20.2 "
17+ #define VERSION "1.0 "
Original file line number Diff line number Diff line change 11$:. unshift ( File . join ( File . dirname ( __FILE__ ) , '..' , 'lib' ) )
22
33module BSON
4- VERSION = "0.20.2 "
4+ VERSION = "1.0 "
55 def self . serialize ( obj , check_keys = false , move_id = false )
66 BSON_CODER . serialize ( obj , check_keys , move_id )
77 end
Original file line number Diff line number Diff line change 11$:. unshift ( File . join ( File . dirname ( __FILE__ ) , '..' , 'lib' ) )
22
33module Mongo
4- VERSION = "0.20.2 "
4+ VERSION = "1.0 "
55end
66
77module Mongo
You can’t perform that action at this time.
0 commit comments