shipt 0.0.4.3 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/lib/shipt.rb +6 -1
  3. data/shipt.gemspec +1 -1
  4. metadata +3 -4
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.4.3
1
+ 0.0.5
data/lib/shipt.rb CHANGED
@@ -14,7 +14,12 @@ class Shipt
14
14
  end
15
15
 
16
16
  def upload_file(path)
17
- key_name = "#{@server_name}-#{Time.now.strftime("%Y%m%d-%H%M%S")}.log.bz2"
17
+ ext = File.extname(path)
18
+ key_name = if ext == '.log'
19
+ "#{@server_name}-#{Time.now.strftime("%Y%m%d-%H%M%S")}#{ext}"
20
+ else
21
+ "#{@server_name}-#{Time.now.strftime("%Y%m%d-%H%M%S")}.log#{ext}"
22
+ end
18
23
 
19
24
  @logger.info "Uploading \"#{path}\" => \"#{key_name}\""
20
25
 
data/shipt.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{shipt}
8
- s.version = "0.0.4.3"
8
+ s.version = "0.0.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Justin Smestad"]
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shipt
3
3
  version: !ruby/object:Gem::Version
4
- hash: 89
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 4
10
- - 3
11
- version: 0.0.4.3
9
+ - 5
10
+ version: 0.0.5
12
11
  platform: ruby
13
12
  authors:
14
13
  - Justin Smestad