Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package rubygem-dry-logic for
openSUSE:Factory checked in at 2022-12-13 18:56:35
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-dry-logic (Old)
and /work/SRC/openSUSE:Factory/.rubygem-dry-logic.new.1835 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-dry-logic"
Tue Dec 13 18:56:35 2022 rev:6 rq:1042632 version:1.5.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-dry-logic/rubygem-dry-logic.changes
2022-10-30 18:28:56.494418620 +0100
+++
/work/SRC/openSUSE:Factory/.rubygem-dry-logic.new.1835/rubygem-dry-logic.changes
2022-12-13 18:56:53.215657844 +0100
@@ -1,0 +2,7 @@
+Wed Dec 7 11:18:31 UTC 2022 - Stephan Kulow <[email protected]>
+
+updated to version 1.5.0
+ see installed CHANGELOG.md
+
+
+-------------------------------------------------------------------
Old:
----
dry-logic-1.3.0.gem
New:
----
dry-logic-1.5.0.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-dry-logic.spec ++++++
--- /var/tmp/diff_new_pack.rBtNVM/_old 2022-12-13 18:56:53.811661026 +0100
+++ /var/tmp/diff_new_pack.rBtNVM/_new 2022-12-13 18:56:53.839661175 +0100
@@ -24,7 +24,7 @@
#
Name: rubygem-dry-logic
-Version: 1.3.0
+Version: 1.5.0
Release: 0
%define mod_name dry-logic
%define mod_full_name %{mod_name}-%{version}
++++++ dry-logic-1.3.0.gem -> dry-logic-1.5.0.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md
--- old/CHANGELOG.md 2022-10-15 07:25:13.000000000 +0200
+++ new/CHANGELOG.md 2022-11-24 19:33:51.000000000 +0100
@@ -1,6 +1,6 @@
<!--- DO NOT EDIT THIS FILE - IT'S AUTOMATICALLY GENERATED VIA DEVTOOLS --->
-## unreleased
+## 1.5.0 2022-11-24
### Added
@@ -9,10 +9,19 @@
### Changed
-- Deprecate `eql?` in favor of `is_eql?` (issue #92 via #98) (@solnic)
-- Deprecate `respond_to?` in favor of `interface?` (issue #73 closed via #99)
(@solnic)
+- Made `Predicates.respond_to?` compatible with `Object#respond_to?` (via
#105) (@solnic)
+- Made `Predicates.eql?` compatible with `Object#eql?` (via #106) (@solnic)
-[Compare
v1.3.0...master](https://github.com/dry-rb/dry-logic/compare/v1.3.0...master)
+[Compare
v1.4.0...v1.5.0](https://github.com/dry-rb/dry-logic/compare/v1.4.0...v1.5.0)
+
+## 1.4.0 2022-11-04
+
+
+### Changed
+
+- Updated to dry-core 1.0 (@flash-gordon + @solnic)
+
+[Compare
v1.3.0...v1.4.0](https://github.com/dry-rb/dry-logic/compare/v1.3.0...v1.4.0)
## 1.3.0 2022-10-15
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/README.md new/README.md
--- old/README.md 2022-10-15 07:25:13.000000000 +0200
+++ new/README.md 2022-11-24 19:33:51.000000000 +0100
@@ -1,22 +1,14 @@
<!--- this file is synced from dry-rb/template-gem project -->
[gem]: https://rubygems.org/gems/dry-logic
[actions]: https://github.com/dry-rb/dry-logic/actions
-[codacy]: https://www.codacy.com/gh/dry-rb/dry-logic
-[chat]: https://dry-rb.zulipchat.com
-[inchpages]: http://inch-ci.org/github/dry-rb/dry-logic
-# dry-logic [][chat]
-
-[][gem]
-[][actions]
-[][codacy]
-[][codacy]
-[][inchpages]
+# dry-logic [][gem]
[][actions]
## Links
* [User documentation](https://dry-rb.org/gems/dry-logic)
* [API documentation](http://rubydoc.info/gems/dry-logic)
+* [Forum](https://discourse.dry-rb.org)
## Supported Ruby versions
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/dry-logic.gemspec new/dry-logic.gemspec
--- old/dry-logic.gemspec 2022-10-15 07:25:13.000000000 +0200
+++ new/dry-logic.gemspec 2022-11-24 19:33:51.000000000 +0100
@@ -30,7 +30,7 @@
# to update dependencies edit project.yml
spec.add_runtime_dependency "concurrent-ruby", "~> 1.0"
- spec.add_runtime_dependency "dry-core", "~> 0.9", ">= 0.9"
+ spec.add_runtime_dependency "dry-core", "~> 1.0", "< 2"
spec.add_runtime_dependency "zeitwerk", "~> 2.6"
spec.add_development_dependency "bundler"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/dry/logic/predicates.rb
new/lib/dry/logic/predicates.rb
--- old/lib/dry/logic/predicates.rb 2022-10-15 07:25:13.000000000 +0200
+++ new/lib/dry/logic/predicates.rb 2022-11-24 19:33:51.000000000 +0100
@@ -1,5 +1,7 @@
# frozen_string_literal: true
+require "dry/core/constants"
+
require "bigdecimal"
require "bigdecimal/util"
require "date"
@@ -7,6 +9,8 @@
module Dry
module Logic
module Predicates
+ include Dry::Core::Constants
+
# rubocop:disable Metrics/ModuleLength
module Methods
def self.uuid_format(version)
@@ -164,12 +168,12 @@
end
def inclusion?(list, input)
- ::Kernel.warn "inclusion is deprecated - use included_in instead."
+ deprecated(:inclusion?, :included_in?)
included_in?(list, input)
end
def exclusion?(list, input)
- ::Kernel.warn "exclusion is deprecated - use excluded_from instead."
+ deprecated(:exclusion?, :excluded_from?)
excluded_from?(list, input)
end
@@ -195,7 +199,10 @@
!includes?(value, input)
end
- def eql?(left, right)
+ # This overrides Object#eql? so we need to make it compatible
+ def eql?(left, right = Undefined)
+ return super(left) if right.equal?(Undefined)
+
left.eql?(right)
end
@@ -254,13 +261,26 @@
format?(URI::RFC3986_Parser::RFC3986_URI, input)
end
- def respond_to?(method, input)
+ # This overrides Object#respond_to? so we need to make it compatible
+ def respond_to?(method, input = Undefined)
+ return super if input.equal?(Undefined)
+
input.respond_to?(method)
end
def predicate(name, &block)
define_singleton_method(name, &block)
end
+
+ def deprecated(name, in_favor_of)
+ Core::Deprecations.warn(
+ "#{name} predicate is deprecated and will " \
+ "be removed in the next major version\n" \
+ "Please use #{in_favor_of} predicate instead",
+ tag: "dry-logic",
+ uplevel: 3
+ )
+ end
end
extend Methods
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/dry/logic/version.rb new/lib/dry/logic/version.rb
--- old/lib/dry/logic/version.rb 2022-10-15 07:25:13.000000000 +0200
+++ new/lib/dry/logic/version.rb 2022-11-24 19:33:51.000000000 +0100
@@ -2,6 +2,6 @@
module Dry
module Logic
- VERSION = "1.3.0"
+ VERSION = "1.5.0"
end
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata 2022-10-15 07:25:13.000000000 +0200
+++ new/metadata 2022-11-24 19:33:51.000000000 +0100
@@ -1,14 +1,14 @@
--- !ruby/object:Gem::Specification
name: dry-logic
version: !ruby/object:Gem::Version
- version: 1.3.0
+ version: 1.5.0
platform: ruby
authors:
- Piotr Solnica
-autorequire:
+autorequire:
bindir: bin
cert_chain: []
-date: 2022-10-15 00:00:00.000000000 Z
+date: 2022-11-24 00:00:00.000000000 Z
dependencies:
- !ruby/object:Gem::Dependency
name: concurrent-ruby
@@ -30,20 +30,20 @@
requirements:
- - "~>"
- !ruby/object:Gem::Version
- version: '0.9'
- - - ">="
+ version: '1.0'
+ - - "<"
- !ruby/object:Gem::Version
- version: '0.9'
+ version: '2'
type: :runtime
prerelease: false
version_requirements: !ruby/object:Gem::Requirement
requirements:
- - "~>"
- !ruby/object:Gem::Version
- version: '0.9'
- - - ">="
+ version: '1.0'
+ - - "<"
- !ruby/object:Gem::Version
- version: '0.9'
+ version: '2'
- !ruby/object:Gem::Dependency
name: zeitwerk
requirement: !ruby/object:Gem::Requirement
@@ -145,7 +145,7 @@
changelog_uri: https://github.com/dry-rb/dry-logic/blob/main/CHANGELOG.md
source_code_uri: https://github.com/dry-rb/dry-logic
bug_tracker_uri: https://github.com/dry-rb/dry-logic/issues
-post_install_message:
+post_install_message:
rdoc_options: []
require_paths:
- lib
@@ -160,8 +160,8 @@
- !ruby/object:Gem::Version
version: '0'
requirements: []
-rubygems_version: 3.3.7
-signing_key:
+rubygems_version: 3.1.6
+signing_key:
specification_version: 4
summary: Predicate logic with rule composition
test_files: []