activerecord 4.0.10.rc1 → 4.0.10.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: 9e2615e59df2a45d733db0443fc18cdcbbe8c23a
4
- data.tar.gz: 4f80740add455d8f6216565e6173b926d3966098
3
+ metadata.gz: 4531642a42d912b4196f8b84d208cdc11db3d580
4
+ data.tar.gz: ccec8990e94cb81f7a1ac8d8490998da72d14f6f
5
5
  SHA512:
6
- metadata.gz: 75ebff890bf4e8fbd498066ca8ee231b07f7f6194f48eeb01a1ac6aec6f045bcdbd5bf307e57160a2542a1416167becf0ba949ae6e313d542f8e162efe03539b
7
- data.tar.gz: a523ea0a98c5bd43b62b90c02053fcc0056213ac411769675cf43e4be641e2839f96c6f31477d8e0bdc175df71fa4336aced6a9b528ae04d91c6620fe1f4f40d
6
+ metadata.gz: 5090f7c0fcd50099472c4ab41d0c4481e92f98db57909c7657053173ab2688a8b2b7fbef6add5a70b5a9d949b9013ddf585a9374d66b9d494dcf980e8aa3818b
7
+ data.tar.gz: 58e52c056e8738312c798c969114e92ff92c3eff587f21d2d76a5a21267f08069d9551c189553ff3f30fae9dc17fbd2a5f99c0316bd2672b7bd08f41fed2a102
@@ -1,6 +1,13 @@
1
- ## Rails 4.0.10 (August 19, 2014) ##
1
+ ## Rails 4.0.10 (September 8, 2014) ##
2
2
 
3
- * Fix regression on after_commit that didnt fire when having nested transactions.
3
+ * Fixed a regression where whitespaces were stripped from DISTINCT queries in
4
+ PostgreSQL.
5
+
6
+ *Agis Anastasopoulos*
7
+
8
+ Fixes #16623.
9
+
10
+ * Fix regression on after_commit that didn't fire when having nested transactions.
4
11
 
5
12
  Fixes #16425
6
13
 
@@ -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)?\s*(?:NULLS\s+(?:FIRST|LAST)\s*)?/i, '')
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(', ')
@@ -1,7 +1,7 @@
1
1
  module ActiveRecord
2
2
  # Returns the version of the currently loaded ActiveRecord as a Gem::Version
3
3
  def self.version
4
- Gem::Version.new "4.0.10.rc1"
4
+ Gem::Version.new "4.0.10.rc2"
5
5
  end
6
6
 
7
7
  module VERSION #:nodoc:
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.0.10.rc1
4
+ version: 4.0.10.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-19 00:00:00.000000000 Z
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.0.10.rc1
19
+ version: 4.0.10.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.0.10.rc1
26
+ version: 4.0.10.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.0.10.rc1
33
+ version: 4.0.10.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.0.10.rc1
40
+ version: 4.0.10.rc2
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: arel
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -260,7 +260,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
260
260
  version: 1.3.1
261
261
  requirements: []
262
262
  rubyforge_project:
263
- rubygems_version: 2.3.0
263
+ rubygems_version: 2.2.2
264
264
  signing_key:
265
265
  specification_version: 4
266
266
  summary: Object-relational mapper framework (part of Rails).