jekyll-s3-yearofmoo 0.0.21 → 0.0.22

Sign up to get free protection for your applications and to get access to all the features.
@@ -47,7 +47,16 @@ cloudfront_distribution_id: YOUR_CLOUDFRONT_DIST_ID (OPTIONAL)
47
47
  paths = []
48
48
 
49
49
  pattern ||= '**/*'
50
- files = Dir[dir + '/' + pattern]
50
+ if pattern.is_a?(Array)
51
+ files = []
52
+ pattern.each do |pat|
53
+ files |= Dir[dir + '/' + pat]
54
+ end
55
+ else
56
+ files = Dir[dir + '/' + pattern]
57
+ end
58
+ raise files.to_yaml
59
+
51
60
  files = files.delete_if { |f|
52
61
  File.directory?(f)
53
62
  }.map { |f|
@@ -156,7 +165,7 @@ cloudfront_distribution_id: YOUR_CLOUDFRONT_DIST_ID (OPTIONAL)
156
165
  end
157
166
 
158
167
  if remove_files
159
- to_delete = remote_files - local_files
168
+ to_delete = remote_files - to_upload
160
169
 
161
170
  delete_all = false
162
171
  keep_all = false
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  module S3
3
- VERSION = "0.0.21"
3
+ VERSION = "0.0.22"
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
- - 21
9
- version: 0.0.21
8
+ - 22
9
+ version: 0.0.22
10
10
  platform: ruby
11
11
  authors:
12
12
  - Philippe Creux