commit rubygem-mysql2 for openSUSE:Factory

2019-11-28 Thread root
Hello community,

here is the log from the commit of package rubygem-mysql2 for openSUSE:Factory 
checked in at 2019-11-28 10:17:35

Comparing /work/SRC/openSUSE:Factory/rubygem-mysql2 (Old)
 and  /work/SRC/openSUSE:Factory/.rubygem-mysql2.new.26869 (New)


Package is "rubygem-mysql2"

Thu Nov 28 10:17:35 2019 rev:28 rq:751491 version:0.5.3

Changes:

--- /work/SRC/openSUSE:Factory/rubygem-mysql2/rubygem-mysql2.changes
2018-07-31 16:02:58.591911203 +0200
+++ /work/SRC/openSUSE:Factory/.rubygem-mysql2.new.26869/rubygem-mysql2.changes 
2019-11-28 10:17:53.743639461 +0100
@@ -1,0 +2,6 @@
+Wed Nov 27 17:37:31 UTC 2019 - Marcus Rueckert 
+
+- updated to version 0.5.3
+ see installed CHANGELOG.md
+
+---

Old:

  mysql2-0.5.2.gem

New:

  mysql2-0.5.3.gem



Other differences:
--
++ rubygem-mysql2.spec ++
--- /var/tmp/diff_new_pack.Xk8WF8/_old  2019-11-28 10:17:54.383639468 +0100
+++ /var/tmp/diff_new_pack.Xk8WF8/_new  2019-11-28 10:17:54.383639468 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package rubygem-mysql2
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -12,7 +12,7 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
@@ -24,7 +24,7 @@
 #
 
 Name:   rubygem-mysql2
-Version:0.5.2
+Version:0.5.3
 Release:0
 %define mod_name mysql2
 %define mod_full_name %{mod_name}-%{version}

++ mysql2-0.5.2.gem -> mysql2-0.5.3.gem ++
 4008 lines of diff (skipped)




commit rubygem-mysql2 for openSUSE:Factory

2018-07-31 Thread root
Hello community,

here is the log from the commit of package rubygem-mysql2 for openSUSE:Factory 
checked in at 2018-07-31 16:02:49

Comparing /work/SRC/openSUSE:Factory/rubygem-mysql2 (Old)
 and  /work/SRC/openSUSE:Factory/.rubygem-mysql2.new (New)


Package is "rubygem-mysql2"

Tue Jul 31 16:02:49 2018 rev:27 rq:626470 version:0.5.2

Changes:

--- /work/SRC/openSUSE:Factory/rubygem-mysql2/rubygem-mysql2.changes
2018-07-19 10:00:33.978297924 +0200
+++ /work/SRC/openSUSE:Factory/.rubygem-mysql2.new/rubygem-mysql2.changes   
2018-07-31 16:02:58.591911203 +0200
@@ -1,0 +2,18 @@
+Fri Jul  6 17:15:32 UTC 2018 - factory-a...@kulow.org
+
+- updated to version 0.5.2
+ see installed CHANGELOG.md
+
+---
+Wed Apr 11 03:41:10 UTC 2018 - factory-a...@kulow.org
+
+- updated to version 0.5.1
+ see installed CHANGELOG.md
+
+---
+Wed Mar 21 05:30:01 UTC 2018 - factory-a...@kulow.org
+
+- updated to version 0.5.0
+ see installed CHANGELOG.md
+
+---

Old:

  mysql2-0.4.10.gem

New:

  mysql2-0.5.2.gem



Other differences:
--
++ rubygem-mysql2.spec ++
--- /var/tmp/diff_new_pack.Nr9gpn/_old  2018-07-31 16:02:59.207912251 +0200
+++ /var/tmp/diff_new_pack.Nr9gpn/_new  2018-07-31 16:02:59.207912251 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package rubygem-mysql2
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -24,7 +24,7 @@
 #
 
 Name:   rubygem-mysql2
-Version:0.4.10
+Version:0.5.2
 Release:0
 %define mod_name mysql2
 %define mod_full_name %{mod_name}-%{version}
@@ -32,11 +32,11 @@
 BuildRequires:  mysql-devel
 # /MANUAL
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
-BuildRequires:  %{rubydevel}
+BuildRequires:  %{rubydevel >= 2.0.0}
 BuildRequires:  %{rubygem gem2rpm}
 BuildRequires:  %{rubygem rdoc > 3.10}
 BuildRequires:  ruby-macros >= 5
-Url:http://github.com/brianmario/mysql2
+Url:https://github.com/brianmario/mysql2
 Source: https://rubygems.org/gems/%{mod_full_name}.gem
 Source1:rubygem-mysql2-rpmlintrc
 Source2:gem2rpm.yml

++ mysql2-0.4.10.gem -> mysql2-0.5.2.gem ++
 3902 lines of diff (skipped)




commit rubygem-mysql2 for openSUSE:Factory

2018-07-19 Thread root
Hello community,

here is the log from the commit of package rubygem-mysql2 for openSUSE:Factory 
checked in at 2018-07-19 10:00:29

Comparing /work/SRC/openSUSE:Factory/rubygem-mysql2 (Old)
 and  /work/SRC/openSUSE:Factory/.rubygem-mysql2.new (New)


Package is "rubygem-mysql2"

Thu Jul 19 10:00:29 2018 rev:26 rq: version:0.4.10

Changes:

--- /work/SRC/openSUSE:Factory/rubygem-mysql2/rubygem-mysql2.changes
2018-07-18 22:52:34.679231877 +0200
+++ /work/SRC/openSUSE:Factory/.rubygem-mysql2.new/rubygem-mysql2.changes   
2018-07-19 10:00:33.978297924 +0200
@@ -2,18 +1,0 @@
-Fri Jul  6 17:15:32 UTC 2018 - factory-a...@kulow.org
-
-- updated to version 0.5.2
- see installed CHANGELOG.md
-

-Wed Apr 11 03:41:10 UTC 2018 - factory-a...@kulow.org
-
-- updated to version 0.5.1
- see installed CHANGELOG.md
-

-Wed Mar 21 05:30:01 UTC 2018 - factory-a...@kulow.org
-
-- updated to version 0.5.0
- see installed CHANGELOG.md
-


Old:

  mysql2-0.5.2.gem

New:

  mysql2-0.4.10.gem



Other differences:
--
++ rubygem-mysql2.spec ++
--- /var/tmp/diff_new_pack.L6hEk3/_old  2018-07-19 10:00:34.870294924 +0200
+++ /var/tmp/diff_new_pack.L6hEk3/_new  2018-07-19 10:00:34.882294883 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package rubygem-mysql2
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -24,7 +24,7 @@
 #
 
 Name:   rubygem-mysql2
-Version:0.5.2
+Version:0.4.10
 Release:0
 %define mod_name mysql2
 %define mod_full_name %{mod_name}-%{version}
@@ -32,11 +32,11 @@
 BuildRequires:  mysql-devel
 # /MANUAL
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
-BuildRequires:  %{rubydevel >= 2.0.0}
+BuildRequires:  %{rubydevel}
 BuildRequires:  %{rubygem gem2rpm}
 BuildRequires:  %{rubygem rdoc > 3.10}
 BuildRequires:  ruby-macros >= 5
-Url:https://github.com/brianmario/mysql2
+Url:http://github.com/brianmario/mysql2
 Source: https://rubygems.org/gems/%{mod_full_name}.gem
 Source1:rubygem-mysql2-rpmlintrc
 Source2:gem2rpm.yml

++ mysql2-0.5.2.gem -> mysql2-0.4.10.gem ++
 3902 lines of diff (skipped)




commit rubygem-mysql2 for openSUSE:Factory

2018-07-18 Thread root
Hello community,

here is the log from the commit of package rubygem-mysql2 for openSUSE:Factory 
checked in at 2018-07-18 22:52:07

Comparing /work/SRC/openSUSE:Factory/rubygem-mysql2 (Old)
 and  /work/SRC/openSUSE:Factory/.rubygem-mysql2.new (New)


Package is "rubygem-mysql2"

Wed Jul 18 22:52:07 2018 rev:25 rq:621376 version:0.5.2

Changes:

--- /work/SRC/openSUSE:Factory/rubygem-mysql2/rubygem-mysql2.changes
2017-11-16 14:04:24.490245848 +0100
+++ /work/SRC/openSUSE:Factory/.rubygem-mysql2.new/rubygem-mysql2.changes   
2018-07-18 22:52:34.679231877 +0200
@@ -1,0 +2,18 @@
+Fri Jul  6 17:15:32 UTC 2018 - factory-a...@kulow.org
+
+- updated to version 0.5.2
+ see installed CHANGELOG.md
+
+---
+Wed Apr 11 03:41:10 UTC 2018 - factory-a...@kulow.org
+
+- updated to version 0.5.1
+ see installed CHANGELOG.md
+
+---
+Wed Mar 21 05:30:01 UTC 2018 - factory-a...@kulow.org
+
+- updated to version 0.5.0
+ see installed CHANGELOG.md
+
+---

Old:

  mysql2-0.4.10.gem

New:

  mysql2-0.5.2.gem



Other differences:
--
++ rubygem-mysql2.spec ++
--- /var/tmp/diff_new_pack.gJTnxv/_old  2018-07-18 22:52:35.055230630 +0200
+++ /var/tmp/diff_new_pack.gJTnxv/_new  2018-07-18 22:52:35.059230616 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package rubygem-mysql2
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -24,7 +24,7 @@
 #
 
 Name:   rubygem-mysql2
-Version:0.4.10
+Version:0.5.2
 Release:0
 %define mod_name mysql2
 %define mod_full_name %{mod_name}-%{version}
@@ -32,11 +32,11 @@
 BuildRequires:  mysql-devel
 # /MANUAL
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
-BuildRequires:  %{rubydevel}
+BuildRequires:  %{rubydevel >= 2.0.0}
 BuildRequires:  %{rubygem gem2rpm}
 BuildRequires:  %{rubygem rdoc > 3.10}
 BuildRequires:  ruby-macros >= 5
-Url:http://github.com/brianmario/mysql2
+Url:https://github.com/brianmario/mysql2
 Source: https://rubygems.org/gems/%{mod_full_name}.gem
 Source1:rubygem-mysql2-rpmlintrc
 Source2:gem2rpm.yml

++ mysql2-0.4.10.gem -> mysql2-0.5.2.gem ++
 3902 lines of diff (skipped)




commit rubygem-mysql2 for openSUSE:Factory

2017-11-16 Thread root
Hello community,

here is the log from the commit of package rubygem-mysql2 for openSUSE:Factory 
checked in at 2017-11-16 14:04:17

Comparing /work/SRC/openSUSE:Factory/rubygem-mysql2 (Old)
 and  /work/SRC/openSUSE:Factory/.rubygem-mysql2.new (New)


Package is "rubygem-mysql2"

Thu Nov 16 14:04:17 2017 rev:24 rq:542210 version:0.4.10

Changes:

--- /work/SRC/openSUSE:Factory/rubygem-mysql2/rubygem-mysql2.changes
2017-08-13 14:59:24.286982101 +0200
+++ /work/SRC/openSUSE:Factory/.rubygem-mysql2.new/rubygem-mysql2.changes   
2017-11-16 14:04:24.490245848 +0100
@@ -1,0 +2,8 @@
+Wed Nov 15 08:27:31 UTC 2017 - mschnit...@suse.com
+
+- updated to version 0.4.10
+  no changelog entry found for version 0.4.10
+
+  Fixes bsc#1067881
+
+---

