Friday, January 31, 2020

Update: databases/ruby-mysql2 0.5.2 -> 0.5.3

Simple version update. Relevant parts of changelog:

* Support more MySQL encodings and warn rather than crash on unsupported
encodings
* Fix keyword argument separation warnings in Ruby 2.7
* Improve performance to call Mysql2::Result#each and
Mysql2::Result#fields

They also removed the tests from the gem, so this removes the related
code from the port.

Tested on amd64. Will be committing next week unless I hear objections.

Thanks,
Jeremy

Index: Makefile
===================================================================
RCS file: /cvs/ports/databases/ruby-mysql2/Makefile,v
retrieving revision 1.27
diff -u -p -r1.27 Makefile
--- Makefile 12 Jul 2019 20:44:01 -0000 1.27
+++ Makefile 31 Jan 2020 19:51:16 -0000
@@ -2,7 +2,7 @@

COMMENT= modern, simple and very fast MySQL library for Ruby

-DISTNAME= mysql2-0.5.2
+DISTNAME= mysql2-0.5.3
CATEGORIES= databases

HOMEPAGE= https://github.com/brianmario/mysql2
@@ -19,12 +19,5 @@ WANTLIB= crypto mysqlclient ssl z
LIB_DEPENDS= databases/mariadb

CONFIGURE_STYLE=ruby gem ext
-
-# Regress tests currently don't work, probably because they
-# need RSpec2. They also need a running MySQL server.
-TEST_IS_INTERACTIVE = Yes
-TEST_DEPENDS= databases/mariadb,-server \
- ${FULLPKGNAME}:${BUILD_PKGPATH}
-MODRUBY_TEST=rake rspec

.include <bsd.port.mk>
Index: distinfo
===================================================================
RCS file: /cvs/ports/databases/ruby-mysql2/distinfo,v
retrieving revision 1.12
diff -u -p -r1.12 distinfo
--- distinfo 26 Jul 2018 21:33:46 -0000 1.12
+++ distinfo 31 Jan 2020 19:49:32 -0000
@@ -1,2 +1,2 @@
-SHA256 (mysql2-0.5.2.gem) = JDZz8BVkRJQ5aaW1xQlYYsQVjedK9cpmFjdA/p9sU6g=
-SIZE (mysql2-0.5.2.gem) = 99328
+SHA256 (mysql2-0.5.3.gem) = XKLZfZwl+ifcZ+ynfdjXPxJXbEzU9vbBixKSWjy7JDQ=
+SIZE (mysql2-0.5.3.gem) = 74240
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/databases/ruby-mysql2/pkg/PLIST,v
retrieving revision 1.10
diff -u -p -r1.10 PLIST
--- pkg/PLIST 26 Jul 2018 21:33:46 -0000 1.10
+++ pkg/PLIST 31 Jan 2020 19:50:58 -0000
@@ -4,9 +4,6 @@ ${GEM_LIB}/gems/${DISTNAME}/
${GEM_LIB}/gems/${DISTNAME}/CHANGELOG.md
${GEM_LIB}/gems/${DISTNAME}/LICENSE
${GEM_LIB}/gems/${DISTNAME}/README.md
-${GEM_LIB}/gems/${DISTNAME}/examples/
-${GEM_LIB}/gems/${DISTNAME}/examples/eventmachine.rb
-${GEM_LIB}/gems/${DISTNAME}/examples/threaded.rb
${GEM_LIB}/gems/${DISTNAME}/lib/
${GEM_LIB}/gems/${DISTNAME}/lib/mysql2/
${GEM_LIB}/gems/${DISTNAME}/lib/mysql2.rb
@@ -15,37 +12,10 @@ ${GEM_LIB}/gems/${DISTNAME}/lib/mysql2/c
${GEM_LIB}/gems/${DISTNAME}/lib/mysql2/em.rb
${GEM_LIB}/gems/${DISTNAME}/lib/mysql2/error.rb
${GEM_LIB}/gems/${DISTNAME}/lib/mysql2/field.rb
-${GEM_LIB}/gems/${DISTNAME}/lib/mysql2/mysql2.so
+@so ${GEM_LIB}/gems/${DISTNAME}/lib/mysql2/mysql2.so
${GEM_LIB}/gems/${DISTNAME}/lib/mysql2/result.rb
${GEM_LIB}/gems/${DISTNAME}/lib/mysql2/statement.rb
${GEM_LIB}/gems/${DISTNAME}/lib/mysql2/version.rb
-${GEM_LIB}/gems/${DISTNAME}/spec/
-${GEM_LIB}/gems/${DISTNAME}/spec/configuration.yml.example
-${GEM_LIB}/gems/${DISTNAME}/spec/em/
-${GEM_LIB}/gems/${DISTNAME}/spec/em/em_spec.rb
-${GEM_LIB}/gems/${DISTNAME}/spec/my.cnf.example
-${GEM_LIB}/gems/${DISTNAME}/spec/mysql2/
-${GEM_LIB}/gems/${DISTNAME}/spec/mysql2/client_spec.rb
-${GEM_LIB}/gems/${DISTNAME}/spec/mysql2/error_spec.rb
-${GEM_LIB}/gems/${DISTNAME}/spec/mysql2/result_spec.rb
-${GEM_LIB}/gems/${DISTNAME}/spec/mysql2/statement_spec.rb
-${GEM_LIB}/gems/${DISTNAME}/spec/rcov.opts
-${GEM_LIB}/gems/${DISTNAME}/spec/spec_helper.rb
-${GEM_LIB}/gems/${DISTNAME}/spec/ssl/
-${GEM_LIB}/gems/${DISTNAME}/spec/ssl/ca-cert.pem
-${GEM_LIB}/gems/${DISTNAME}/spec/ssl/ca-key.pem
-${GEM_LIB}/gems/${DISTNAME}/spec/ssl/ca.cnf
-${GEM_LIB}/gems/${DISTNAME}/spec/ssl/cert.cnf
-${GEM_LIB}/gems/${DISTNAME}/spec/ssl/client-cert.pem
-${GEM_LIB}/gems/${DISTNAME}/spec/ssl/client-key.pem
-${GEM_LIB}/gems/${DISTNAME}/spec/ssl/client-req.pem
-${GEM_LIB}/gems/${DISTNAME}/spec/ssl/gen_certs.sh
-${GEM_LIB}/gems/${DISTNAME}/spec/ssl/pkcs8-client-key.pem
-${GEM_LIB}/gems/${DISTNAME}/spec/ssl/pkcs8-server-key.pem
-${GEM_LIB}/gems/${DISTNAME}/spec/ssl/server-cert.pem
-${GEM_LIB}/gems/${DISTNAME}/spec/ssl/server-key.pem
-${GEM_LIB}/gems/${DISTNAME}/spec/ssl/server-req.pem
-${GEM_LIB}/gems/${DISTNAME}/spec/test_data
${GEM_LIB}/gems/${DISTNAME}/support/
${GEM_LIB}/gems/${DISTNAME}/support/5072E1F5.asc
${GEM_LIB}/gems/${DISTNAME}/support/libmysql.def

No comments:

Post a Comment