commit rubygem-activerecord-5_1 for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-activerecord-5_1 for openSUSE:Factory checked in at 2019-04-01 12:36:19 Comparing /work/SRC/openSUSE:Factory/rubygem-activerecord-5_1 (Old) and /work/SRC/openSUSE:Factory/.rubygem-activerecord-5_1.new.25356 (New) Package is "rubygem-activerecord-5_1" Mon Apr 1 12:36:19 2019 rev:8 rq:689686 version:5.1.7 Changes: --- /work/SRC/openSUSE:Factory/rubygem-activerecord-5_1/rubygem-activerecord-5_1.changes 2019-03-27 16:21:53.487523662 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-activerecord-5_1.new.25356/rubygem-activerecord-5_1.changes 2019-04-01 12:36:20.789855801 +0200 @@ -1,0 +2,22 @@ +Fri Mar 29 05:53:46 UTC 2019 - Stephan Kulow + +- updated to version 5.1.7 + see installed CHANGELOG.md + + ## Rails 5.1.7 (March 27, 2019) ## + + * Fix `touch` option to behave consistently with `Persistence#touch` method. + + *Ryuta Kamizono* + + * Back port Rails 5.2 `reverse_order` Arel SQL literal fix. + + *Matt Jones*, *Brooke Kuhlmann* + + * `becomes` should clear the mutation tracker which is created in `after_initialize`. + + Fixes #32867. + + *Ryuta Kamizono* + +--- Old: activerecord-5.1.6.2.gem New: activerecord-5.1.7.gem Other differences: -- ++ rubygem-activerecord-5_1.spec ++ --- /var/tmp/diff_new_pack.jVvgi0/_old 2019-04-01 12:36:21.577856187 +0200 +++ /var/tmp/diff_new_pack.jVvgi0/_new 2019-04-01 12:36:21.581856189 +0200 @@ -24,7 +24,7 @@ # Name: rubygem-activerecord-5_1 -Version:5.1.6.2 +Version:5.1.7 Release:0 %define mod_name activerecord %define mod_full_name %{mod_name}-%{version} ++ activerecord-5.1.6.2.gem -> activerecord-5.1.7.gem ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md --- old/CHANGELOG.md2019-03-13 17:45:26.0 +0100 +++ new/CHANGELOG.md2019-03-28 03:46:04.0 +0100 @@ -1,3 +1,20 @@ +## Rails 5.1.7 (March 27, 2019) ## + +* Fix `touch` option to behave consistently with `Persistence#touch` method. + +*Ryuta Kamizono* + +* Back port Rails 5.2 `reverse_order` Arel SQL literal fix. + +*Matt Jones*, *Brooke Kuhlmann* + +* `becomes` should clear the mutation tracker which is created in `after_initialize`. + +Fixes #32867. + +*Ryuta Kamizono* + + ## Rails 5.1.6.2 (March 11, 2019) ## * 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_record/associations/belongs_to_association.rb new/lib/active_record/associations/belongs_to_association.rb --- old/lib/active_record/associations/belongs_to_association.rb 2019-03-13 17:45:26.0 +0100 +++ new/lib/active_record/associations/belongs_to_association.rb 2019-03-28 03:46:04.0 +0100 @@ -65,7 +65,7 @@ def update_counters_on_replace(record) if require_counter_update? && different_target?(record) owner.instance_variable_set :@_after_replace_counter_called, true -record.increment!(reflection.counter_cache_column) +record.increment!(reflection.counter_cache_column, touch: reflection.options[:touch]) decrement_counters end end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/active_record/associations/builder/belongs_to.rb new/lib/active_record/associations/builder/belongs_to.rb --- old/lib/active_record/associations/builder/belongs_to.rb2019-03-13 17:45:26.0 +0100 +++ new/lib/active_record/associations/builder/belongs_to.rb2019-03-28 03:46:04.0 +0100 @@ -84,7 +84,8 @@ else klass = association.klass end -old_record = klass.find_by(klass.primary_key => old_foreign_id) +primary_key = reflection.association_primary_key(klass) +old_record = klass.find_by(primary_key => old_foreign_id) if old_record if touch != true diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/active_record/attribute_methods/dirty.rb new/lib/active_record/attribute_methods/dirty.rb --- old/lib/active_record/attribute_methods/dirty.rb2019-03-13 17:45:26.0 +0100 +++ new/lib/active_record/attribute_methods/dirty.rb2019-03-28 03:46:04.0 +0100 @@ -204,12 +204,12 @@ # Alias for `changed` def changed_attribute_names_to_save -changes_to_save.keys +mutation
commit rubygem-activerecord-5_1 for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-activerecord-5_1 for openSUSE:Factory checked in at 2019-03-27 16:21:37 Comparing /work/SRC/openSUSE:Factory/rubygem-activerecord-5_1 (Old) and /work/SRC/openSUSE:Factory/.rubygem-activerecord-5_1.new.25356 (New) Package is "rubygem-activerecord-5_1" Wed Mar 27 16:21:37 2019 rev:7 rq:689005 version:5.1.6.2 Changes: --- /work/SRC/openSUSE:Factory/rubygem-activerecord-5_1/rubygem-activerecord-5_1.changes 2019-01-21 10:26:17.185689130 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-activerecord-5_1.new.25356/rubygem-activerecord-5_1.changes 2019-03-27 16:21:53.487523662 +0100 @@ -1,0 +2,10 @@ +Thu Mar 14 10:47:40 UTC 2019 - Stephan Kulow + +- updated to version 5.1.6.2 + see installed CHANGELOG.md + + ## Rails 5.1.6.2 (March 11, 2019) ## + + * No changes. + +--- Old: activerecord-5.1.6.1.gem New: activerecord-5.1.6.2.gem Other differences: -- ++ rubygem-activerecord-5_1.spec ++ --- /var/tmp/diff_new_pack.hQF8aS/_old 2019-03-27 16:21:54.095523535 +0100 +++ /var/tmp/diff_new_pack.hQF8aS/_new 2019-03-27 16:21:54.099523535 +0100 @@ -1,7 +1,7 @@ # # spec file for package rubygem-activerecord-5_1 # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 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-activerecord-5_1 -Version:5.1.6.1 +Version:5.1.6.2 Release:0 %define mod_name activerecord %define mod_full_name %{mod_name}-%{version} ++ activerecord-5.1.6.1.gem -> activerecord-5.1.6.2.gem ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md --- old/CHANGELOG.md2018-11-27 21:10:02.0 +0100 +++ new/CHANGELOG.md2019-03-13 17:45:26.0 +0100 @@ -1,3 +1,8 @@ +## Rails 5.1.6.2 (March 11, 2019) ## + +* No changes. + + ## Rails 5.1.6.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_record/gem_version.rb new/lib/active_record/gem_version.rb --- old/lib/active_record/gem_version.rb2018-11-27 21:10:02.0 +0100 +++ new/lib/active_record/gem_version.rb2019-03-13 17:45:27.0 +0100 @@ -8,7 +8,7 @@ MAJOR = 5 MINOR = 1 TINY = 6 -PRE = "1" +PRE = "2" STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".") end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata --- old/metadata2018-11-27 21:10:02.0 +0100 +++ new/metadata2019-03-13 17:45:26.0 +0100 @@ -1,14 +1,14 @@ --- !ruby/object:Gem::Specification name: activerecord version: !ruby/object:Gem::Version - version: 5.1.6.1 + version: 5.1.6.2 platform: ruby authors: - David Heinemeier Hansson autorequire: bindir: bin cert_chain: [] -date: 2018-11-27 00:00:00.0 Z +date: 2019-03-13 00:00:00.0 Z dependencies: - !ruby/object:Gem::Dependency name: activesupport @@ -16,28 +16,28 @@ requirements: - - '=' - !ruby/object:Gem::Version -version: 5.1.6.1 +version: 5.1.6.2 type: :runtime prerelease: false version_requirements: !ruby/object:Gem::Requirement requirements: - - '=' - !ruby/object:Gem::Version -version: 5.1.6.1 +version: 5.1.6.2 - !ruby/object:Gem::Dependency name: activemodel requirement: !ruby/object:Gem::Requirement requirements: - - '=' - !ruby/object:Gem::Version -version: 5.1.6.1 +version: 5.1.6.2 type: :runtime prerelease: false version_requirements: !ruby/object:Gem::Requirement requirements: - - '=' - !ruby/object:Gem::Version -version: 5.1.6.1 +version: 5.1.6.2 - !ruby/object:Gem::Dependency name: arel requirement: !ruby/object:Gem::Requirement @@ -320,8 +320,8 @@ licenses: - MIT metadata: - source_code_uri: https://github.com/rails/rails/tree/v5.1.6.1/activerecord - changelog_uri: https://github.com/rails/rails/blob/v5.1.6.1/activerecord/CHANGELOG.md + source_code_uri: https://github.com/rails/rails/tree/v5.1.6.2/activerecord + changelog_uri: https://github.com/rails/rails/blob/v5.1.6.2/activerecord/CHANGELOG.md post_install_message: rdoc_options: - "--main" @@ -339,8 +339
commit rubygem-activerecord-5_1 for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-activerecord-5_1 for openSUSE:Factory checked in at 2019-01-21 10:26:15 Comparing /work/SRC/openSUSE:Factory/rubygem-activerecord-5_1 (Old) and /work/SRC/openSUSE:Factory/.rubygem-activerecord-5_1.new.28833 (New) Package is "rubygem-activerecord-5_1" Mon Jan 21 10:26:15 2019 rev:6 rq:656389 version:5.1.6.1 Changes: --- /work/SRC/openSUSE:Factory/rubygem-activerecord-5_1/rubygem-activerecord-5_1.changes 2018-07-18 22:48:23.068066114 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-activerecord-5_1.new.28833/rubygem-activerecord-5_1.changes 2019-01-21 10:26:17.185689130 +0100 @@ -1,0 +2,10 @@ +Sat Dec 8 16:16:54 UTC 2018 - Stephan Kulow + +- updated to version 5.1.6.1 + see installed CHANGELOG.md + + ## Rails 5.1.6.1 (November 27, 2018) ## + + * No changes. + +--- Old: activerecord-5.1.6.gem New: activerecord-5.1.6.1.gem Other differences: -- ++ rubygem-activerecord-5_1.spec ++ --- /var/tmp/diff_new_pack.OYIPee/_old 2019-01-21 10:26:17.669688599 +0100 +++ /var/tmp/diff_new_pack.OYIPee/_new 2019-01-21 10:26:17.669688599 +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-activerecord-5_1 -Version:5.1.6 +Version:5.1.6.1 Release:0 %define mod_name activerecord %define mod_full_name %{mod_name}-%{version} ++ activerecord-5.1.6.gem -> activerecord-5.1.6.1.gem ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md --- old/CHANGELOG.md2018-03-29 20:27:10.0 +0200 +++ new/CHANGELOG.md2018-11-27 21:10:02.0 +0100 @@ -1,3 +1,8 @@ +## Rails 5.1.6.1 (November 27, 2018) ## + +* No changes. + + ## Rails 5.1.6 (March 29, 2018) ## * MySQL: Support mysql2 0.5.x. 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_record/gem_version.rb new/lib/active_record/gem_version.rb --- old/lib/active_record/gem_version.rb2018-03-29 20:27:10.0 +0200 +++ new/lib/active_record/gem_version.rb2018-11-27 21:10:02.0 +0100 @@ -8,7 +8,7 @@ MAJOR = 5 MINOR = 1 TINY = 6 -PRE = nil +PRE = "1" STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".") end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata --- old/metadata2018-03-29 20:27:10.0 +0200 +++ new/metadata2018-11-27 21:10:02.0 +0100 @@ -1,14 +1,14 @@ --- !ruby/object:Gem::Specification name: activerecord version: !ruby/object:Gem::Version - version: 5.1.6 + version: 5.1.6.1 platform: ruby authors: - David Heinemeier Hansson autorequire: bindir: bin cert_chain: [] -date: 2018-03-29 00:00:00.0 Z +date: 2018-11-27 00:00:00.0 Z dependencies: - !ruby/object:Gem::Dependency name: activesupport @@ -16,28 +16,28 @@ requirements: - - '=' - !ruby/object:Gem::Version -version: 5.1.6 +version: 5.1.6.1 type: :runtime prerelease: false version_requirements: !ruby/object:Gem::Requirement requirements: - - '=' - !ruby/object:Gem::Version -version: 5.1.6 +version: 5.1.6.1 - !ruby/object:Gem::Dependency name: activemodel requirement: !ruby/object:Gem::Requirement requirements: - - '=' - !ruby/object:Gem::Version -version: 5.1.6 +version: 5.1.6.1 type: :runtime prerelease: false version_requirements: !ruby/object:Gem::Requirement requirements: - - '=' - !ruby/object:Gem::Version -version: 5.1.6 +version: 5.1.6.1 - !ruby/object:Gem::Dependency name: arel requirement: !ruby/object:Gem::Requirement @@ -320,8 +320,8 @@ licenses: - MIT metadata: - source_code_uri: https://github.com/rails/rails/tree/v5.1.6/activerecord - changelog_uri: https://github.com/rails/rails/blob/v5.1.6/activerecord/CHANGELOG.md + source_code_uri: https://github.com/rails/rails/tree/v5.1.6.1/activerecord + changelog_uri: https://github.com/rails/rails/blob/v5.1.6.1/activerecord/CHANGELOG.md post_install_message: rdoc_options: - "--main" @@ -340,7 +340,7 @@ version: '0' requirements: [] rubyforge_project: -ru
commit rubygem-activerecord-5_1 for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-activerecord-5_1 for openSUSE:Factory checked in at 2018-07-18 22:48:20 Comparing /work/SRC/openSUSE:Factory/rubygem-activerecord-5_1 (Old) and /work/SRC/openSUSE:Factory/.rubygem-activerecord-5_1.new (New) Package is "rubygem-activerecord-5_1" Wed Jul 18 22:48:20 2018 rev:5 rq:620983 version:5.1.6 Changes: --- /work/SRC/openSUSE:Factory/rubygem-activerecord-5_1/rubygem-activerecord-5_1.changes 2018-02-18 11:44:40.508623560 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-activerecord-5_1.new/rubygem-activerecord-5_1.changes 2018-07-18 22:48:23.068066114 +0200 @@ -1,0 +2,53 @@ +Fri Mar 30 04:31:05 UTC 2018 - factory-a...@kulow.org + +- updated to version 5.1.6 + see installed CHANGELOG.md + + ## Rails 5.1.6 (March 29, 2018) ## + + * MySQL: Support mysql2 0.5.x. + + *Aaron Stone* + + * Apply time column precision on assignment. + + PR #20317 changed the behavior of datetime columns so that when they + have a specified precision then on assignment the value is rounded to + that precision. This behavior is now applied to time columns as well. + + Fixes #30301. + + *Andrew White* + + * Normalize time column values for SQLite database. + + For legacy reasons, time columns in SQLite are stored as full datetimes + because until #24542 the quoting for time columns didn't remove the date + component. To ensure that values are consistent we now normalize the + date component to 2001-01-01 on reading and writing. + + *Andrew White* + + * Ensure that the date component is removed when quoting times. + + PR #24542 altered the quoting for time columns so that the date component + was removed however it only removed it when it was 2001-01-01. Now the + date component is removed irrespective of what the date is. + + *Andrew White* + + * Fix that after commit callbacks on update does not triggered when optimistic locking is enabled. + + *Ryuta Kamizono* + + * `ActiveRecord::Persistence#touch` does not work well when optimistic locking enabled and + `locking_column`, without default value, is null in the database. + + *bogdanvlviv* + + * Fix destroying existing object does not work well when optimistic locking enabled and + `locking column` is null in the database. + + *bogdanvlviv* + +--- Old: activerecord-5.1.5.gem New: activerecord-5.1.6.gem Other differences: -- ++ rubygem-activerecord-5_1.spec ++ --- /var/tmp/diff_new_pack.dZo9Mc/_old 2018-07-18 22:48:23.492064708 +0200 +++ /var/tmp/diff_new_pack.dZo9Mc/_new 2018-07-18 22:48:23.496064695 +0200 @@ -24,7 +24,7 @@ # Name: rubygem-activerecord-5_1 -Version:5.1.5 +Version:5.1.6 Release:0 %define mod_name activerecord %define mod_full_name %{mod_name}-%{version} ++ activerecord-5.1.5.gem -> activerecord-5.1.6.gem ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md --- old/CHANGELOG.md2018-02-14 20:54:31.0 +0100 +++ new/CHANGELOG.md2018-03-29 20:27:10.0 +0200 @@ -1,5 +1,57 @@ +## Rails 5.1.6 (March 29, 2018) ## + +* MySQL: Support mysql2 0.5.x. + +*Aaron Stone* + +* Apply time column precision on assignment. + +PR #20317 changed the behavior of datetime columns so that when they +have a specified precision then on assignment the value is rounded to +that precision. This behavior is now applied to time columns as well. + +Fixes #30301. + +*Andrew White* + +* Normalize time column values for SQLite database. + +For legacy reasons, time columns in SQLite are stored as full datetimes +because until #24542 the quoting for time columns didn't remove the date +component. To ensure that values are consistent we now normalize the +date component to 2001-01-01 on reading and writing. + +*Andrew White* + +* Ensure that the date component is removed when quoting times. + +PR #24542 altered the quoting for time columns so that the date component +was removed however it only removed it when it was 2001-01-01. Now the +date component is removed irrespective of what the date is. + +*Andrew White* + +* Fix that after commit callbacks on update does not triggered when optimistic locking is enabled. + +*Ryuta Kamizono* + +* `ActiveRecord::Persistence#touch` does not work well when optimistic locking enabled and +`locking_column`, without default value, is null in the database. + +*bogdanvl
commit rubygem-activerecord-5_1 for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-activerecord-5_1 for openSUSE:Factory checked in at 2018-02-18 11:44:26 Comparing /work/SRC/openSUSE:Factory/rubygem-activerecord-5_1 (Old) and /work/SRC/openSUSE:Factory/.rubygem-activerecord-5_1.new (New) Package is "rubygem-activerecord-5_1" Sun Feb 18 11:44:26 2018 rev:4 rq:577554 version:5.1.5 Changes: --- /work/SRC/openSUSE:Factory/rubygem-activerecord-5_1/rubygem-activerecord-5_1.changes 2017-11-20 17:07:29.721224352 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-activerecord-5_1.new/rubygem-activerecord-5_1.changes 2018-02-18 11:44:40.508623560 +0100 @@ -1,0 +2,156 @@ +Thu Feb 15 05:29:44 UTC 2018 - factory-a...@kulow.org + +- updated to version 5.1.5 + see installed CHANGELOG.md + + ## Rails 5.1.5 (February 14, 2018) ## + + * Fix `count(:all)` with eager loading and having an order other than the driving table. + + Fixes #31783. + + *Ryuta Kamizono* + + * Use `count(:all)` in `HasManyAssociation#count_records` to prevent invalid + SQL queries for association counting. + + *Klas Eskilson* + + * Fix to invoke callbacks when using `update_attribute`. + + *Mike Busch* + + * Fix `count(:all)` to correctly work `distinct` with custom SELECT list. + + *Ryuta Kamizono* + + * Fix conflicts `counter_cache` with `touch: true` by optimistic locking. + + ``` + # create_table :posts do |t| + # t.integer :comments_count, default: 0 + # t.integer :lock_version + # t.timestamps + # end + class Post < ApplicationRecord + end + + # create_table :comments do |t| + # t.belongs_to :post + # end + class Comment < ApplicationRecord +belongs_to :post, touch: true, counter_cache: true + end + ``` + + Before: + ``` + post = Post.create! + # => begin transaction + INSERT INTO "posts" ("created_at", "updated_at", "lock_version") + VALUES ("2017-12-11 21:27:11.387397", "2017-12-11 21:27:11.387397", 0) + commit transaction + + comment = Comment.create!(post: post) + # => begin transaction + INSERT INTO "comments" ("post_id") VALUES (1) + + UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1, + "lock_version" = COALESCE("lock_version", 0) + 1 WHERE "posts"."id" = 1 + + UPDATE "posts" SET "updated_at" = '2017-12-11 21:27:11.398330', + "lock_version" = 1 WHERE "posts"."id" = 1 AND "posts"."lock_version" = 0 + rollback transaction + # => ActiveRecord::StaleObjectError: Attempted to touch a stale object: Post. + + Comment.take.destroy! + # => begin transaction + DELETE FROM "comments" WHERE "comments"."id" = 1 + + UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) - 1, + "lock_version" = COALESCE("lock_version", 0) + 1 WHERE "posts"."id" = 1 + + UPDATE "posts" SET "updated_at" = '2017-12-11 21:42:47.785901', + "lock_version" = 1 WHERE "posts"."id" = 1 AND "posts"."lock_version" = 0 + rollback transaction + # => ActiveRecord::StaleObjectError: Attempted to touch a stale object: Post. + ``` + + After: + ``` + post = Post.create! + # => begin transaction + INSERT INTO "posts" ("created_at", "updated_at", "lock_version") + VALUES ("2017-12-11 21:27:11.387397", "2017-12-11 21:27:11.387397", 0) + commit transaction + + comment = Comment.create!(post: post) + # => begin transaction + INSERT INTO "comments" ("post_id") VALUES (1) + + UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1, + "lock_version" = COALESCE("lock_version", 0) + 1, + "updated_at" = '2017-12-11 21:37:09.802642' WHERE "posts"."id" = 1 + commit transaction + + comment.destroy! + # => begin transaction + DELETE FROM "comments" WHERE "comments"."id" = 1 + + UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) - 1, + "lock_version" = COALESCE("lock_version", 0) + 1, + "updated_at" = '2017-12-11 21:39:02.685520' WHERE "posts"."id" = 1 + commit transaction + ``` + + Fixes #31199. + + *bogdanvlviv* + + * Query cache was unavailable when entering the `ActiveRecord::Base.cache` block + without being connected. + + *Tsukasa Oishi* + + * Fix `bin/rails db:setup` and `bin/rails db:test:prepare` create wrong + ar_internal_metadata's data for a test database. + + Before: + ``` + $ RAILS_ENV=test rails dbconsole + > SELECT * FROM ar_internal_metad
commit rubygem-activerecord-5_1 for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-activerecord-5_1 for openSUSE:Factory checked in at 2017-11-20 17:07:02 Comparing /work/SRC/openSUSE:Factory/rubygem-activerecord-5_1 (Old) and /work/SRC/openSUSE:Factory/.rubygem-activerecord-5_1.new (New) Package is "rubygem-activerecord-5_1" Mon Nov 20 17:07:02 2017 rev:3 rq:543855 version:5.1.4 Changes: --- /work/SRC/openSUSE:Factory/rubygem-activerecord-5_1/rubygem-activerecord-5_1.changes 2017-09-13 22:36:14.985647256 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-activerecord-5_1.new/rubygem-activerecord-5_1.changes 2017-11-20 17:07:29.721224352 +0100 @@ -1,0 +2,6 @@ +Mon Nov 20 11:05:20 UTC 2017 - mrueck...@suse.de + +- disable rdoc for now + https://github.com/rails/rails/commit/8dd76a7a6ff1bb7105beabb8f834ca54ab1e5fc2 + +--- @@ -692 +698 @@ -Wed Jul 23 13:30:41 UTC 2014 - mrueck...@suse.com +Wed Jul 23 13:30:41 UTC 2014 - mrueck...@suse.de Other differences: -- ++ rubygem-activerecord-5_1.spec ++ --- /var/tmp/diff_new_pack.fX2UOt/_old 2017-11-20 17:07:30.241205527 +0100 +++ /var/tmp/diff_new_pack.fX2UOt/_new 2017-11-20 17:07:30.245205383 +0100 @@ -58,6 +58,7 @@ %install %gem_install \ + --no-rdoc --no-ri \ --doc-files="CHANGELOG.md MIT-LICENSE README.rdoc" \ -f ++ gem2rpm.yml ++ --- /var/tmp/diff_new_pack.fX2UOt/_old 2017-11-20 17:07:30.281204079 +0100 +++ /var/tmp/diff_new_pack.fX2UOt/_new 2017-11-20 17:07:30.285203934 +0100 @@ -1,4 +1,5 @@ --- +:disable_docs: true :version_suffix: '-5_1' :preamble: |-
commit rubygem-activerecord-5_1 for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-activerecord-5_1 for openSUSE:Factory checked in at 2017-09-13 22:35:20 Comparing /work/SRC/openSUSE:Factory/rubygem-activerecord-5_1 (Old) and /work/SRC/openSUSE:Factory/.rubygem-activerecord-5_1.new (New) Package is "rubygem-activerecord-5_1" Wed Sep 13 22:35:20 2017 rev:2 rq:523504 version:5.1.4 Changes: --- /work/SRC/openSUSE:Factory/rubygem-activerecord-5_1/rubygem-activerecord-5_1.changes 2017-09-04 12:36:17.623754820 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-activerecord-5_1.new/rubygem-activerecord-5_1.changes 2017-09-13 22:36:14.985647256 +0200 @@ -1,0 +2,5 @@ +Mon Sep 11 09:22:02 UTC 2017 - enava...@suse.com + +- Update to version 5.1.4 + +--- Old: activerecord-5.1.3.gem New: activerecord-5.1.4.gem Other differences: -- ++ rubygem-activerecord-5_1.spec ++ --- /var/tmp/diff_new_pack.bFwBVL/_old 2017-09-13 22:36:15.737541391 +0200 +++ /var/tmp/diff_new_pack.bFwBVL/_new 2017-09-13 22:36:15.737541391 +0200 @@ -24,7 +24,7 @@ # Name: rubygem-activerecord-5_1 -Version:5.1.3 +Version:5.1.4 Release:0 %define mod_name activerecord %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 ++ activerecord-5.1.3.gem -> activerecord-5.1.4.gem ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md --- old/CHANGELOG.md2017-08-03 21:13:00.0 +0200 +++ new/CHANGELOG.md2017-09-08 02:48:53.0 +0200 @@ -1,3 +1,42 @@ +## Rails 5.1.4 (September 07, 2017) ## + +* No changes. + + +## Rails 5.1.4.rc1 (August 24, 2017) ## + +* Ensure `sum` honors `distinct` on `has_many :through` associations + +Fixes #16791 + +*Aaron Wortham + +* Fix `COUNT(DISTINCT ...)` with `ORDER BY` and `LIMIT` to keep the existing select list. + +*Ryuta Kamizono* + +* Fix `unscoped(where: [columns])` removing the wrong bind values + +When the `where` is called on a relation after a `or`, unscoping the column of that later `where`, it removed +bind values used by the `or` instead. + +``` +Post.where(id: 1).or(Post.where(id: 2)).where(foo: 3).unscope(where: :foo).to_sql +# Currently: +# SELECT "posts".* FROM "posts" WHERE ("posts"."id" = 2 OR "posts"."id" = 3) +# With fix: +# SELECT "posts".* FROM "posts" WHERE ("posts"."id" = 1 OR "posts"."id" = 2) +``` + +*Maxime Handfield Lapointe* + +* When a `has_one` association is destroyed by `dependent: destroy`, +`destroyed_by_association` will now be set to the reflection, matching the +behaviour of `has_many` associations. + +*Lisa Ugray* + + ## Rails 5.1.3 (August 03, 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_record/associations/association_scope.rb new/lib/active_record/associations/association_scope.rb --- old/lib/active_record/associations/association_scope.rb 2017-08-03 21:13:00.0 +0200 +++ new/lib/active_record/associations/association_scope.rb 2017-09-08 02:48:53.0 +0200 @@ -66,11 +66,11 @@ foreign_key = join_keys.foreign_key value = transform_value(owner[foreign_key]) - scope = scope.where(table.name => { key => value }) + scope = apply_scope(scope, table, key, value) if reflection.type polymorphic_type = transform_value(owner.class.base_class.name) -scope = scope.where(table.name => { reflection.type => polymorphic_type }) +scope = apply_scope(scope, table, reflection.type, polymorphic_type) end scope @@ -89,10 +89,10 @@ if reflection.type value = transform_value(next_reflection.klass.base_class.name) -scope = scope.where(table.name => { reflection.type => value }) +scope = apply_scope(scope, table, reflection.type, value) end - scope = scope.joins(join(foreign_table, constraint)) + scope.joins!(join(foreign_table, constraint)) end class ReflectionProxy < SimpleDele