Old:

  mysql2-0.4.9.gem

New:

  mysql2-0.4.10.gem



Other differences:
--
++ rubygem-mysql2.spec ++
--- /var/tmp/diff_new_pack.L9947I/_old  2017-11-16 14:04:25.098223812 +0100
+++ /var/tmp/diff_new_pack.L9947I/_new  2017-11-16 14:04:25.102223667 +0100
@@ -24,7 +24,7 @@
 #
 
 Name:   rubygem-mysql2
-Version:0.4.9
+Version:0.4.10
 Release:0
 %define mod_name mysql2
 %define mod_full_name %{mod_name}-%{version}

++ mysql2-0.4.9.gem -> mysql2-0.4.10.gem ++
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ext/mysql2/client.c new/ext/mysql2/client.c
--- old/ext/mysql2/client.c 1970-01-01 01:00:00.0 +0100
+++ new/ext/mysql2/client.c 2017-11-14 21:27:42.0 +0100
@@ -53,7 +53,9 @@
  * variable to use, but MYSQL_SERVER_VERSION gives the correct numbers when
  * linking against the server itself
  */
-#ifdef LIBMYSQL_VERSION
+#if defined(MARIADB_CLIENT_VERSION_STR)
+  #define MYSQL_LINK_VERSION MARIADB_CLIENT_VERSION_STR
+#elif defined(LIBMYSQL_VERSION)
   #define MYSQL_LINK_VERSION LIBMYSQL_VERSION
 #else
   #define MYSQL_LINK_VERSION MYSQL_SERVER_VERSION
@@ -883,10 +885,12 @@
   retval = 
   break;
 
+#ifdef MYSQL_SECURE_AUTH
 case MYSQL_SECURE_AUTH:
   boolval = (value == Qfalse ? 0 : 1);
   retval = 
   break;
+#endif
 
 case MYSQL_READ_DEFAULT_FILE:
   charval = (const char *)StringValueCStr(value);
@@ -1312,7 +1316,12 @@
 }
 
 static VALUE set_secure_auth(VALUE self, VALUE value) {
+/* This option was deprecated in MySQL 5.x and removed in MySQL 8.0 */
+#ifdef MYSQL_SECURE_AUTH
   return _mysql_client_options(self, MYSQL_SECURE_AUTH, value);
+#else
+  return Qfalse;
+#endif
 }
 
 static VALUE set_read_default_file(VALUE self, VALUE value) {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ext/mysql2/extconf.rb new/ext/mysql2/extconf.rb
--- old/ext/mysql2/extconf.rb   1970-01-01 01:00:00.0 +0100
+++ new/ext/mysql2/extconf.rb   2017-11-14 21:27:42.0 +0100
@@ -105,8 +105,8 @@
   asplode 'mysql.h'
 end
 
-%w(errmsg.h mysqld_error.h).each do |h|
-  header = [prefix, h].compact.join '/'
+%w(errmsg.h).each do |h|
+  header = [prefix, h].compact.join('/')
   asplode h unless have_header header
 end
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ext/mysql2/mysql2_ext.h new/ext/mysql2/mysql2_ext.h
--- old/ext/mysql2/mysql2_ext.h 1970-01-01 01:00:00.0 +0100
+++ new/ext/mysql2/mysql2_ext.h 2017-11-14 21:27:42.0 +0100
@@ -11,16 +11,10 @@
 
 #ifdef HAVE_MYSQL_H
 #include 
-#include 
 #include 
-#include 
-#include 
 #else
 #include 
-#include 
 #include 
-#include 
-#include 
 #endif
 
 #ifdef HAVE_RUBY_ENCODING_H
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ext/mysql2/result.c new/ext/mysql2/result.c
--- old/ext/mysql2/result.c 1970-01-01 01:00:00.0 +0100
+++ new/ext/mysql2/result.c 2017-11-14 21:27:42.0 +0100
@@ -405,6 +405,13 @@
 val = INT2NUM(*((signed char*)result_buffer->buffer));
   }
   break;
