Hello community,

here is the log from the commit of package rubygem-actionview-4_2 for 
openSUSE:Factory checked in at 2015-07-02 22:49:17
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-actionview-4_2 (Old)
 and      /work/SRC/openSUSE:Factory/.rubygem-actionview-4_2.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rubygem-actionview-4_2"

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/rubygem-actionview-4_2/rubygem-actionview-4_2.changes
    2015-06-24 20:46:28.000000000 +0200
+++ 
/work/SRC/openSUSE:Factory/.rubygem-actionview-4_2.new/rubygem-actionview-4_2.changes
       2015-07-03 00:19:40.000000000 +0200
@@ -1,0 +2,37 @@
+Fri Jun 26 04:30:06 UTC 2015 - [email protected]
+
+- updated to version 4.2.3
+ see installed CHANGELOG.md
+
+  ## Rails 4.2.3 (June 25, 2015) ##
+  
+  *   `translate` should handle `raise` flag correctly in case of both main 
and default
+      translation is missing.
+  
+      Fixes #19967
+  
+      *Bernard Potocki*
+  
+  *   `translate` allows `default: [[]]` again for a default value of `[]`.
+  
+      Fixes #19640.
+  
+      *Adam Prescott*
+  
+  *   `translate` should accept nils as members of the `:default`
+      parameter without raising a translation missing error.  Fixes a
+      regression introduced 362557e.
+  
+      Fixes #19419
+  
+      *Justin Coyne*
+  
+  
+  *   `number_to_percentage` does not crash with `Float::NAN` or 
`Float::INFINITY`
+      as input when `precision: 0` is used.
+  
+      Fixes #19227.
+  
+      *Yves Senn*
+
+-------------------------------------------------------------------

Old:
----
  actionview-4.2.2.gem

New:
----
  actionview-4.2.3.gem

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ rubygem-actionview-4_2.spec ++++++
--- /var/tmp/diff_new_pack.WWhTrK/_old  2015-07-03 00:19:41.000000000 +0200
+++ /var/tmp/diff_new_pack.WWhTrK/_new  2015-07-03 00:19:41.000000000 +0200
@@ -24,7 +24,7 @@
 #
 
 Name:           rubygem-actionview-4_2
-Version:        4.2.2
+Version:        4.2.3
 Release:        0
 %define mod_name actionview
 %define mod_full_name %{mod_name}-%{version}

++++++ actionview-4.2.2.gem -> actionview-4.2.3.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md
--- old/CHANGELOG.md    2015-06-16 20:02:11.000000000 +0200
+++ new/CHANGELOG.md    2015-06-25 23:29:34.000000000 +0200
@@ -1,11 +1,43 @@
+## Rails 4.2.3 (June 25, 2015) ##
+
+*   `translate` should handle `raise` flag correctly in case of both main and 
default
+    translation is missing.
+
+    Fixes #19967
+
+    *Bernard Potocki*
+
+*   `translate` allows `default: [[]]` again for a default value of `[]`.
+
+    Fixes #19640.
+
+    *Adam Prescott*
+
+*   `translate` should accept nils as members of the `:default`
+    parameter without raising a translation missing error.  Fixes a
+    regression introduced 362557e.
+
+    Fixes #19419
+
+    *Justin Coyne*
+
+
+*   `number_to_percentage` does not crash with `Float::NAN` or 
`Float::INFINITY`
+    as input when `precision: 0` is used.
+
+    Fixes #19227.
+
+    *Yves Senn*
+
+
 ## Rails 4.2.2 (June 16, 2015) ##
 
 * No Changes *
 
 
-## Rails 4.2.1 (March 19, 2014) ##
+## Rails 4.2.1 (March 19, 2015) ##
 
-*   Default translations that have a lower precidence than an html safe 
default,
+*   Default translations that have a lower precedence than an html safe 
default,
     but are not themselves safe, should not be marked as html_safe.
 
     *Justin Coyne*
Files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/action_view/digestor.rb 
new/lib/action_view/digestor.rb
--- old/lib/action_view/digestor.rb     2015-06-16 20:02:11.000000000 +0200
+++ new/lib/action_view/digestor.rb     2015-06-25 23:29:34.000000000 +0200
@@ -70,7 +70,8 @@
     def dependencies
       DependencyTracker.find_dependencies(name, template)
     rescue ActionView::MissingTemplate
