arel 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -13,8 +13,6 @@ module Arel
13
13
  end
14
14
 
15
15
  attr_reader :name, :engine, :table_alias, :options, :christener
16
- attr_reader :table_exists
17
- alias :table_exists? :table_exists
18
16
 
19
17
  def initialize(name, options = {})
20
18
  @name = name.to_s
@@ -49,8 +47,6 @@ module Arel
49
47
  end
50
48
 
51
49
  @@tables ||= engine.connection.tables
52
- @table_exists = @@tables.include?(name) ||
53
- @engine.connection.table_exists?(name)
54
50
  end
55
51
  end
56
52
 
@@ -58,6 +54,10 @@ module Arel
58
54
  Table.new(name, options.merge(:as => table_alias))
59
55
  end
60
56
 
57
+ def table_exists?
58
+ @table_exists ||= @@tables.include?(name) || engine.connection.table_exists?(name)
59
+ end
60
+
61
61
  def attributes
62
62
  return @attributes if @attributes
63
63
  if table_exists?
@@ -1,3 +1,3 @@
1
1
  module Arel
2
- VERSION = "1.0.0" unless defined?(Arel::VERSION)
2
+ VERSION = "1.0.1" unless defined?(Arel::VERSION)
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arel
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 0
10
- version: 1.0.0
9
+ - 1
10
+ version: 1.0.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Bryan Helmkamp
@@ -26,15 +26,14 @@ dependencies:
26
26
  requirement: &id001 !ruby/object:Gem::Requirement
27
27
  none: false
28
28
  requirements:
29
- - - ">="
29
+ - - ~>
30
30
  - !ruby/object:Gem::Version
31
- hash: 31098225
31
+ hash: 7
32
32
  segments:
33
33
  - 3
34
34
  - 0
35
35
  - 0
36
- - beta
37
- version: 3.0.0.beta
36
+ version: 3.0.0
38
37
  type: :runtime
39
38
  version_requirements: *id001
40
39
  description: |-