Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package rubygem-dry-configurable for
openSUSE:Factory checked in at 2021-01-21 21:55:31
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-dry-configurable (Old)
and /work/SRC/openSUSE:Factory/.rubygem-dry-configurable.new.28504 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-dry-configurable"
Thu Jan 21 21:55:31 2021 rev:2 rq:865184 version:0.12.0
Changes:
--------
---
/work/SRC/openSUSE:Factory/rubygem-dry-configurable/rubygem-dry-configurable.changes
2020-07-01 18:23:15.070053002 +0200
+++
/work/SRC/openSUSE:Factory/.rubygem-dry-configurable.new.28504/rubygem-dry-configurable.changes
2021-01-21 21:55:31.997801363 +0100
@@ -1,0 +2,7 @@
+Wed Jan 20 12:33:11 UTC 2021 - Stephan Kulow <[email protected]>
+
+updated to version 0.12.0
+ see installed CHANGELOG.md
+
+
+-------------------------------------------------------------------
Old:
----
dry-configurable-0.11.6.gem
New:
----
dry-configurable-0.12.0.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-dry-configurable.spec ++++++
--- /var/tmp/diff_new_pack.IQhGXm/_old 2021-01-21 21:55:32.553801750 +0100
+++ /var/tmp/diff_new_pack.IQhGXm/_new 2021-01-21 21:55:32.557801753 +0100
@@ -1,7 +1,7 @@
#
# spec file for package rubygem-dry-configurable
#
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -24,12 +24,12 @@
#
Name: rubygem-dry-configurable
-Version: 0.11.6
+Version: 0.12.0
Release: 0
%define mod_name dry-configurable
%define mod_full_name %{mod_name}-%{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-BuildRequires: %{ruby >= 2.4.0}
+BuildRequires: %{ruby >= 2.5.0}
BuildRequires: %{rubygem gem2rpm}
BuildRequires: ruby-macros >= 5
URL: https://dry-rb.org/gems/dry-configurable
++++++ dry-configurable-0.11.6.gem -> dry-configurable-0.12.0.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md
--- old/CHANGELOG.md 2020-06-22 14:52:09.000000000 +0200
+++ new/CHANGELOG.md 2020-12-26 17:35:02.000000000 +0100
@@ -1,4 +1,20 @@
-## unreleased
+<!--- DO NOT EDIT THIS FILE - IT'S AUTOMATICALLY GENERATED VIA DEVTOOLS --->
+
+## 0.12.0 2020-12-26
+
+
+### Fixed
+
+- Setting values provided by defaults and/or pre-processor blocks are no
longer accidentally memoized across instances of classes including
Dry::Configurable (#99) (@timriley & @esparta)
+
+### Changed
+
+- Instance behavior is now prepended, so that if you have your own
`initialize`, calling `super` is no longer required (see #98 for more details)
(@zabolotnov87)
+- Switched to equalizer from dry-core (@solnic)
+
+[Compare
v0.11.6...v0.12.0](https://github.com/dry-rb/dry-configurable/compare/v0.11.6...v0.12.0)
+
+## 0.11.6 2020-06-22
### Changed
@@ -6,7 +22,7 @@
- A meaningful error is raised when the extension is included more than once
(issue #89 fixed via #94) (@landongrindheim)
- Evaluate setting input immediately when input is provided. This allows for
earlier feedback from constructors designed to raise errors on invalid input
(#95) (@timriley)
-[Compare
v0.11.5...master](https://github.com/dry-rb/dry-configurable/compare/v0.11.5...master)
+[Compare
v0.11.5...v0.11.6](https://github.com/dry-rb/dry-configurable/compare/v0.11.5...v0.11.6)
## 0.11.5 2020-03-23
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/README.md new/README.md
--- old/README.md 2020-06-22 14:52:09.000000000 +0200
+++ new/README.md 2020-12-26 17:35:02.000000000 +0100
@@ -21,7 +21,7 @@
This library officially supports the following Ruby versions:
-* MRI >= `2.4`
+* MRI >= `2.5`
* jruby >= `9.2`
## License
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/dry-configurable.gemspec new/dry-configurable.gemspec
--- old/dry-configurable.gemspec 2020-06-22 14:52:09.000000000 +0200
+++ new/dry-configurable.gemspec 2020-12-26 17:35:02.000000000 +0100
@@ -25,12 +25,11 @@
spec.metadata['source_code_uri'] =
'https://github.com/dry-rb/dry-configurable'
spec.metadata['bug_tracker_uri'] =
'https://github.com/dry-rb/dry-configurable/issues'
- spec.required_ruby_version = ">= 2.4.0"
+ spec.required_ruby_version = ">= 2.5.0"
# to update dependencies edit project.yml
spec.add_runtime_dependency "concurrent-ruby", "~> 1.0"
- spec.add_runtime_dependency "dry-core", "~> 0.4", ">= 0.4.7"
- spec.add_runtime_dependency "dry-equalizer", "~> 0.2"
+ spec.add_runtime_dependency "dry-core", "~> 0.5", ">= 0.5.0"
spec.add_development_dependency "bundler"
spec.add_development_dependency "rake"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/dry/configurable/config.rb
new/lib/dry/configurable/config.rb
--- old/lib/dry/configurable/config.rb 2020-06-22 14:52:09.000000000 +0200
+++ new/lib/dry/configurable/config.rb 2020-12-26 17:35:02.000000000 +0100
@@ -2,7 +2,7 @@
require 'concurrent/map'
-require 'dry/equalizer'
+require 'dry/core/equalizer'
require 'dry/configurable/constants'
require 'dry/configurable/errors'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/dry/configurable/setting.rb
new/lib/dry/configurable/setting.rb
--- old/lib/dry/configurable/setting.rb 2020-06-22 14:52:09.000000000 +0200
+++ new/lib/dry/configurable/setting.rb 2020-12-26 17:35:02.000000000 +0100
@@ -2,7 +2,7 @@
require 'set'
-require 'dry/equalizer'
+require 'dry/core/equalizer'
require 'dry/configurable/constants'
require 'dry/configurable/config'
@@ -54,10 +54,15 @@
end
# @api private
+ def self.clonable_value?(value)
+ CLONABLE_VALUE_TYPES.any? { |type| value.is_a?(type) }
+ end
+
+ # @api private
def initialize(name, input: Undefined, default: Undefined, **options)
@name = name
@writer_name = :"#{name}="
- @input = input.equal?(Undefined) ? default : input
+ @input = input
@default = default
@options = options
@@ -109,23 +114,20 @@
writer_name.equal?(meth)
end
- # @api private
- def clonable_value?
- CLONABLE_VALUE_TYPES.any? { |type| value.is_a?(type) }
- end
-
private
# @api private
def initialize_copy(source)
super
- @value = source.value.dup if source.input_defined? &&
source.clonable_value?
+ @input = source.input.dup if Setting.clonable_value?(source.input)
+ @default = source.default.dup if
Setting.clonable_value?(source.default)
+ @value = source.value.dup if source.evaluated? &&
Setting.clonable_value?(source.value)
@options = source.options.dup
end
# @api private
def evaluate
- @value = constructor[input.equal?(Undefined) ? nil : input]
+ @value = constructor[Undefined.coalesce(input, default, nil)]
end
end
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/dry/configurable/settings.rb
new/lib/dry/configurable/settings.rb
--- old/lib/dry/configurable/settings.rb 2020-06-22 14:52:09.000000000
+0200
+++ new/lib/dry/configurable/settings.rb 2020-12-26 17:35:02.000000000
+0100
@@ -2,7 +2,7 @@
require 'concurrent/map'
-require 'dry/equalizer'
+require 'dry/core/equalizer'
require 'dry/configurable/constants'
module Dry
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/dry/configurable/version.rb
new/lib/dry/configurable/version.rb
--- old/lib/dry/configurable/version.rb 2020-06-22 14:52:09.000000000 +0200
+++ new/lib/dry/configurable/version.rb 2020-12-26 17:35:02.000000000 +0100
@@ -3,6 +3,6 @@
module Dry
module Configurable
# @api public
- VERSION = '0.11.6'
+ VERSION = '0.12.0'
end
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/dry/configurable.rb new/lib/dry/configurable.rb
--- old/lib/dry/configurable.rb 2020-06-22 14:52:09.000000000 +0200
+++ new/lib/dry/configurable.rb 2020-12-26 17:35:02.000000000 +0100
@@ -57,7 +57,7 @@
super
klass.class_eval do
extend(ClassMethods)
- include(InstanceMethods)
+ prepend(InstanceMethods)
class << self
undef :config
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata 2020-06-22 14:52:09.000000000 +0200
+++ new/metadata 2020-12-26 17:35:02.000000000 +0100
@@ -1,14 +1,14 @@
--- !ruby/object:Gem::Specification
name: dry-configurable
version: !ruby/object:Gem::Version
- version: 0.11.6
+ version: 0.12.0
platform: ruby
authors:
- Andy Holland
autorequire:
bindir: bin
cert_chain: []
-date: 2020-06-22 00:00:00.000000000 Z
+date: 2020-12-26 00:00:00.000000000 Z
dependencies:
- !ruby/object:Gem::Dependency
name: concurrent-ruby
@@ -30,34 +30,20 @@
requirements:
- - "~>"
- !ruby/object:Gem::Version
- version: '0.4'
+ version: '0.5'
- - ">="
- !ruby/object:Gem::Version
- version: 0.4.7
+ version: 0.5.0
type: :runtime
prerelease: false
version_requirements: !ruby/object:Gem::Requirement
requirements:
- - "~>"
- !ruby/object:Gem::Version
- version: '0.4'
+ version: '0.5'
- - ">="
- !ruby/object:Gem::Version
- version: 0.4.7
-- !ruby/object:Gem::Dependency
- name: dry-equalizer
- requirement: !ruby/object:Gem::Requirement
- requirements:
- - - "~>"
- - !ruby/object:Gem::Version
- version: '0.2'
- type: :runtime
- prerelease: false
- version_requirements: !ruby/object:Gem::Requirement
- requirements:
- - - "~>"
- - !ruby/object:Gem::Version
- version: '0.2'
+ version: 0.5.0
- !ruby/object:Gem::Dependency
name: bundler
requirement: !ruby/object:Gem::Requirement
@@ -142,14 +128,14 @@
requirements:
- - ">="
- !ruby/object:Gem::Version
- version: 2.4.0
+ version: 2.5.0
required_rubygems_version: !ruby/object:Gem::Requirement
requirements:
- - ">="
- !ruby/object:Gem::Version
version: '0'
requirements: []
-rubygems_version: 3.0.3
+rubygems_version: 3.1.4
signing_key:
specification_version: 4
summary: A mixin to add configuration functionality to your classes