ath 0.2.2 → 0.2.4

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.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +9 -3
  3. data/exe/ath +1 -1
  4. data/lib/ath/version.rb +1 -1
  5. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: acccdd6a3edf523a81dbc0d32e285bf417dfe537
4
- data.tar.gz: 1761cd55e84939da93c52170201bca105b0df184
3
+ metadata.gz: 399f1d61c2594b897dfaa078b3a37efcf845e4d4
4
+ data.tar.gz: 991941010b0cdc593d03b8cdb90c7661e0626c60
5
5
  SHA512:
6
- metadata.gz: 205ea572886da933579376542b6a7392d183ceae6e2d6128891d76853e9399b1de8a205ff1d85f6dc5d34d39c6a6fc9cb638c31d4962b789fa1257355f617a4c
7
- data.tar.gz: 408b92a5b45da05507a84d497f3167e4a17829fee263889b5b64334040a0434017a5e4eaa6e18adb2280f4769c757ff83d52eafb95dff65d2ecd6841953ddec4
6
+ metadata.gz: 5ab2de1eeee5ecbf2e56995c0bac3681e2438fd984404a141c8f0cc0dfc7f3f094db60e07b4db565a6a7c3218a1db9402e893c97137056d6f7adb25ee96adcaa
7
+ data.tar.gz: 27e37541d13f6fa18626be07a33a846d5bda8b43bbda8f3083362eacfbebf0c2044aa5c922287bb1a501003cb1c8cb07ee3dee00edbbed4ddaaf498d5c15ac61
data/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  ath is a interactive [Amazon Athena](https://aws.amazon.com/athena/) shell.
4
4
 
5
+ [![asciicast](https://asciinema.org/a/127476.png)](https://asciinema.org/a/127476)
6
+
5
7
  ## Installation
6
8
 
7
9
  Add this line to your application's Gemfile:
@@ -20,7 +22,10 @@ Or install it yourself as:
20
22
 
21
23
  ## Getting Started
22
24
 
23
- ```
25
+ ```sh
26
+ $ export AWS_ACCESS_KEY_ID=...
27
+ $ export AWS_SECRET_ACCESS_KEY=...
28
+ $ export AWS_REGION=ap-northeast-1
24
29
  $ export ATH_OUTPUT_LOCATION=s3://my-bucket
25
30
  $ #export ATH_PAGER='column -t -s,'
26
31
 
@@ -91,7 +96,7 @@ default> /save cf881630-a845-424a-8035-afe155505cac
91
96
  Save to /Users/.../cf881630-a845-424a-8035-afe155505cac.csv
92
97
  ```
93
98
 
94
- ```
99
+ ```sh
95
100
  $ echo 'select count(*) from elb_logs' | ath -d sampledb -f -
96
101
  "_col0"
97
102
  "1356206"
@@ -110,7 +115,8 @@ Usage: ath [options]
110
115
  --output-location S3URI
111
116
  -d, --database DATABASE
112
117
  -e, --execute QUERY
113
- -f, --file QUERY_FILR
118
+ -f, --file QUERY_FILE
119
+ --pager PAGER
114
120
  --[no-]progress
115
121
  --debug
116
122
  ```
data/exe/ath CHANGED
@@ -30,7 +30,7 @@ ARGV.options do |opt|
30
30
  opt.on('' , '--output-location S3URI') {|v| options[:output_location] = v }
31
31
  opt.on('-d', '--database DATABASE') {|v| options[:database] = v }
32
32
  opt.on('-e', '--execute QUERY') {|v| query = v }
33
- opt.on('-f', '--file QUERY_FILR') {|v| query_file = v }
33
+ opt.on('-f', '--file QUERY_FILE') {|v| query_file = v }
34
34
  opt.on('', '--pager PAGER') {|v| options[:pager] = v }
35
35
  opt.on('', '--[no-]progress') {|v| options[:progress] = v }
36
36
  opt.on('' , '--debug') { options[:debug] = true }
data/lib/ath/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Ath
2
- VERSION = '0.2.2'
2
+ VERSION = '0.2.4'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ath
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - winebarrel