arel 7.1.1 → 7.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/History.txt +8 -2
- data/lib/arel.rb +1 -1
- data/lib/arel/table.rb +2 -6
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2399144c676bc7f590c0204ea754fdf535a9d715
|
4
|
+
data.tar.gz: 67a31fe3f14b215a6e2ca0be88c9f97a6450f424
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ee16e1759920826871c7e9e61f858de0df42922bb43e827d769ff18525ff58b9af0cfda6e75a3df565f76d3cb7b1259efbc078fe5f3fa0269411eaf843459e1b
|
7
|
+
data.tar.gz: 2a3858946bbe6efefdf9a0e759455386958c6d6aa07be1fcad05083c869c387c1bf888a1bfbc88a0e3693bdf674dd3d86a69632069631182952e76cb69954f0c
|
data/History.txt
CHANGED
data/lib/arel.rb
CHANGED
data/lib/arel/table.rb
CHANGED
@@ -6,7 +6,7 @@ module Arel
|
|
6
6
|
@engine = nil
|
7
7
|
class << self; attr_accessor :engine; end
|
8
8
|
|
9
|
-
attr_accessor :name, :
|
9
|
+
attr_accessor :name, :table_alias
|
10
10
|
|
11
11
|
# TableAlias and Table both have a #table_name which is the name of the underlying table
|
12
12
|
alias :table_name :name
|
@@ -14,7 +14,6 @@ module Arel
|
|
14
14
|
def initialize(name, as: nil, type_caster: nil)
|
15
15
|
@name = name.to_s
|
16
16
|
@columns = nil
|
17
|
-
@aliases = []
|
18
17
|
@type_caster = type_caster
|
19
18
|
|
20
19
|
# Sometime AR sends an :as parameter to table, to let the table know
|
@@ -27,9 +26,7 @@ module Arel
|
|
27
26
|
end
|
28
27
|
|
29
28
|
def alias name = "#{self.name}_2"
|
30
|
-
Nodes::TableAlias.new(self, name)
|
31
|
-
@aliases << node
|
32
|
-
end
|
29
|
+
Nodes::TableAlias.new(self, name)
|
33
30
|
end
|
34
31
|
|
35
32
|
def from
|
@@ -94,7 +91,6 @@ module Arel
|
|
94
91
|
def eql? other
|
95
92
|
self.class == other.class &&
|
96
93
|
self.name == other.name &&
|
97
|
-
self.aliases == other.aliases &&
|
98
94
|
self.table_alias == other.table_alias
|
99
95
|
end
|
100
96
|
alias :== :eql?
|
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: 7.1.
|
4
|
+
version: 7.1.2
|
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: 2016-
|
14
|
+
date: 2016-09-13 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: minitest
|
@@ -182,7 +182,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
182
182
|
version: '0'
|
183
183
|
requirements: []
|
184
184
|
rubyforge_project:
|
185
|
-
rubygems_version: 2.
|
185
|
+
rubygems_version: 2.5.1
|
186
186
|
signing_key:
|
187
187
|
specification_version: 4
|
188
188
|
summary: Arel Really Exasperates Logicians Arel is a SQL AST manager for Ruby
|