#7 Update to mongo 2.11.1.
Merged 20 days ago by jaruga. Opened 23 days ago by jaruga.
rpms/ jaruga/rubygem-mongo feature/update-to-2.11.1  into  master

file modified
+1

@@ -9,3 +9,4 @@ 

  /mongo-2.5.1.gem

  /mongo-2.6.2.gem

  /mongo-2.8.0.gem

+ /mongo-2.11.1.gem

file modified
+7 -4

@@ -4,11 +4,11 @@ 

  %bcond_with tests

  

  Name: rubygem-%{gem_name}

- Version: 2.8.0

- Release: 2%{?dist}

+ Version: 2.11.1

+ Release: 1%{?dist}

  Summary: Ruby driver for MongoDB

  License: ASL 2.0

- URL: http://www.mongodb.org

+ URL: https://docs.mongodb.com/ruby-driver/

  Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem

  BuildRequires: ruby(release)

  BuildRequires: rubygems-devel

@@ -16,7 +16,7 @@ 

  %if %{with tests}

  # For running the tests

  BuildRequires: %{_bindir}/mongod

- BuildRequires: rubygem(bson) >= 4.4.2

+ BuildRequires: rubygem(bson) >= 4.6.0

  BuildRequires: rubygem(rspec)

  %endif

  BuildArch: noarch

@@ -111,6 +111,9 @@ 

  %{gem_instdir}/spec

  

  %changelog

+ * Tue Nov 19 2019 Jun Aruga <jaruga@redhat.com> - 2.11.1-1

+ - Update to mongo 2.11.1.

+ 

  * Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.8.0-2

  - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild

  

file modified
+1 -1

@@ -1,1 +1,1 @@ 

- SHA512 (mongo-2.8.0.gem) = 40d3929f9e9ed0952fe97aece23d70fd46b2c06012099a3114a5b1391bb8e7a237f5967b85ad3f394542fb0cb2f542d82933f6984a1d432f2b6886b3ea68f63d

+ SHA512 (mongo-2.11.1.gem) = 8d735a9c5c7e966b50ac73f5cbb5e298bcdc2d283e449a53ed7462e3afea8fa9a072e3998a2344308109f86150ec6d14d1587e81118884510ef09b3d1432d511

This PR is to update to the latest version 2.11.1.

Following PR can be merged before this PR.
https://src.fedoraproject.org/rpms/rubygem-bson/pull-request/4
Because the mongo 2.11.1 depends on bson >= 4.6.0, < 5.0.0.
https://rubygems.org/gems/mongo/versions/2.11.1

fedpkg import *.src.rpm is necessary when merging this PR.

The URL: modification comes from https://github.com/mongodb/mongo-ruby-driver/blob/v2.11.1/mongo.gemspec#L12 .

Could you review it?
Thanks.

I tested following things.

irb check

I just tested the mongo Ruby binding alone without mongo. So, the connections from the ruby binding are failed as expected, when the mongo does not exist.

irb(main):002:0> client = Mongo::Client.new([ '127.0.0.1:27017' ], :database => 'test')
...
D, [2019-11-19T17:39:25.398342 #22] DEBUG -- : MONGODB | Error running ismaster on 127.0.0.1:27017: Mongo::Error::SocketError: Errno::ECONNREFUSED: Connection refused - connect(2) for 127.0.0.1:27017 (for 127.0.0.1:27017 (no TLS))
...

https://src.fedoraproject.org/rpms/rubygem-bson/pull-request/4
Because the mongo 2.11.1 depends on bson >= 4.6.0, < 5.0.0.
https://rubygems.org/gems/mongo/versions/2.11.1

Now rubygem-bson 4.6.0 is on rawhide, we can install this PR's rubygem-mongo.
I rebased doing fedpkg import.

-URL: http://www.mongodb.org
+URL: https://docs.mongodb.com/ruby-driver/

I changed the URL tag in this PR as rubygem-bson as well, and the URL is including a basic explanation "The MongoDB Ruby driver is the officially supported Ruby driver for MongoDB. It is written in pure Ruby ..." about rubygem-mongo. It is beneficial for Fedora users.

So, I think the URL is okay.

Could you review it?

rebased onto be79153

20 days ago

Pull-Request has been merged by jaruga

20 days ago