jekyll-s3-yearofmoo 0.0.6 → 0.0.7

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.
@@ -93,10 +93,12 @@ cloudfront_distribution_id: YOUR_CLOUDFRONT_DIST_ID (OPTIONAL)
93
93
 
94
94
  remote_files = bucket.objects.map { |f| f.key }
95
95
 
96
+ dir = @production_directory || SITE_DIR
96
97
  to_upload = local_files
98
+ raise to_upload.to_yaml
97
99
  to_upload.each do |f|
98
100
  run_with_retry do
99
- if AWS::S3::S3Object.store(f, open("#{SITE_DIR}/#{f}"), @s3_bucket, :access => 'public-read')
101
+ if AWS::S3::S3Object.store(f, open("#{dir}/#{f}"), @s3_bucket, :access => 'public-read')
100
102
  puts("Upload #{f}: Success!")
101
103
  else
102
104
  puts("Upload #{f}: FAILURE!")
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  module S3
3
- VERSION = "0.0.6"
3
+ VERSION = "0.0.7"
4
4
  end
5
5
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 6
9
- version: 0.0.6
8
+ - 7
9
+ version: 0.0.7
10
10
  platform: ruby
11
11
  authors:
12
12
  - Philippe Creux