Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package rubygem-ruby-dbus for
openSUSE:Factory checked in at 2025-01-07 20:51:08
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-ruby-dbus (Old)
and /work/SRC/openSUSE:Factory/.rubygem-ruby-dbus.new.1881 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-ruby-dbus"
Tue Jan 7 20:51:08 2025 rev:40 rq:1234572 version:0.24.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-ruby-dbus/rubygem-ruby-dbus.changes
2023-11-02 20:20:02.672688820 +0100
+++
/work/SRC/openSUSE:Factory/.rubygem-ruby-dbus.new.1881/rubygem-ruby-dbus.changes
2025-01-07 20:51:25.695972652 +0100
@@ -2 +2 @@
-Wed Oct 11 02:26:54 UTC 2023 - Simon Lees <[email protected]>
+Thu Jan 2 13:45:21 UTC 2025 - Martin Vidner <[email protected]>
@@ -4,2 +4,4 @@
-- Testsuite requires dbus-daemon and dbus-send which are now
- separate packages
+- 0.24.0
+ Bug fixes:
+ * Adapted for Ruby 3.4, which uses a single quote instead of a backtick
+ in exceptions (gh#mvidner/ruby-dbus#145, by Mamoru TASAKA).
Old:
----
ruby-dbus-0.23.1.gem
New:
----
ruby-dbus-0.24.0.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-ruby-dbus.spec ++++++
--- /var/tmp/diff_new_pack.z8edWf/_old 2025-01-07 20:51:26.279996799 +0100
+++ /var/tmp/diff_new_pack.z8edWf/_new 2025-01-07 20:51:26.283996964 +0100
@@ -1,7 +1,7 @@
#
# spec file for package rubygem-ruby-dbus
#
-# Copyright (c) 2023 SUSE LLC
+# Copyright (c) 2025 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-ruby-dbus
-Version: 0.23.1
+Version: 0.24.0
Release: 0
%define mod_name ruby-dbus
%define mod_full_name %{mod_name}-%{version}
@@ -33,8 +33,8 @@
BuildRequires: %{rubygem packaging_rake_tasks}
BuildRequires: %{rubygem rake}
BuildRequires: %{rubygem rspec >= 3.9}
+BuildRequires: dbus-1
BuildRequires: dbus-1-daemon
-BuildRequires: dbus-1-tools
BuildRequires: netcfg
# /MANUAL
BuildRoot: %{_tmppath}/%{name}-%{version}-build
++++++ gem2rpm.yml ++++++
--- /var/tmp/diff_new_pack.z8edWf/_old 2025-01-07 20:51:26.323998618 +0100
+++ /var/tmp/diff_new_pack.z8edWf/_new 2025-01-07 20:51:26.327998783 +0100
@@ -78,6 +78,7 @@
BuildRequires: %{rubygem rake}
BuildRequires: %{rubygem rspec >= 3.9}
BuildRequires: dbus-1
+ BuildRequires: dbus-1-daemon
BuildRequires: netcfg
++++++ ruby-dbus-0.23.1.gem -> ruby-dbus-0.24.0.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/NEWS.md new/NEWS.md
--- old/NEWS.md 2023-10-03 09:47:08.000000000 +0200
+++ new/NEWS.md 2025-01-02 15:13:57.000000000 +0100
@@ -2,6 +2,14 @@
## Unreleased
+## Ruby D-Bus 0.24.0 - 2025-01-02
+
+Bug fixes:
+ * Adapted for Ruby 3.4, which uses a single quote instead of a backtick
+ in exceptions ([#145][], by Mamoru TASAKA).
+
+[#145]: https://github.com/mvidner/ruby-dbus/pull/145
+
## Ruby D-Bus 0.23.1 - 2023-10-03
API:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/VERSION new/VERSION
--- old/VERSION 2023-10-03 09:47:08.000000000 +0200
+++ new/VERSION 2025-01-02 15:13:57.000000000 +0100
@@ -1 +1 @@
-0.23.1
+0.24.0
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/dbus/proxy_object.rb new/lib/dbus/proxy_object.rb
--- old/lib/dbus/proxy_object.rb 2023-10-03 09:47:08.000000000 +0200
+++ new/lib/dbus/proxy_object.rb 2025-01-02 15:13:57.000000000 +0100
@@ -33,6 +33,8 @@
# @return [ApiOptions]
attr_reader :api
+ OPEN_QUOTE = RUBY_VERSION >= "3.4" ? "'" : "`"
+
# Creates a new proxy object living on the given _bus_ at destination
_dest_
# on the given _path_.
def initialize(bus, dest, path, api: ApiOptions::CURRENT)
@@ -58,7 +60,7 @@
def [](intfname)
introspect unless introspected
ifc = @interfaces[intfname]
- raise DBus::Error, "no such interface `#{intfname}' on object
`#{@path}'" unless ifc
+ raise DBus::Error, "no such interface #{OPEN_QUOTE}#{intfname}' on
object #{OPEN_QUOTE}#{@path}'" unless ifc
ifc
end
@@ -127,7 +129,8 @@
# @return [void]
def on_signal(name, &block)
unless @default_iface && has_iface?(@default_iface)
- raise NoMethodError, "undefined signal `#{name}' for DBus interface
`#{@default_iface}' on object `#{@path}'"
+ raise NoMethodError, "undefined signal #{OPEN_QUOTE}#{name}' for DBus
interface "\
+ "#{OPEN_QUOTE}#{@default_iface}' on object
#{OPEN_QUOTE}#{@path}'"
end
@interfaces[@default_iface].on_signal(name, &block)
@@ -151,7 +154,8 @@
# - di not specified
# TODO
# - di is specified but not found in introspection data
- raise NoMethodError, "undefined method `#{name}' for DBus interface
`#{@default_iface}' on object `#{@path}'"
+ raise NoMethodError, "undefined method #{OPEN_QUOTE}#{name}' for DBus
interface "\
+ "#{OPEN_QUOTE}#{@default_iface}' on object
#{OPEN_QUOTE}#{@path}'"
end
begin
@@ -159,10 +163,11 @@
rescue NameError => e
# interesting, foo.method("unknown")
# raises NameError, not NoMethodError
- raise unless e.to_s =~ /undefined method `#{name}'/
+ raise unless e.to_s =~ /undefined method #{OPEN_QUOTE}#{name}'/
# BTW e.exception("...") would preserve the class.
- raise NoMethodError, "undefined method `#{name}' for DBus interface
`#{@default_iface}' on object `#{@path}'"
+ raise NoMethodError, "undefined method #{OPEN_QUOTE}#{name}' for DBus
interface "\
+ "#{OPEN_QUOTE}#{@default_iface}' on object
#{OPEN_QUOTE}#{@path}'"
end
end
# rubocop:enable Lint/MissingSuper
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata 2023-10-03 09:47:08.000000000 +0200
+++ new/metadata 2025-01-02 15:13:57.000000000 +0100
@@ -1,14 +1,13 @@
--- !ruby/object:Gem::Specification
name: ruby-dbus
version: !ruby/object:Gem::Version
- version: 0.23.1
+ version: 0.24.0
platform: ruby
authors:
- Ruby DBus Team
-autorequire:
bindir: bin
cert_chain: []
-date: 2023-10-03 00:00:00.000000000 Z
+date: 2025-01-02 00:00:00.000000000 Z
dependencies:
- !ruby/object:Gem::Dependency
name: rexml
@@ -25,6 +24,20 @@
- !ruby/object:Gem::Version
version: '0'
- !ruby/object:Gem::Dependency
+ name: base64
+ requirement: !ruby/object:Gem::Requirement
+ requirements:
+ - - ">="
+ - !ruby/object:Gem::Version
+ version: '0'
+ type: :development
+ prerelease: false
+ version_requirements: !ruby/object:Gem::Requirement
+ requirements:
+ - - ">="
+ - !ruby/object:Gem::Version
+ version: '0'
+- !ruby/object:Gem::Dependency
name: packaging_rake_tasks
requirement: !ruby/object:Gem::Requirement
requirements:
@@ -224,7 +237,6 @@
licenses:
- LGPL-2.1-or-later
metadata: {}
-post_install_message:
rdoc_options: []
require_paths:
- lib
@@ -239,8 +251,7 @@
- !ruby/object:Gem::Version
version: '0'
requirements: []
-rubygems_version: 3.3.26
-signing_key:
+rubygems_version: 3.6.2
specification_version: 4
summary: Ruby module for interaction with D-Bus
test_files: []
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/ruby-dbus.gemspec new/ruby-dbus.gemspec
--- old/ruby-dbus.gemspec 2023-10-03 09:47:08.000000000 +0200
+++ new/ruby-dbus.gemspec 2025-01-02 15:13:57.000000000 +0100
@@ -28,6 +28,8 @@
s.add_runtime_dependency "rexml"
# s.add_runtime_dependency "nokogiri"
+ # workaround: rubocop-1.0 needs base64 which is no longer in stdlib in newer
rubies
+ s.add_development_dependency "base64"
s.add_development_dependency "packaging_rake_tasks"
s.add_development_dependency "rake"
s.add_development_dependency "rspec", "~> 3"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/spec/signal_spec.rb new/spec/signal_spec.rb
--- old/spec/signal_spec.rb 2023-10-03 09:47:08.000000000 +0200
+++ new/spec/signal_spec.rb 2025-01-02 15:13:57.000000000 +0100
@@ -107,9 +107,10 @@
describe DBus::ProxyObject do
describe "#on_signal" do
it "raises a descriptive error when the default_iface is wrong" do
+ open_quote = RUBY_VERSION >= "3.4" ? "'" : "`"
@obj.default_iface = "org.ruby.NoSuchInterface"
expect { @obj.on_signal("Foo") {} }
- .to raise_error(NoMethodError, /undefined signal.*interface
`org.ruby.NoSuchInterface'/)
+ .to raise_error(NoMethodError, /undefined signal.*interface
#{open_quote}org.ruby.NoSuchInterface'/)
end
end
end