middleman-s3_sync 3.3.2 → 3.3.3

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 187446cfdc35287e9bdfa263529fc95b2fcc6ccb
4
- data.tar.gz: 425cfa9338c350637818f93b1a5bf7bb405d1cf4
3
+ metadata.gz: 4274b6ae700e7ada09737ca3bc4a4759e5296f84
4
+ data.tar.gz: 3577abf69438b8f29aa8883c021501c9a4cd22cd
5
5
  SHA512:
6
- metadata.gz: 7b38221bbfde41f3da977cdabc1338c110d34542c70dc0da2d70a110539a103eb21bf090e77973449d7df22e56c0c286dc601c2e70c1f5cae4098cdd0b7d7afe
7
- data.tar.gz: 2ba20ba4f2792cc1174a1b4b867c196931455796a1561b891b7aa5a6a2ac4ec0883156327c98a37aa450ef714f80ed2b084d6631f9c4e993124a070d22fbca7f
6
+ metadata.gz: 20af8b1a06d25eb867eea58ae34f61fa571539ed3db35b3258d76eb156a71646bcf6bbece977cdda6e9c3857034a581682e0d0d2557c6a1f9dc19cebdd5989b7
7
+ data.tar.gz: 509254dbfde2791ef44e63e4cf55e13b5562c1294283a4375446a3d026216896f1c5e11f45465cc8edac8d6a33b32c30edf137527a9a5d8fa905a3689ec971d5
@@ -50,7 +50,10 @@ module Middleman
50
50
  s3_sync_options.force = options[:force] if options[:force]
51
51
  s3_sync_options.bucket = options[:bucket] if options[:bucket]
52
52
  s3_sync_options.verbose = options[:verbose] if options[:verbose]
53
- s3_sync_options.prefix = options[:prefix] if options[:prefix]
53
+ if options[:prefix]
54
+ s3_sync_options.prefix = options[:prefix] if options[:prefix]
55
+ s3_sync_options.prefix = s3_sync_options.prefix.end_with?("/") ? s3_sync_options.prefix : s3_sync_options.prefix + "/"
56
+ end
54
57
  s3_sync_options.dry_run = options[:dry_run] if options[:dry_run]
55
58
 
56
59
  ::Middleman::S3Sync.sync()
@@ -38,6 +38,9 @@ module Middleman
38
38
  options.bucket ||= ENV['AWS_BUCKET']
39
39
  options.http_prefix = app.http_prefix if app.respond_to? :http_prefix
40
40
  options.build_dir ||= app.build_dir if app.respond_to? :build_dir
41
+ if options.prefix
42
+ options.prefix = options.prefix.end_with?("/") ? options.prefix : options.prefix + "/"
43
+ end
41
44
  ::Middleman::S3Sync.s3_sync_options = s3_sync_options
42
45
  end
43
46
 
@@ -1,5 +1,5 @@
1
1
  module Middleman
2
2
  module S3Sync
3
- VERSION = "3.3.2"
3
+ VERSION = "3.3.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: middleman-s3_sync
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.2
4
+ version: 3.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Frederic Jean
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-10-05 00:00:00.000000000 Z
12
+ date: 2015-10-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: middleman-core