hivonic 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +4 -0
- data/CHANGELOG.md +7 -0
- data/bin/hivonic +1 -1
- data/lib/hivonic/commands.rb +2 -2
- data/lib/hivonic/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 112f99bf5bad93212b9df62d83aa3cb391e3b829
|
4
|
+
data.tar.gz: c51924364c0aec4fb6017adf178401186eea2313
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f58108d633fb37ac0854ce8af25a30aab6e1057318a66d62f3e56efc7841481f86febc1587d0edc386e8451d162eea918d257ba1c1ae8d8fb635aaa36000003c
|
7
|
+
data.tar.gz: 634b563745de787f9244e43425c46a35d58b7d355026e3a3516c33b88b5d4f33f287462f09421ec441cac0dead56284c8899f0e633ea9ca7880c895a1253b46e
|
data/.gitignore
CHANGED
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})\
|
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
|
data/lib/hivonic/commands.rb
CHANGED
@@ -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
|
158
|
+
@query = "DROP TABLE #{self.db}.#{self.table};"
|
159
159
|
end
|
160
160
|
end
|
161
161
|
|
data/lib/hivonic/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2015-03-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gli
|