rgviz-rails 0.15 → 0.16

Sign up to get free protection for your applications and to get access to all the features.
@@ -410,6 +410,22 @@ module Rgviz
410
410
  false
411
411
  end
412
412
 
413
+ def visit_group_by(node)
414
+ node.columns.each_with_index do |c, i|
415
+ @string += ',' if i > 0
416
+ c.accept self
417
+ end
418
+ false
419
+ end
420
+
421
+ def visit_pivot(node)
422
+ node.columns.each_with_index do |c, i|
423
+ @string += ',' if i > 0
424
+ c.accept self
425
+ end
426
+ false
427
+ end
428
+
413
429
  def visit_label(node)
414
430
  false
415
431
  end
data/spec/spec_helper.rb CHANGED
@@ -6,8 +6,8 @@ require 'logger'
6
6
 
7
7
  require 'active_record'
8
8
 
9
- ActiveRecord::Base.establish_connection(:adapter => 'sqlite3', :database => ':memory:')
10
- #ActiveRecord::Base.establish_connection(:adapter => 'mysql', :database => 'rgviz_rails', :username => 'root', :password => 'root')
9
+ #ActiveRecord::Base.establish_connection(:adapter => 'sqlite3', :database => ':memory:')
10
+ ActiveRecord::Base.establish_connection(:adapter => 'mysql', :database => 'rgviz_rails', :username => 'root', :password => 'Manas.03')
11
11
 
12
12
  ActiveRecord::Schema.define do
13
13
  create_table "cities", :force => true do |t|
metadata CHANGED
@@ -1,12 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rgviz-rails
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 43
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 15
9
- version: "0.15"
8
+ - 16
9
+ version: "0.16"
10
10
  platform: ruby
11
11
  authors:
12
12
  - Ary Borenszweig