smql 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/smql_to_ar/condition_types.rb +1 -1
- data/lib/smql_to_ar.rb +1 -3
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.2
|
@@ -177,7 +177,7 @@ class SmqlToAR
|
|
177
177
|
builder.wobs (v = builder.vid).to_sym => @value
|
178
178
|
@cols.each do |col|
|
179
179
|
col.joins builder, table
|
180
|
-
builder.where self.class::Where % [ builder.column( table, col), v.to_s]
|
180
|
+
builder.where self.class::Where % [ builder.column( table+col.path, col.col), v.to_s]
|
181
181
|
end
|
182
182
|
self
|
183
183
|
end
|
data/lib/smql_to_ar.rb
CHANGED
@@ -161,13 +161,11 @@ class SmqlToAR
|
|
161
161
|
class Railtie < ::Rails::Railtie
|
162
162
|
initializer "active_record.logger" do
|
163
163
|
SmqlToAR.logger = ::Rails.logger
|
164
|
-
$stderr.puts( { self: self, logger: SmqlToAR.logger}.inspect)
|
165
164
|
end
|
166
165
|
end
|
167
166
|
else
|
168
167
|
require 'logger'
|
169
168
|
@@logger = Logger.new $stdout
|
170
|
-
$stderr.puts( { logger: @@logger}.inspect)
|
171
169
|
end
|
172
170
|
|
173
171
|
class <<self
|
@@ -209,7 +207,7 @@ class SmqlToAR
|
|
209
207
|
benchmark 'SMQL' do
|
210
208
|
parse
|
211
209
|
build
|
212
|
-
ar
|
210
|
+
ar
|
213
211
|
end
|
214
212
|
end
|
215
213
|
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
8
|
+
- 2
|
9
|
+
version: 0.0.2
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Denis Knauf
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2011-09-
|
17
|
+
date: 2011-09-16 00:00:00 +02:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|