Permalink
Browse files

BUMP 1.0; minor doc / example fixes

  • Loading branch information...
1 parent 60f7293 commit 159903ec95e5c2ececb04d9e27dfce9b11565797 @banker banker committed Apr 29, 2010
Showing with 30 additions and 9 deletions.
  1. +6 −1 0.20_UPGRADE → 1.0_UPGRADE
  2. +4 −0 CREDITS
  3. +12 −0 HISTORY
  4. +0 −1 README.rdoc
  5. +4 −3 examples/admin.rb
  6. +1 −1 examples/info.rb
  7. +1 −1 ext/cbson/version.h
  8. +1 −1 lib/bson.rb
  9. +1 −1 lib/mongo.rb
@@ -1,4 +1,9 @@
-0.20 will require some minor code upgrades.
+You can upgrade freely from v0.20 to v1.0.
+
+However, if you're running a version < 0.20, upgrade to 0.20
+before upgrading to 1.0.
+
+The upgrade to 0.20 requires some minor code upgrades.
1. Note the exception changes in HISTORY. Certain exceptions are now scoped under the BSON
module; if you're catching these, you will need to modify your code.
View
@@ -10,6 +10,7 @@ Adrian Madrid, aemadrid@gmail.com
Aman Gupta, aman@tmm1.net
* Collection#save
+* Noted bug in returning query batch size.
Jon Crosby, jon@joncrosby.me
* Some code clean-up
@@ -74,3 +75,6 @@ Chuck Remes
Dmitrii Golub (Houdini) and Jacques Crocker (railsjedi)
* Support open to exclude fields on query
+
+dfitzgibbon
+* patch for ensuring bson_ext compatibility with early release of Ruby 1.8.5
View
@@ -1,3 +1,15 @@
+1.0 2010-4-29
+Note: if upgrading from versions prior to 0.20, be sure to upgrade
+to 0.20 before upgrading to 1.0.
+
+* Inspected ObjectID is represented in MongoDB extended json format.
+* Support for tailable cursors.
+* Configurable query response batch size (thx. to Aman Gupta)
+
+* bson_ext installs on early release of Ruby 1.8.5 (dfitzgibbon)
+* Deprecated DB#create_index. Use Collection#create_index index.
+* Removed deprecated Grid#put syntax; no longer requires a filename.
+
0.20.1 2010-4-7
* Added bson gem dependency.
View
@@ -35,7 +35,6 @@ The driver also requires the BSON gem:
$ gem install bson
And for a significant performance boost, you'll want to install the C extensions:
-extensions:
$ gem install bson_ext
View
@@ -9,13 +9,14 @@
port = ENV['MONGO_RUBY_DRIVER_PORT'] || Connection::DEFAULT_PORT
puts "Connecting to #{host}:#{port}"
-db = Mongo::Connection.new(host, port).db('ruby-mongo-examples')
+con = Mongo::Connection.new(host, port)
+db = con.db('ruby-mongo-examples')
coll = db.create_collection('test')
# Erase all records from collection, if any
coll.remove
-admin = db.admin
+admin = con['admin']
# Profiling level set/get
puts "Profiling level: #{admin.profiling_level}"
@@ -34,7 +35,7 @@
# Validate returns a hash if all is well and
# raises an exception if there is a problem.
-info = admin.validate_collection(coll.name)
+info = db.validate_collection(coll.name)
puts "valid = #{info['ok']}"
puts info['result']
View
@@ -24,7 +24,7 @@
p db.collections_info
# Index information
-db.create_index('test', 'a')
+coll.create_index('a')
p db.index_information('test')
# Destroy the collection
View
@@ -14,4 +14,4 @@
* limitations under the License.
*/
-#define VERSION "0.20.2"
+#define VERSION "1.0"
View
@@ -1,7 +1,7 @@
$:.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
module BSON
- VERSION = "0.20.2"
+ VERSION = "1.0"
def self.serialize(obj, check_keys=false, move_id=false)
BSON_CODER.serialize(obj, check_keys, move_id)
end
View
@@ -1,7 +1,7 @@
$:.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
module Mongo
- VERSION = "0.20.2"
+ VERSION = "1.0"
end
module Mongo

0 comments on commit 159903e

Please sign in to comment.