bson_ext 1.6.1 → 1.6.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/Rakefile +30 -24
  2. data/ext/cbson/version.h +1 -1
  3. metadata +11 -6
data/Rakefile CHANGED
@@ -160,7 +160,7 @@ end
160
160
 
161
161
  desc "Generate YARD documentation"
162
162
  task :ydoc do
163
- require 'mongo'
163
+ require './lib/mongo/version.rb'
164
164
  out = File.join('ydoc', Mongo::VERSION)
165
165
  FileUtils.rm_rf('ydoc')
166
166
  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"
@@ -188,7 +188,6 @@ namespace :jenkins do
188
188
  end
189
189
 
190
190
  namespace :gem do
191
-
192
191
  desc "Install the gem locally"
193
192
  task :install do
194
193
  `gem build bson.gemspec`
@@ -212,17 +211,6 @@ namespace :gem do
212
211
  `gem install --no-rdoc --no-ri bson_ext-*.gem`
213
212
  `rm bson_ext-*.gem`
214
213
  end
215
-
216
- desc "Build all gems"
217
- task :build_all do
218
- `rm *.gem`
219
- `gem build mongo.gemspec`
220
- `gem build bson.gemspec`
221
- `gem build bson.java.gemspec`
222
- `gem build bson_ext.gemspec`
223
- puts `ls *.gem`
224
- end
225
-
226
214
  end
227
215
 
228
216
  namespace :ci do
@@ -271,6 +259,7 @@ end
271
259
 
272
260
  def change_version(new_version)
273
261
  version = current_version
262
+ puts "Changing version from #{version} to #{new_version}"
274
263
  VERSION_FILES.each do |filename|
275
264
  f = File.open(filename)
276
265
  str = f.read
@@ -283,30 +272,47 @@ def change_version(new_version)
283
272
  end
284
273
 
285
274
  namespace :deploy do
286
- task :version, [:version] do |t, args|
287
- check_version(args[:version])
288
- puts args[:version]
275
+ desc "Change version to new release"
276
+ task :change_version, [:version] do |t, args|
277
+ check_version(args[:version])
289
278
  change_version(args[:version])
290
279
  end
291
280
 
292
- task :git_prepare, [:version] do |t, args|
281
+ desc "Add version files, commit, tag release"
282
+ task :git_prepare do |t, args|
293
283
  g = Git.open(Dir.getwd())
294
- version = args[:version]
295
- check_version(version)
296
- g.add(VERSION_FILES)
284
+ version = current_version
285
+ to_commit = VERSION_FILES << 'docs/HISTORY.md'
286
+ g.add(to_commit)
297
287
  g.commit "RELEASE #{version}"
298
288
  g.add_tag("#{version}")
299
289
  end
300
290
 
291
+ desc "Push release to github"
301
292
  task :git_push do
302
293
  g = Git.open(Dir.getwd())
303
294
  g.push
304
295
  end
305
296
 
306
- task :gems, [:version] do |t, args|
307
- check_version(args[:version])
308
- check_gem_list_existence(args[:version])
309
- gem_list
297
+ desc "Build all gems"
298
+ task :gem_build do
299
+ `rm *.gem`
300
+ `gem build mongo.gemspec`
301
+ `gem build bson.gemspec`
302
+ `gem build bson.java.gemspec`
303
+ `gem build bson_ext.gemspec`
304
+ puts `ls *.gem`
305
+ end
306
+
307
+ desc "Push all gems to RubyGems"
308
+ task :gem_push do |t, args|
309
+ check_gem_list_existence(current_version)
310
+ gem_list.each do |gem|
311
+ puts "Push #{gem} to RubyGems? (y/N)"
312
+ if gets.chomp! == 'y'
313
+ system "gem push #{gem}"
314
+ end
315
+ end
310
316
  end
311
317
  end
312
318
 
@@ -14,4 +14,4 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- #define VERSION "1.6.1"
17
+ #define VERSION "1.6.2"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bson_ext
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.1
4
+ version: 1.6.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,19 +9,24 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-03-07 00:00:00.000000000 Z
12
+ date: 2012-04-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bson
16
- requirement: &70249119217660 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
20
20
  - !ruby/object:Gem::Version
21
- version: 1.6.1
21
+ version: 1.6.2
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70249119217660
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: 1.6.2
25
30
  description: C extensions to accelerate the Ruby BSON serialization. For more information
26
31
  about BSON, see http://bsonspec.org. For information about MongoDB, see http://www.mongodb.org.
27
32
  email: mongodb-dev@googlegroups.com
@@ -59,7 +64,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
59
64
  version: '0'
60
65
  requirements: []
61
66
  rubyforge_project:
62
- rubygems_version: 1.8.17
67
+ rubygems_version: 1.8.21
63
68
  signing_key:
64
69
  specification_version: 3
65
70
  summary: C extensions for Ruby BSON.