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 CHANGED
@@ -1 +1 @@
1
- 0.2.1
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
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 1
9
- version: 0.2.1
8
+ - 2
9
+ version: 0.2.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Dan Pickett