rgviz-rails 0.39 → 0.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -496,8 +496,7 @@ module Rgviz
496
496
 
497
497
  class OrderVisitor < ColumnVisitor
498
498
  def visit_order_by(node)
499
- i = 0
500
- node.sorts.each do |sort|
499
+ node.sorts.each_with_index do |sort, i|
501
500
  @string += ',' if i > 0
502
501
  sort.accept self
503
502
  end
@@ -293,7 +293,7 @@ module Rgviz
293
293
  end
294
294
 
295
295
  def visit_order_by(node)
296
- @s << "order_by "
296
+ @s << "order by "
297
297
  node.sorts.each_with_index do |s, i|
298
298
  @s << ', ' if i > 0
299
299
  s.column.accept self
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: 69
4
+ hash: 91
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 39
9
- version: "0.39"
8
+ - 40
9
+ version: "0.40"
10
10
  platform: ruby
11
11
  authors:
12
12
  - Ary Borenszweig