+case MYSQL_TYPE_BIT:/* BIT field (MySQL 5.0.3 and up) */
+  if (args->castBool && fields[i].length == 1) {
+val = (*((unsigned char*)result_buffer->buffer) != 0) ? Qtrue : 
Qfalse;
+  }else{
+val = rb_str_new(result_buffer->buffer, *(result_buffer->length));
+  }
+  break;
 case MYSQL_TYPE_SHORT:// short int
   if (result_buffer->is_unsigned) {
 val = UINT2NUM(*((unsigned short int*)result_buffer->buffer));
@@ -494,7 +501,6 @@
 case MYSQL_TYPE_BLOB: // char[]
 case MYSQL_TYPE_MEDIUM_BLOB:  // char[]
 

commit rubygem-mysql2 for openSUSE:Factory

2017-08-13 Thread root
Hello community,

here is the log from the commit of package rubygem-mysql2 for openSUSE:Factory 
checked in at 2017-08-13 14:59:20

Comparing /work/SRC/openSUSE:Factory/rubygem-mysql2 (Old)
 and  /work/SRC/openSUSE:Factory/.rubygem-mysql2.new (New)


Package is "rubygem-mysql2"

Sun Aug 13 14:59:20 2017 rev:23 rq:516061 version:0.4.9

Changes:

--- /work/SRC/openSUSE:Factory/rubygem-mysql2/rubygem-mysql2.changes
2017-07-12 19:35:24.513412107 +0200
+++ /work/SRC/openSUSE:Factory/.rubygem-mysql2.new/rubygem-mysql2.changes   
2017-08-13 14:59:24.286982101 +0200
@@ -1,0 +2,14 @@
+Fri Aug 11 06:05:33 UTC 2017 - mschnit...@suse.com
+
+- updated to version 0.4.9
+  # Bug Fixes
+- Fixed enable_cleartext_plugin mode (#874)
+- Prepared statements should handle booleans properly (#871)
+
+---
+Thu Aug  3 10:16:21 UTC 2017 - cbruckma...@suse.com
+
+- updated to version 0.4.8
+  see installed CHANGELOG.md
+
+---

Old:

  mysql2-0.4.7.gem

New:

  mysql2-0.4.9.gem



Other differences:
--
++ rubygem-mysql2.spec ++
--- /var/tmp/diff_new_pack.RQjjFZ/_old  2017-08-13 14:59:26.370689667 +0200
+++ /var/tmp/diff_new_pack.RQjjFZ/_new  2017-08-13 14:59:26.374689106 +0200
@@ -24,7 +24,7 @@
 #
 
 Name:   rubygem-mysql2
-Version:0.4.7
+Version:0.4.9
 Release:0
 %define mod_name mysql2
 %define mod_full_name %{mod_name}-%{version}

++ mysql2-0.4.7.gem -> mysql2-0.4.9.gem ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/README.md new/README.md
--- old/README.md   1970-01-01 01:00:00.0 +0100
+++ new/README.md   1970-01-01 01:00:00.0 +0100
@@ -213,21 +213,18 @@
   )
 ```
 
-### Connecting to localhost
+### Connecting to MySQL on localhost and elsewhere
 
-The underlying MySQL client library has a special interpretation of the 
"localhost" default connection host name:
+The underlying MySQL client library uses the `:host` parameter to determine the
+type of connection to make, with special interpretation you should be aware of:
 
-  1. Attempt to connect via local socket (as specified in your distribution's 
my.cnf or `default_file` config file).
-  2. But if the socket is not available, look up "localhost" to find an IP 
address...
- * The file "/etc/hosts" is generally the source of truth for "localhost", 
and can override its value.
- * Systems with IPv4 use "127.0.0.1"
- * Systems with IPv6 use "::1"
- * Systems with both IPv4 and IPv6 can be configured to prefer one or the 
other.
-  3. If an address is found for "localhost", connect to it over TCP/IP.
-
-You can be explicit about using either a local socket or a TCP/IP connection,
-and whether to use IPv4 or IPv6, by specifying a value other than "localhost"
-for the `host` or `socket` connection options.
+* An empty value or `"localhost"` will attempt a local connection:
+  * On Unix, connect to the default local socket path. (To set a custom socket
+path, use the `:socket` parameter).
+  * On Windows, connect using a shared-memory connection, if enabled, or TCP.
+* A value of `"."` on Windows specifies a named-pipe connection.
+* An IPv4 or IPv6 address will result in a TCP connection.
+* Any other value will be looked up as a hostname for a TCP connection.
 
 ### SSL options
 
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ext/mysql2/client.c new/ext/mysql2/client.c
--- old/ext/mysql2/client.c 1970-01-01 01:00:00.0 +0100
+++ new/ext/mysql2/client.c 1970-01-01 01:00:00.0 +0100
@@ -903,10 +903,12 @@
   retval  = charval;
   break;
 
+#ifdef HAVE_CONST_MYSQL_ENABLE_CLEARTEXT_PLUGIN
 case MYSQL_ENABLE_CLEARTEXT_PLUGIN:
   boolval = (value == Qfalse ? 0 : 1);
   retval = 
   break;
+#endif
 
 default:
   return Qfalse;
@@ -1326,7 +1328,11 @@
 }
 
 static VALUE set_enable_cleartext_plugin(VALUE self, VALUE value) {
+#ifdef HAVE_CONST_MYSQL_ENABLE_CLEARTEXT_PLUGIN
   return _mysql_client_options(self, MYSQL_ENABLE_CLEARTEXT_PLUGIN, value);
+#else
+  rb_raise(cMysql2Error, "enable-cleartext-plugin is not available, you may 
need a newer MySQL client library");
+#endif
 }
 
 static VALUE initialize_ext(VALUE self) {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ext/mysql2/extconf.rb new/ext/mysql2/extconf.rb
--- old/ext/mysql2/extconf.rb   1970-01-01 01:00:00.0 +0100
+++ new/ext/mysql2/extconf.rb   1970-01-01 01:00:00.0 +0100

commit rubygem-mysql2 for openSUSE:Factory

2017-07-12 Thread root
Hello community,

here is the log from the commit of package rubygem-mysql2 for openSUSE:Factory 
checked in at 2017-07-12 19:35:22

Comparing /work/SRC/openSUSE:Factory/rubygem-mysql2 (Old)
 and  /work/SRC/openSUSE:Factory/.rubygem-mysql2.new (New)


Package is "rubygem-mysql2"

Wed Jul 12 19:35:22 2017 rev:22 rq:507881 version:0.4.7

Changes:

--- /work/SRC/openSUSE:Factory/rubygem-mysql2/rubygem-mysql2.changes
2017-06-08 15:01:22.428820006 +0200
+++ /work/SRC/openSUSE:Factory/.rubygem-mysql2.new/rubygem-mysql2.changes   
2017-07-12 19:35:24.513412107 +0200
@@ -1,0 +2,6 @@
+Mon Jul  3 15:27:50 UTC 2017 - mrueck...@suse.de
+
+- updated to version 0.4.7
+ see installed CHANGELOG.md
+
+---

Old:

  mysql2-0.4.6.gem

New:

  mysql2-0.4.7.gem



Other differences:
--
++ rubygem-mysql2.spec ++
--- /var/tmp/diff_new_pack.e93wJn/_old  2017-07-12 19:35:25.153321714 +0200
+++ /var/tmp/diff_new_pack.e93wJn/_new  2017-07-12 19:35:25.157321149 +0200
@@ -24,7 +24,7 @@
 #
 
 Name:   rubygem-mysql2
-Version:0.4.6
+Version:0.4.7
 Release:0
 %define mod_name mysql2
 %define mod_full_name %{mod_name}-%{version}
@@ -37,7 +37,7 @@
 BuildRequires:  %{rubygem rdoc > 3.10}
 BuildRequires:  ruby-macros >= 5
 Url:http://github.com/brianmario/mysql2
-Source: http://rubygems.org/gems/%{mod_full_name}.gem
+Source: https://rubygems.org/gems/%{mod_full_name}.gem
 Source1:rubygem-mysql2-rpmlintrc
 Source2:gem2rpm.yml
 Summary:A simple, fast Mysql library for Ruby, binding to libmysql

++ mysql2-0.4.6.gem -> mysql2-0.4.7.gem ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/README.md new/README.md
--- old/README.md   1970-01-01 01:00:00.0 +0100
+++ new/README.md   1970-01-01 01:00:00.0 +0100
@@ -112,7 +112,7 @@
 ``` ruby
 # this takes a hash of options, almost all of which map directly
 # to the familiar database.yml in rails
-# See 
http://api.rubyonrails.org/classes/ActiveRecord/ConnectionAdapters/MysqlAdapter.html
+# See 
http://api.rubyonrails.org/classes/ActiveRecord/ConnectionAdapters/Mysql2Adapter.html
 client = Mysql2::Client.new(:host => "localhost", :username => "root")
 ```
 
@@ -213,6 +213,21 @@
   )
 ```
 
+### Connecting to localhost
+
+The underlying MySQL client library has a special interpretation of the 
"localhost" default connection host name:
+
+  1. Attempt to connect via local socket (as specified in your distribution's 
my.cnf or `default_file` config file).
+  2. But if the socket is not available, look up "localhost" to find an IP 
address...
+ * The file "/etc/hosts" is generally the source of truth for "localhost", 
and can override its value.
+ * Systems with IPv4 use "127.0.0.1"
+ * Systems with IPv6 use "::1"
+ * Systems with both IPv4 and IPv6 can be configured to prefer one or the 
other.
+  3. If an address is found for "localhost", connect to it over TCP/IP.
+
+You can be explicit about using either a local socket or a TCP/IP connection,
+and whether to use IPv4 or IPv6, by specifying a value other than "localhost"
+for the `host` or `socket` connection options.
 
 ### SSL options
 
@@ -235,47 +250,6 @@
   )
 ```
 
-### Multiple result sets
-
-You can also retrieve multiple result sets. For this to work you need to
-connect with flags `Mysql2::Client::MULTI_STATEMENTS`. Multiple result sets can
-be used with stored procedures that return more than one result set, and for
-bundling several SQL statements into a single call to `client.query`.
-
-``` ruby
-client = Mysql2::Client.new(:host => "localhost", :username => "root", :flags 
=> Mysql2::Client::MULTI_STATEMENTS)
-result = client.query('CALL sp_customer_list( 25, 10 )')
-# result now contains the first result set
-while client.next_result
-  result = client.store_result
-  # result now contains the next result set
-end
-```
-
-Repeated calls to `client.next_result` will return true, false, or raise an
-exception if the respective query erred. When `client.next_result` returns 
true,
-call `client.store_result` to retrieve a result object. Exceptions are not
-raised until `client.next_result` is called to find the status of the 
respective
-query. Subsequent queries are not executed if an earlier query raised an
-exception. Subsequent calls to `client.next_result` will return false.
-
-``` ruby
-result = client.query('SELECT 1; SELECT 2; SELECT A; SELECT 3')
-p result.first
-
-while client.next_result
-  result = client.store_result
-  p result.first
-end
-```
-
-Yields:
-```
-{"1"=>1}
-{"2"=>2}
-next_result: Unknown column 'A' in 'field list' 

commit rubygem-mysql2 for openSUSE:Factory

2017-06-08 Thread root
Hello community,

here is the log from the commit of package rubygem-mysql2 for openSUSE:Factory 
checked in at 2017-06-08 15:01:21

Comparing /work/SRC/openSUSE:Factory/rubygem-mysql2 (Old)
 and  /work/SRC/openSUSE:Factory/.rubygem-mysql2.new (New)


Package is "rubygem-mysql2"

Thu Jun  8 15:01:21 2017 rev:21 rq:497698 version:0.4.6

Changes:

--- /work/SRC/openSUSE:Factory/rubygem-mysql2/rubygem-mysql2.changes
2016-11-07 12:23:29.0 +0100
+++ /work/SRC/openSUSE:Factory/.rubygem-mysql2.new/rubygem-mysql2.changes   
2017-06-08 15:01:22.428820006 +0200
@@ -1,0 +2,6 @@
+Tue May 23 10:04:10 UTC 2017 - co...@suse.com
+
+- updated to version 0.4.6
+ see installed CHANGELOG.md
+
+---

Old:

  mysql2-0.4.5.gem

New:

  mysql2-0.4.6.gem



Other differences:
--
++ rubygem-mysql2.spec ++
--- /var/tmp/diff_new_pack.bUm0Zv/_old  2017-06-08 15:01:23.008738161 +0200
+++ /var/tmp/diff_new_pack.bUm0Zv/_new  2017-06-08 15:01:23.012737597 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package rubygem-mysql2
 #
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -24,7 +24,7 @@
 #
 
 Name:   rubygem-mysql2
-Version:0.4.5
+Version:0.4.6
 Release:0
 %define mod_name mysql2
 %define mod_full_name %{mod_name}-%{version}

++ mysql2-0.4.5.gem -> mysql2-0.4.6.gem ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/README.md new/README.md
--- old/README.md   1970-01-01 01:00:00.0 +0100
+++ new/README.md   1970-01-01 01:00:00.0 +0100
@@ -85,6 +85,9 @@
 common paths will be automatically searched. If you want to select a specific
 MySQL directory, use the `--with-mysql-dir` or `--with-mysql-config` options 
above.
 
+If you have not done so already, you will need to install the XCode select 
tools by running
+`xcode-select --install`.
+
 ### Windows
 Make sure that you have Ruby and the DevKit compilers installed. We recommend
 the [Ruby Installer](http://rubyinstaller.org) distribution.
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ext/mysql2/client.c new/ext/mysql2/client.c
--- old/ext/mysql2/client.c 1970-01-01 01:00:00.0 +0100
+++ new/ext/mysql2/client.c 1970-01-01 01:00:00.0 +0100
@@ -111,7 +111,7 @@
   int val = NUM2INT( setting );
   if (version >= 50703 && version < 50711) {
 if (val == SSL_MODE_DISABLED || val == SSL_MODE_REQUIRED) {
-  my_bool b = ( val == SSL_MODE_REQUIRED );
+  bool b = ( val == SSL_MODE_REQUIRED );
   int result = mysql_options( wrapper->client, MYSQL_OPT_SSL_ENFORCE,  );
   return INT2NUM(result);
   
@@ -504,7 +504,7 @@
  */
 static void *nogvl_read_query_result(void *ptr) {
   MYSQL * client = ptr;
-  my_bool res = mysql_read_query_result(client);
+  bool res = mysql_read_query_result(client);
 
   return (void *)(res == 0 ? Qtrue : Qfalse);
 }
@@ -596,9 +596,11 @@
   /* Invalidate the MySQL socket to prevent further communication.
* The GC will come along later and call mysql_close to free it.
*/
-  if (invalidate_fd(wrapper->client->net.fd) == Qfalse) {
-fprintf(stderr, "[WARN] mysql2 failed to invalidate FD safely, closing 
unsafely\n");
-close(wrapper->client->net.fd);
+  if (wrapper->client) {
+if (invalidate_fd(wrapper->client->net.fd) == Qfalse) {
+  fprintf(stderr, "[WARN] mysql2 failed to invalidate FD safely, closing 
unsafely\n");
+  close(wrapper->client->net.fd);
+}
   }
 
   rb_exc_raise(error);
@@ -647,26 +649,30 @@
 
   return Qnil;
 }
-#else
-static VALUE finish_and_mark_inactive(void *args) {
-  VALUE self = args;
-  MYSQL_RES *result;
+#endif
 
+static VALUE disconnect_and_mark_inactive(VALUE self) {
   GET_CLIENT(self);
 
+  /* Check if execution terminated while result was still being read. */
   if (!NIL_P(wrapper->active_thread)) {
-/* if we got here, the result hasn't been read off the wire yet
-   so lets do that and then throw it away because we have no way
-   of getting it back up to the caller from here */
-result = (MYSQL_RES *)rb_thread_call_without_gvl(nogvl_store_result, 
wrapper, RUBY_UBF_IO, 0);
-mysql_free_result(result);
-
+/* Invalidate the MySQL socket to prevent further communication. */
+#ifndef _WIN32
+if (invalidate_fd(wrapper->client->net.fd) == Qfalse) {
+  rb_warn("mysql2 failed 

commit rubygem-mysql2 for openSUSE:Factory

2016-11-07 Thread h_root
Hello community,

here is the log from the commit of package rubygem-mysql2 for openSUSE:Factory 
checked in at 2016-11-07 12:23:28

Comparing /work/SRC/openSUSE:Factory/rubygem-mysql2 (Old)
 and  /work/SRC/openSUSE:Factory/.rubygem-mysql2.new (New)


Package is "rubygem-mysql2"

Changes:

--- /work/SRC/openSUSE:Factory/rubygem-mysql2/rubygem-mysql2.changes
2016-05-29 03:12:47.0 +0200
+++ /work/SRC/openSUSE:Factory/.rubygem-mysql2.new/rubygem-mysql2.changes   
2016-11-07 12:23:29.0 +0100
@@ -1,0 +2,6 @@
+Sun Oct 23 04:39:33 UTC 2016 - co...@suse.com
+
+- updated to version 0.4.5
+ see installed CHANGELOG.md
+
+---

Old:

  mysql2-0.4.4.gem

New:

  mysql2-0.4.5.gem



Other differences:
--
++ rubygem-mysql2.spec ++
--- /var/tmp/diff_new_pack.q0Gphg/_old  2016-11-07 12:23:30.0 +0100
+++ /var/tmp/diff_new_pack.q0Gphg/_new  2016-11-07 12:23:30.0 +0100
@@ -24,7 +24,7 @@
 #
 
 Name:   rubygem-mysql2
-Version:0.4.4
+Version:0.4.5
 Release:0
 %define mod_name mysql2
 %define mod_full_name %{mod_name}-%{version}

++ mysql2-0.4.4.gem -> mysql2-0.4.5.gem ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/README.md new/README.md
--- old/README.md   1970-01-01 01:00:00.0 +0100
+++ new/README.md   1970-01-01 01:00:00.0 +0100
@@ -164,8 +164,8 @@
 ``` ruby
 headers = results.fields # <= that's an array of field names, in order
 results.each(:as => :array) do |row|
-# Each row is an array, ordered the same as the query results
-# An otter's den is called a "holt" or "couch"
+  # Each row is an array, ordered the same as the query results
+  # An otter's den is called a "holt" or "couch"
 end
 ```
 
@@ -203,6 +203,7 @@
   :reconnect = true/false,
   :local_infile = true/false,
   :secure_auth = true/false,
+  :ssl_mode = :disabled / :preferred / :required / :verify_ca / 
:verify_identity,
   :default_file = '/path/to/my.cfg',
   :default_group = 'my.cfg section',
   :init_command => sql
@@ -398,6 +399,15 @@
 result = client.query("SELECT * FROM table_with_boolean_field", :cast_booleans 
=> true)
 ```
 
+Keep in mind that this works only with fields and not with computed values, 
e.g. this result will contain `1`, not `true`:
+
+``` ruby
+client = Mysql2::Client.new
+result = client.query("SELECT true", :cast_booleans => true)
+```
+
+CAST function wouldn't help here as there's no way to cast to TINYINT(1). 
Apparently the only way to solve this is to use a stored procedure with return 
type set to TINYINT(1).
+
 ### Skipping casting
 
 Mysql2 casting is fast, but not as fast as not casting data.  In rare cases 
where typecasting is not needed, it will be faster to disable it by providing 
:cast => false. (Note that :cast => false overrides :cast_booleans => true.)
@@ -484,13 +494,13 @@
 
 This gem is tested with the following Ruby versions on Linux and Mac OS X:
 
- * Ruby MRI 1.8.7, 1.9.3, 2.0.0, 2.1.x, 2.2.x, 2.3.x
+ * Ruby MRI 1.8.7, 1.9.3, 2.0.0, 2.1.x, 2.2.x, 2.3.x, 2.4.x
  * Ruby Enterprise Edition (based on MRI 1.8.7)
- * Rubinius 2.x, 3.x
+ * Rubinius 2.x and 3.x do work but may fail under some workloads
 
 This gem is tested with the following MySQL and MariaDB versions:
 
- * MySQL 5.5, 5.6, 5.7
+ * MySQL 5.5, 5.6, 5.7, 8.0
  * MySQL Connector/C 6.0 and 6.1 (primarily on Windows)
  * MariaDB 5.5, 10.0, 10.1
 
Files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ext/mysql2/client.c new/ext/mysql2/client.c
--- old/ext/mysql2/client.c 1970-01-01 01:00:00.0 +0100
+++ new/ext/mysql2/client.c 1970-01-01 01:00:00.0 +0100
@@ -30,6 +30,12 @@
 rb_raise(cMysql2Error, "MySQL client is not initialized"); \
   }
 
+#define REQUIRE_CONNECTED(wrapper) \
+  REQUIRE_INITIALIZED(wrapper) \
+  if (!wrapper->connected && !wrapper->reconnect_enabled) { \
+rb_raise(cMysql2Error, "MySQL client is not connected"); \
+  }
+
 #define REQUIRE_NOT_CONNECTED(wrapper) \
   REQUIRE_INITIALIZED(wrapper) \
   if (wrapper->connected) { \
@@ -48,6 +54,16 @@
 #endif
 
 /*
+ * compatibility with mysql-connector-c 6.1.x, and with MySQL 5.7.3 - 5.7.10.
+ */
+#ifdef HAVE_CONST_MYSQL_OPT_SSL_ENFORCE
+  #define SSL_MODE_DISABLED 1
+  #define SSL_MODE_REQUIRED 3
+  #define HAVE_CONST_SSL_MODE_DISABLED
+  #define HAVE_CONST_SSL_MODE_REQUIRED
+#endif
+
+/*
  * used to pass all arguments to mysql_real_connect while inside
  * rb_thread_call_without_gvl
  */
@@ -83,6 +99,43 @@
   char *db;
 };
 
+static VALUE rb_set_ssl_mode_option(VALUE self, VALUE setting) {
+  

commit rubygem-mysql2 for openSUSE:Factory

2016-05-28 Thread h_root
Hello community,

here is the log from the commit of package rubygem-mysql2 for openSUSE:Factory 
checked in at 2016-05-29 03:11:35

Comparing /work/SRC/openSUSE:Factory/rubygem-mysql2 (Old)
 and  /work/SRC/openSUSE:Factory/.rubygem-mysql2.new (New)


Package is "rubygem-mysql2"

Changes:

--- /work/SRC/openSUSE:Factory/rubygem-mysql2/rubygem-mysql2.changes
2016-03-07 13:28:22.0 +0100
+++ /work/SRC/openSUSE:Factory/.rubygem-mysql2.new/rubygem-mysql2.changes   
2016-05-29 03:12:47.0 +0200
@@ -1,0 +2,6 @@
+Wed Apr 20 04:32:48 UTC 2016 - co...@suse.com
+
+- updated to version 0.4.4
+ see installed CHANGELOG.md
+
+---

Old:

  mysql2-0.4.3.gem

New:

  mysql2-0.4.4.gem



Other differences:
--
++ rubygem-mysql2.spec ++
--- /var/tmp/diff_new_pack.aZ5dVS/_old  2016-05-29 03:12:47.0 +0200
+++ /var/tmp/diff_new_pack.aZ5dVS/_new  2016-05-29 03:12:47.0 +0200
@@ -24,7 +24,7 @@
 #
 
 Name:   rubygem-mysql2
-Version:0.4.3
+Version:0.4.4
 Release:0
 %define mod_name mysql2
 %define mod_full_name %{mod_name}-%{version}

++ mysql2-0.4.3.gem -> mysql2-0.4.4.gem ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/README.md new/README.md
--- old/README.md   1970-01-01 01:00:00.0 +0100
+++ new/README.md   1970-01-01 01:00:00.0 +0100
@@ -484,9 +484,9 @@
 
 This gem is tested with the following Ruby versions on Linux and Mac OS X:
 
- * Ruby MRI 1.8.7, 1.9.3, 2.0.0, 2.1.x, 2.2.x
+ * Ruby MRI 1.8.7, 1.9.3, 2.0.0, 2.1.x, 2.2.x, 2.3.x
  * Ruby Enterprise Edition (based on MRI 1.8.7)
- * Rubinius 2.x
+ * Rubinius 2.x, 3.x
 
 This gem is tested with the following MySQL and MariaDB versions:
 
@@ -494,11 +494,11 @@
  * MySQL Connector/C 6.0 and 6.1 (primarily on Windows)
  * MariaDB 5.5, 10.0, 10.1
 
-### Rails / Active Record
+### Ruby on Rails / Active Record
 
- * mysql2 0.4.x works with Active Record 4.2.5 and higher.
- * mysql2 0.3.x works with Active Record 3.1 and higher (the AR adapter is now 
included in AR proper).
- * mysql2 0.2.x includes an Active Record adapter compatible with AR 2.3 and 
3.0, and should not be used with AR 3.1 or higher.
+ * mysql2 0.4.x works with Rails / Active Record 4.2.5 - 5.0 and higher.
+ * mysql2 0.3.x works with Rails / Active Record 3.1, 3.2, 4.x, 5.0.
+ * mysql2 0.2.x works with Rails / Active Record 2.3 - 3.0.
 
 ### Asynchronous Active Record
 
Files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ext/mysql2/result.c new/ext/mysql2/result.c
--- old/ext/mysql2/result.c 1970-01-01 01:00:00.0 +0100
+++ new/ext/mysql2/result.c 1970-01-01 01:00:00.0 +0100
@@ -346,15 +346,15 @@
   conn_enc = rb_to_encoding(wrapper->encoding);
 #endif
 
+  if (wrapper->fields == Qnil) {
+wrapper->numberOfFields = mysql_num_fields(wrapper->result);
+wrapper->fields = rb_ary_new2(wrapper->numberOfFields);
+  }
   if (args->asArray) {
 rowVal = rb_ary_new2(wrapper->numberOfFields);
   } else {
 rowVal = rb_hash_new();
   }
-  if (wrapper->fields == Qnil) {
-wrapper->numberOfFields = mysql_num_fields(wrapper->result);
-wrapper->fields = rb_ary_new2(wrapper->numberOfFields);
-  }
 
   if (wrapper->result_buffers == NULL) {
 rb_mysql_result_alloc_result_buffers(self, fields);
@@ -541,16 +541,16 @@
 return Qnil;
   }
 
+  if (wrapper->fields == Qnil) {
+wrapper->numberOfFields = mysql_num_fields(wrapper->result);
+wrapper->fields = rb_ary_new2(wrapper->numberOfFields);
+  }
   if (args->asArray) {
 rowVal = rb_ary_new2(wrapper->numberOfFields);
   } else {
 rowVal = rb_hash_new();
   }
   fieldLengths = mysql_fetch_lengths(wrapper->result);
-  if (wrapper->fields == Qnil) {
-wrapper->numberOfFields = mysql_num_fields(wrapper->result);
-wrapper->fields = rb_ary_new2(wrapper->numberOfFields);
-  }
 
   for (i = 0; i < wrapper->numberOfFields; i++) {
 VALUE field = rb_mysql_result_fetch_field(self, i, args->symbolizeKeys);
@@ -834,7 +834,9 @@
 
 if (row == Qnil) {
   /* we don't need the mysql C dataset around anymore, peace it */
-  rb_mysql_result_free_result(wrapper);
+  if (args->cacheRows) {
+rb_mysql_result_free_result(wrapper);
+  }
   return Qnil;
 }
 
@@ -842,7 +844,7 @@
   rb_yield(row);
 }
   }
-  if (wrapper->lastRowProcessed == wrapper->numberOfRows) {
+  if (wrapper->lastRowProcessed == wrapper->numberOfRows && 
args->cacheRows) {
 /* we don't need the mysql C 

commit rubygem-mysql2 for openSUSE:Factory

2016-03-07 Thread h_root
Hello community,

here is the log from the commit of package rubygem-mysql2 for openSUSE:Factory 
checked in at 2016-03-07 13:27:22

Comparing /work/SRC/openSUSE:Factory/rubygem-mysql2 (Old)
 and  /work/SRC/openSUSE:Factory/.rubygem-mysql2.new (New)


Package is "rubygem-mysql2"

Changes:

--- /work/SRC/openSUSE:Factory/rubygem-mysql2/rubygem-mysql2.changes
2016-03-01 09:40:03.0 +0100
+++ /work/SRC/openSUSE:Factory/.rubygem-mysql2.new/rubygem-mysql2.changes   
2016-03-07 13:28:22.0 +0100
@@ -1,0 +2,6 @@
+Thu Feb 25 05:36:51 UTC 2016 - co...@suse.com
+
+- updated to version 0.4.3
+ see installed CHANGELOG.md
+
+---

Old:

  mysql2-0.4.2.gem

New:

  mysql2-0.4.3.gem



Other differences:
--
++ rubygem-mysql2.spec ++
--- /var/tmp/diff_new_pack.MHDOCh/_old  2016-03-07 13:28:23.0 +0100
+++ /var/tmp/diff_new_pack.MHDOCh/_new  2016-03-07 13:28:23.0 +0100
@@ -24,7 +24,7 @@
 #
 
 Name:   rubygem-mysql2
-Version:0.4.2
+Version:0.4.3
 Release:0
 %define mod_name mysql2
 %define mod_full_name %{mod_name}-%{version}
@@ -32,10 +32,10 @@
 BuildRequires:  mysql-devel
 # /MANUAL
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
-BuildRequires:  ruby-macros >= 5
 BuildRequires:  %{rubydevel}
 BuildRequires:  %{rubygem gem2rpm}
 BuildRequires:  %{rubygem rdoc > 3.10}
+BuildRequires:  ruby-macros >= 5
 Url:http://github.com/brianmario/mysql2
 Source: http://rubygems.org/gems/%{mod_full_name}.gem
 Source1:rubygem-mysql2-rpmlintrc

++ mysql2-0.4.2.gem -> mysql2-0.4.3.gem ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/README.md new/README.md
--- old/README.md   1970-01-01 01:00:00.0 +0100
+++ new/README.md   1970-01-01 01:00:00.0 +0100
@@ -490,14 +490,15 @@
 
 This gem is tested with the following MySQL and MariaDB versions:
 
- * MySQL 5.5, 5.7
+ * MySQL 5.5, 5.6, 5.7
  * MySQL Connector/C 6.0 and 6.1 (primarily on Windows)
- * MariaDB 5.5, 10.0
+ * MariaDB 5.5, 10.0, 10.1
 
-### Active Record
+### Rails / Active Record
 
- * mysql2 0.2.x includes an Active Record driver compatible with AR 2.3 and 3.0
- * mysql2 0.3.x does not include an AR driver because it is included in AR 3.1 
and above
+ * mysql2 0.4.x works with Active Record 4.2.5 and higher.
+ * mysql2 0.3.x works with Active Record 3.1 and higher (the AR adapter is now 
included in AR proper).
+ * mysql2 0.2.x includes an Active Record adapter compatible with AR 2.3 and 
3.0, and should not be used with AR 3.1 or higher.
 
 ### Asynchronous Active Record
 
Files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ext/mysql2/client.c new/ext/mysql2/client.c
--- old/ext/mysql2/client.c 1970-01-01 01:00:00.0 +0100
+++ new/ext/mysql2/client.c 1970-01-01 01:00:00.0 +0100
@@ -234,7 +234,7 @@
 
   if (wrapper->refcount == 0) {
 #ifndef _WIN32
-if (wrapper->connected) {
+if (wrapper->connected && !wrapper->automatic_close) {
   /* The client is being garbage collected while connected. Prevent
* mysql_close() from sending a mysql-QUIT or from calling shutdown() on
* the socket by invalidating it. invalidate_fd() will drop this
@@ -259,7 +259,8 @@
   mysql_client_wrapper * wrapper;
   obj = Data_Make_Struct(klass, mysql_client_wrapper, rb_mysql_client_mark, 
rb_mysql_client_free, wrapper);
   wrapper->encoding = Qnil;
-  MARK_CONN_INACTIVE(self);
+  wrapper->active_thread = Qnil;
+  wrapper->automatic_close = 1;
   wrapper->server_version = 0;
   wrapper->reconnect_enabled = 0;
   wrapper->connect_timeout = 0;
@@ -331,6 +332,26 @@
   return rb_str;
 }
 
+static VALUE rb_mysql_get_ssl_cipher(VALUE self)
+{
+  const char *cipher;
+  VALUE rb_str;
+  GET_CLIENT(self);
+
+  cipher = mysql_get_ssl_cipher(wrapper->client);
+
+  if (cipher == NULL) {
+return Qnil;
+  }
+
+  rb_str = rb_str_new2(cipher);
+#ifdef HAVE_RUBY_ENCODING_H
+  rb_enc_associate(rb_str, rb_utf8_encoding());
+#endif
+
+  return rb_str;
+}
+
 static VALUE rb_connect(VALUE self, VALUE user, VALUE pass, VALUE host, VALUE 
port, VALUE database, VALUE socket, VALUE flags) {
   struct nogvl_connect_args args;
   time_t start_time, end_time, elapsed_time, connect_timeout;
@@ -372,7 +393,7 @@
 if (wrapper->connect_timeout)
   mysql_options(wrapper->client, MYSQL_OPT_CONNECT_TIMEOUT, 
>connect_timeout);
 if (rv == Qfalse)
-  return rb_raise_mysql2_error(wrapper);
+  rb_raise_mysql2_error(wrapper);
   }
 
   wrapper->server_version = 

commit rubygem-mysql2 for openSUSE:Factory

2016-03-01 Thread h_root
Hello community,

here is the log from the commit of package rubygem-mysql2 for openSUSE:Factory 
checked in at 2016-03-01 09:39:57

Comparing /work/SRC/openSUSE:Factory/rubygem-mysql2 (Old)
 and  /work/SRC/openSUSE:Factory/.rubygem-mysql2.new (New)


Package is "rubygem-mysql2"

Changes:

--- /work/SRC/openSUSE:Factory/rubygem-mysql2/rubygem-mysql2.changes
2015-11-28 15:19:16.0 +0100
+++ /work/SRC/openSUSE:Factory/.rubygem-mysql2.new/rubygem-mysql2.changes   
2016-03-01 09:40:03.0 +0100
@@ -1,0 +2,6 @@
+Thu Jan 21 13:21:29 UTC 2016 - mrueck...@suse.de
+
+- drop patch 569aa3d996a794073b0704771e45f78c7dba2182.patch:
+  included in version update
+
+---
@@ -5,0 +12,6 @@
+
+---
+Wed Nov 25 14:58:56 UTC 2015 - mrueck...@suse.de
+
+- added patch for memory leak in client close method
+  569aa3d996a794073b0704771e45f78c7dba2182.patch



Other differences:
--
++ rubygem-mysql2.spec ++
--- /var/tmp/diff_new_pack.ZeCZlh/_old  2016-03-01 09:40:04.0 +0100
+++ /var/tmp/diff_new_pack.ZeCZlh/_new  2016-03-01 09:40:04.0 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package rubygem-mysql2
 #
-# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -32,10 +32,10 @@
 BuildRequires:  mysql-devel
 # /MANUAL
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
+BuildRequires:  ruby-macros >= 5
 BuildRequires:  %{rubydevel}
 BuildRequires:  %{rubygem gem2rpm}
 BuildRequires:  %{rubygem rdoc > 3.10}
-BuildRequires:  ruby-macros >= 5
 Url:http://github.com/brianmario/mysql2
 Source: http://rubygems.org/gems/%{mod_full_name}.gem
 Source1:rubygem-mysql2-rpmlintrc

++ gem2rpm.yml ++
--- /var/tmp/diff_new_pack.ZeCZlh/_old  2016-03-01 09:40:04.0 +0100
+++ /var/tmp/diff_new_pack.ZeCZlh/_new  2016-03-01 09:40:04.0 +0100
@@ -71,3 +71,4 @@
   BuildRequires:  mysql-devel
 :sources:
 - rubygem-mysql2-rpmlintrc
+:patches:




commit rubygem-mysql2 for openSUSE:Factory

2015-11-28 Thread h_root
Hello community,

here is the log from the commit of package rubygem-mysql2 for openSUSE:Factory 
checked in at 2015-11-28 15:19:15

Comparing /work/SRC/openSUSE:Factory/rubygem-mysql2 (Old)
 and  /work/SRC/openSUSE:Factory/.rubygem-mysql2.new (New)


Package is "rubygem-mysql2"

Changes:

--- /work/SRC/openSUSE:Factory/rubygem-mysql2/rubygem-mysql2.changes
2015-10-28 17:30:09.0 +0100
+++ /work/SRC/openSUSE:Factory/.rubygem-mysql2.new/rubygem-mysql2.changes   
2015-11-28 15:19:16.0 +0100
@@ -1,0 +2,6 @@
+Thu Nov 26 05:33:34 UTC 2015 - co...@suse.com
+
+- updated to version 0.4.2
+ see installed CHANGELOG.md
+
+---

Old:

  mysql2-0.4.1.gem

New:

  mysql2-0.4.2.gem



Other differences:
--
++ rubygem-mysql2.spec ++
--- /var/tmp/diff_new_pack.qeQR5P/_old  2015-11-28 15:19:17.0 +0100
+++ /var/tmp/diff_new_pack.qeQR5P/_new  2015-11-28 15:19:17.0 +0100
@@ -24,7 +24,7 @@
 #
 
 Name:   rubygem-mysql2
-Version:0.4.1
+Version:0.4.2
 Release:0
 %define mod_name mysql2
 %define mod_full_name %{mod_name}-%{version}

++ mysql2-0.4.1.gem -> mysql2-0.4.2.gem ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/README.md new/README.md
--- old/README.md   1970-01-01 01:00:00.0 +0100
+++ new/README.md   1970-01-01 01:00:00.0 +0100
@@ -58,6 +58,20 @@
 are located somewhere different than on your build system.
 This overrides any rpath calculated by default or by the options above.
 
+* `--with-sanitize[=address,cfi,integer,memory,thread,undefined]` -
+Enable sanitizers for Clang / GCC. If no argument is given, try to enable
+all sanitizers or fail if none are available. If a command-separated list of
+specific sanitizers is given, configure will fail unless they all are 
available.
+Note that the some sanitizers may incur a performance penalty, and the Address
+Sanitizer may require a runtime library.
+To see line numbers in backtraces, declare these environment variables
+(adjust the llvm-symbolizer path as needed for your system):
+
+``` sh
+  export ASAN_SYMBOLIZER_PATH=/usr/bin/llvm-symbolizer-3.4
+  export ASAN_OPTIONS=symbolize=1
+```
+
 ### Linux and other Unixes
 
 You may need to install a package such as `libmysqlclient-dev` or 
`mysql-devel`;
@@ -258,15 +272,26 @@
 next_result: Unknown column 'A' in 'field list' (Mysql2::Error)
 ```
 
-See https://gist.github.com/1367987 for using MULTI_STATEMENTS with Active 
Record.
-
 ### Secure auth
 
 Starting wih MySQL 5.6.5, secure_auth is enabled by default on servers (it was 
disabled by default prior to this).
 When secure_auth is enabled, the server will refuse a connection if the 
account password is stored in old pre-MySQL 4.1 format.
 The MySQL 5.6.5 client library may also refuse to attempt a connection if 
provided an older format password.
-To bypass this restriction in the client, pass the option :secure_auth => 
false to Mysql2::Client.new().
-If using ActiveRecord, your database.yml might look something like this:
+To bypass this restriction in the client, pass the option `:secure_auth => 
false` to Mysql2::Client.new().
+
+### Flags option parsing
+
+The `:flags` parameter accepts an integer, a string, or an array. The integer
+form allows the client to assemble flags from constants defined under
+`Mysql2::Client` such as `Mysql2::Client::FOUND_ROWS`. Use a bitwise `|` (OR)
+to specify several flags.
+
+The string form will be split on whitespace and parsed as with the array form:
+Plain flags are added to the default flags, while flags prefixed with `-`
+(minus) are removed from the default flags.
+
+This allows easier use with ActiveRecord's database.yml, avoiding the need for 
magic flag numbers.
+For example, to disable protocol compression, and enable multiple statements 
and result sets:
 
 ``` yaml
 development:
@@ -277,13 +302,17 @@
   password: my_password
   host: 127.0.0.1
   port: 3306
+  flags:
+- -COMPRESS
+- FOUND_ROWS
+- MULTI_STATEMENTS
   secure_auth: false
 ```
 
 ### Reading a MySQL config file
 
 You may read configuration options from a MySQL configuration file by passing
-the `:default_file` and `:default_group` paramters. For example:
+the `:default_file` and `:default_group` parameters. For example:
 
 ``` ruby
 Mysql2::Client.new(:default_file => '/user/.my.cnf', :default_group => 
'client')
@@ -291,7 +320,7 @@
 
 ### Initial command on connect and reconnect
 
-If you specify the init_command option, the SQL string you provide will be 
executed after the connection is established.
+If you specify the `:init_command` option, the SQL string you provide will be 

commit rubygem-mysql2 for openSUSE:Factory

2015-10-28 Thread h_root
Hello community,

here is the log from the commit of package rubygem-mysql2 for openSUSE:Factory 
checked in at 2015-10-28 17:30:08

Comparing /work/SRC/openSUSE:Factory/rubygem-mysql2 (Old)
 and  /work/SRC/openSUSE:Factory/.rubygem-mysql2.new (New)


Package is "rubygem-mysql2"

Changes:

--- /work/SRC/openSUSE:Factory/rubygem-mysql2/rubygem-mysql2.changes
2015-08-01 11:39:12.0 +0200
+++ /work/SRC/openSUSE:Factory/.rubygem-mysql2.new/rubygem-mysql2.changes   
2015-10-28 17:30:09.0 +0100
@@ -1,0 +2,18 @@
+Thu Sep 17 04:30:44 UTC 2015 - co...@suse.com
+
+- updated to version 0.4.1
+ see installed CHANGELOG.md
+
+---
+Wed Sep  9 04:29:48 UTC 2015 - co...@suse.com
+
+- updated to version 0.4.0
+  no changelog found
+
+---
+Wed Aug 26 04:30:02 UTC 2015 - co...@suse.com
+
+- updated to version 0.3.20
+  no changelog found
+
+---

Old:

  mysql2-0.3.19.gem

New:

  mysql2-0.4.1.gem



Other differences:
--
++ rubygem-mysql2.spec ++
--- /var/tmp/diff_new_pack.BU9mbc/_old  2015-10-28 17:30:10.0 +0100
+++ /var/tmp/diff_new_pack.BU9mbc/_new  2015-10-28 17:30:10.0 +0100
@@ -24,7 +24,7 @@
 #
 
 Name:   rubygem-mysql2
-Version:0.3.19
+Version:0.4.1
 Release:0
 %define mod_name mysql2
 %define mod_full_name %{mod_name}-%{version}
@@ -53,7 +53,7 @@
 
 %install
 %gem_install \
-  --doc-files="LICENSE README.md" \
+  --doc-files="CHANGELOG.md LICENSE README.md" \
   -f
 %gem_cleanup
 

++ mysql2-0.3.19.gem -> mysql2-0.4.1.gem ++
 6124 lines of diff (skipped)




commit rubygem-mysql2 for openSUSE:Factory

2015-08-01 Thread h_root
Hello community,

here is the log from the commit of package rubygem-mysql2 for openSUSE:Factory 
checked in at 2015-08-01 11:39:11

Comparing /work/SRC/openSUSE:Factory/rubygem-mysql2 (Old)
 and  /work/SRC/openSUSE:Factory/.rubygem-mysql2.new (New)


Package is rubygem-mysql2

Changes:

--- /work/SRC/openSUSE:Factory/rubygem-mysql2/rubygem-mysql2.changes
2015-04-07 09:29:36.0 +0200
+++ /work/SRC/openSUSE:Factory/.rubygem-mysql2.new/rubygem-mysql2.changes   
2015-08-01 11:39:12.0 +0200
@@ -1,0 +2,6 @@
+Fri Jul 31 04:31:15 UTC 2015 - co...@suse.com
+
+- updated to version 0.3.19
+  no changelog found
+
+---

Old:

  mysql2-0.3.18.gem

New:

  mysql2-0.3.19.gem



Other differences:
--
++ rubygem-mysql2.spec ++
--- /var/tmp/diff_new_pack.T8av4a/_old  2015-08-01 11:39:12.0 +0200
+++ /var/tmp/diff_new_pack.T8av4a/_new  2015-08-01 11:39:12.0 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package rubygem-mysql2
 #
-# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -24,7 +24,7 @@
 #
 
 Name:   rubygem-mysql2
-Version:0.3.18
+Version:0.3.19
 Release:0
 %define mod_name mysql2
 %define mod_full_name %{mod_name}-%{version}
@@ -32,10 +32,10 @@
 BuildRequires:  mysql-devel
 # /MANUAL
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
-BuildRequires:  ruby-macros = 5
 BuildRequires:  %{rubydevel}
 BuildRequires:  %{rubygem gem2rpm}
 BuildRequires:  %{rubygem rdoc  3.10}
+BuildRequires:  ruby-macros = 5
 Url:http://github.com/brianmario/mysql2
 Source: http://rubygems.org/gems/%{mod_full_name}.gem
 Source1:rubygem-mysql2-rpmlintrc
@@ -53,7 +53,7 @@
 
 %install
 %gem_install \
-  --doc-files=README.md \
+  --doc-files=LICENSE README.md \
   -f
 %gem_cleanup
 

++ mysql2-0.3.18.gem - mysql2-0.3.19.gem ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/LICENSE new/LICENSE
--- old/LICENSE 1970-01-01 01:00:00.0 +0100
+++ new/LICENSE 1970-01-01 01:00:00.0 +0100
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2014 Brian Lopez
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the Software), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
Files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ext/mysql2/client.c new/ext/mysql2/client.c
--- old/ext/mysql2/client.c 1970-01-01 01:00:00.0 +0100
+++ new/ext/mysql2/client.c 1970-01-01 01:00:00.0 +0100
@@ -16,7 +16,7 @@
 
 VALUE cMysql2Client;
 extern VALUE mMysql2, cMysql2Error;
-static VALUE sym_id, sym_version, sym_async, sym_symbolize_keys, sym_as, 
sym_array, sym_stream;
+static VALUE sym_id, sym_version, sym_header_version, sym_async, 
sym_symbolize_keys, sym_as, sym_array, sym_stream;
 static ID intern_merge, intern_merge_bang, intern_error_number_eql, 
intern_sql_state_eql;
 
 #ifndef HAVE_RB_HASH_DUP
@@ -287,7 +287,7 @@
   oldLen = RSTRING_LEN(str);
   newStr = xmalloc(oldLen*2+1);
 
-  newLen = mysql_escape_string((char *)newStr, StringValuePtr(str), oldLen);
+  newLen = mysql_escape_string((char *)newStr, RSTRING_PTR(str), oldLen);
   if (newLen == oldLen) {
 /* no need to return a new ruby string if nothing changed */
 xfree(newStr);
@@ -337,13 +337,13 @@
   VALUE rv;
   GET_CLIENT(self);
 
-  args.host = NIL_P(host) ? NULL : StringValuePtr(host);
-  args.unix_socket = NIL_P(socket) ? NULL : StringValuePtr(socket);
-  

commit rubygem-mysql2 for openSUSE:Factory

2015-04-07 Thread h_root
Hello community,

here is the log from the commit of package rubygem-mysql2 for openSUSE:Factory 
checked in at 2015-04-07 09:29:35

Comparing /work/SRC/openSUSE:Factory/rubygem-mysql2 (Old)
 and  /work/SRC/openSUSE:Factory/.rubygem-mysql2.new (New)


Package is rubygem-mysql2

Changes:

--- /work/SRC/openSUSE:Factory/rubygem-mysql2/rubygem-mysql2.changes
2015-02-18 12:08:45.0 +0100
+++ /work/SRC/openSUSE:Factory/.rubygem-mysql2.new/rubygem-mysql2.changes   
2015-04-07 09:29:36.0 +0200
@@ -1,0 +2,5 @@
+Fri Apr  3 13:17:17 UTC 2015 - mrueck...@suse.de
+
+- add rpmlintrc
+
+---

New:

  rubygem-mysql2-rpmlintrc



Other differences:
--
++ rubygem-mysql2.spec ++
--- /var/tmp/diff_new_pack.fOkTyA/_old  2015-04-07 09:29:36.0 +0200
+++ /var/tmp/diff_new_pack.fOkTyA/_new  2015-04-07 09:29:36.0 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package rubygem-mysql2
 #
-# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -32,13 +32,14 @@
 BuildRequires:  mysql-devel
 # /MANUAL
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
+BuildRequires:  ruby-macros = 5
 BuildRequires:  %{rubydevel}
 BuildRequires:  %{rubygem gem2rpm}
 BuildRequires:  %{rubygem rdoc  3.10}
-BuildRequires:  ruby-macros = 5
 Url:http://github.com/brianmario/mysql2
 Source: http://rubygems.org/gems/%{mod_full_name}.gem
-Source1:gem2rpm.yml
+Source1:rubygem-mysql2-rpmlintrc
+Source2:gem2rpm.yml
 Summary:A simple, fast Mysql library for Ruby, binding to libmysql
 License:MIT
 Group:  Development/Languages/Ruby

++ gem2rpm.yml ++
--- /var/tmp/diff_new_pack.fOkTyA/_old  2015-04-07 09:29:36.0 +0200
+++ /var/tmp/diff_new_pack.fOkTyA/_new  2015-04-07 09:29:36.0 +0200
@@ -15,8 +15,6 @@
 # ## used by gem2rpm
 # :disable_automatic_rdoc_dep: true
 # ## used by gem2rpm
-:preamble: |-
-  BuildRequires:  mysql-devel
 #   BuildRequires: foobar
 #   Requires: foobar
 # ## used by gem2rpm
@@ -24,7 +22,7 @@
 #   foo.patch: -p1
 #   bar.patch: 
 # ## used by gem2rpm
-:sources:
+#:sources:
 # - foo.desktop
 # - bar.desktop
 # :gem_install_args: ''
@@ -69,3 +67,7 @@
 # :post: |-
 #   /bin/echo foo
 #
+:preamble: |-
+  BuildRequires:  mysql-devel
+:sources:
+- rubygem-mysql2-rpmlintrc

++ rubygem-mysql2-rpmlintrc ++
addFilter(devel-file-in-non-devel-package)



commit rubygem-mysql2 for openSUSE:Factory

2015-02-18 Thread h_root
Hello community,

here is the log from the commit of package rubygem-mysql2 for openSUSE:Factory 
checked in at 2015-02-18 11:39:13

Comparing /work/SRC/openSUSE:Factory/rubygem-mysql2 (Old)
 and  /work/SRC/openSUSE:Factory/.rubygem-mysql2.new (New)


Package is rubygem-mysql2

Changes:

--- /work/SRC/openSUSE:Factory/rubygem-mysql2/rubygem-mysql2.changes
2015-02-10 20:22:22.0 +0100
+++ /work/SRC/openSUSE:Factory/.rubygem-mysql2.new/rubygem-mysql2.changes   
2015-02-18 12:08:45.0 +0100
@@ -1,0 +2,5 @@
+Tue Feb 17 05:29:23 UTC 2015 - co...@suse.com
+
+- updated to version 0.3.18
+
+---

Old:

  mysql2-0.3.17.gem

New:

  mysql2-0.3.18.gem



Other differences:
--
++ rubygem-mysql2.spec ++
--- /var/tmp/diff_new_pack.Nb2QPG/_old  2015-02-18 12:08:45.0 +0100
+++ /var/tmp/diff_new_pack.Nb2QPG/_new  2015-02-18 12:08:45.0 +0100
@@ -24,7 +24,7 @@
 #
 
 Name:   rubygem-mysql2
-Version:0.3.17
+Version:0.3.18
 Release:0
 %define mod_name mysql2
 %define mod_full_name %{mod_name}-%{version}
@@ -52,7 +52,7 @@
 
 %install
 %gem_install \
-  --doc-files=MIT-LICENSE README.md \
+  --doc-files=README.md \
   -f
 %gem_cleanup
 

++ mysql2-0.3.17.gem - mysql2-0.3.18.gem ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/MIT-LICENSE new/MIT-LICENSE
--- old/MIT-LICENSE 1970-01-01 01:00:00.0 +0100
+++ new/MIT-LICENSE 1970-01-01 01:00:00.0 +0100
@@ -1,20 +0,0 @@
-Copyright (c) 2010-2011 Brian Lopez - http://github.com/brianmario
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-Software), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/README.md new/README.md
--- old/README.md   1970-01-01 01:00:00.0 +0100
+++ new/README.md   1970-01-01 01:00:00.0 +0100
@@ -1,6 +1,7 @@
 # Mysql2 - A modern, simple and very fast MySQL library for Ruby - binding to 
libmysql
 
-[![Build 
Status](https://travis-ci.org/brianmario/mysql2.png)](https://travis-ci.org/brianmario/mysql2)
+Travis CI [![Travis CI 
Status](https://travis-ci.org/brianmario/mysql2.png)](https://travis-ci.org/brianmario/mysql2)
+Appveyor CI [![Appveyor CI 
Status](https://ci.appveyor.com/api/projects/status/github/sodabrew/mysql2)](https://ci.appveyor.com/project/sodabrew/mysql2)
 
 The Mysql2 gem is meant to serve the extremely common use-case of connecting, 
querying and iterating on results.
 Some database libraries out there serve as direct 1:1 mappings of the already 
complex C APIs available.
@@ -15,12 +16,16 @@
 `Mysql2::Result` - returned from issuing a #query on the connection. It 
includes Enumerable.
 
 ## Installing
-### OSX / Linux
+### General Instructions
 ``` sh
 gem install mysql2
 ```
 
-This gem links against MySQL's `libmysqlclient` C shared library. You may need 
to install a package such as `libmysqlclient-dev`, `mysql-devel`, or other 
appropriate package for your system.
+This gem links against MySQL's `libmysqlclient` library or `Connector/C`
+library, and compatible alternatives such as MariaDB.
+You may need to install a package such as `libmysqlclient-dev`, `mysql-devel`,
+or other appropriate package for your system. See below for system-specific
+instructions.
 
 By default, the mysql2 gem will try to find a copy of MySQL in this order:
 
@@ -51,25 +56,35 @@
 are located somewhere different than on your build system.
 This overrides any rpath calculated by default or by the options above.
 
-### Windows
-First, make sure you have the DevKit installed 
(http://rubyinstaller.org/downloads/) and its variables
-are loaded by 

commit rubygem-mysql2 for openSUSE:Factory

2015-02-10 Thread h_root
Hello community,

here is the log from the commit of package rubygem-mysql2 for openSUSE:Factory 
checked in at 2015-02-10 20:22:20

Comparing /work/SRC/openSUSE:Factory/rubygem-mysql2 (Old)
 and  /work/SRC/openSUSE:Factory/.rubygem-mysql2.new (New)


Package is rubygem-mysql2

Changes:

--- /work/SRC/openSUSE:Factory/rubygem-mysql2/rubygem-mysql2.changes
2014-10-23 14:20:28.0 +0200
+++ /work/SRC/openSUSE:Factory/.rubygem-mysql2.new/rubygem-mysql2.changes   
2015-02-10 20:22:22.0 +0100
@@ -1,0 +2,5 @@
+Mon Feb  9 06:46:39 UTC 2015 - co...@suse.com
+
+- updated to version 0.3.17, no changelog
+
+---

Old:

  mysql2-0.3.16.gem

New:

  mysql2-0.3.17.gem



Other differences:
--
++ rubygem-mysql2.spec ++
--- /var/tmp/diff_new_pack.thHPEf/_old  2015-02-10 20:22:23.0 +0100
+++ /var/tmp/diff_new_pack.thHPEf/_new  2015-02-10 20:22:23.0 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package rubygem-mysql2
 #
-# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,8 +16,15 @@
 #
 
 
+#
+# This file was generated with a gem2rpm.yml and not just plain gem2rpm.
+# All sections marked as MANUAL, license headers, summaries and descriptions
+# can be maintained in that file. Please consult this file before editing any
+# of those fields
+#
+
 Name:   rubygem-mysql2
-Version:0.3.16
+Version:0.3.17
 Release:0
 %define mod_name mysql2
 %define mod_full_name %{mod_name}-%{version}

++ mysql2-0.3.16.gem - mysql2-0.3.17.gem ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/README.md new/README.md
--- old/README.md   1970-01-01 01:00:00.0 +0100
+++ new/README.md   1970-01-01 01:00:00.0 +0100
@@ -1,16 +1,16 @@
-# Mysql2 - A modern, simple and very fast Mysql library for Ruby - binding to 
libmysql
+# Mysql2 - A modern, simple and very fast MySQL library for Ruby - binding to 
libmysql
 
 [![Build 
Status](https://travis-ci.org/brianmario/mysql2.png)](https://travis-ci.org/brianmario/mysql2)
 
 The Mysql2 gem is meant to serve the extremely common use-case of connecting, 
querying and iterating on results.
-Some database libraries out there serve as direct 1:1 mappings of the already 
complex C API's available.
+Some database libraries out there serve as direct 1:1 mappings of the already 
complex C APIs available.
 This one is not.
 
 It also forces the use of UTF-8 [or binary] for the connection [and all 
strings in 1.9, unless Encoding.default_internal is set then it'll convert from 
UTF-8 to that encoding] and uses encoding-aware MySQL API calls where it can.
 
 The API consists of two classes:
 
-`Mysql2::Client` - your connection to the database
+`Mysql2::Client` - your connection to the database.
 
 `Mysql2::Result` - returned from issuing a #query on the connection. It 
includes Enumerable.
 
@@ -26,7 +26,7 @@
 
 * Option `--with-mysql-dir`, if provided (see below).
 * Option `--with-mysql-config`, if provided (see below).
-* Several typical paths for `msyql_config` (default for the majority of users).
+* Several typical paths for `mysql_config` (default for the majority of users).
 * The directory `/usr/local`.
 
 ### Configuration options
@@ -104,7 +104,10 @@
   # conveniently, row is a hash
   # the keys are the fields, as you'd expect
   # the values are pre-built ruby primitives mapped from their corresponding 
field types in MySQL
-  # Here's an otter: 
http://farm1.static.flickr.com/130/398077070_b8795d0ef3_b.jpg
+  puts row[id] # row[id].class == Fixnum
+  if row[dne]  # non-existant hash entry is nil
+puts row[dne]
+  end
 end
 ```
 
@@ -335,7 +338,7 @@
 
 ### Skipping casting
 
-Mysql2 casting is fast, but not as fast as not casting data.  In rare cases 
where typecasting is not needed, it will be faster to disable it by providing 
:cast = false.
+Mysql2 casting is fast, but not as fast as not casting data.  In rare cases 
where typecasting is not needed, it will be faster to disable it by providing 
:cast = false. (Note that :cast = false overrides :cast_booleans = true.)
 
 ``` ruby
 client = Mysql2::Client.new
Files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ext/mysql2/client.c new/ext/mysql2/client.c
--- old/ext/mysql2/client.c 1970-01-01 01:00:00.0 +0100
+++ new/ext/mysql2/client.c 1970-01-01 

commit rubygem-mysql2 for openSUSE:Factory

2014-10-23 Thread h_root
Hello community,

here is the log from the commit of package rubygem-mysql2 for openSUSE:Factory 
checked in at 2014-10-23 14:20:20

Comparing /work/SRC/openSUSE:Factory/rubygem-mysql2 (Old)
 and  /work/SRC/openSUSE:Factory/.rubygem-mysql2.new (New)


Package is rubygem-mysql2

Changes:

--- /work/SRC/openSUSE:Factory/rubygem-mysql2/rubygem-mysql2.changes
2014-05-21 16:29:05.0 +0200
+++ /work/SRC/openSUSE:Factory/.rubygem-mysql2.new/rubygem-mysql2.changes   
2014-10-23 14:20:28.0 +0200
@@ -1,0 +2,5 @@
+Wed Oct 22 07:50:03 UTC 2014 - co...@suse.com
+
+- update to new rubygem packaging
+
+---

New:

  gem2rpm.yml



Other differences:
--
++ rubygem-mysql2.spec ++
--- /var/tmp/diff_new_pack.Ke6JAY/_old  2014-10-23 14:20:30.0 +0200
+++ /var/tmp/diff_new_pack.Ke6JAY/_new  2014-10-23 14:20:30.0 +0200
@@ -21,68 +21,34 @@
 Release:0
 %define mod_name mysql2
 %define mod_full_name %{mod_name}-%{version}
-
-BuildRoot:  %{_tmppath}/%{name}-%{version}-build
-BuildRequires:  ruby-devel
-BuildRequires:  ruby-macros = 3
-BuildRequires:  rubygem(rdoc)  3.10
 # MANUAL
 BuildRequires:  mysql-devel
+# /MANUAL
+BuildRoot:  %{_tmppath}/%{name}-%{version}-build
+BuildRequires:  %{rubydevel}
+BuildRequires:  %{rubygem gem2rpm}
+BuildRequires:  %{rubygem rdoc  3.10}
+BuildRequires:  ruby-macros = 5
 Url:http://github.com/brianmario/mysql2
 Source: http://rubygems.org/gems/%{mod_full_name}.gem
+Source1:gem2rpm.yml
 Summary:A simple, fast Mysql library for Ruby, binding to libmysql
 License:MIT
 Group:  Development/Languages/Ruby
 
 %description
-A simple, fast Mysql library for Ruby, binding to libmysql
-
-%package doc
-Summary:RDoc documentation for %{mod_name}
-Group:  Development/Languages/Ruby
-Requires:   %{name} = %{version}
-
-%description doc
-Documentation generated at gem installation time.
-Usually in RDoc and RI formats.
-
-%package testsuite
-Summary:Test suite for %{mod_name}
-Group:  Development/Languages/Ruby
-Requires:   %{name} = %{version}
-
-%description testsuite
-Test::Unit or RSpec files, useful for developers.
+A simple, fast Mysql library for Ruby, binding to libmysql.
 
 %prep
-#gem_unpack
-#if you need patches, apply them here and replace the # with a % sign in the 
surrounding lines
-#gem_build
 
 %build
 
 %install
-%gem_install -f
+%gem_install \
+  --doc-files=MIT-LICENSE README.md \
+  -f
 %gem_cleanup
-mkdir -p %{buildroot}%{_docdir}/%{name}
-ln -s %{gem_base}/gems/%{mod_full_name}/MIT-LICENSE 
%buildroot/%{_docdir}/%{name}/MIT-LICENSE
-ln -s %{gem_base}/gems/%{mod_full_name}/README.md 
%buildroot/%{_docdir}/%{name}/README.md
-
-%files
-%defattr(-,root,root,-)
-%{_docdir}/%{name}
-%{gem_base}/cache/%{mod_full_name}.gem
-%{gem_base}/gems/%{mod_full_name}/
-%{gem_extensions}/%{mod_full_name}
-%exclude %{gem_base}/gems/%{mod_full_name}/spec
-%{gem_base}/specifications/%{mod_full_name}.gemspec
-
-%files doc
-%defattr(-,root,root,-)
-%doc %{gem_base}/doc
-
-%files testsuite
-%defattr(-,root,root,-)
-%{gem_base}/gems/%{mod_full_name}/spec
+
+%gem_packages
 
 %changelog

++ gem2rpm.yml ++
# ---
# ## used by gem2rpm
# :summary: this is a custom summary
# ## used by gem2rpm
# :description: |-
#   this is a custom description
#
#   it can be multiline
# ## used by gem2rpm
# :license: MIT or Ruby
# ## used by gem2rpm and gem_packages
# :version_suffix: -x_y
# ## used by gem2rpm and gem_packages
# :disable_docs: true
# ## used by gem2rpm
# :disable_automatic_rdoc_dep: true
# ## used by gem2rpm
:preamble: |-
  BuildRequires:  mysql-devel
#   BuildRequires: foobar
#   Requires: foobar
# ## used by gem2rpm
# :patches:
#   foo.patch: -p1
#   bar.patch: 
# ## used by gem2rpm
:sources:
# - foo.desktop
# - bar.desktop
# :gem_install_args: ''
# ## used by gem2rpm
# :pre_install: |-
#   %if 0%{?use_system_libev}
#   export USE_VENDORED_LIBEV=no
#   %endif
# ## used by gem2rpm
# :post_install: |-
#   # delete custom files here or do other fancy stuff
#   install -D -m 0644 %{S:1} %{buildroot}%{_bindir}/gem2rpm-opensuse
# ## used by gem2rpm
# :testsuite_command: |-
#   (pushd %{buildroot}%{gem_base}/gems/%{mod_full_name}  rake test)
# ## used by gem2rpm
# :filelist: |-
#   /usr/bin/gem2rpm-opensuse
# ## used by gem2rpm
# :scripts:
#   :post: |-
# /bin/echo foo
# ## used by gem_packages
# :main:
#   :preamble: |-
# Requires: util-linux
# Recommends: pwgen
#   :filelist: |-
# /usr/bin/gem2rpm-opensuse
# ## used by gem_packages
# :custom:
#   apache:
# :preamble: |-
#   Requires: .
# :filelist: |-
#   

commit rubygem-mysql2 for openSUSE:Factory

2014-05-21 Thread h_root
Hello community,

here is the log from the commit of package rubygem-mysql2 for openSUSE:Factory 
checked in at 2014-05-21 16:29:03

Comparing /work/SRC/openSUSE:Factory/rubygem-mysql2 (Old)
 and  /work/SRC/openSUSE:Factory/.rubygem-mysql2.new (New)


Package is rubygem-mysql2

Changes:

--- /work/SRC/openSUSE:Factory/rubygem-mysql2/rubygem-mysql2.changes
2014-02-12 20:59:07.0 +0100
+++ /work/SRC/openSUSE:Factory/.rubygem-mysql2.new/rubygem-mysql2.changes   
2014-05-21 16:29:05.0 +0200
@@ -1,0 +2,5 @@
+Sun May 18 09:04:44 UTC 2014 - co...@suse.com
+
+- updated to version 0.3.16
+
+---

Old:

  mysql2-0.3.15.gem

New:

  mysql2-0.3.16.gem



Other differences:
--
++ rubygem-mysql2.spec ++
--- /var/tmp/diff_new_pack.v3Akqf/_old  2014-05-21 16:29:08.0 +0200
+++ /var/tmp/diff_new_pack.v3Akqf/_new  2014-05-21 16:29:08.0 +0200
@@ -17,7 +17,7 @@
 
 
 Name:   rubygem-mysql2
-Version:0.3.15
+Version:0.3.16
 Release:0
 %define mod_name mysql2
 %define mod_full_name %{mod_name}-%{version}

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit rubygem-mysql2 for openSUSE:Factory

2014-02-12 Thread h_root
Hello community,

here is the log from the commit of package rubygem-mysql2 for openSUSE:Factory 
checked in at 2014-02-12 20:59:05

Comparing /work/SRC/openSUSE:Factory/rubygem-mysql2 (Old)
 and  /work/SRC/openSUSE:Factory/.rubygem-mysql2.new (New)


Package is rubygem-mysql2

Changes:

--- /work/SRC/openSUSE:Factory/rubygem-mysql2/rubygem-mysql2.changes
2013-11-24 18:12:48.0 +0100
+++ /work/SRC/openSUSE:Factory/.rubygem-mysql2.new/rubygem-mysql2.changes   
2014-02-12 20:59:07.0 +0100
@@ -1,0 +2,5 @@
+Thu Feb  6 11:56:39 UTC 2014 - co...@suse.com
+
+- updated to version 0.3.15, no changelog maintained
+
+---

Old:

  mysql2-0.3.14.gem

New:

  mysql2-0.3.15.gem



Other differences:
--
++ rubygem-mysql2.spec ++
--- /var/tmp/diff_new_pack.DI5nv7/_old  2014-02-12 20:59:07.0 +0100
+++ /var/tmp/diff_new_pack.DI5nv7/_new  2014-02-12 20:59:07.0 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package rubygem-mysql2
 #
-# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,13 +17,14 @@
 
 
 Name:   rubygem-mysql2
-Version:0.3.14
+Version:0.3.15
 Release:0
 %define mod_name mysql2
 %define mod_full_name %{mod_name}-%{version}
 
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
-BuildRequires:  ruby-macros = 1
+BuildRequires:  ruby-devel
+BuildRequires:  ruby-macros = 3
 BuildRequires:  rubygem(rdoc)  3.10
 # MANUAL
 BuildRequires:  mysql-devel
@@ -64,23 +65,24 @@
 %gem_install -f
 %gem_cleanup
 mkdir -p %{buildroot}%{_docdir}/%{name}
-ln -s %{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/MIT-LICENSE 
%buildroot/%{_docdir}/%{name}/MIT-LICENSE
-ln -s %{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/README.md 
%buildroot/%{_docdir}/%{name}/README.md
+ln -s %{gem_base}/gems/%{mod_full_name}/MIT-LICENSE 
%buildroot/%{_docdir}/%{name}/MIT-LICENSE
+ln -s %{gem_base}/gems/%{mod_full_name}/README.md 
%buildroot/%{_docdir}/%{name}/README.md
 
 %files
 %defattr(-,root,root,-)
 %{_docdir}/%{name}
-%{_libdir}/ruby/gems/%{rb_ver}/cache/%{mod_full_name}.gem
-%{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/
-%exclude %{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/spec
-%{_libdir}/ruby/gems/%{rb_ver}/specifications/%{mod_full_name}.gemspec
+%{gem_base}/cache/%{mod_full_name}.gem
+%{gem_base}/gems/%{mod_full_name}/
+%{gem_extensions}/%{mod_full_name}
+%exclude %{gem_base}/gems/%{mod_full_name}/spec
+%{gem_base}/specifications/%{mod_full_name}.gemspec
 
 %files doc
 %defattr(-,root,root,-)
-%doc %{_libdir}/ruby/gems/%{rb_ver}/doc/%{mod_full_name}/
+%doc %{gem_base}/doc
 
 %files testsuite
 %defattr(-,root,root,-)
-%{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/spec
+%{gem_base}/gems/%{mod_full_name}/spec
 
 %changelog

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit rubygem-mysql2 for openSUSE:Factory

2013-11-24 Thread h_root
Hello community,

here is the log from the commit of package rubygem-mysql2 for openSUSE:Factory 
checked in at 2013-11-24 18:12:47

Comparing /work/SRC/openSUSE:Factory/rubygem-mysql2 (Old)
 and  /work/SRC/openSUSE:Factory/.rubygem-mysql2.new (New)


Package is rubygem-mysql2

Changes:

--- /work/SRC/openSUSE:Factory/rubygem-mysql2/rubygem-mysql2.changes
2013-07-25 15:32:15.0 +0200
+++ /work/SRC/openSUSE:Factory/.rubygem-mysql2.new/rubygem-mysql2.changes   
2013-11-24 18:12:48.0 +0100
@@ -1,0 +2,5 @@
+Fri Nov 22 08:40:30 UTC 2013 - co...@suse.com
+
+- updated to version 0.3.14, no changelog maintained
+
+---

Old:

  mysql2-0.3.13.gem

New:

  mysql2-0.3.14.gem



Other differences:
--
++ rubygem-mysql2.spec ++
--- /var/tmp/diff_new_pack.iipkt7/_old  2013-11-24 18:12:49.0 +0100
+++ /var/tmp/diff_new_pack.iipkt7/_new  2013-11-24 18:12:49.0 +0100
@@ -17,7 +17,7 @@
 
 
 Name:   rubygem-mysql2
-Version:0.3.13
+Version:0.3.14
 Release:0
 %define mod_name mysql2
 %define mod_full_name %{mod_name}-%{version}

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit rubygem-mysql2 for openSUSE:Factory

2013-07-25 Thread h_root
Hello community,

here is the log from the commit of package rubygem-mysql2 for openSUSE:Factory 
checked in at 2013-07-25 15:32:14

Comparing /work/SRC/openSUSE:Factory/rubygem-mysql2 (Old)
 and  /work/SRC/openSUSE:Factory/.rubygem-mysql2.new (New)


Package is rubygem-mysql2

Changes:

--- /work/SRC/openSUSE:Factory/rubygem-mysql2/rubygem-mysql2.changes
2012-03-26 12:18:16.0 +0200
+++ /work/SRC/openSUSE:Factory/.rubygem-mysql2.new/rubygem-mysql2.changes   
2013-07-25 15:32:15.0 +0200
@@ -1,0 +2,5 @@
+Sat Jul 20 10:49:53 UTC 2013 - co...@suse.com
+
+- updated to version 0.3.13, changelog dropped upstream
+
+---

Old:

  mysql2-0.3.11.gem

New:

  mysql2-0.3.13.gem



Other differences:
--
++ rubygem-mysql2.spec ++
--- /var/tmp/diff_new_pack.oGpL2z/_old  2013-07-25 15:32:16.0 +0200
+++ /var/tmp/diff_new_pack.oGpL2z/_new  2013-07-25 15:32:16.0 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package rubygem-mysql2
 #
-# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -15,20 +15,23 @@
 # Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
 
+
 Name:   rubygem-mysql2
-Version:0.3.11
+Version:0.3.13
 Release:0
-License:MIT
-Summary:A simple, fast Mysql library for Ruby, binding to libmysql
-Url:http://github.com/brianmario/mysql2
-Group:  Development/Languages/Ruby
 %define mod_name mysql2
 %define mod_full_name %{mod_name}-%{version}
-Source: %{mod_full_name}.gem
-BuildRequires:  mysql-devel
-BuildRequires:  rubygems_with_buildroot_patch
+
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
-%rubygems_requires
+BuildRequires:  ruby-macros = 1
+BuildRequires:  rubygem(rdoc)  3.10
+# MANUAL
+BuildRequires:  mysql-devel
+Url:http://github.com/brianmario/mysql2
+Source: http://rubygems.org/gems/%{mod_full_name}.gem
+Summary:A simple, fast Mysql library for Ruby, binding to libmysql
+License:MIT
+Group:  Development/Languages/Ruby
 
 %description
 A simple, fast Mysql library for Ruby, binding to libmysql
@@ -51,13 +54,22 @@
 Test::Unit or RSpec files, useful for developers.
 
 %prep
+#gem_unpack
+#if you need patches, apply them here and replace the # with a % sign in the 
surrounding lines
+#gem_build
+
 %build
+
 %install
-%gem_install %{SOURCE0}
+%gem_install -f
 %gem_cleanup
+mkdir -p %{buildroot}%{_docdir}/%{name}
+ln -s %{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/MIT-LICENSE 
%buildroot/%{_docdir}/%{name}/MIT-LICENSE
+ln -s %{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/README.md 
%buildroot/%{_docdir}/%{name}/README.md
 
 %files
 %defattr(-,root,root,-)
+%{_docdir}/%{name}
 %{_libdir}/ruby/gems/%{rb_ver}/cache/%{mod_full_name}.gem
 %{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/
 %exclude %{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/spec

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org