Hello community,

here is the log from the commit of package rubygem-sqlite3 for openSUSE:Factory 
checked in at 2020-03-07 21:40:10
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-sqlite3 (Old)
 and      /work/SRC/openSUSE:Factory/.rubygem-sqlite3.new.26092 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rubygem-sqlite3"

Sat Mar  7 21:40:10 2020 rev:30 rq:773854 version:1.4.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-sqlite3/rubygem-sqlite3.changes  
2019-06-19 21:01:13.758129867 +0200
+++ 
/work/SRC/openSUSE:Factory/.rubygem-sqlite3.new.26092/rubygem-sqlite3.changes   
    2020-03-07 21:40:19.632356767 +0100
@@ -1,0 +2,18 @@
+Mon Feb 10 15:52:25 UTC 2020 - Stephan Kulow <[email protected]>
+
+- updated to version 1.4.2
+ see installed CHANGELOG.rdoc
+
+  === 1.4.2
+  
+  * Travis: Drop unused setting "sudo: false"
+  * The taint mechanism will be deprecated in Ruby 2.7
+  * Fix Ruby 2.7 rb_check_safe_obj warnings
+  * Update travis config
+  
+  === 1.4.1
+  
+  * Don't mandate dl functions for the extention build
+  * bumping version
+
+-------------------------------------------------------------------

Old:
----
  sqlite3-1.4.1.gem

New:
----
  sqlite3-1.4.2.gem

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ rubygem-sqlite3.spec ++++++
--- /var/tmp/diff_new_pack.hQj8G0/_old  2020-03-07 21:40:20.408357291 +0100
+++ /var/tmp/diff_new_pack.hQj8G0/_new  2020-03-07 21:40:20.408357291 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package rubygem-sqlite3
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # 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-sqlite3
-Version:        1.4.1
+Version:        1.4.2
 Release:        0
 %define mod_name sqlite3
 %define mod_full_name %{mod_name}-%{version}
@@ -36,7 +36,7 @@
 BuildRequires:  %{rubygem gem2rpm}
 BuildRequires:  %{rubygem rdoc > 3.10}
 BuildRequires:  ruby-macros >= 5
-Url:            https://github.com/sparklemotion/sqlite3-ruby
+URL:            https://github.com/sparklemotion/sqlite3-ruby
 Source:         https://rubygems.org/gems/%{mod_full_name}.gem
 Source1:        gem2rpm.yml
 Summary:        This module allows Ruby programs to interface with the SQLite3

++++++ sqlite3-1.4.1.gem -> sqlite3-1.4.2.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/.travis.yml new/.travis.yml
--- old/.travis.yml     2019-04-30 01:13:05.000000000 +0200
+++ new/.travis.yml     2019-12-18 21:19:31.000000000 +0100
@@ -1,9 +1,8 @@
-sudo: false
 language: ruby
 cache: bundler
 before_install:
-  - gem update --system
-  - gem install bundler
+  - gem update --system 2.7.7
+  - gem install bundler -v 1.16.2
 addons:
   apt:
     packages:
@@ -26,6 +25,8 @@
   - 2.3
   - 2.4
   - 2.5
+  - 2.6
+  - 2.7
   - ruby-head
 matrix:
   allow_failures:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/CHANGELOG.rdoc new/CHANGELOG.rdoc
--- old/CHANGELOG.rdoc  2019-04-30 01:13:05.000000000 +0200
+++ new/CHANGELOG.rdoc  2019-12-18 21:19:31.000000000 +0100
@@ -1,3 +1,15 @@
+=== 1.4.2
+
+* Travis: Drop unused setting "sudo: false"
+* The taint mechanism will be deprecated in Ruby 2.7
+* Fix Ruby 2.7 rb_check_safe_obj warnings
+* Update travis config
+
+=== 1.4.1
+
+* Don't mandate dl functions for the extention build
+* bumping version
+
 === 1.4.0
 
 * Enhancements
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ext/sqlite3/database.c new/ext/sqlite3/database.c
--- old/ext/sqlite3/database.c  2019-04-30 01:13:05.000000000 +0200
+++ new/ext/sqlite3/database.c  2019-12-18 21:19:31.000000000 +0100
@@ -40,12 +40,14 @@
 
   Data_Get_Struct(self, sqlite3Ruby, ctx);
 
