arel 6.0.0 → 6.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 607f322b2e6662d91cbef8d1433904774af2584c
4
- data.tar.gz: 7b45ade5c1572eb9b60ec5bc96b90cf307ddd470
3
+ metadata.gz: 7afdd92f61d2200d30bca3a60994a651446fd492
4
+ data.tar.gz: 1bf5729263b47725b5eea3a1e09796fdc17fb0b0
5
5
  SHA512:
6
- metadata.gz: 9d3471ace631b643c589efca9461e4810a5db0b5f4a4f0126b56cd033c802d75a3cfb5b44771738869582bf651103679e4bfa7b3628328c5493f9992490bf627
7
- data.tar.gz: 8e5a1949954982acc175e6bc1f6c3e15070245d5d2643c292ac47fdc56b9cd19a37ac7390ee97c3570dd4269d4b4ae886ee8b35fcdcfc29056b4840bb1ae225b
6
+ metadata.gz: 52ef7413eb53e9e9f82b03ad5386385be8fccfffa16d7a1eedbc6bc5b555ec745db3664e490b574a0dbb6ce32d5d615385db8186ca124284a796ce1fc6cb54ec
7
+ data.tar.gz: d2b85b7367edc0b33eb71d0ff94f38a09cc88089bcd726eae431b0c0fead73cb648279168b7bbc499d024d7cbe50d9655a6572e13f9362d25d9948373c32de38
@@ -1,3 +1,9 @@
1
+ === 6.0.1 / 2014-07-10
2
+
3
+ * Bug fixes
4
+
5
+ * Stop quoting LIMIT values.
6
+
1
7
  === 6.0.0 / 2014-11-25
2
8
 
3
9
  * Enhancements
@@ -21,7 +21,7 @@ require 'arel/delete_manager'
21
21
  require 'arel/nodes'
22
22
 
23
23
  module Arel
24
- VERSION = '6.0.0'
24
+ VERSION = '6.0.1'
25
25
 
26
26
  def self.sql raw_sql
27
27
  Arel::Nodes::SqlLiteral.new raw_sql
@@ -19,7 +19,7 @@ module Arel
19
19
  end
20
20
 
21
21
  def limit
22
- @ast.limit && @ast.limit.expr.expr
22
+ @ast.limit && @ast.limit.expr
23
23
  end
24
24
  alias :taken :limit
25
25
 
@@ -216,8 +216,8 @@ module Arel
216
216
 
217
217
  def take limit
218
218
  if limit
219
- @ast.limit = Nodes::Limit.new(Nodes.build_quoted(limit))
220
- @ctx.top = Nodes::Top.new(Nodes.build_quoted(limit))
219
+ @ast.limit = Nodes::Limit.new(limit)
220
+ @ctx.top = Nodes::Top.new(limit)
221
221
  else
222
222
  @ast.limit = nil
223
223
  @ctx.top = nil
@@ -40,7 +40,7 @@ module Arel
40
40
  # http://dev.mysql.com/doc/refman/5.0/en/select.html#id3482214
41
41
  def visit_Arel_Nodes_SelectStatement o, collector
42
42
  if o.offset && !o.limit
43
- o.limit = Arel::Nodes::Limit.new(Nodes.build_quoted(18446744073709551615))
43
+ o.limit = Arel::Nodes::Limit.new(18446744073709551615)
44
44
  end
45
45
  super
46
46
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arel
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.0.0
4
+ version: 6.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aaron Patterson
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2014-11-25 00:00:00.000000000 Z
14
+ date: 2015-07-10 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: minitest
@@ -41,20 +41,6 @@ dependencies:
41
41
  - - "~>"
42
42
  - !ruby/object:Gem::Version
43
43
  version: '4.0'
44
- - !ruby/object:Gem::Dependency
45
- name: rake
46
- requirement: !ruby/object:Gem::Requirement
47
- requirements:
48
- - - ">="
49
- - !ruby/object:Gem::Version
50
- version: '0'
51
- type: :development
52
- prerelease: false
53
- version_requirements: !ruby/object:Gem::Requirement
54
- requirements:
55
- - - ">="
56
- - !ruby/object:Gem::Version
57
- version: '0'
58
44
  description: |-
59
45
  Arel Really Exasperates Logicians
60
46
 
@@ -177,7 +163,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
177
163
  version: '0'
178
164
  requirements: []
179
165
  rubyforge_project:
180
- rubygems_version: 2.2.2
166
+ rubygems_version: 2.4.7
181
167
  signing_key:
182
168
  specification_version: 4
183
169
  summary: Arel Really Exasperates Logicians Arel is a SQL AST manager for Ruby