tigre-client 0.3.9 → 0.4.0

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.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- tigre-client (0.3.8)
4
+ tigre-client (0.3.9)
5
5
  faraday (~> 0.6.0)
6
6
  right_aws (~> 2.1.0)
7
7
 
@@ -61,14 +61,14 @@ module Tigre
61
61
  end
62
62
 
63
63
  def self.send_file_to_s3(md5, file)
64
- Tigre.logger.info 'Uploading file directly to S3'
64
+ Tigre.logger.info 'Uploading file directly to S3' if Tigre.logger
65
65
  s3 = RightAws::S3.new(Tigre.s3_key, Tigre.s3_secret)
66
66
  bucket = s3.bucket(Tigre.s3_bucket)
67
67
  file_name = [md5[0],md5[1],md5[2],md5[3],md5].join('/')
68
68
 
69
69
  bucket.put(file_name, IO.binread(file))
70
70
 
71
- Tigre.logger.info 'Updating sample with filename / filesize'
71
+ Tigre.logger.info 'Updating sample with filename / filesize' if Tigre.logger
72
72
  f = File.new(file, 'r')
73
73
  digest_hash = self.calculate_checksums(f)
74
74
  post_data = {:md5 => md5,
@@ -1,5 +1,5 @@
1
1
  module Tigre
2
2
  module Client
3
- VERSION = "0.3.9"
3
+ VERSION = "0.4.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: tigre-client
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.3.9
5
+ version: 0.4.0
6
6
  platform: ruby
7
7
  authors:
8
8
  - Marcio Castilho