-      [] # File doesn't exist, so no dependencies
+      logger.try :error, "  '#{name}' file doesn't exist, so no dependencies"
+      []
     end
 
     def nested_dependencies
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/action_view/gem_version.rb 
new/lib/action_view/gem_version.rb
--- old/lib/action_view/gem_version.rb  2015-06-16 20:02:11.000000000 +0200
+++ new/lib/action_view/gem_version.rb  2015-06-25 23:29:34.000000000 +0200
@@ -7,7 +7,7 @@
   module VERSION
     MAJOR = 4
     MINOR = 2
-    TINY  = 2
+    TINY  = 3
     PRE   = nil
 
     STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/action_view/helpers/asset_tag_helper.rb 
new/lib/action_view/helpers/asset_tag_helper.rb
--- old/lib/action_view/helpers/asset_tag_helper.rb     2015-06-16 
20:02:11.000000000 +0200
+++ new/lib/action_view/helpers/asset_tag_helper.rb     2015-06-25 
23:29:34.000000000 +0200
@@ -127,7 +127,7 @@
       #   auto_discovery_link_tag(:rss, {controller: "news", action: "feed"})
       #   # => <link rel="alternate" type="application/rss+xml" title="RSS" 
href="http://www.currenthost.com/news/feed"; />
       #   auto_discovery_link_tag(:rss, "http://www.example.com/feed.rss";, 
{title: "Example RSS"})
-      #   # => <link rel="alternate" type="application/rss+xml" title="Example 
RSS" href="http://www.example.com/feed"; />
+      #   # => <link rel="alternate" type="application/rss+xml" title="Example 
RSS" href="http://www.example.com/feed.rss"; />
       def auto_discovery_link_tag(type = :rss, url_options = {}, tag_options = 
{})
         if !(type == :rss || type == :atom) && tag_options[:type].blank?
           raise ArgumentError.new("You should pass :type tag_option key 
explicitly, because you have passed #{type} type other than :rss or :atom.")
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/action_view/helpers/cache_helper.rb 
new/lib/action_view/helpers/cache_helper.rb
--- old/lib/action_view/helpers/cache_helper.rb 2015-06-16 20:02:11.000000000 
+0200
+++ new/lib/action_view/helpers/cache_helper.rb 2015-06-25 23:29:34.000000000 
+0200
@@ -111,7 +111,7 @@
       #
       # Now all you'll have to do is change that timestamp when the helper 
method changes.
       def cache(name = {}, options = nil, &block)
-        if controller.perform_caching
+        if controller.respond_to?(:perform_caching) && 
controller.perform_caching
           safe_concat(fragment_for(cache_fragment_name(name, options), 
options, &block))
         else
           yield
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/action_view/helpers/capture_helper.rb 
new/lib/action_view/helpers/capture_helper.rb
--- old/lib/action_view/helpers/capture_helper.rb       2015-06-16 
20:02:11.000000000 +0200
+++ new/lib/action_view/helpers/capture_helper.rb       2015-06-25 
23:29:34.000000000 +0200
@@ -194,7 +194,9 @@
       def with_output_buffer(buf = nil) #:nodoc:
         unless buf
           buf = ActionView::OutputBuffer.new
-          buf.force_encoding(output_buffer.encoding) if output_buffer
+          if output_buffer && output_buffer.respond_to?(:encoding)
+            buf.force_encoding(output_buffer.encoding)
+          end
         end
         self.output_buffer, old_buffer = buf, output_buffer
         yield
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/action_view/helpers/form_helper.rb 
new/lib/action_view/helpers/form_helper.rb
--- old/lib/action_view/helpers/form_helper.rb  2015-06-16 20:02:11.000000000 
+0200
+++ new/lib/action_view/helpers/form_helper.rb  2015-06-25 23:29:34.000000000 
+0200
@@ -1226,7 +1226,7 @@
     #     Admin: <%= person_form.check_box :admin %>
     #   <% end %>
     #
-    # In the above block, the a +FormBuilder+ object is yielded as the
+    # In the above block, a +FormBuilder+ object is yielded as the
     # +person_form+ variable. This allows you to generate the +text_field+
     # and +check_box+ fields by specifying their eponymous methods, which
     # modify the underlying template and associates the +@person+ model object
@@ -1247,6 +1247,7 @@
     #         )
     #       )
     #     end
+    #   end
     #
     # The above code creates a new method +div_radio_button+ which wraps a div
     # around the new radio button. Note that when options are passed in, you
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/action_view/helpers/form_options_helper.rb 
new/lib/action_view/helpers/form_options_helper.rb
--- old/lib/action_view/helpers/form_options_helper.rb  2015-06-16 
20:02:11.000000000 +0200
+++ new/lib/action_view/helpers/form_options_helper.rb  2015-06-25 
23:29:34.000000000 +0200
@@ -410,7 +410,7 @@
       # * +collection+ - An array of objects representing the 
<tt><optgroup></tt> tags.
       # * +group_method+ - The name of a method which, when called on a member 
of +collection+, returns an
       #   array of child objects representing the <tt><option></tt> tags.
-      # * group_label_method+ - The name of a method which, when called on a 
member of +collection+, returns a
+      # * +group_label_method+ - The name of a method which, when called on a 
member of +collection+, returns a
       #   string to be used as the +label+ attribute for its 
<tt><optgroup></tt> tag.
       # * +option_key_method+ - The name of a method which, when called on a 
child object of a member of
       #   +collection+, returns a value to be used as the +value+ attribute 
for its <tt><option></tt> tag.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/action_view/helpers/sanitize_helper.rb 
new/lib/action_view/helpers/sanitize_helper.rb
--- old/lib/action_view/helpers/sanitize_helper.rb      2015-06-16 
20:02:11.000000000 +0200
+++ new/lib/action_view/helpers/sanitize_helper.rb      2015-06-25 
23:29:34.000000000 +0200
@@ -100,7 +100,7 @@
       #   strip_tags("<div id='top-bar'>Welcome to my website!</div>")
       #   # => Welcome to my website!
       def strip_tags(html)
-        self.class.full_sanitizer.sanitize(html)
+        self.class.full_sanitizer.sanitize(html, encode_special_chars: false)
       end
 
       # Strips all link tags from +html+ leaving just the link text.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/action_view/helpers/translation_helper.rb 
new/lib/action_view/helpers/translation_helper.rb
--- old/lib/action_view/helpers/translation_helper.rb   2015-06-16 
20:02:11.000000000 +0200
+++ new/lib/action_view/helpers/translation_helper.rb   2015-06-25 
23:29:34.000000000 +0200
@@ -38,10 +38,10 @@
       def translate(key, options = {})
         options = options.dup
         has_default = options.has_key?(:default)
-        remaining_defaults = Array(options.delete(:default))
+        remaining_defaults = Array(options.delete(:default)).compact
 
         if has_default && !remaining_defaults.first.kind_of?(Symbol)
-          options[:default] = remaining_defaults.shift
+          options[:default] = remaining_defaults
         end
 
         # If the user has explicitly decided to NOT raise errors, pass that 
option to I18n.
@@ -49,10 +49,10 @@
         # Note: `raise_error` refers to us re-raising the error in this 
method. I18n is forced to raise by default.
         if options[:raise] == false || (options.key?(:rescue_format) && 
options[:rescue_format].nil?)
           raise_error = false
-          options[:raise] = false
+          i18n_raise = false
         else
           raise_error = options[:raise] || options[:rescue_format] || 
ActionView::Base.raise_on_missing_translations
-          options[:raise] = true
+          i18n_raise = true
         end
 
         if html_safe_translation_key?(key)
@@ -62,11 +62,11 @@
               html_safe_options[name] = ERB::Util.html_escape(value.to_s)
             end
           end
-          translation = I18n.translate(scope_key_by_partial(key), 
html_safe_options)
+          translation = I18n.translate(scope_key_by_partial(key), 
html_safe_options.merge(raise: i18n_raise))
 
           translation.respond_to?(:html_safe) ? translation.html_safe : 
translation
         else
-          I18n.translate(scope_key_by_partial(key), options)
+          I18n.translate(scope_key_by_partial(key), options.merge(raise: 
i18n_raise))
         end
       rescue I18n::MissingTranslationData => e
         if remaining_defaults.present?
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/action_view/tasks/dependencies.rake 
new/lib/action_view/tasks/dependencies.rake
--- old/lib/action_view/tasks/dependencies.rake 2015-06-16 20:02:11.000000000 
+0200
+++ new/lib/action_view/tasks/dependencies.rake 2015-06-25 23:29:34.000000000 
+0200
@@ -2,20 +2,22 @@
   desc 'Lookup nested dependencies for TEMPLATE (like messages/show or 
comments/_comment.html)'
   task :nested_dependencies => :environment do
     abort 'You must provide TEMPLATE for the task to run' unless 
