pyramid_scheme 0.2.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/pyramid_scheme/index_provider/s3.rb +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.5
|
@@ -36,7 +36,7 @@ module PyramidScheme
|
|
36
36
|
AWS::S3::Bucket.objects(@configuration[:bucket],
|
37
37
|
:prefix => "#{@configuration[:prefix]}/").each do |obj|
|
38
38
|
|
39
|
-
new_filename = File.basename(obj.key.gsub(@configuration[:prefix], '').gsub(/\./, ".new."))
|
39
|
+
new_filename = File.basename(obj.key.gsub("#{@configuration[:prefix]}/", '').gsub(/\./, ".new."))
|
40
40
|
destined_path = File.join(@configuration[:client_destination_path], new_filename)
|
41
41
|
File.open(destined_path, 'w') do |file|
|
42
42
|
AWS::S3::S3Object.stream(obj.key, @configuration[:bucket]) do |chunk|
|