shipt 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (8) hide show
  1. data/Gemfile +1 -1
  2. data/Gemfile.lock +14 -12
  3. data/Rakefile +2 -2
  4. data/VERSION +1 -1
  5. data/bin/shipt +1 -0
  6. data/lib/shipt.rb +3 -2
  7. data/shipt.gemspec +8 -8
  8. metadata +13 -11
data/Gemfile CHANGED
@@ -5,6 +5,6 @@ gem 'trollop'
5
5
 
6
6
  group :test do
7
7
  gem 'autotest'
8
- gem 'rspec', '~> 2.0.0.beta.18'
8
+ gem 'rspec', '~> 2.0.0.beta.22'
9
9
  gem 'yard'
10
10
  end
data/Gemfile.lock CHANGED
@@ -4,8 +4,8 @@ GEM
4
4
  autotest (4.3.2)
5
5
  builder (2.1.2)
6
6
  diff-lcs (1.1.2)
7
- excon (0.2.0)
8
- fog (0.2.22)
7
+ excon (0.2.2)
8
+ fog (0.2.30)
9
9
  builder
10
10
  excon (>= 0.2.0)
11
11
  formatador (>= 0.0.15)
@@ -15,21 +15,23 @@ GEM
15
15
  nokogiri (>= 1.4.3.1)
16
16
  ruby-hmac
17
17
  formatador (0.0.15)
18
- json (1.4.4)
18
+ json (1.4.6)
19
19
  mime-types (1.16)
20
20
  net-ssh (2.0.23)
21
21
  nokogiri (1.4.3.1)
22
- rspec (2.0.0.beta.19)
23
- rspec-core (= 2.0.0.beta.19)
24
- rspec-expectations (= 2.0.0.beta.19)
25
- rspec-mocks (= 2.0.0.beta.19)
26
- rspec-core (2.0.0.beta.19)
27
- rspec-expectations (2.0.0.beta.19)
22
+ rspec (2.0.0.beta.22)
23
+ rspec-core (= 2.0.0.beta.22)
24
+ rspec-expectations (= 2.0.0.beta.22)
25
+ rspec-mocks (= 2.0.0.beta.22)
26
+ rspec-core (2.0.0.beta.22)
27
+ rspec-expectations (2.0.0.beta.22)
28
28
  diff-lcs (>= 1.1.2)
29
- rspec-mocks (2.0.0.beta.19)
29
+ rspec-mocks (2.0.0.beta.22)
30
+ rspec-core (= 2.0.0.beta.22)
31
+ rspec-expectations (= 2.0.0.beta.22)
30
32
  ruby-hmac (0.4.0)
31
33
  trollop (1.16.2)
32
- yard (0.5.8)
34
+ yard (0.6.1)
33
35
 
34
36
  PLATFORMS
35
37
  ruby
@@ -37,6 +39,6 @@ PLATFORMS
37
39
  DEPENDENCIES
38
40
  autotest
39
41
  fog
40
- rspec (~> 2.0.0.beta.18)
42
+ rspec (~> 2.0.0.beta.22)
41
43
  trollop
42
44
  yard
data/Rakefile CHANGED
@@ -10,9 +10,9 @@ begin
10
10
  gem.email = "justin.smestad@gmail.com"
11
11
  gem.homepage = "http://github.com/jsmestad/shipt"
12
12
  gem.authors = ["Justin Smestad"]
13
- gem.add_dependency "fog", '~> 0.2.22'
13
+ gem.add_dependency "fog", '~> 0.2.30'
14
14
  gem.add_dependency "trollop", '~> 1.16.2'
15
- gem.add_development_dependency "rspec", ">= 1.2.9"
15
+ gem.add_development_dependency "rspec", ">= 2.0.0.beta.22"
16
16
  gem.add_development_dependency "yard", ">= 0"
17
17
  # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
18
18
  end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.5
1
+ 0.0.6
data/bin/shipt CHANGED
@@ -16,6 +16,7 @@ opts = Trollop::options do
16
16
  EOS
17
17
 
18
18
  opt :namespace, "Namespace for buckets", :type => :string, :default => ENV['AWS_BUCKET_NAMESPACE']
19
+ opt :description, "Additional descriptor tag", :type => :string, :default => nil
19
20
  opt :bucket, "Bucket name, should be server name", :type => :string, :default => ENV['AWS_BUCKET_NAME']
20
21
  opt :access_key, "Amazon Access Key", :type => :string, :default => ENV['AWS_ACCESS_KEY']
21
22
  opt :secret_key, "Amazon Secret Access Key", :type => :string, :default => ENV['AWS_SECRET_KEY']
