astrails-safe 0.0.9 → 0.1.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.
@@ -115,12 +115,11 @@ module Astrails
115
115
  base = File.basename(filename).split(".").first
116
116
 
117
117
  puts "listing files in #{bucket}:#{s3_prefix}"
118
- files = AWS::S3::Bucket.objects(bucket, :prefix => s3_prefix, :max_keys => keep * 2)
118
+ files = AWS::S3::Bucket.objects(bucket, :prefix => "#{s3_prefix}/#{base}", :max_keys => keep * 2)
119
119
  puts files.collect {|x| x.key} if $_VERBOSE
120
120
 
121
121
  files = files.
122
122
  collect {|x| x.key}.
123
- select{|f| File.basename(f)[0..(base.length - 1)] == base}.
124
123
  sort
125
124
 
126
125
  cleanup_files(files, keep) do |f|
data/safe.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "safe"
3
- s.version = "0.0.9"
3
+ s.version = "0.1.0"
4
4
  s.date = "2009-03-15"
5
5
  s.summary = "Astrails Safe"
6
6
  s.email = "we@astrails.com"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: astrails-safe
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Astrails Ltd.