Hello community,
here is the log from the commit of package rubygem-activesupport-5_0 for
openSUSE:Factory checked in at 2018-07-18 22:48:23
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-activesupport-5_0 (Old)
and /work/SRC/openSUSE:Factory/.rubygem-activesupport-5_0.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-activesupport-5_0"
Wed Jul 18 22:48:23 2018 rev:8 rq:620984 version:5.0.7
Changes:
--------
---
/work/SRC/openSUSE:Factory/rubygem-activesupport-5_0/rubygem-activesupport-5_0.changes
2017-09-26 21:16:17.958564596 +0200
+++
/work/SRC/openSUSE:Factory/.rubygem-activesupport-5_0.new/rubygem-activesupport-5_0.changes
2018-07-18 22:48:24.396061711 +0200
@@ -1,0 +2,24 @@
+Fri Mar 30 04:31:17 UTC 2018 - [email protected]
+
+- updated to version 5.0.7
+ see installed CHANGELOG.md
+
+ ## Rails 5.0.7 (March 29, 2018) ##
+
+ * Return all mappings for a timezone identifier in `country_zones`
+
+ Some timezones like `Europe/London` have multiple mappings in
+ `ActiveSupport::TimeZone::MAPPING` so return all of them instead
+ of the first one found by using `Hash#value`. e.g:
+
+ # Before
+ ActiveSupport::TimeZone.country_zones("GB") # => ["Edinburgh"]
+
+ # After
+ ActiveSupport::TimeZone.country_zones("GB") # => ["Edinburgh",
"London"]
+
+ Fixes #31668.
+
+ *Andrew White*
+
+-------------------------------------------------------------------
Old:
----
activesupport-5.0.6.gem
New:
----
activesupport-5.0.7.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-activesupport-5_0.spec ++++++
--- /var/tmp/diff_new_pack.oZWK0y/_old 2018-07-18 22:48:25.056059524 +0200
+++ /var/tmp/diff_new_pack.oZWK0y/_new 2018-07-18 22:48:25.060059510 +0200
@@ -1,7 +1,7 @@
#
# spec file for package rubygem-activesupport-5_0
#
-# 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-activesupport-5_0
-Version: 5.0.6
+Version: 5.0.7
Release: 0
%define mod_name activesupport
%define mod_full_name %{mod_name}-%{version}
++++++ activesupport-5.0.6.gem -> activesupport-5.0.7.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md
--- old/CHANGELOG.md 2017-09-08 02:44:49.000000000 +0200
+++ new/CHANGELOG.md 2018-03-29 19:57:26.000000000 +0200
@@ -1,3 +1,22 @@
+## Rails 5.0.7 (March 29, 2018) ##
+
+* Return all mappings for a timezone identifier in `country_zones`
+
+ Some timezones like `Europe/London` have multiple mappings in
+ `ActiveSupport::TimeZone::MAPPING` so return all of them instead
+ of the first one found by using `Hash#value`. e.g:
+
+ # Before
+ ActiveSupport::TimeZone.country_zones("GB") # => ["Edinburgh"]
+
+ # After
+ ActiveSupport::TimeZone.country_zones("GB") # => ["Edinburgh",
"London"]
+
+ Fixes #31668.
+
+ *Andrew White*
+
+
## Rails 5.0.6 (September 07, 2017) ##
* 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/date_time/compatibility.rb
new/lib/active_support/core_ext/date_time/compatibility.rb
--- old/lib/active_support/core_ext/date_time/compatibility.rb 2017-09-08
02:44:49.000000000 +0200
+++ new/lib/active_support/core_ext/date_time/compatibility.rb 2018-03-29
19:57:26.000000000 +0200
@@ -1,4 +1,5 @@
require 'active_support/core_ext/date_and_time/compatibility'
+require 'active_support/core_ext/module/remove_method'
class DateTime
include DateAndTime::Compatibility
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/active_support/core_ext/hash/keys.rb
new/lib/active_support/core_ext/hash/keys.rb
--- old/lib/active_support/core_ext/hash/keys.rb 2017-09-08
02:44:49.000000000 +0200
+++ new/lib/active_support/core_ext/hash/keys.rb 2018-03-29
19:57:26.000000000 +0200
@@ -16,7 +16,7 @@
result[yield(key)] = self[key]
end
result
- end
+ end unless method_defined? :transform_keys
# Destructively converts all keys using the +block+ operations.
# Same as +transform_keys+ but modifies +self+.
@@ -26,7 +26,7 @@
self[yield(key)] = delete(key)
end
self
- end
+ end unless method_defined? :transform_keys!
# Returns a new hash with all keys converted to strings.
#
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/active_support/core_ext/object/duplicable.rb
new/lib/active_support/core_ext/object/duplicable.rb
--- old/lib/active_support/core_ext/object/duplicable.rb 2017-09-08
02:44:49.000000000 +0200
+++ new/lib/active_support/core_ext/object/duplicable.rb 2018-03-29
19:57:26.000000000 +0200
@@ -106,8 +106,8 @@
class BigDecimal
# BigDecimals are duplicable:
#
- # BigDecimal.new("1.2").duplicable? # => true
- # BigDecimal.new("1.2").dup # => #<BigDecimal:...,'0.12E1',18(18)>
+ # BigDecimal("1.2").duplicable? # => true
+ # BigDecimal("1.2").dup # => #<BigDecimal:...,'0.12E1',18(18)>
def duplicable?
true
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 2017-09-08 02:44:49.000000000
+0200
+++ new/lib/active_support/dependencies.rb 2018-03-29 19:57:26.000000000
+0200
@@ -457,6 +457,7 @@
mod = Module.new
into.const_set const_name, mod
autoloaded_constants << qualified_name unless
autoload_once_paths.include?(base_path)
+ autoloaded_constants.uniq!
mod
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 2017-09-08 02:44:49.000000000
+0200
+++ new/lib/active_support/gem_version.rb 2018-03-29 19:57:26.000000000
+0200
@@ -7,7 +7,7 @@
module VERSION
MAJOR = 5
MINOR = 0
- TINY = 6
+ TINY = 7
PRE = nil
STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/active_support/values/time_zone.rb
new/lib/active_support/values/time_zone.rb
--- old/lib/active_support/values/time_zone.rb 2017-09-08 02:44:49.000000000
+0200
+++ new/lib/active_support/values/time_zone.rb 2018-03-29 19:57:26.000000000
+0200
@@ -258,11 +258,14 @@
country = TZInfo::Country.get(code)
country.zone_identifiers.map do |tz_id|
if MAPPING.value?(tz_id)
- self[MAPPING.key(tz_id)]
+ MAPPING.inject([]) do |memo, (key, value)|
+ memo << self[key] if value == tz_id
+ memo
+ end
else
create(tz_id, nil, TZInfo::Timezone.new(tz_id))
end
- end.sort!
+ end.flatten(1).sort!
end
def zones_map
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata 2017-09-08 02:44:49.000000000 +0200
+++ new/metadata 2018-03-29 19:57:26.000000000 +0200
@@ -1,29 +1,35 @@
--- !ruby/object:Gem::Specification
name: activesupport
version: !ruby/object:Gem::Version
- version: 5.0.6
+ version: 5.0.7
platform: ruby
authors:
- David Heinemeier Hansson
autorequire:
bindir: bin
cert_chain: []
-date: 2017-09-08 00:00:00.000000000 Z
+date: 2018-03-29 00:00:00.000000000 Z
dependencies:
- !ruby/object:Gem::Dependency
name: i18n
requirement: !ruby/object:Gem::Requirement
requirements:
- - - "~>"
+ - - ">="
- !ruby/object:Gem::Version
version: '0.7'
+ - - "<"
+ - !ruby/object:Gem::Version
+ version: '2'
type: :runtime
prerelease: false
version_requirements: !ruby/object:Gem::Requirement
requirements:
- - - "~>"
+ - - ">="
- !ruby/object:Gem::Version
version: '0.7'
+ - - "<"
+ - !ruby/object:Gem::Version
+ version: '2'
- !ruby/object:Gem::Dependency
name: tzinfo
requirement: !ruby/object:Gem::Requirement
@@ -336,7 +342,7 @@
version: '0'
requirements: []
rubyforge_project:
-rubygems_version: 2.6.13
+rubygems_version: 2.6.14
signing_key:
specification_version: 4
summary: A toolkit of support libraries and Ruby core extensions extracted
from the