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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4eca3e3f02b5c620934a1b3ab183e14a4609e771
4
- data.tar.gz: 6fe3749bd3cd13730eb11a9bdd58df62409dd294
3
+ metadata.gz: b4042b908218970c6108733c2c25bdc9cc356eda
4
+ data.tar.gz: 2c662c7c3272436fe8fa5db90d0fad2057a38d24
5
5
  SHA512:
6
- metadata.gz: cf64a336b40fe95cdcd07c147e74ffbc1a6ce52a74a5f1d1ff1b7924825c520b7965fe4a8c57285b6fc3e114447f8ad51e5f1f1512681cd699d336ebc502be8d
7
- data.tar.gz: c09c508e3ea5b0eca89ed3f5d60a52376a9f9d3853c8b07ee41d1426d1d0c28127fdecf5d645bbb37f5b09d024dae83d30d50fa47275cd1960ed3844dc518781
6
+ metadata.gz: 97283df40ca9a7c95eb62eead19a2f4be440257d3cf2f37bc32d5aa7e79d287e2c7be55e89c5aafd95c9c795f1d2a8241e9ff001a8bd610460f388819ee82527
7
+ data.tar.gz: 42ccb2c1873ab975b3a0589eac5ae7c0ece7fea02ad70134360e088574eab7b29ae05841c5a2cc7ad60ba98be20e987e954df9c879ad735d7f1097644ca2cf48
@@ -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.current_scope.clone
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:
@@ -7,8 +7,8 @@ module ActiveRecord
7
7
  module VERSION
8
8
  MAJOR = 5
9
9
  MINOR = 0
10
- TINY = 4
11
- PRE = nil
10
+ TINY = 5
11
+ PRE = "rc1"
12
12
 
13
13
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
14
14
  end
@@ -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
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-06-19 00:00:00.000000000 Z
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.4
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.4
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.4
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.4
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: '0'
328
+ version: 1.3.1
329
329
  requirements: []
330
330
  rubyforge_project:
331
331
  rubygems_version: 2.6.12