diff --git a/Rakefile b/Rakefile index 5c01005..8c0d95f 100644 --- a/Rakefile +++ b/Rakefile @@ -21,7 +21,7 @@ Jeweler::Tasks.new do |gem| gem.authors = ["T.J. VanSlyke"] # Include your dependencies below. Runtime dependencies are required when using your gem, # and development dependencies are only needed for development (ie running rake tasks, tests, etc) - # gem.add_runtime_dependency 'jabber4r', '> 0.1' + gem.add_runtime_dependency 'redis' # gem.add_development_dependency 'rspec', '> 1.2.3' end Jeweler::RubygemsDotOrgTasks.new diff --git a/lib/juggler.rb b/lib/juggler.rb index df5d574..a9d5166 100644 --- a/lib/juggler.rb +++ b/lib/juggler.rb @@ -41,6 +41,10 @@ def self.processed_bucket AWS::S3::Bucket.find(self.config['processed_bucket_name']) end + def self.processed_url(id) + "http://#{self.config['processed_bucket_name']}.s3.amazonaws.com/#{id}" + end + def self.queue queue_bucket.objects.reject {|o| o.path.include?("---LOCKED---")} end