Hello community,

here is the log from the commit of package rubygem-activemodel-5_0 for 
openSUSE:Factory checked in at 2017-06-08 14:59:27
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-activemodel-5_0 (Old)
 and      /work/SRC/openSUSE:Factory/.rubygem-activemodel-5_0.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rubygem-activemodel-5_0"

Thu Jun  8 14:59:27 2017 rev:5 rq:497666 version:5.0.3

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/rubygem-activemodel-5_0/rubygem-activemodel-5_0.changes
  2017-03-21 22:49:37.306166394 +0100
+++ 
/work/SRC/openSUSE:Factory/.rubygem-activemodel-5_0.new/rubygem-activemodel-5_0.changes
     2017-06-08 14:59:32.496334925 +0200
@@ -1,0 +2,17 @@
+Tue May 23 09:36:31 UTC 2017 - co...@suse.com
+
+- updated to version 5.0.3
+ see installed CHANGELOG.md
+
+  *   The original string assigned to a model attribute is no longer 
incorrectly
+      frozen.
+  
+      Fixes #24185, #28718.
+  
+      *Matthew Draper*
+  
+  *   Avoid converting integer as a string into float.
+  
+      *namusyaka*
+
+-------------------------------------------------------------------

Old:
----
  activemodel-5.0.2.gem

New:
----
  activemodel-5.0.3.gem

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

Other differences:
------------------
++++++ rubygem-activemodel-5_0.spec ++++++
--- /var/tmp/diff_new_pack.mHkzah/_old  2017-06-08 14:59:33.452200022 +0200
+++ /var/tmp/diff_new_pack.mHkzah/_new  2017-06-08 14:59:33.452200022 +0200
@@ -24,7 +24,7 @@
 #
 
 Name:           rubygem-activemodel-5_0
-Version:        5.0.2
+Version:        5.0.3
 Release:        0
 %define mod_name activemodel
 %define mod_full_name %{mod_name}-%{version}

++++++ activemodel-5.0.2.gem -> activemodel-5.0.3.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md
--- old/CHANGELOG.md    2017-03-02 00:11:58.000000000 +0100
+++ new/CHANGELOG.md    2017-05-12 22:03:27.000000000 +0200
@@ -1,3 +1,15 @@
+*   The original string assigned to a model attribute is no longer incorrectly
+    frozen.
+
+    Fixes #24185, #28718.
+
+    *Matthew Draper*
+
+*   Avoid converting integer as a string into float.
+
+    *namusyaka*
+
+
 ## Rails 5.0.2 (March 01, 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_model/errors.rb 
new/lib/active_model/errors.rb
--- old/lib/active_model/errors.rb      2017-03-02 00:11:58.000000000 +0100
+++ new/lib/active_model/errors.rb      2017-05-12 22:03:27.000000000 +0200
@@ -372,7 +372,7 @@
 
         To achieve the same use:
 
-          errors.add(attribute, :empty, options) if value.blank?
+          errors.add(attribute, :blank, options) if value.blank?
       MESSAGE
 
       Array(attributes).each do |attribute|
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/active_model/gem_version.rb 
new/lib/active_model/gem_version.rb
--- old/lib/active_model/gem_version.rb 2017-03-02 00:11:58.000000000 +0100
+++ new/lib/active_model/gem_version.rb 2017-05-12 22:03:27.000000000 +0200
@@ -7,7 +7,7 @@
   module VERSION
     MAJOR = 5
     MINOR = 0
-    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/active_model/type/string.rb 
new/lib/active_model/type/string.rb
--- old/lib/active_model/type/string.rb 2017-03-02 00:11:58.000000000 +0100
+++ new/lib/active_model/type/string.rb 2017-05-12 22:03:27.000000000 +0200
@@ -11,9 +11,14 @@
 
       private
 
-      def cast_value(value)
-        ::String.new(super)
-      end
+        def cast_value(value)
+          case value
+          when ::String then ::String.new(value)
+          when true then "t".freeze
+          when false then "f".freeze
+          else value.to_s
+          end
+        end
     end
   end
 end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/active_model/validations/numericality.rb 
new/lib/active_model/validations/numericality.rb
--- old/lib/active_model/validations/numericality.rb    2017-03-02 
00:11:58.000000000 +0100
+++ new/lib/active_model/validations/numericality.rb    2017-05-12 
22:03:27.000000000 +0200
@@ -73,6 +73,7 @@
       end
 
       def parse_raw_value_as_a_number(raw_value)
+        return raw_value.to_i if is_integer?(raw_value)
         Kernel.Float(raw_value) if raw_value !~ /\A0[xX]/
       end
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata        2017-03-02 00:11:58.000000000 +0100
+++ new/metadata        2017-05-12 22:03:27.000000000 +0200
@@ -1,14 +1,14 @@
 --- !ruby/object:Gem::Specification
 name: activemodel
 version: !ruby/object:Gem::Version
-  version: 5.0.2
+  version: 5.0.3
 platform: ruby
 authors:
 - David Heinemeier Hansson
 autorequire: 
 bindir: bin
 cert_chain: []
-date: 2017-03-01 00:00:00.000000000 Z
+date: 2017-05-12 00:00:00.000000000 Z
 dependencies:
 - !ruby/object:Gem::Dependency
   name: activesupport
@@ -16,14 +16,14 @@
     requirements:
     - - '='
       - !ruby/object:Gem::Version
-        version: 5.0.2
+        version: 5.0.3
   type: :runtime
   prerelease: false
   version_requirements: !ruby/object:Gem::Requirement
     requirements:
     - - '='
       - !ruby/object:Gem::Version
-        version: 5.0.2
+        version: 5.0.3
 description: A toolkit for building modeling frameworks like Active Record. 
Rich support
   for attributes, callbacks, validations, serialization, internationalization, 
and
   testing.
@@ -118,3 +118,4 @@
 specification_version: 4
 summary: A toolkit for building modeling frameworks (part of Rails).
 test_files: []
+has_rdoc: 


Reply via email to