+#if defined TAINTING_SUPPORT
 #if defined StringValueCStr
   StringValuePtr(file);
   rb_check_safe_obj(file);
 #else
   Check_SafeStr(file);
 #endif
+#endif
 
       status = sqlite3_open_v2(
           StringValuePtr(file),
@@ -213,16 +215,16 @@
       return rb_float_new(sqlite3_value_double(val));
       break;
     case SQLITE_TEXT:
-      return rb_tainted_str_new2((const char *)sqlite3_value_text(val));
+      return rb_str_new2((const char *)sqlite3_value_text(val));
       break;
     case SQLITE_BLOB: {
       /* Sqlite warns calling sqlite3_value_bytes may invalidate pointer from 
sqlite3_value_blob,
          so we explicitly get the length before getting blob pointer.
-         Note that rb_str_new and rb_tainted_str_new apparently create string 
with ASCII-8BIT (BINARY) encoding,
+         Note that rb_str_new apparently create string with ASCII-8BIT 
(BINARY) encoding,
          which is what we want, as blobs are binary
        */
       int len = sqlite3_value_bytes(val);
-      return rb_tainted_str_new((const char *)sqlite3_value_blob(val), len);
+      return rb_str_new((const char *)sqlite3_value_blob(val), len);
       break;
     }
     case SQLITE_NULL:
@@ -761,12 +763,14 @@
 
   Data_Get_Struct(self, sqlite3Ruby, ctx);
 
+#if defined TAINTING_SUPPORT
 #if defined StringValueCStr
   StringValuePtr(file);
   rb_check_safe_obj(file);
 #else
   Check_SafeStr(file);
 #endif
+#endif
 
   status = sqlite3_open16(utf16_string_value_ptr(file), &ctx->db);
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ext/sqlite3/extconf.rb new/ext/sqlite3/extconf.rb
--- old/ext/sqlite3/extconf.rb  2019-04-30 01:13:05.000000000 +0200
+++ new/ext/sqlite3/extconf.rb  2019-12-18 21:19:31.000000000 +0100
@@ -47,6 +47,10 @@
   $CFLAGS << ' -W3'
 end
 
+if RUBY_VERSION < '2.7'
+  $CFLAGS << ' -DTAINTING_SUPPORT'
+end
+
 def asplode missing
   if RUBY_PLATFORM =~ /mingw|mswin/
     abort "#{missing} is missing. Install SQLite3 from " +
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ext/sqlite3/statement.c new/ext/sqlite3/statement.c
--- old/ext/sqlite3/statement.c 2019-04-30 01:13:05.000000000 +0200
+++ new/ext/sqlite3/statement.c 2019-12-18 21:19:31.000000000 +0100
@@ -151,7 +151,7 @@
               break;
             case SQLITE_TEXT:
               {
-                VALUE str = rb_tainted_str_new(
+                VALUE str = rb_str_new(
                     (const char *)sqlite3_column_text(stmt, i),
                     (long)sqlite3_column_bytes(stmt, i)
                 );
@@ -163,7 +163,7 @@
               break;
             case SQLITE_BLOB:
               {
-                VALUE str = rb_tainted_str_new(
+                VALUE str = rb_str_new(
                     (const char *)sqlite3_column_blob(stmt, i),
                     (long)sqlite3_column_bytes(stmt, i)
                 );
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/sqlite3/version.rb new/lib/sqlite3/version.rb
--- old/lib/sqlite3/version.rb  2019-04-30 01:13:05.000000000 +0200
+++ new/lib/sqlite3/version.rb  2019-12-18 21:19:31.000000000 +0100
@@ -1,12 +1,12 @@
 module SQLite3
 
-  VERSION = '1.4.1'
+  VERSION = '1.4.2'
 
   module VersionProxy
 
     MAJOR = 1
-    MINOR = 3
-    TINY  = 13
+    MINOR = 4
+    TINY  = 2
     BUILD = nil
 
     STRING = [ MAJOR, MINOR, TINY, BUILD ].compact.join( "." )
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata        2019-04-30 01:13:05.000000000 +0200
+++ new/metadata        2019-12-18 21:19:31.000000000 +0100
@@ -1,7 +1,7 @@
 --- !ruby/object:Gem::Specification
 name: sqlite3
 version: !ruby/object:Gem::Version
-  version: 1.4.1
+  version: 1.4.2
 platform: ruby
 authors:
 - Jamis Buck
@@ -10,7 +10,7 @@
 autorequire: 
 bindir: bin
 cert_chain: []
-date: 2019-04-29 00:00:00.000000000 Z
+date: 2019-12-18 00:00:00.000000000 Z
 dependencies:
 - !ruby/object:Gem::Dependency
   name: minitest
@@ -18,14 +18,14 @@
     requirements:
     - - "~>"
       - !ruby/object:Gem::Version
-        version: '5.11'
+        version: '5.13'
   type: :development
   prerelease: false
   version_requirements: !ruby/object:Gem::Requirement
     requirements:
     - - "~>"
       - !ruby/object:Gem::Version
-        version: '5.11'
+        version: '5.13'
 - !ruby/object:Gem::Dependency
   name: rake-compiler
   requirement: !ruby/object:Gem::Requirement
@@ -122,14 +122,14 @@
     requirements:
     - - "~>"
       - !ruby/object:Gem::Version
-        version: '3.17'
+        version: '3.20'
   type: :development
   prerelease: false
   version_requirements: !ruby/object:Gem::Requirement
     requirements:
     - - "~>"
       - !ruby/object:Gem::Version
-        version: '3.17'
+        version: '3.20'
 description: |-
   This module allows Ruby programs to interface with the SQLite3
   database engine (http://www.sqlite.org).  You must have the
@@ -237,7 +237,7 @@
     - !ruby/object:Gem::Version
       version: 1.3.5
 requirements: []
-rubygems_version: 3.0.1
+rubygems_version: 3.0.3
 signing_key: 
 specification_version: 4
 summary: This module allows Ruby programs to interface with the SQLite3 
database engine
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/test/test_integration_resultset.rb 
new/test/test_integration_resultset.rb
--- old/test/test_integration_resultset.rb      2019-04-30 01:13:05.000000000 
+0200
+++ new/test/test_integration_resultset.rb      2019-12-18 21:19:31.000000000 
+0100
@@ -105,23 +105,6 @@
     assert_equal hash[1], "foo"
   end
 
-  def test_tainted_results_as_hash
-    @db.results_as_hash = true
-    @result.reset( 1 )
-    row = @result.next
-    row.each do |_, v|
-      assert(v.tainted?) if String === v
-    end
-  end
-
-  def test_tainted_row_values
-    @result.reset( 1 )
-    row = @result.next
-    row.each do |v|
-      assert(v.tainted?) if String === v
-    end
-  end
-
   def test_each
     called = 0
     @result.reset( 1, 2 )
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/test/test_statement.rb new/test/test_statement.rb
--- old/test/test_statement.rb  2019-04-30 01:13:05.000000000 +0200
+++ new/test/test_statement.rb  2019-12-18 21:19:31.000000000 +0100
@@ -198,11 +198,6 @@
       assert_equal ['foo'], r
     end
 
-    def test_tainted
-      r = @stmt.step
-      assert r.first.tainted?
-    end
-
     def test_step_twice
       assert_not_nil @stmt.step
       assert [email protected]?


Reply via email to