jekyll-s3-yearofmoo 0.0.27 → 0.0.28

Sign up to get free protection for your applications and to get access to all the features.
@@ -48,8 +48,8 @@ cloudfront_distribution_id: YOUR_CLOUDFRONT_DIST_ID (OPTIONAL)
48
48
 
49
49
  campaign = @config['campaigns'][campaign]
50
50
  if campaign
51
- include_files = campaign['include_files']
52
- exclude_files = campaign['exclude_files']
51
+ include_pattern = campaign['include_files']
52
+ exclude_pattern = campaign['exclude_files']
53
53
  end
54
54
 
55
55
  include_pattern ||= '**/*'
@@ -61,7 +61,7 @@ cloudfront_distribution_id: YOUR_CLOUDFRONT_DIST_ID (OPTIONAL)
61
61
  files |= Dir[dir + '/' + pat]
62
62
  end
63
63
  else
64
- files = Dir[dir + '/' + pattern]
64
+ files = Dir[dir + '/' + include_pattern]
65
65
  end
66
66
  raise files.to_yaml
67
67
 
@@ -143,11 +143,6 @@ cloudfront_distribution_id: YOUR_CLOUDFRONT_DIST_ID (OPTIONAL)
143
143
 
144
144
  # Please spec me!
145
145
  def upload_to_s3!(campaign=nil)
146
-
147
- if campaign
148
- campaign = @config['campaigns'][campaign]
149
- end
150
-
151
146
  if campaign
152
147
  remove_files = false
153
148
  puts "Deploying *#{campaign}* to #{@s3_bucket}"
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  module S3
3
- VERSION = "0.0.27"
3
+ VERSION = "0.0.28"
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
- - 27
9
- version: 0.0.27
8
+ - 28
9
+ version: 0.0.28
10
10
  platform: ruby
11
11
  authors:
12
12
  - Philippe Creux