commit rubygem-activesupport-6.0 for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package rubygem-activesupport-6.0 for openSUSE:Factory checked in at 2021-07-02 13:27:17 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rubygem-activesupport-6.0 (Old) and /work/SRC/openSUSE:Factory/.rubygem-activesupport-6.0.new.2625 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "rubygem-activesupport-6.0" Fri Jul 2 13:27:17 2021 rev:11 rq:902947 version:6.0.4 Changes: -------- --- /work/SRC/openSUSE:Factory/rubygem-activesupport-6.0/rubygem-activesupport-6.0.changes 2020-10-18 16:34:11.108831677 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-activesupport-6.0.new.2625/rubygem-activesupport-6.0.changes 2021-07-02 13:28:09.504438749 +0200 @@ -1,0 +2,36 @@ +Thu Jun 24 16:52:14 UTC 2021 - Stephan Kulow <coolo@suse.com> + +updated to version 6.0.4 + see installed CHANGELOG.md + + ## Rails 6.0.4 (June 15, 2021) ## + + * Fixed issue in `ActiveSupport::Cache::RedisCacheStore` not passing options + to `read_multi` causing `fetch_multi` to not work properly. + + *Rajesh Sharma* + + * `with_options` copies its options hash again to avoid leaking mutations. + + Fixes #39343. + + *Eugene Kenny* + + + ## Rails 6.0.3.7 (May 05, 2021) ## + + * No changes. + + + ## Rails 6.0.3.6 (March 26, 2021) ## + + * No changes. + + + ## Rails 6.0.3.5 (February 10, 2021) ## + + * No changes. + + + +------------------------------------------------------------------- Old: ---- activesupport-6.0.3.4.gem New: ---- activesupport-6.0.4.gem ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rubygem-activesupport-6.0.spec ++++++ --- /var/tmp/diff_new_pack.Q7VLaW/_old 2021-07-02 13:28:09.984435025 +0200 +++ /var/tmp/diff_new_pack.Q7VLaW/_new 2021-07-02 13:28:09.988434994 +0200 @@ -1,7 +1,7 @@ # # spec file for package rubygem-activesupport-6.0 # -# 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,7 +24,7 @@ # Name: rubygem-activesupport-6.0 -Version: 6.0.3.4 +Version: 6.0.4 Release: 0 %define mod_name activesupport %define mod_full_name %{mod_name}-%{version} ++++++ activesupport-6.0.3.4.gem -> activesupport-6.0.4.gem ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md --- old/CHANGELOG.md 2020-10-07 18:48:14.000000000 +0200 +++ new/CHANGELOG.md 2021-06-15 22:13:38.000000000 +0200 @@ -1,3 +1,32 @@ +## Rails 6.0.4 (June 15, 2021) ## + +* Fixed issue in `ActiveSupport::Cache::RedisCacheStore` not passing options + to `read_multi` causing `fetch_multi` to not work properly. + + *Rajesh Sharma* + +* `with_options` copies its options hash again to avoid leaking mutations. + + Fixes #39343. + + *Eugene Kenny* + + +## Rails 6.0.3.7 (May 05, 2021) ## + +* No changes. + + +## Rails 6.0.3.6 (March 26, 2021) ## + +* No changes. + + +## Rails 6.0.3.5 (February 10, 2021) ## + +* No changes. + + ## Rails 6.0.3.4 (October 07, 2020) ## * No changes. @@ -19,6 +48,7 @@ * [CVE-2020-8165] Avoid Marshal.load on raw cache value in MemCacheStore + ## Rails 6.0.3 (May 06, 2020) ## * `Array#to_sentence` no longer returns a frozen string. @@ -184,6 +214,12 @@ ## Rails 6.0.0.rc1 (April 24, 2019) ## +* Speed improvements to `Hash.except` and `HashWithIndifferentAccess#except`. + + These methods now unset the `default`/`default_proc` on the returned Hash, compatible with Ruby 3.0���s native implementation. + + *Timo Schilling* + * Introduce `ActiveSupport::ActionableError`. Actionable errors let's you dispatch actions from Rails' error pages. This diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/README.rdoc new/README.rdoc --- old/README.rdoc 2020-10-07 18:48:14.000000000 +0200 +++ new/README.rdoc 2021-06-15 22:13:38.000000000 +0200 @@ -15,7 +15,7 @@ Source code can be downloaded as part of the Rails project on GitHub: -* https://github.com/rails/rails/tree/master/activesupport +* https://github.com/rails/rails/tree/main/activesupport == License 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/cache/file_store.rb new/lib/active_support/cache/file_store.rb --- old/lib/active_support/cache/file_store.rb 2020-10-07 18:48:14.000000000 +0200 +++ new/lib/active_support/cache/file_store.rb 2021-06-15 22:13:38.000000000 +0200 @@ -16,7 +16,7 @@ attr_reader :cache_path DIR_FORMATTER = "%03X" - FILENAME_MAX_SIZE = 228 # max filename size on file system is 255, minus room for timestamp and random characters appended by Tempfile (used by atomic write) + FILENAME_MAX_SIZE = 226 # max filename size on file system is 255, minus room for timestamp, pid, and random characters appended by Tempfile (used by atomic write) FILEPATH_MAX_SIZE = 900 # max is 1024, plus some room GITKEEP_FILES = [".gitkeep", ".keep"].freeze @@ -74,7 +74,8 @@ private def read_entry(key, **options) if File.exist?(key) - File.open(key) { |f| Marshal.load(f) } + entry = File.open(key) { |f| Marshal.load(f) } + entry if entry.is_a?(Cache::Entry) end rescue => e logger.error("FileStoreError (#{e}): #{e.message}") if logger diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/active_support/cache/mem_cache_store.rb new/lib/active_support/cache/mem_cache_store.rb --- old/lib/active_support/cache/mem_cache_store.rb 2020-10-07 18:48:14.000000000 +0200 +++ new/lib/active_support/cache/mem_cache_store.rb 2021-06-15 22:13:38.000000000 +0200 @@ -7,6 +7,7 @@ raise e end +require "active_support/core_ext/marshal" require "active_support/core_ext/array/extract_options" module ActiveSupport diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/active_support/cache/redis_cache_store.rb new/lib/active_support/cache/redis_cache_store.rb --- old/lib/active_support/cache/redis_cache_store.rb 2020-10-07 18:48:14.000000000 +0200 +++ new/lib/active_support/cache/redis_cache_store.rb 2021-06-15 22:13:38.000000000 +0200 @@ -347,7 +347,7 @@ def read_multi_entries(names, **options) if mget_capable? - read_multi_mget(*names) + read_multi_mget(*names, **options) else super end @@ -394,7 +394,7 @@ modifiers[:nx] = unless_exist modifiers[:px] = (1000 * expires_in.to_f).ceil if expires_in - redis.with { |c| c.set key, serialized_entry, modifiers } + redis.with { |c| c.set key, serialized_entry, **modifiers } else redis.with { |c| c.set key, serialized_entry } end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/active_support/cache/strategy/local_cache.rb new/lib/active_support/cache/strategy/local_cache.rb --- old/lib/active_support/cache/strategy/local_cache.rb 2020-10-07 18:48:14.000000000 +0200 +++ new/lib/active_support/cache/strategy/local_cache.rb 2021-06-15 22:13:38.000000000 +0200 @@ -160,7 +160,7 @@ cache = local_cache cache.mute do if value - cache.write(name, value, **options) + cache.write(name, value, options) else cache.delete(name, **options) end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/active_support/cache.rb new/lib/active_support/cache.rb --- old/lib/active_support/cache.rb 2020-10-07 18:48:14.000000000 +0200 +++ new/lib/active_support/cache.rb 2021-06-15 22:13:38.000000000 +0200 @@ -312,7 +312,7 @@ # :bar # end # cache.fetch('foo') # => "bar" - def fetch(name, options = nil) + def fetch(name, options = nil, &block) if block_given? options = merged_options(options) key = normalize_key(name, options) @@ -327,9 +327,9 @@ end if entry - get_entry_value(entry, name, **options) + get_entry_value(entry, name, options) else - save_block_result_to_cache(name, **options) { |_name| yield _name } + save_block_result_to_cache(name, options, &block) end elsif options && options[:force] raise ArgumentError, "Missing block: Calling `Cache#fetch` with `force: true` requires a block." @@ -448,7 +448,7 @@ payload[:hits] = reads.keys payload[:super_operation] = :fetch_multi - write_multi(writes, **options) + write_multi(writes, options) ordered end @@ -712,7 +712,7 @@ entry.value end - def save_block_result_to_cache(name, **options) + def save_block_result_to_cache(name, options) result = instrument(:generate, name, options) do yield(name) end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/active_support/core_ext/hash/except.rb new/lib/active_support/core_ext/hash/except.rb --- old/lib/active_support/core_ext/hash/except.rb 2020-10-07 18:48:14.000000000 +0200 +++ new/lib/active_support/core_ext/hash/except.rb 2021-06-15 22:13:38.000000000 +0200 @@ -11,7 +11,7 @@ # @person.update(params[:person].except(:admin)) def except(*keys) slice(*self.keys - keys) - end + end unless method_defined?(:except) # Removes the given keys from hash and returns it. # hash = { a: true, b: false, c: nil } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/active_support/core_ext/object/json.rb new/lib/active_support/core_ext/object/json.rb --- old/lib/active_support/core_ext/object/json.rb 2020-10-07 18:48:14.000000000 +0200 +++ new/lib/active_support/core_ext/object/json.rb 2021-06-15 22:13:38.000000000 +0200 @@ -45,7 +45,7 @@ end end -[Object, Array, FalseClass, Float, Hash, Integer, NilClass, String, TrueClass, Enumerable].reverse_each do |klass| +[Enumerable, Object, Array, FalseClass, Float, Hash, Integer, NilClass, String, TrueClass].reverse_each do |klass| klass.prepend(ActiveSupport::ToJsonWithActiveSupportEncoder) end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/active_support/core_ext/string/output_safety.rb new/lib/active_support/core_ext/string/output_safety.rb --- old/lib/active_support/core_ext/string/output_safety.rb 2020-10-07 18:48:14.000000000 +0200 +++ new/lib/active_support/core_ext/string/output_safety.rb 2021-06-15 22:13:38.000000000 +0200 @@ -135,7 +135,7 @@ class SafeBuffer < String UNSAFE_STRING_METHODS = %w( capitalize chomp chop delete delete_prefix delete_suffix - downcase lstrip next reverse rstrip slice squeeze strip + downcase lstrip next reverse rstrip scrub slice squeeze strip succ swapcase tr tr_s unicode_normalize upcase ) @@ -153,12 +153,12 @@ def [](*args) if html_safe? - new_safe_buffer = super + new_string = super - if new_safe_buffer - new_safe_buffer.instance_variable_set :@html_safe, true - end + return unless new_string + new_safe_buffer = new_string.is_a?(SafeBuffer) ? new_string : SafeBuffer.new(new_string) + new_safe_buffer.instance_variable_set :@html_safe, true new_safe_buffer else to_str[*args] @@ -214,7 +214,8 @@ end def *(*) - new_safe_buffer = super + new_string = super + new_safe_buffer = new_string.is_a?(SafeBuffer) ? new_string : SafeBuffer.new(new_string) new_safe_buffer.instance_variable_set(:@html_safe, @html_safe) new_safe_buffer end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/active_support/core_ext/time/calculations.rb new/lib/active_support/core_ext/time/calculations.rb --- old/lib/active_support/core_ext/time/calculations.rb 2020-10-07 18:48:14.000000000 +0200 +++ new/lib/active_support/core_ext/time/calculations.rb 2021-06-15 22:13:38.000000000 +0200 @@ -47,7 +47,9 @@ # Time.at can be called with a time or numerical value time_or_number = args.first - if time_or_number.is_a?(ActiveSupport::TimeWithZone) || time_or_number.is_a?(DateTime) + if time_or_number.is_a?(ActiveSupport::TimeWithZone) + at_without_coercion(time_or_number.to_r).getlocal + elsif time_or_number.is_a?(DateTime) at_without_coercion(time_or_number.to_f).getlocal else at_without_coercion(time_or_number) 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 2020-10-07 18:48:14.000000000 +0200 +++ new/lib/active_support/dependencies.rb 2021-06-15 22:13:38.000000000 +0200 @@ -367,7 +367,12 @@ require_or_load(path || file_name) rescue LoadError => load_error if file_name = load_error.message[/ -- (.*?)(\.rb)?$/, 1] - load_error.message.replace(message % file_name) + load_error_message = if load_error.respond_to?(:original_message) + load_error.original_message + else + load_error.message + end + load_error_message.replace(message % file_name) load_error.copy_blame!(load_error) end raise diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/active_support/deprecation/proxy_wrappers.rb new/lib/active_support/deprecation/proxy_wrappers.rb --- old/lib/active_support/deprecation/proxy_wrappers.rb 2020-10-07 18:48:14.000000000 +0200 +++ new/lib/active_support/deprecation/proxy_wrappers.rb 2021-06-15 22:13:38.000000000 +0200 @@ -147,7 +147,7 @@ # Don't give a deprecation warning on methods that IRB may invoke # during tab-completion. - delegate :hash, :instance_methods, :name, to: :target + delegate :hash, :instance_methods, :name, :respond_to?, to: :target # Returns the class of the new constant. # 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 2020-10-07 18:48:14.000000000 +0200 +++ new/lib/active_support/gem_version.rb 2021-06-15 22:13:38.000000000 +0200 @@ -9,8 +9,8 @@ module VERSION MAJOR = 6 MINOR = 0 - TINY = 3 - PRE = "4" + TINY = 4 + PRE = nil STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".") end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/active_support/messages/metadata.rb new/lib/active_support/messages/metadata.rb --- old/lib/active_support/messages/metadata.rb 2020-10-07 18:48:14.000000000 +0200 +++ new/lib/active_support/messages/metadata.rb 2021-06-15 22:13:38.000000000 +0200 @@ -7,7 +7,7 @@ class Metadata #:nodoc: def initialize(message, expires_at = nil, purpose = nil) @message, @purpose = message, purpose - @expires_at = expires_at.is_a?(String) ? Time.iso8601(expires_at) : expires_at + @expires_at = expires_at.is_a?(String) ? parse_expires_at(expires_at) : expires_at end def as_json(options = {}) @@ -67,6 +67,14 @@ def fresh? @expires_at.nil? || Time.now.utc < @expires_at end + + def parse_expires_at(expires_at) + if ActiveSupport.use_standard_json_time_format + Time.iso8601(expires_at) + else + Time.parse(expires_at) + end + end end end end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/active_support/number_helper/number_to_currency_converter.rb new/lib/active_support/number_helper/number_to_currency_converter.rb --- old/lib/active_support/number_helper/number_to_currency_converter.rb 2020-10-07 18:48:14.000000000 +0200 +++ new/lib/active_support/number_helper/number_to_currency_converter.rb 2021-06-15 22:13:38.000000000 +0200 @@ -9,15 +9,11 @@ def convert number = self.number.to_s.strip - number_f = number.to_f format = options[:format] - if number_f.negative? - number = number_f.abs - - unless options[:precision] == 0 && number < 0.5 - format = options[:negative_format] - end + if number.sub!(/^-/, "") && + (options[:precision] != 0 || number.to_f > 0.5) + format = options[:negative_format] end rounded_number = NumberToRoundedConverter.convert(number, options) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/active_support/number_helper/rounding_helper.rb new/lib/active_support/number_helper/rounding_helper.rb --- old/lib/active_support/number_helper/rounding_helper.rb 2020-10-07 18:48:14.000000000 +0200 +++ new/lib/active_support/number_helper/rounding_helper.rb 2021-06-15 22:13:38.000000000 +0200 @@ -26,7 +26,7 @@ private def round_without_significant(number) - number = number.round(precision) + number = number.round(precision, BigDecimal.mode(BigDecimal::ROUND_MODE)) number = number.to_i if precision == 0 && number.finite? number = number.abs if number.zero? # prevent showing negative zeros number diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/active_support/option_merger.rb new/lib/active_support/option_merger.rb --- old/lib/active_support/option_merger.rb 2020-10-07 18:48:14.000000000 +0200 +++ new/lib/active_support/option_merger.rb 2021-06-15 22:13:38.000000000 +0200 @@ -37,7 +37,7 @@ end else def invoke_method(method, arguments, options, &block) - arguments << options if options + arguments << options.dup if options @context.__send__(method, *arguments, &block) end end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata --- old/metadata 2020-10-07 18:48:14.000000000 +0200 +++ new/metadata 2021-06-15 22:13:38.000000000 +0200 @@ -1,14 +1,14 @@ --- !ruby/object:Gem::Specification name: activesupport version: !ruby/object:Gem::Version - version: 6.0.3.4 + version: 6.0.4 platform: ruby authors: - David Heinemeier Hansson -autorequire: +autorequire: bindir: bin cert_chain: [] -date: 2020-10-07 00:00:00.000000000 Z +date: 2021-06-15 00:00:00.000000000 Z dependencies: - !ruby/object:Gem::Dependency name: i18n @@ -359,11 +359,11 @@ - MIT metadata: bug_tracker_uri: https://github.com/rails/rails/issues - changelog_uri: https://github.com/rails/rails/blob/v6.0.3.4/activesupport/CHANGELOG.md - documentation_uri: https://api.rubyonrails.org/v6.0.3.4/ + changelog_uri: https://github.com/rails/rails/blob/v6.0.4/activesupport/CHANGELOG.md + documentation_uri: https://api.rubyonrails.org/v6.0.4/ mailing_list_uri: https://discuss.rubyonrails.org/c/rubyonrails-talk - source_code_uri: https://github.com/rails/rails/tree/v6.0.3.4/activesupport -post_install_message: + source_code_uri: https://github.com/rails/rails/tree/v6.0.4/activesupport +post_install_message: rdoc_options: - "--encoding" - UTF-8 @@ -380,8 +380,8 @@ - !ruby/object:Gem::Version version: '0' requirements: [] -rubygems_version: 3.1.4 -signing_key: +rubygems_version: 3.1.2 +signing_key: specification_version: 4 summary: A toolkit of support libraries and Ruby core extensions extracted from the Rails framework.
participants (1)
-
Source-Sync