ENV['TEMPLATE'].present?
-    puts JSON.pretty_generate ActionView::Digestor.new(name: template_name, 
finder: finder).nested_dependencies
+    puts JSON.pretty_generate ActionView::Digestor.new(name: 
CacheDigests.template_name, finder: CacheDigests.finder).nested_dependencies
   end
 
   desc 'Lookup first-level dependencies for TEMPLATE (like messages/show or 
comments/_comment.html)'
   task :dependencies => :environment do
     abort 'You must provide TEMPLATE for the task to run' unless 
ENV['TEMPLATE'].present?
-    puts JSON.pretty_generate ActionView::Digestor.new(name: template_name, 
finder: finder).dependencies
+    puts JSON.pretty_generate ActionView::Digestor.new(name: 
CacheDigests.template_name, finder: CacheDigests.finder).dependencies
   end
 
-  def template_name
-    ENV['TEMPLATE'].split('.', 2).first
-  end
+  class CacheDigests
+    def self.template_name
+      ENV['TEMPLATE'].split('.', 2).first
+    end
 
-  def finder
-    ApplicationController.new.lookup_context
+    def self.finder
+      ApplicationController.new.lookup_context
+    end
   end
 end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata        2015-06-16 20:02:11.000000000 +0200
+++ new/metadata        2015-06-25 23:29:34.000000000 +0200
@@ -1,14 +1,14 @@
 --- !ruby/object:Gem::Specification
 name: actionview
 version: !ruby/object:Gem::Version
