hivonic 0.2.0 → 0.2.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ce1271a2a7e8a46a17c6df3e796918f76d7df93c
4
- data.tar.gz: a87587af4fabfebedb2254f8827da4ad79432668
3
+ metadata.gz: 112f99bf5bad93212b9df62d83aa3cb391e3b829
4
+ data.tar.gz: c51924364c0aec4fb6017adf178401186eea2313
5
5
  SHA512:
6
- metadata.gz: c7c968719506310322513f21a56eecf824cdfee320f3ccb3462d68349232981e568cfdc7f46e8654654dffe7f84a14feece64fa44a445086426b429bf685013c
7
- data.tar.gz: d60377e3ea9145876fc06d2f26fae7ee9961b897e415c36f3467710e370427371fd1196a8bf9b93d93849de28687b0ecf3e2fef49960324149eaf41cbcb606b7
6
+ metadata.gz: f58108d633fb37ac0854ce8af25a30aab6e1057318a66d62f3e56efc7841481f86febc1587d0edc386e8451d162eea918d257ba1c1ae8d8fb635aaa36000003c
7
+ data.tar.gz: 634b563745de787f9244e43425c46a35d58b7d355026e3a3516c33b88b5d4f33f287462f09421ec441cac0dead56284c8899f0e633ea9ca7880c895a1253b46e
data/.gitignore CHANGED
@@ -12,3 +12,7 @@ vendor/bundle
12
12
  ctags*
13
13
  *.sublime-*
14
14
  *.gem
15
+ .envrc
16
+ .ruby-version
17
+ bin/*
18
+ !bin/hivonic
data/CHANGELOG.md CHANGED
@@ -1,6 +1,13 @@
1
1
  Hivonic Changelog
2
2
  ===
3
3
 
4
+ 0.2.1
5
+ ---
6
+ * Tweaked HIVONIC_REGEXP env var's default value
7
+ * Tweaked .gitignore
8
+ * Fixed issue with cleanup command throwing a hive exception
9
+ * No longer outputs newline when subcommand output is nil or blank
10
+
4
11
  0.2.0
5
12
  ---
6
13
  * Added ability to specify match group index for regexp time capture
data/bin/hivonic CHANGED
@@ -15,7 +15,7 @@ program_desc 'A simple hive utility application for cleaning up temporary tables
15
15
  # arg_name 'database'
16
16
 
17
17
  hive_opts = ENV['HIVONIC_HIVE_OPTS'] || '-S' # -hiveconf hive.root.logger=DEBUG -S
18
- regexp = ENV['HIVONIC_REGEXP'] || '\A(tmp|view)[a-z|_|0-9]+_(\d{14})\Z'
18
+ regexp = ENV['HIVONIC_REGEXP'] || '\A(tmp|view)[a-z|_|0-9]+_(\d{14})\z'
19
19
  time_format = ENV['HIVONIC_TIME_FORMAT'] || '%Y%m%d%H%M%S'
20
20
  time_group_index = ENV['HIVONIC_TIME_GROUP_INDEX'] || 2
21
21
  ttl = ENV['HIVONIC_TTL'] || 86400
@@ -8,7 +8,7 @@ module Hivonic::Commands
8
8
  output, exitstatus = handler.run opts, args
9
9
 
10
10
  # Send Subcommand output to STDOUT
11
- puts output
11
+ puts output unless output.nil? || output.empty?
12
12
 
13
13
  # Return exit status
14
14
  exitstatus
@@ -155,7 +155,7 @@ module Hivonic::Commands
155
155
  end
156
156
 
157
157
  def query
158
- @query = "DROP TABLE '#{self.db}.#{self.table}';"
158
+ @query = "DROP TABLE #{self.db}.#{self.table};"
159
159
  end
160
160
  end
161
161
 
@@ -1,3 +1,3 @@
1
1
  module Hivonic
2
- VERSION = '0.2.0'
2
+ VERSION = '0.2.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hivonic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Will Drew
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-13 00:00:00.000000000 Z
11
+ date: 2015-03-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gli