Hello community,
here is the log from the commit of package rubygem-activesupport-5.2 for
openSUSE:Factory checked in at 2019-01-21 10:26:07
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-activesupport-5.2 (Old)
and /work/SRC/openSUSE:Factory/.rubygem-activesupport-5.2.new.28833 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-activesupport-5.2"
Mon Jan 21 10:26:07 2019 rev:4 rq:656386 version:5.2.2
Changes:
--------
---
/work/SRC/openSUSE:Factory/rubygem-activesupport-5.2/rubygem-activesupport-5.2.changes
2018-12-06 12:17:45.797491046 +0100
+++
/work/SRC/openSUSE:Factory/.rubygem-activesupport-5.2.new.28833/rubygem-activesupport-5.2.changes
2019-01-21 10:26:07.825699408 +0100
@@ -1,0 +2,25 @@
+Sat Dec 8 16:17:32 UTC 2018 - Stephan Kulow <[email protected]>
+
+- updated to version 5.2.2
+ see installed CHANGELOG.md
+
+ ## Rails 5.2.2 (December 04, 2018) ##
+
+ * Fix bug where `#to_options` for
`ActiveSupport::HashWithIndifferentAccess`
+ would not act as alias for `#symbolize_keys`.
+
+ *Nick Weiland*
+
+ * Improve the logic that detects non-autoloaded constants.
+
+ *Jan Habermann*, *Xavier Noria*
+
+ * Fix bug where `URI.unescape` would fail with mixed Unicode/escaped
character input:
+
+ URI.unescape("バ") # => "バ"
+ URI.unescape("%E3%83%90") # => "バ"
+ URI.unescape("バ%E3%83%90") # => Encoding::CompatibilityError
+
+ *Ashe Connor*, *Aaron Patterson*
+
+-------------------------------------------------------------------
Old:
----
activesupport-5.2.1.1.gem
New:
----
activesupport-5.2.2.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-activesupport-5.2.spec ++++++
--- /var/tmp/diff_new_pack.ZgWBkQ/_old 2019-01-21 10:26:08.205698991 +0100
+++ /var/tmp/diff_new_pack.ZgWBkQ/_new 2019-01-21 10:26:08.209698987 +0100
@@ -12,7 +12,7 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
@@ -24,7 +24,7 @@
#
Name: rubygem-activesupport-5.2
-Version: 5.2.1.1
+Version: 5.2.2
Release: 0
%define mod_name activesupport
%define mod_full_name %{mod_name}-%{version}
@@ -36,10 +36,10 @@
%endif
# /MANUAL
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-BuildRequires: ruby-macros >= 5
BuildRequires: %{ruby >= 2.2.2}
BuildRequires: %{rubygem gem2rpm}
BuildRequires: %{rubygem rdoc > 3.10}
+BuildRequires: ruby-macros >= 5
Url: http://rubyonrails.org
Source: https://rubygems.org/gems/%{mod_full_name}.gem
Source1: gem2rpm.yml
++++++ activesupport-5.2.1.1.gem -> activesupport-5.2.2.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md
--- old/CHANGELOG.md 2018-11-27 21:12:10.000000000 +0100
+++ new/CHANGELOG.md 2018-12-04 19:11:58.000000000 +0100
@@ -1,3 +1,23 @@
+## Rails 5.2.2 (December 04, 2018) ##
+
+* Fix bug where `#to_options` for `ActiveSupport::HashWithIndifferentAccess`
+ would not act as alias for `#symbolize_keys`.
+
+ *Nick Weiland*
+
+* Improve the logic that detects non-autoloaded constants.
+
+ *Jan Habermann*, *Xavier Noria*
+
+* Fix bug where `URI.unescape` would fail with mixed Unicode/escaped
character input:
+
+ URI.unescape("\xe3\x83\x90") # => "バ"
+ URI.unescape("%E3%83%90") # => "バ"
+ URI.unescape("\xe3\x83\x90%E3%83%90") # =>
Encoding::CompatibilityError
+
+ *Ashe Connor*, *Aaron Patterson*
+
+
## Rails 5.2.1.1 (November 27, 2018) ##
* No changes.
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/active_support/core_ext/file/atomic.rb
new/lib/active_support/core_ext/file/atomic.rb
--- old/lib/active_support/core_ext/file/atomic.rb 2018-11-27
21:12:11.000000000 +0100
+++ new/lib/active_support/core_ext/file/atomic.rb 2018-12-04
19:11:58.000000000 +0100
@@ -29,7 +29,7 @@
old_stat = if exist?(file_name)
# Get original file permissions
stat(file_name)
- elsif temp_dir != dirname(file_name)
+ else
# If not possible, probe which are the default permissions in the
# destination directory.
probe_stat_in(dirname(file_name))
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/active_support/core_ext/uri.rb
new/lib/active_support/core_ext/uri.rb
--- old/lib/active_support/core_ext/uri.rb 2018-11-27 21:12:11.000000000
+0100
+++ new/lib/active_support/core_ext/uri.rb 2018-12-04 19:11:58.000000000
+0100
@@ -10,7 +10,7 @@
# YK: My initial experiments say yes, but let's be sure please
enc = str.encoding
enc = Encoding::UTF_8 if enc == Encoding::US_ASCII
- str.gsub(escaped) { |match| [match[1, 2].hex].pack("C")
}.force_encoding(enc)
+ str.dup.force_encoding(Encoding::ASCII_8BIT).gsub(escaped) { |match|
[match[1, 2].hex].pack("C") }.force_encoding(enc)
end
end
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/active_support/dependencies.rb
new/lib/active_support/dependencies.rb
--- old/lib/active_support/dependencies.rb 2018-11-27 21:12:11.000000000
+0100
+++ new/lib/active_support/dependencies.rb 2018-12-04 19:11:58.000000000
+0100
@@ -97,6 +97,8 @@
# parent.rb then requires namespace/child.rb, the stack will look like
# [[Object], [Namespace]].
+ attr_reader :watching
+
def initialize
@watching = []
@stack = Hash.new { |h, k| h[k] = [] }
@@ -248,7 +250,9 @@
def load_dependency(file)
if Dependencies.load? && Dependencies.constant_watch_stack.watching?
- Dependencies.new_constants_in(Object) { yield }
+ descs = Dependencies.constant_watch_stack.watching.flatten.uniq
+
+ Dependencies.new_constants_in(*descs) { yield }
else
yield
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/active_support/deprecation/method_wrappers.rb
new/lib/active_support/deprecation/method_wrappers.rb
--- old/lib/active_support/deprecation/method_wrappers.rb 2018-11-27
21:12:11.000000000 +0100
+++ new/lib/active_support/deprecation/method_wrappers.rb 2018-12-04
19:11:58.000000000 +0100
@@ -54,23 +54,26 @@
deprecator = options.delete(:deprecator) || self
method_names += options.keys
- mod = Module.new do
- method_names.each do |method_name|
- define_method(method_name) do |*args, &block|
- deprecator.deprecation_warning(method_name, options[method_name])
- super(*args, &block)
- end
+ method_names.each do |method_name|
+ aliased_method, punctuation = method_name.to_s.sub(/([?!=])$/, ""),
$1
+ with_method = "#{aliased_method}_with_deprecation#{punctuation}"
+ without_method =
"#{aliased_method}_without_deprecation#{punctuation}"
- case
- when target_module.protected_method_defined?(method_name)
- protected method_name
- when target_module.private_method_defined?(method_name)
- private method_name
- end
+ target_module.send(:define_method, with_method) do |*args, &block|
+ deprecator.deprecation_warning(method_name, options[method_name])
+ send(without_method, *args, &block)
end
- end
- target_module.prepend(mod)
+ target_module.send(:alias_method, without_method, method_name)
+ target_module.send(:alias_method, method_name, with_method)
+
+ case
+ when target_module.protected_method_defined?(without_method)
+ target_module.send(:protected, method_name)
+ when target_module.private_method_defined?(without_method)
+ target_module.send(:private, method_name)
+ end
+ end
end
end
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/active_support/encrypted_configuration.rb
new/lib/active_support/encrypted_configuration.rb
--- old/lib/active_support/encrypted_configuration.rb 2018-11-27
21:12:11.000000000 +0100
+++ new/lib/active_support/encrypted_configuration.rb 2018-12-04
19:11:58.000000000 +0100
@@ -43,7 +43,7 @@
end
def deserialize(config)
- config.present? ? YAML.load(config, content_path) : {}
+ YAML.load(config).presence || {}
end
end
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/active_support/gem_version.rb
new/lib/active_support/gem_version.rb
--- old/lib/active_support/gem_version.rb 2018-11-27 21:12:11.000000000
+0100
+++ new/lib/active_support/gem_version.rb 2018-12-04 19:11:58.000000000
+0100
@@ -9,8 +9,8 @@
module VERSION
MAJOR = 5
MINOR = 2
- TINY = 1
- PRE = "1"
+ TINY = 2
+ PRE = nil
STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/active_support/hash_with_indifferent_access.rb
new/lib/active_support/hash_with_indifferent_access.rb
--- old/lib/active_support/hash_with_indifferent_access.rb 2018-11-27
21:12:11.000000000 +0100
+++ new/lib/active_support/hash_with_indifferent_access.rb 2018-12-04
19:11:58.000000000 +0100
@@ -288,6 +288,7 @@
undef :symbolize_keys!
undef :deep_symbolize_keys!
def symbolize_keys; to_hash.symbolize_keys! end
+ alias_method :to_options, :symbolize_keys
def deep_symbolize_keys; to_hash.deep_symbolize_keys! end
def to_options!; self end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/active_support/i18n_railtie.rb
new/lib/active_support/i18n_railtie.rb
--- old/lib/active_support/i18n_railtie.rb 2018-11-27 21:12:11.000000000
+0100
+++ new/lib/active_support/i18n_railtie.rb 2018-12-04 19:11:58.000000000
+0100
@@ -88,9 +88,13 @@
when Hash, Array
Array.wrap(fallbacks)
else # TrueClass
- []
+ [I18n.default_locale]
end
+ if args.empty? || args.first.is_a?(Hash)
+ args.unshift I18n.default_locale
+ end
+
I18n.fallbacks = I18n::Locale::Fallbacks.new(*args)
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/active_support/subscriber.rb
new/lib/active_support/subscriber.rb
--- old/lib/active_support/subscriber.rb 2018-11-27 21:12:11.000000000
+0100
+++ new/lib/active_support/subscriber.rb 2018-12-04 19:11:58.000000000
+0100
@@ -84,7 +84,7 @@
end
def start(name, id, payload)
- e = ActiveSupport::Notifications::Event.new(name, Time.now, nil, id,
payload)
+ e = ActiveSupport::Notifications::Event.new(name, now, nil, id, payload)
parent = event_stack.last
parent << e if parent
@@ -92,7 +92,7 @@
end
def finish(name, id, payload)
- finished = Time.now
+ finished = now
event = event_stack.pop
event.end = finished
event.payload.merge!(payload)
@@ -106,6 +106,10 @@
def event_stack
SubscriberQueueRegistry.instance.get_queue(@queue_key)
end
+
+ def now
+ Process.clock_gettime(Process::CLOCK_MONOTONIC)
+ end
end
# This is a registry for all the event stacks kept for subscribers.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata 2018-11-27 21:12:10.000000000 +0100
+++ new/metadata 2018-12-04 19:11:58.000000000 +0100
@@ -1,14 +1,14 @@
--- !ruby/object:Gem::Specification
name: activesupport
version: !ruby/object:Gem::Version
- version: 5.2.1.1
+ version: 5.2.2
platform: ruby
authors:
- David Heinemeier Hansson
autorequire:
bindir: bin
cert_chain: []
-date: 2018-11-27 00:00:00.000000000 Z
+date: 2018-12-04 00:00:00.000000000 Z
dependencies:
- !ruby/object:Gem::Dependency
name: i18n
@@ -331,8 +331,8 @@
licenses:
- MIT
metadata:
- source_code_uri: https://github.com/rails/rails/tree/v5.2.1.1/activesupport
- changelog_uri:
https://github.com/rails/rails/blob/v5.2.1.1/activesupport/CHANGELOG.md
+ source_code_uri: https://github.com/rails/rails/tree/v5.2.2/activesupport
+ changelog_uri:
https://github.com/rails/rails/blob/v5.2.2/activesupport/CHANGELOG.md
post_install_message:
rdoc_options:
- "--encoding"