rgviz-rails 0.66 → 0.67

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/rgviz_rails/executor.rb +3 -3
  2. metadata +6 -6
@@ -163,7 +163,7 @@ module Rgviz
163
163
  if conditions
164
164
  if @extra_conditions.kind_of? String
165
165
  conditions = "(#{conditions}) AND #{@extra_conditions}"
166
- elsif @extra_conditions.kind_of? Array
166
+ elsif @extra_conditions.kind_of?(Array) && !@extra_conditions.empty?
167
167
  conditions = ["(#{conditions}) AND #{@extra_conditions[0]}", *@extra_conditions[1 .. -1]]
168
168
  end
169
169
  else
@@ -556,10 +556,10 @@ module Rgviz
556
556
  @string += ')'
557
557
  when UnaryExpression::IsNull
558
558
  node.operand.accept self
559
- @string += 'is null'
559
+ @string += ' is null'
560
560
  when UnaryExpression::IsNotNull
561
561
  node.operand.accept self
562
- @string += 'is not null'
562
+ @string += ' is not null'
563
563
  end
564
564
  false
565
565
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rgviz-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.66'
4
+ version: '0.67'
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-03-19 00:00:00.000000000Z
12
+ date: 2012-04-05 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rgviz
16
- requirement: &70270573233360 !ruby/object:Gem::Requirement
16
+ requirement: &70182476133340 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0.43'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70270573233360
24
+ version_requirements: *70182476133340
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rails
27
- requirement: &70270573232840 !ruby/object:Gem::Requirement
27
+ requirement: &70182476132920 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70270573232840
35
+ version_requirements: *70182476132920
36
36
  description:
37
37
  email: aborenszweig@manas.com.ar
38
38
  executables: []