smql 0.0.4.5 → 0.0.4.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/smql_to_ar.rb +3 -3
  3. metadata +3 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.4.5
1
+ 0.0.4.6
@@ -120,6 +120,7 @@ class SmqlToAR
120
120
  attr_accessor :model
121
121
 
122
122
  class Col
123
+ include Comparable
123
124
  attr_accessor :col, :as
124
125
  def initialize col, as = nil
125
126
  if col.kind_of? Col
@@ -139,12 +140,11 @@ class SmqlToAR
139
140
 
140
141
  def == other
141
142
  other = Col.new other
142
- @col = other.col && @as == other.col
143
+ @col == other.col && @as == other.as
143
144
  end
144
145
 
145
146
  def === other
146
- other = Col.new other
147
- @col == other.col
147
+ @col == Col.new( other).col
148
148
  end
149
149
  end
150
150
 
metadata CHANGED
@@ -6,8 +6,8 @@ version: !ruby/object:Gem::Version
6
6
  - 0
7
7
  - 0
8
8
  - 4
9
- - 5
10
- version: 0.0.4.5
9
+ - 6
10
+ version: 0.0.4.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Denis Knauf
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-11-28 00:00:00 +01:00
18
+ date: 2011-11-29 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency