arel 7.1.1 → 7.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/History.txt +8 -2
  3. data/lib/arel.rb +1 -1
  4. data/lib/arel/table.rb +2 -6
  5. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 74721abc602f44a3b42651cf34127fbddd3c9c72
4
- data.tar.gz: 709871d9dc2e30646a10a55e7ba4193a6ecccf1c
3
+ metadata.gz: 2399144c676bc7f590c0204ea754fdf535a9d715
4
+ data.tar.gz: 67a31fe3f14b215a6e2ca0be88c9f97a6450f424
5
5
  SHA512:
6
- metadata.gz: be4afc1637d325ee7259e5f0af3f5fbfce02a92dbf8bfc5cac22e5b012e24c3b6d700aa1515b8e5b93f56014b0b5fa4ab950d1997ac1d91dab0639b2599a35a4
7
- data.tar.gz: c1b9ee3bfeaf03b52aaad94d18a614c88532feb8f24cc282b8407cdc9d6b8f607329c40c32bfdbb8fad0c4d692ac63822a1d2f6ef922df6b2cfec5cf1ce16454
6
+ metadata.gz: ee16e1759920826871c7e9e61f858de0df42922bb43e827d769ff18525ff58b9af0cfda6e75a3df565f76d3cb7b1259efbc078fe5f3fa0269411eaf843459e1b
7
+ data.tar.gz: 2a3858946bbe6efefdf9a0e759455386958c6d6aa07be1fcad05083c869c387c1bf888a1bfbc88a0e3693bdf674dd3d86a69632069631182952e76cb69954f0c
@@ -1,8 +1,14 @@
1
+ === 7.1.2 / 2016-09-13
2
+
3
+ * bug fixes
4
+
5
+ * Don't store all aliases to a table
6
+
1
7
  === 7.1.1 / 2016-07-27
2
8
 
3
- * Bug Fixes
9
+ * bug fixes
4
10
 
5
- * Fix warning in `Casted#hash`
11
+ * fix warning in `casted#hash`
6
12
 
7
13
  === 7.1.0 / 2016-07-19
8
14
 
@@ -21,7 +21,7 @@ require 'arel/delete_manager'
21
21
  require 'arel/nodes'
22
22
 
23
23
  module Arel
24
- VERSION = '7.1.1'
24
+ VERSION = '7.1.2'
25
25
 
26
26
  def self.sql raw_sql
27
27
  Arel::Nodes::SqlLiteral.new raw_sql
@@ -6,7 +6,7 @@ module Arel
6
6
  @engine = nil
7
7
  class << self; attr_accessor :engine; end
8
8
 
9
- attr_accessor :name, :aliases, :table_alias
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).tap do |node|
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.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-07-27 00:00:00.000000000 Z
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.6.6
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