-  version: 4.2.2
+  version: 4.2.3
 platform: ruby
 authors:
 - David Heinemeier Hansson
 autorequire: 
 bindir: bin
 cert_chain: []
-date: 2015-06-16 00:00:00.000000000 Z
+date: 2015-06-25 00:00:00.000000000 Z
 dependencies:
 - !ruby/object:Gem::Dependency
   name: activesupport
@@ -16,14 +16,14 @@
     requirements:
     - - '='
       - !ruby/object:Gem::Version
-        version: 4.2.2
+        version: 4.2.3
   type: :runtime
   prerelease: false
   version_requirements: !ruby/object:Gem::Requirement
     requirements:
     - - '='
       - !ruby/object:Gem::Version
-        version: 4.2.2
+        version: 4.2.3
 - !ruby/object:Gem::Dependency
   name: builder
   requirement: !ruby/object:Gem::Requirement
@@ -61,7 +61,7 @@
         version: '1.0'
     - - ">="
       - !ruby/object:Gem::Version
-        version: 1.0.1
+        version: 1.0.2
   type: :runtime
   prerelease: false
   version_requirements: !ruby/object:Gem::Requirement
@@ -71,7 +71,7 @@
         version: '1.0'
     - - ">="
       - !ruby/object:Gem::Version
-        version: 1.0.1
+        version: 1.0.2
 - !ruby/object:Gem::Dependency
   name: rails-dom-testing
   requirement: !ruby/object:Gem::Requirement
@@ -98,28 +98,28 @@
     requirements:
     - - '='
       - !ruby/object:Gem::Version
-        version: 4.2.2
+        version: 4.2.3
   type: :development
   prerelease: false
   version_requirements: !ruby/object:Gem::Requirement
     requirements:
     - - '='
       - !ruby/object:Gem::Version
-        version: 4.2.2
+        version: 4.2.3
 - !ruby/object:Gem::Dependency
   name: activemodel
   requirement: !ruby/object:Gem::Requirement
     requirements:
     - - '='
       - !ruby/object:Gem::Version
-        version: 4.2.2
+        version: 4.2.3
   type: :development
   prerelease: false
   version_requirements: !ruby/object:Gem::Requirement
     requirements:
     - - '='
       - !ruby/object:Gem::Version
-        version: 4.2.2
+        version: 4.2.3
 description: Simple, battle-tested conventions and helpers for building web 
pages.
 email: [email protected]
 executables: []


Reply via email to