bson 5.1.0 → 5.1.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: db8071ad65b8a0ef6e4c10b76f1143ce627b5d2ba0e3c9f7eed13d3868425c3e
4
- data.tar.gz: 3d76edf4c97a81d2362e1b08c4cee08074561f16b74f468b7cb1aac70fb614c4
3
+ metadata.gz: cb64edcc98b2cc17bd2bba72a89a95b8e8814912e1f2ecc4a25aac83e2866515
4
+ data.tar.gz: 4b6c17e095eb02e25e296598e295588b9e3ac007648dcf555dd7e098283a0ce6
5
5
  SHA512:
6
- metadata.gz: dde49d3d741174610fa32ba697c238285209f0074ba04a1d6758604665c1c817a9d96bc1c44c7a731530ebdc94a8ac9e74da3c4ea340a6d6d6d4a0bf4d6ab17e
7
- data.tar.gz: f29560d3d3830b34d33567671328dca0dc9b7b5ba173d6a193ed2b3150ae79a17f715666bc106a3c6fda0399ab4e7724bb3efc9a97733076464cd10698a366b3
6
+ metadata.gz: 9a8eeedb36d88f6cde0489562da998287c1982aefcc5ad12ed7235d0bde380251d62c2a0431a155e27115d5131db0c102ca36651e65d126988dbce700ec8884a
7
+ data.tar.gz: 5bb7da780a59ef38959c3c900148d288ff516688524ba56b837f18619c680ed4aa453482574a9c26e7f985a4cc9ea745c2d885d56421eb967787243fc5c3b2ec
data/Rakefile CHANGED
@@ -53,8 +53,10 @@ RSpec::Core::RakeTask.new(:rspec)
53
53
 
54
54
  desc 'Build the bson gem'
55
55
  task :build => [ :clean_all, *(jruby? ? :compile : nil) ] do
56
- output = "--output=#{ENV['GEM_FILE_NAME']}" if ENV['GEM_FILE_NAME']
57
- system "gem build #{output} bson.gemspec"
56
+ command = [ 'gem', 'build' ]
57
+ command << "--output=#{ENV['GEM_FILE_NAME']}" if ENV['GEM_FILE_NAME']
58
+ command << ENV['GEMSPEC'] || 'bson.gemspec'
59
+ system(*command)
58
60
  end
59
61
 
60
62
  # `rake version` is used by the deployment system so get the release version
@@ -66,22 +68,10 @@ task :version do
66
68
  puts BSON::VERSION
67
69
  end
68
70
 
69
- # `rake gem_file_name` is used by the deployment system so get the name of
70
- # the gem file to be generated. It must do nothing more than just print the
71
- # name of the gem file to generate.
72
- desc 'Print the name of the gem file to generate.'
73
- task :gem_file_name do
74
- require 'bson/version'
75
- base = "bson-#{BSON::VERSION}"
76
- base << '-java' if jruby?
77
- puts "#{base}.gem"
78
- end
79
-
80
71
  task :clean_all => :clean do
81
- FileUtils.rm_f(File.join(File.dirname(__FILE__), 'lib', "bson_native.bundle"))
82
- FileUtils.rm_f(File.join(File.dirname(__FILE__), 'lib', "bson_native.so"))
83
- FileUtils.rm_f(File.join(File.dirname(__FILE__), 'lib', "bson_native.o"))
84
- FileUtils.rm_f(File.join(File.dirname(__FILE__), 'lib', "bson-ruby.jar"))
72
+ %w[ bson-ruby.jar bson_native.bundle bson_native.so bson_native.o ].each do |file|
73
+ FileUtils.rm_f(File.join(File.dirname(__FILE__), 'lib', file))
74
+ end
85
75
  end
86
76
 
87
77
  task :spec => :compile do
@@ -93,15 +83,6 @@ end
93
83
  # been built (and signed via GPG), so we just need `rake release` to
94
84
  # push the gem to rubygems.
95
85
  task :release do
96
- require 'bson/version'
97
-
98
- # confirm: there ought to be two gems, one for MRI, and one for Java. These
99
- # will have been previously generated by the 'BSON Release' GitHub action.
100
- gems = Dir['*.gem']
101
- if gems.length != 2
102
- abort "Expected two gem files to be ready to release; got #{gems.length}"
103
- end
104
-
105
86
  if ENV['GITHUB_ACTION'].nil?
106
87
  abort <<~WARNING
107
88
  `rake release` must be invoked from the `BSON Release` GitHub action,
@@ -116,6 +97,13 @@ task :release do
116
97
  WARNING
117
98
  end
118
99
 
100
+ # confirm: there ought to be two gems, one for MRI, and one for Java. These
101
+ # will have been previously generated by the 'build' job.
102
+ gems = Dir['*.gem']
103
+ if gems.length != 2
104
+ abort "Expected two gem files to be ready to release; got #{gems.inspect}"
105
+ end
106
+
119
107
  gems.each do |gem|
120
108
  system 'gem', 'push', gem
121
109
  end
data/lib/bson/version.rb CHANGED
@@ -5,5 +5,5 @@ module BSON
5
5
  #
6
6
  # NOTE: this file is automatically updated via `rake candidate:create`.
7
7
  # Manual changes to this file may be overwritten by that rake task.
8
- VERSION = '5.1.0'
8
+ VERSION = '5.1.1'
9
9
  end
@@ -258,9 +258,7 @@ module Mrss
258
258
  end
259
259
 
260
260
  <<~INTRO
261
- The MongoDB Ruby team is pleased to announce version #{product.version}
262
- of the `#{product.package}` gem - #{product.description}.
263
- This is a new #{release_description} of #{product.name}.
261
+ The MongoDB Ruby team is pleased to announce version #{product.version} of the `#{product.package}` gem - #{product.description}. This is a new #{release_description} of #{product.name}.
264
262
 
265
263
  Install this release using [RubyGems](https://rubygems.org/) via the command line as follows:
266
264
 
@@ -274,8 +272,7 @@ module Mrss
274
272
  gem '#{product.package}', '#{product.version}'
275
273
  ~~~
276
274
 
277
- Have any feedback? Click on through to MongoDB's JIRA and
278
- [open a new ticket](#{product.jira_project_url}) to let us know what's on your mind 🧠.
275
+ Have any feedback? Click on through to MongoDB's JIRA and [open a new ticket](#{product.jira_project_url}) to let us know what's on your mind 🧠.
279
276
 
280
277
  INTRO
281
278
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bson
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.1.0
4
+ version: 5.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - The MongoDB Ruby Team