data/lib/shipt.rb CHANGED
@@ -8,6 +8,7 @@ class Shipt
8
8
 
9
9
  @server_name = bucket_key
10
10
  @bucket_key = "#{options[:namespace]}-#{bucket_key}"
11
+ @description = options[:description]
11
12
  @access_key = options[:access_key]
12
13
  @secret_key = options[:secret_key]
13
14
  @logger = Logger.new(options[:logger] || STDOUT)
@@ -16,9 +17,9 @@ class Shipt
16
17
  def upload_file(path)
17
18
  ext = File.extname(path)
18
19
  key_name = if ext == '.log'
19
- "#{@server_name}-#{Time.now.strftime("%Y%m%d-%H%M%S")}#{ext}"
20
+ "#{@server_name}-#{@description}-#{Time.now.strftime("%Y%m%d-%H%M%S")}#{ext}"
20
21
  else
21
- "#{@server_name}-#{Time.now.strftime("%Y%m%d-%H%M%S")}.log#{ext}"
22
+ "#{@server_name}-#{@description}-#{Time.now.strftime("%Y%m%d-%H%M%S")}.log#{ext}"
22
23
  end
23
24
 
24
25
  @logger.info "Uploading \"#{path}\" => \"#{key_name}\""
data/shipt.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{shipt}
8
- s.version = "0.0.5"
8
+ s.version = "0.0.6"
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"]
12
- s.date = %q{2010-08-11}
12
+ s.date = %q{2010-09-18}
13
13
  s.default_executable = %q{shipt}
14
14
  s.description = %q{longer description of your gem}
15
15
  s.email = %q{justin.smestad@gmail.com}
@@ -52,20 +52,20 @@ Gem::Specification.new do |s|
52
52
  s.specification_version = 3
53
53
 
54
54
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
55
- s.add_runtime_dependency(%q<fog>, ["~> 0.2.22"])
55
+ s.add_runtime_dependency(%q<fog>, ["~> 0.2.30"])
56
56
  s.add_runtime_dependency(%q<trollop>, ["~> 1.16.2"])
57
- s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
57
+ s.add_development_dependency(%q<rspec>, [">= 2.0.0.beta.22"])
58
58
  s.add_development_dependency(%q<yard>, [">= 0"])
59
59
  else
60
- s.add_dependency(%q<fog>, ["~> 0.2.22"])
60
+ s.add_dependency(%q<fog>, ["~> 0.2.30"])
61
61
  s.add_dependency(%q<trollop>, ["~> 1.16.2"])
62
- s.add_dependency(%q<rspec>, [">= 1.2.9"])
62
+ s.add_dependency(%q<rspec>, [">= 2.0.0.beta.22"])
63
63
  s.add_dependency(%q<yard>, [">= 0"])
64
64
  end
65
65
  else
66
- s.add_dependency(%q<fog>, ["~> 0.2.22"])
66
+ s.add_dependency(%q<fog>, ["~> 0.2.30"])
67
67
  s.add_dependency(%q<trollop>, ["~> 1.16.2"])
68
- s.add_dependency(%q<rspec>, [">= 1.2.9"])
68
+ s.add_dependency(%q<rspec>, [">= 2.0.0.beta.22"])
69
69
  s.add_dependency(%q<yard>, [">= 0"])
70
70
  end
71
71
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shipt
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 5
10
- version: 0.0.5
9
+ - 6
10
+ version: 0.0.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Justin Smestad
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-08-11 00:00:00 -06:00
18
+ date: 2010-09-18 00:00:00 -06:00
19
19
  default_executable: shipt
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -26,12 +26,12 @@ dependencies:
26
26
  requirements:
27
27
  - - ~>
28
28
  - !ruby/object:Gem::Version
29
- hash: 59
29
+ hash: 43
30
30
  segments:
31
31
  - 0
32
32
  - 2
33
- - 22
34
- version: 0.2.22
33
+ - 30
34
+ version: 0.2.30
35
35
  type: :runtime
36
36
  version_requirements: *id001
37
37
  - !ruby/object:Gem::Dependency
@@ -58,12 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - ">="
60
60
  - !ruby/object:Gem::Version
61
- hash: 13
61
+ hash: 62196431
62
62
  segments:
63
- - 1
64
63
  - 2
65
- - 9
66
- version: 1.2.9
64
+ - 0
65
+ - 0
66
+ - beta
67
+ - 22
68
+ version: 2.0.0.beta.22
67
69
  type: :development
68
70
  version_requirements: *id003
69
71
  - !ruby/object:Gem::Dependency