activerecord 5.0.4 → 5.0.5.rc1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of activerecord might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/lib/active_record/associations/join_dependency/join_association.rb +2 -2
- data/lib/active_record/connection_adapters/abstract/schema_statements.rb +1 -1
- data/lib/active_record/gem_version.rb +2 -2
- data/lib/active_record/tasks/database_tasks.rb +1 -1
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b4042b908218970c6108733c2c25bdc9cc356eda
|
4
|
+
data.tar.gz: 2c662c7c3272436fe8fa5db90d0fad2057a38d24
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 97283df40ca9a7c95eb62eead19a2f4be440257d3cf2f37bc32d5aa7e79d287e2c7be55e89c5aafd95c9c795f1d2a8241e9ff001a8bd610460f388819ee82527
|
7
|
+
data.tar.gz: 42ccb2c1873ab975b3a0589eac5ae7c0ece7fea02ad70134360e088574eab7b29ae05841c5a2cc7ad60ba98be20e987e954df9c879ad735d7f1097644ca2cf48
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,13 @@
|
|
1
|
+
## Rails 5.0.5.rc1 (July 19, 2017) ##
|
2
|
+
|
3
|
+
* `Relation#joins` is no longer affected by the target model's
|
4
|
+
`current_scope`, with the exception of `unscoped`.
|
5
|
+
|
6
|
+
Fixes #29338.
|
7
|
+
|
8
|
+
*Sean Griffin*
|
9
|
+
|
10
|
+
|
1
11
|
## Rails 5.0.4 (June 19, 2017) ##
|
2
12
|
|
3
13
|
* Restore previous behavior of collection proxies: their values can have
|
@@ -55,8 +55,8 @@ module ActiveRecord
|
|
55
55
|
scope_chain_index += 1
|
56
56
|
|
57
57
|
klass_scope =
|
58
|
-
if klass.current_scope
|
59
|
-
klass.
|
58
|
+
if klass.current_scope && klass.current_scope.values.empty?
|
59
|
+
klass.unscoped
|
60
60
|
else
|
61
61
|
relation = ActiveRecord::Relation.create(
|
62
62
|
klass,
|
@@ -986,7 +986,7 @@ module ActiveRecord
|
|
986
986
|
|
987
987
|
def dump_schema_information #:nodoc:
|
988
988
|
versions = ActiveRecord::SchemaMigration.order('version').pluck(:version)
|
989
|
-
insert_versions_sql(versions)
|
989
|
+
insert_versions_sql(versions) if versions.any?
|
990
990
|
end
|
991
991
|
|
992
992
|
def insert_versions_sql(versions) # :nodoc:
|
@@ -260,7 +260,7 @@ module ActiveRecord
|
|
260
260
|
def check_schema_file(filename)
|
261
261
|
unless File.exist?(filename)
|
262
262
|
message = %{#{filename} doesn't exist yet. Run `rails db:migrate` to create it, then try again.}
|
263
|
-
message << %{ If you do not intend to use a database, you should instead alter #{Rails.root}/config/application.rb to limit the frameworks that will be loaded.} if defined?(::Rails)
|
263
|
+
message << %{ If you do not intend to use a database, you should instead alter #{Rails.root}/config/application.rb to limit the frameworks that will be loaded.} if defined?(::Rails.root)
|
264
264
|
Kernel.abort message
|
265
265
|
end
|
266
266
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activerecord
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.0.
|
4
|
+
version: 5.0.5.rc1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Heinemeier Hansson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-07-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 5.0.
|
19
|
+
version: 5.0.5.rc1
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 5.0.
|
26
|
+
version: 5.0.5.rc1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: activemodel
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 5.0.
|
33
|
+
version: 5.0.5.rc1
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - '='
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 5.0.
|
40
|
+
version: 5.0.5.rc1
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: arel
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -323,9 +323,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
323
323
|
version: 2.2.2
|
324
324
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
325
325
|
requirements:
|
326
|
-
- - "
|
326
|
+
- - ">"
|
327
327
|
- !ruby/object:Gem::Version
|
328
|
-
version:
|
328
|
+
version: 1.3.1
|
329
329
|
requirements: []
|
330
330
|
rubyforge_project:
|
331
331
|
rubygems_version: 2.6.12
|