ath 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c91de42f95791d3fe9be38882ac14ecf0c81618f
4
- data.tar.gz: 8ecad5ef8c2818b371117ec83889ba709bd71282
3
+ metadata.gz: 9c820fa4bd7522705e5281f23b93c09335c503e3
4
+ data.tar.gz: 9236b5bedbab5f54f0f985c76923dd4d74033563
5
5
  SHA512:
6
- metadata.gz: fde85f64b72240c7c5d0b0557d711fd623513071775aa0c5d18819545b52fee25081aeecc46b657f6eb9bb110ea54db81bfeb6e8f6b7ca329f3307ef954d820d
7
- data.tar.gz: e4d68468a9e5f7ee113cc55dadce6ac431e32fa7c531bd2d7d513f09f6c340200a4e0e9f8554b078a5ac360e4640c0e8414d1aac2c12743b7b205d6328a890bc
6
+ metadata.gz: d5aa20f1a6730da112c695996d6d3cfc955dd6629b22d122c2762c6d4a72e317d285c15faee6e063c5d1f31017bbcd8e33011024cf7908568b3edfd710102117
7
+ data.tar.gz: 3647dbeb86b76c62196bb70fe5cdcd887c1c58cf1ab48df6f4745cdad9555102dc6e80f4e5b2adf9e410236d087bc486eab8c7bbc3471b6f0224aa7c76523e03
data/lib/ath/driver.rb CHANGED
@@ -23,9 +23,9 @@ class Ath::Driver
23
23
  output_location = query_execution.result_configuration.output_location
24
24
  bucket, key = output_location.sub(%r{\As3://}, '').split('/', 2)
25
25
  tmp = Tempfile.create('ath')
26
+ head = @s3.head_object(bucket: bucket, key: key)
26
27
 
27
- if @options[:progress]
28
- head = @s3.head_object(bucket: bucket, key: key)
28
+ if @options[:progress] and head.content_length >= 1024 ** 2
29
29
  download_progressbar = ProgressBar.create(title: 'Download', total: head.content_length, output: $stderr)
30
30
 
31
31
  begin
data/lib/ath/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Ath
2
- VERSION = '0.1.6'
2
+ VERSION = '0.1.7'
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.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - winebarrel