bson_ext 1.6.4 → 1.7.0.rc0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. data/Rakefile +7 -10
  2. data/ext/cbson/cbson.c +2 -2
  3. data/ext/cbson/version.h +1 -1
  4. metadata +13 -10
data/Rakefile CHANGED
@@ -99,56 +99,53 @@ namespace :test do
99
99
  desc "Run the replica set test suite"
100
100
  Rake::TestTask.new(:rs) do |t|
101
101
  t.test_files = FileList['test/replica_sets/*_test.rb']
102
- t.verbose = true
103
102
  t.ruby_opts << '-w'
104
103
  end
105
104
 
106
105
  desc "Run the replica set test suite"
107
106
  Rake::TestTask.new(:rs_no_threads) do |t|
108
107
  t.test_files = FileList['test/replica_sets/*_test.rb'] - ["test/replica_sets/refresh_with_threads_test.rb"]
109
- t.verbose = true
108
+ t.ruby_opts << '-w'
109
+ end
110
+
111
+ desc "Run the sharded cluster test suite"
112
+ Rake::TestTask.new(:sc) do |t|
113
+ t.test_files = FileList['test/sharded_cluster/*_test.rb']
110
114
  t.ruby_opts << '-w'
111
115
  end
112
116
 
113
117
  Rake::TestTask.new(:unit) do |t|
114
118
  t.test_files = FileList['test/unit/*_test.rb']
115
- t.verbose = true
116
119
  t.ruby_opts << '-w'
117
120
  end
118
121
 
119
122
  Rake::TestTask.new(:functional) do |t|
120
123
  t.test_files = FileList['test/*_test.rb']
121
- t.verbose = true
122
124
  t.ruby_opts << '-w'
123
125
  end
124
126
 
125
127
  Rake::TestTask.new(:pooled_threading) do |t|
126
128
  t.test_files = FileList['test/threading/*_test.rb']
127
- t.verbose = true
128
129
  t.ruby_opts << '-w'
129
130
  end
130
131
 
131
132
  Rake::TestTask.new(:auto_reconnect) do |t|
132
133
  t.test_files = FileList['test/auxillary/autoreconnect_test.rb']
133
- t.verbose = true
134
134
  t.ruby_opts << '-w'
135
135
  end
136
136
 
137
137
  Rake::TestTask.new(:authentication) do |t|
138
138
  t.test_files = FileList['test/auxillary/authentication_test.rb']
139
- t.verbose = true
140
139
  t.ruby_opts << '-w'
141
140
  end
142
141
 
143
142
  Rake::TestTask.new(:new_features) do |t|
144
143
  t.test_files = FileList['test/auxillary/1.4_features.rb']
145
- t.verbose = true
146
144
  t.ruby_opts << '-w'
147
145
  end
148
146
 
149
147
  Rake::TestTask.new(:bson) do |t|
150
148
  t.test_files = FileList['test/bson/*_test.rb']
151
- t.verbose = true
152
149
  t.ruby_opts << '-w'
153
150
  end
154
151
 
@@ -176,7 +173,7 @@ task :ydoc do
176
173
  require './lib/mongo/version.rb'
177
174
  out = File.join('ydoc', Mongo::VERSION)
178
175
  FileUtils.rm_rf('ydoc')
179
- system "yardoc lib/**/*.rb lib/mongo/**/*.rb lib/bson/**/*.rb -e ./yard/yard_ext.rb -p yard/templates -o #{out} --title MongoRuby-#{Mongo::VERSION} --files docs/TUTORIAL.md,docs/GridFS.md,docs/FAQ.md,docs/REPLICA_SETS.md,docs/WRITE_CONCERN.md,docs/READ_PREFERENCE.md,docs/HISTORY.md,docs/CREDITS.md,docs/RELEASES.md,docs/CREDITS.md,docs/TAILABLE_CURSORS.md"
176
+ system "yardoc -o #{out} --title MongoRuby-#{Mongo::VERSION}"
180
177
  end
181
178
 
182
179
  namespace :jenkins do
data/ext/cbson/cbson.c CHANGED
@@ -227,12 +227,12 @@ static int write_element(VALUE key, VALUE value, VALUE extra, int allow_id) {
227
227
  int i;
228
228
  if (RSTRING_LEN(key) > 0 && RSTRING_PTR(key)[0] == '$') {
229
229
  bson_buffer_free(buffer);
230
- rb_raise(InvalidKeyName, "%s - key must not start with '$'", RSTRING_PTR(key));
230
+ rb_raise(InvalidKeyName, "key %s must not start with '$'", RSTRING_PTR(key));
231
231
  }
232
232
  for (i = 0; i < RSTRING_LEN(key); i++) {
233
233
  if (RSTRING_PTR(key)[i] == '.') {
234
234
  bson_buffer_free(buffer);
235
- rb_raise(InvalidKeyName, "%s - key must not contain '.'", RSTRING_PTR(key));
235
+ rb_raise(InvalidKeyName, "key %s must not contain '.'", RSTRING_PTR(key));
236
236
  }
237
237
  }
238
238
  }
data/ext/cbson/version.h CHANGED
@@ -14,4 +14,4 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- #define VERSION "1.6.4"
17
+ #define VERSION "1.7.0.rc0"
metadata CHANGED
@@ -1,8 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bson_ext
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.4
5
- prerelease:
4
+ version: 1.7.0.rc0
5
+ prerelease: 6
6
6
  platform: ruby
7
7
  authors:
8
8
  - Mike Dirolf
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2012-06-06 00:00:00.000000000 Z
15
+ date: 2012-08-20 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: bson
@@ -21,7 +21,7 @@ dependencies:
21
21
  requirements:
22
22
  - - ~>
23
23
  - !ruby/object:Gem::Version
24
- version: 1.6.4
24
+ version: 1.7.0.rc0
25
25
  type: :runtime
26
26
  prerelease: false
27
27
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  requirements:
30
30
  - - ~>
31
31
  - !ruby/object:Gem::Version
32
- version: 1.6.4
32
+ version: 1.7.0.rc0
33
33
  description: C extensions to accelerate the Ruby BSON serialization. For more information
34
34
  about BSON, see http://bsonspec.org. For information about MongoDB, see http://www.mongodb.org.
35
35
  email: mongodb-dev@googlegroups.com
@@ -41,12 +41,12 @@ files:
41
41
  - Rakefile
42
42
  - bson_ext.gemspec
43
43
  - ext/cbson/extconf.rb
44
- - ext/cbson/bson_buffer.c
45
- - ext/cbson/cbson.c
46
44
  - ext/cbson/encoding_helpers.c
47
- - ext/cbson/bson_buffer.h
45
+ - ext/cbson/cbson.c
46
+ - ext/cbson/bson_buffer.c
48
47
  - ext/cbson/encoding_helpers.h
49
48
  - ext/cbson/version.h
49
+ - ext/cbson/bson_buffer.h
50
50
  homepage: http://www.mongodb.org
51
51
  licenses: []
52
52
  post_install_message:
@@ -59,12 +59,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
59
59
  - - ! '>='
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
+ segments:
63
+ - 0
64
+ hash: 1803503458536746509
62
65
  required_rubygems_version: !ruby/object:Gem::Requirement
63
66
  none: false
64
67
  requirements:
65
- - - ! '>='
68
+ - - ! '>'
66
69
  - !ruby/object:Gem::Version
67
- version: '0'
70
+ version: 1.3.1
68
71
  requirements: []
69
72
  rubyforge_project:
70
73
  rubygems_version: 1.8.24