activerecord 4.1.6.rc1 → 4.1.6.rc2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ffa26950752a4e26f410090bfe18b1a2f13a149c
|
4
|
+
data.tar.gz: 3914f2f4761a975f436c84a2224ea835a34a9387
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1f2221d96c0009a585d932b20e55453802f2f01c55ad40e8394abfd19147bc7319ad64d46697551130a2da97ed25030301b8fb0d0b88d14b42094ee0f0c303e1
|
7
|
+
data.tar.gz: cb650222a0aa77e30357fb094bcdc9b3edab9ba6a6c20fff8a1658912a9262994651ec6038ef320a57354d2ddbefce6e6e711414ccccd3da15117fa169a6868e
|
data/CHANGELOG.md
CHANGED
@@ -1,4 +1,11 @@
|
|
1
|
-
## Rails 4.1.6 (
|
1
|
+
## Rails 4.1.6 (September 8, 2014) ##
|
2
|
+
|
3
|
+
* Fixed a regression where whitespaces were stripped from DISTINCT queries in
|
4
|
+
PostgreSQL.
|
5
|
+
|
6
|
+
*Agis Anastasopoulos*
|
7
|
+
|
8
|
+
Fixes #16623.
|
2
9
|
|
3
10
|
* Fixed an issue where custom accessor methods (such as those generated by
|
4
11
|
`enum`) with the same name as a global method are incorrectly overridden
|
@@ -91,12 +98,6 @@
|
|
91
98
|
|
92
99
|
*Matthew Draper*
|
93
100
|
|
94
|
-
* `has_many :through` associations will no longer save the through record
|
95
|
-
twice when added in an `after_create` callback defined before the
|
96
|
-
associations.
|
97
|
-
|
98
|
-
*Sean Griffin*
|
99
|
-
|
100
101
|
* Correctly extract IPv6 addresses from `DATABASE_URI`: the square brackets
|
101
102
|
are part of the URI structure, not the actual host.
|
102
103
|
|
@@ -339,7 +339,6 @@ module ActiveRecord
|
|
339
339
|
autosave = reflection.options[:autosave]
|
340
340
|
|
341
341
|
if records = associated_records_to_validate_or_save(association, @new_record_before_save, autosave)
|
342
|
-
|
343
342
|
if autosave
|
344
343
|
records_to_destroy = records.select(&:marked_for_destruction?)
|
345
344
|
records_to_destroy.each { |record| association.destroy(record) }
|
@@ -363,7 +362,6 @@ module ActiveRecord
|
|
363
362
|
|
364
363
|
raise ActiveRecord::Rollback unless saved
|
365
364
|
end
|
366
|
-
@new_record_before_save = false
|
367
365
|
end
|
368
366
|
|
369
367
|
# reconstruct the scope now that we know the owner's id
|
@@ -493,7 +493,8 @@ module ActiveRecord
|
|
493
493
|
# Convert Arel node to string
|
494
494
|
s = s.to_sql unless s.is_a?(String)
|
495
495
|
# Remove any ASC/DESC modifiers
|
496
|
-
s.gsub(/\s+(?:ASC|DESC)
|
496
|
+
s.gsub(/\s+(?:ASC|DESC)\b/i, '')
|
497
|
+
.gsub(/\s+NULLS\s+(?:FIRST|LAST)\b/i, '')
|
497
498
|
}.reject(&:blank?).map.with_index { |column, i| "#{column} AS alias_#{i}" }
|
498
499
|
|
499
500
|
[super, *order_columns].join(', ')
|
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: 4.1.6.
|
4
|
+
version: 4.1.6.rc2
|
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: 2014-08
|
11
|
+
date: 2014-09-08 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: 4.1.6.
|
19
|
+
version: 4.1.6.rc2
|
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: 4.1.6.
|
26
|
+
version: 4.1.6.rc2
|
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: 4.1.6.
|
33
|
+
version: 4.1.6.rc2
|
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: 4.1.6.
|
40
|
+
version: 4.1.6.rc2
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: arel
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -248,7 +248,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
248
248
|
version: 1.3.1
|
249
249
|
requirements: []
|
250
250
|
rubyforge_project:
|
251
|
-
rubygems_version: 2.
|
251
|
+
rubygems_version: 2.2.2
|
252
252
|
signing_key:
|
253
253
|
specification_version: 4
|
254
254
|
summary: Object-relational mapper framework (part of Rails).
|