Hello community,

here is the log from the commit of package rubygem-gpgme for openSUSE:Factory 
checked in at 2018-02-14 09:28:12
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-gpgme (Old)
 and      /work/SRC/openSUSE:Factory/.rubygem-gpgme.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rubygem-gpgme"

Wed Feb 14 09:28:12 2018 rev:8 rq:574085 version:2.0.16

Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-gpgme/rubygem-gpgme.changes      
2017-12-06 09:01:30.702566512 +0100
+++ /work/SRC/openSUSE:Factory/.rubygem-gpgme.new/rubygem-gpgme.changes 
2018-02-14 09:28:16.874743547 +0100
@@ -1,0 +2,6 @@
+Tue Jan  9 07:30:50 UTC 2018 - co...@suse.com
+
+- updated to version 2.0.16
+  no changelog found
+
+-------------------------------------------------------------------

Old:
----
  gpgme-2.0.14.gem

New:
----
  gpgme-2.0.16.gem

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

Other differences:
------------------
++++++ rubygem-gpgme.spec ++++++
--- /var/tmp/diff_new_pack.FymZYm/_old  2018-02-14 09:28:18.334690641 +0100
+++ /var/tmp/diff_new_pack.FymZYm/_new  2018-02-14 09:28:18.334690641 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package rubygem-gpgme
 #
-# 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-gpgme
-Version:        2.0.14
+Version:        2.0.16
 Release:        0
 %define mod_name gpgme
 %define mod_full_name %{mod_name}-%{version}

++++++ gpgme-2.0.14.gem -> gpgme-2.0.16.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/gpgme/gpgme_n.c new/ext/gpgme/gpgme_n.c
--- old/ext/gpgme/gpgme_n.c     2017-10-31 09:20:48.000000000 +0100
+++ new/ext/gpgme/gpgme_n.c     2018-01-03 12:52:10.000000000 +0100
@@ -469,6 +469,28 @@
 }
 
 static VALUE
+rb_s_gpgme_data_get_file_name (VALUE dummy, VALUE vdh)
+{
+  gpgme_data_t dh;
+
+  UNWRAP_GPGME_DATA(vdh, dh);
+  const char *result = gpgme_data_get_file_name (dh);
+  return result ? rb_str_new2 (result) : Qnil;
+}
+
+static VALUE
+rb_s_gpgme_data_set_file_name (VALUE dummy, VALUE vdh, VALUE vfile_name)
+{
+  gpgme_data_t dh;
+  gpgme_error_t err;
+
+  UNWRAP_GPGME_DATA(vdh, dh);
+  err = gpgme_data_set_file_name (dh,
+      NIL_P(vfile_name) ? NULL : StringValueCStr(vfile_name));
+  return LONG2NUM(err);
+}
+
+static VALUE
 rb_s_gpgme_new (VALUE dummy, VALUE rctx)
 {
   gpgme_ctx_t ctx;
@@ -2335,6 +2357,10 @@
                             rb_s_gpgme_data_get_encoding, 1);
   rb_define_module_function (mGPGME, "gpgme_data_set_encoding",
                             rb_s_gpgme_data_set_encoding, 2);
+  rb_define_module_function (mGPGME, "gpgme_data_get_file_name",
+                            rb_s_gpgme_data_get_file_name, 1);
+  rb_define_module_function (mGPGME, "gpgme_data_set_file_name",
+                            rb_s_gpgme_data_set_file_name, 2);
 
   /* Creating Contexts */
   rb_define_module_function (mGPGME, "gpgme_new",
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/gpgme/data.rb new/lib/gpgme/data.rb
--- old/lib/gpgme/data.rb       2017-10-31 09:20:48.000000000 +0100
+++ new/lib/gpgme/data.rb       2018-01-03 12:52:10.000000000 +0100
@@ -177,6 +177,23 @@
     end
 
     ##
+    # Return the file name of the underlying data.
+    def file_name
+      GPGME::gpgme_data_get_file_name(self)
+    end
+
+    ##
+    # Sets the file name for this buffer.
+    #
+    # @raise [GPGME::Error::InvalidValue] if the value isn't accepted.
+    def file_name=(file_name)
+      err = GPGME::gpgme_data_set_file_name(self, file_name)
+      exc = GPGME::error_to_exception(err)
+      raise exc if exc
+      file_name
+    end
+
+    ##
     # Return the entire content of the data object as string.
     def to_s
       pos = seek(0, IO::SEEK_CUR)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/gpgme/version.rb new/lib/gpgme/version.rb
--- old/lib/gpgme/version.rb    2017-10-31 09:20:48.000000000 +0100
+++ new/lib/gpgme/version.rb    2018-01-03 12:52:10.000000000 +0100
@@ -1,4 +1,4 @@
 module GPGME
   # The version of GPGME ruby binding you are using
-  VERSION = "2.0.14"
+  VERSION = "2.0.16"
 end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata        2017-10-31 09:20:48.000000000 +0100
+++ new/metadata        2018-01-03 12:52:10.000000000 +0100
@@ -1,7 +1,7 @@
 --- !ruby/object:Gem::Specification
 name: gpgme
 version: !ruby/object:Gem::Version
-  version: 2.0.14
+  version: 2.0.16
 platform: ruby
 authors:
 - Daiki Ueno
@@ -9,7 +9,7 @@
 autorequire: 
 bindir: bin
 cert_chain: []
-date: 2017-10-30 00:00:00.000000000 Z
+date: 2018-01-03 00:00:00.000000000 Z
 dependencies:
 - !ruby/object:Gem::Dependency
   name: mini_portile2
@@ -17,14 +17,14 @@
     requirements:
     - - "~>"
       - !ruby/object:Gem::Version
-        version: '2.1'
+        version: '2.3'
   type: :runtime
   prerelease: false
   version_requirements: !ruby/object:Gem::Requirement
     requirements:
     - - "~>"
       - !ruby/object:Gem::Version
-        version: '2.1'
+        version: '2.3'
 - !ruby/object:Gem::Dependency
   name: mocha
   requirement: !ruby/object:Gem::Requirement
@@ -59,14 +59,14 @@
     requirements:
     - - "~>"
       - !ruby/object:Gem::Version
-        version: 0.6.7
+        version: 0.9.11
   type: :development
   prerelease: false
   version_requirements: !ruby/object:Gem::Requirement
     requirements:
     - - "~>"
       - !ruby/object:Gem::Version
-        version: 0.6.7
+        version: 0.9.11
 - !ruby/object:Gem::Dependency
   name: coveralls
   requirement: !ruby/object:Gem::Requirement
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/test/data_test.rb new/test/data_test.rb
--- old/test/data_test.rb       2017-10-31 09:20:48.000000000 +0100
+++ new/test/data_test.rb       2018-01-03 12:52:10.000000000 +0100
@@ -113,6 +113,21 @@
     end
   end
 
+  describe :file_name do
+    it "has no name by default" do
+      data = GPGME::Data.new("wadus")
+      assert_nil data.file_name
+    end
+
+    it "can set file_name" do
+      data = GPGME::Data.new("wadus")
+      [ "foo.bar", nil ].each do |file_name|
+        data.file_name = file_name
+        assert_equal file_name, data.file_name
+      end
+    end
+  end
+
   describe :to_s do
     it "returns the entire content of data" do
       data = GPGME::Data.new("wadus")


Reply via email to