pyramid_scheme 0.2.1 → 0.2.2
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 +2 -2
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.2
|
@@ -37,8 +37,8 @@ module PyramidScheme
|
|
37
37
|
|
38
38
|
def provide_client_with_index
|
39
39
|
Configuration::INDEX_FILE_EXTENSIONS.each do |ext|
|
40
|
-
self.class.bucket.keys('prefix'=> @configuration[:prefix]).each do |obj|
|
41
|
-
new_filename = File.basename(obj.name.gsub(@configuration[:prefix], '').gsub(/\./, ".new."))
|
40
|
+
self.class.bucket.keys('prefix'=> @configuration[:prefix] + "/").each do |obj|
|
41
|
+
new_filename = File.basename(obj.name.gsub(@configuration[:prefix] + "/", '').gsub(/\./, ".new."))
|
42
42
|
destined_path = File.join(@configuration[:client_destination_path], new_filename)
|
43
43
|
File.open(destined_path, 'w') do |file|
|
44
44
|
file.write obj.data
|