middleman-s3_sync 3.3.2 → 3.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/middleman-s3_sync/commands.rb +4 -1
- data/lib/middleman-s3_sync/extension.rb +3 -0
- data/lib/middleman/s3_sync/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4274b6ae700e7ada09737ca3bc4a4759e5296f84
|
4
|
+
data.tar.gz: 3577abf69438b8f29aa8883c021501c9a4cd22cd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
|
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.
|
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-
|
12
|
+
date: 2015-10-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: middleman-core
|