File tree 9 files changed +30
-9
lines changed
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.
2
7
3
8
1. Note the exception changes in HISTORY. Certain exceptions are now scoped under the BSON
4
9
module; 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
10
10
11
11
Aman Gupta, aman@tmm1.net
12
12
* Collection#save
13
+ * Noted bug in returning query batch size.
13
14
14
15
Jon Crosby, jon@joncrosby.me
15
16
* Some code clean-up
@@ -74,3 +75,6 @@ Chuck Remes
74
75
75
76
Dmitrii Golub (Houdini) and Jacques Crocker (railsjedi)
76
77
* 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
+
1
13
0.20.1 2010-4-7
2
14
* Added bson gem dependency.
3
15
Original file line number Diff line number Diff line change @@ -35,7 +35,6 @@ The driver also requires the BSON gem:
35
35
$ gem install bson
36
36
37
37
And for a significant performance boost, you'll want to install the C extensions:
38
- extensions:
39
38
40
39
$ gem install bson_ext
41
40
Original file line number Diff line number Diff line change 9
9
port = ENV [ 'MONGO_RUBY_DRIVER_PORT' ] || Connection ::DEFAULT_PORT
10
10
11
11
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' )
13
14
coll = db . create_collection ( 'test' )
14
15
15
16
# Erase all records from collection, if any
16
17
coll . remove
17
18
18
- admin = db . admin
19
+ admin = con [ ' admin' ]
19
20
20
21
# Profiling level set/get
21
22
puts "Profiling level: #{ admin . profiling_level } "
34
35
35
36
# Validate returns a hash if all is well and
36
37
# raises an exception if there is a problem.
37
- info = admin . validate_collection ( coll . name )
38
+ info = db . validate_collection ( coll . name )
38
39
puts "valid = #{ info [ 'ok' ] } "
39
40
puts info [ 'result' ]
40
41
Original file line number Diff line number Diff line change 24
24
p db . collections_info
25
25
26
26
# Index information
27
- db . create_index ( 'test' , 'a' )
27
+ coll . create_index ( 'a' )
28
28
p db . index_information ( 'test' )
29
29
30
30
# Destroy the collection
Original file line number Diff line number Diff line change 14
14
* limitations under the License.
15
15
*/
16
16
17
- #define VERSION "0.20.2 "
17
+ #define VERSION "1.0 "
Original file line number Diff line number Diff line change 1
1
$:. unshift ( File . join ( File . dirname ( __FILE__ ) , '..' , 'lib' ) )
2
2
3
3
module BSON
4
- VERSION = "0.20.2 "
4
+ VERSION = "1.0 "
5
5
def self . serialize ( obj , check_keys = false , move_id = false )
6
6
BSON_CODER . serialize ( obj , check_keys , move_id )
7
7
end
Original file line number Diff line number Diff line change 1
1
$:. unshift ( File . join ( File . dirname ( __FILE__ ) , '..' , 'lib' ) )
2
2
3
3
module Mongo
4
- VERSION = "0.20.2 "
4
+ VERSION = "1.0 "
5
5
end
6
6
7
7
module Mongo
You can’t perform that action at this time.
0 commit comments