Skip to content

Commit 159903e

Browse files
committed
BUMP 1.0; minor doc / example fixes
1 parent 60f7293 commit 159903e

File tree

9 files changed

+30
-9
lines changed

9 files changed

+30
-9
lines changed

0.20_UPGRADE renamed to 1.0_UPGRADE

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
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

38
1. Note the exception changes in HISTORY. Certain exceptions are now scoped under the BSON
49
module; if you're catching these, you will need to modify your code.

CREDITS

+4
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Adrian Madrid, [email protected]
1010

1111
Aman Gupta, [email protected]
1212
* Collection#save
13+
* Noted bug in returning query batch size.
1314

1415
Jon Crosby, [email protected]
1516
* Some code clean-up
@@ -74,3 +75,6 @@ Chuck Remes
7475

7576
Dmitrii 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

HISTORY

+12
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
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+
113
0.20.1 2010-4-7
214
* Added bson gem dependency.
315

README.rdoc

-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ The driver also requires the BSON gem:
3535
$ gem install bson
3636

3737
And for a significant performance boost, you'll want to install the C extensions:
38-
extensions:
3938

4039
$ gem install bson_ext
4140

examples/admin.rb

+4-3
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,14 @@
99
port = ENV['MONGO_RUBY_DRIVER_PORT'] || Connection::DEFAULT_PORT
1010

1111
puts "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')
1314
coll = db.create_collection('test')
1415

1516
# Erase all records from collection, if any
1617
coll.remove
1718

18-
admin = db.admin
19+
admin = con['admin']
1920

2021
# Profiling level set/get
2122
puts "Profiling level: #{admin.profiling_level}"
@@ -34,7 +35,7 @@
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)
3839
puts "valid = #{info['ok']}"
3940
puts info['result']
4041

examples/info.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
p db.collections_info
2525

2626
# Index information
27-
db.create_index('test', 'a')
27+
coll.create_index('a')
2828
p db.index_information('test')
2929

3030
# Destroy the collection

ext/cbson/version.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@
1414
* limitations under the License.
1515
*/
1616

17-
#define VERSION "0.20.2"
17+
#define VERSION "1.0"

lib/bson.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
$:.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
22

33
module 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

lib/mongo.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
$:.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
22

33
module Mongo
4-
VERSION = "0.20.2"
4+
VERSION = "1.0"
55
end
66

77
module Mongo

0 commit comments

Comments
 (0)