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 +4 -4
- data/Rakefile +14 -26
- data/lib/bson/version.rb +1 -1
- data/spec/shared/lib/mrss/release/candidate.rb +2 -5
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb64edcc98b2cc17bd2bba72a89a95b8e8814912e1f2ecc4a25aac83e2866515
|
4
|
+
data.tar.gz: 4b6c17e095eb02e25e296598e295588b9e3ac007648dcf555dd7e098283a0ce6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
57
|
-
|
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
|
-
|
82
|
-
|
83
|
-
|
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
@@ -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
|