rbhive 0.1.7 → 0.1.8

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/rbhive/schema.rb +2 -1
  2. metadata +4 -4
@@ -53,7 +53,8 @@ STORED AS TEXTFILE]
53
53
  end
54
54
 
55
55
  def partition_statement
56
- return '' if @partitions.size == 0
56
+ return "" if @partitions.nil? || @partitions.empty?
57
+
57
58
  cols = @partitions.join(",\n")
58
59
  "PARTITIONED BY (\n#{cols}\n)"
59
60
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbhive
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 11
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 7
10
- version: 0.1.7
9
+ - 8
10
+ version: 0.1.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - Forward Internet Group
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-11-02 00:00:00 +00:00
18
+ date: 2010-11-18 00:00:00 +00:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency