s3-publisher 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.0
1
+ 0.4.1
data/lib/s3-publisher.rb CHANGED
@@ -37,7 +37,8 @@ class S3Publisher
37
37
  :port => 80,
38
38
  :logger => Logger.new(nil))
39
39
  @bucket_name, @base_path = bucket_name, opts[:base_path]
40
- @logger = opts[:logger] || STDOUT
40
+ raise ArgumentError, "#{bucket_name} doesn't seem to be a valid bucket on your account" if @s3.bucket(bucket_name).nil?
41
+ @logger = opts[:logger] || $stdout
41
42
  @workers_to_use = opts[:workers] || 3
42
43
  @publish_queue = Queue.new
43
44
  end
@@ -83,6 +84,10 @@ class S3Publisher
83
84
  true
84
85
  end
85
86
 
87
+ def inspect
88
+ "#<S3Publisher:#{bucket_name}>"
89
+ end
90
+
86
91
  private
87
92
  def gzip data
88
93
  gzipped_data = StringIO.open('', 'w+')
data/s3-publisher.gemspec CHANGED
@@ -1,15 +1,15 @@
1
1
  # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
2
+ # DO NOT EDIT THIS FILE
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run `rake gemspec`
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{s3-publisher}
8
- s.version = "0.4.0"
8
+ s.version = "0.4.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Ben Koski"]
12
- s.date = %q{2010-06-29}
12
+ s.date = %q{2010-07-01}
13
13
  s.description = %q{Publish data to S3 for the world to see}
14
14
  s.email = %q{gems@benkoski.com}
15
15
  s.extra_rdoc_files = [
@@ -57,4 +57,3 @@ Gem::Specification.new do |s|
57
57
  s.add_dependency(%q<right_aws>, ["= 2.0.0"])
58
58
  end
59
59
  end
60
-
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: s3-publisher
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Koski
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-06-29 00:00:00 -04:00
12
+ date: 2010-07-01 00:00:00 -04:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency