middleman-s3_sync 3.0.20 → 3.0.21
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/extension.rb +7 -4
- data/lib/middleman/s3_sync/options.rb +8 -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: 7e8a5cb2c096e224e6c21b405cb142a157711dac
|
4
|
+
data.tar.gz: 5b906c2f9d25530a297a1a8d2da9b8e8ad147681
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 757e5a276590f998ef30a67367e64be4ed8544380ceab2fe431e9f4ad6212522113924c792b1cb713c41550d5979fa37a4784ad45dc4d8a368f9210eca8a8a85
|
7
|
+
data.tar.gz: cc64348884fc3a0d94879f173f7ceee02282670f098a6798d6435565d2f676d0174ebaa46c5f8c4807a32ff60011dee28c02dc502d3ee4feddbbadac42aece97
|
@@ -13,11 +13,14 @@ module Middleman
|
|
13
13
|
app.send :include, Helpers
|
14
14
|
|
15
15
|
app.after_configuration do |config|
|
16
|
-
options.build_dir ||= build_dir
|
17
|
-
end
|
18
16
|
|
19
|
-
|
20
|
-
|
17
|
+
# Define the after_build step after during configuration so
|
18
|
+
# that it's pushed to the end of the callback chain
|
19
|
+
app.after_build do |builder|
|
20
|
+
::Middleman::S3Sync.sync if options.after_build
|
21
|
+
end
|
22
|
+
|
23
|
+
options.build_dir ||= build_dir
|
21
24
|
end
|
22
25
|
end
|
23
26
|
alias :included :registered
|
@@ -44,10 +44,18 @@ module Middleman
|
|
44
44
|
@caching_policies ||= Map.new
|
45
45
|
end
|
46
46
|
|
47
|
+
def aws_access_key_id=(aws_access_key_id)
|
48
|
+
@aws_access_key_id = aws_access_key_id if aws_access_key_id
|
49
|
+
end
|
50
|
+
|
47
51
|
def aws_access_key_id
|
48
52
|
@aws_access_key_id || ENV['AWS_ACCESS_KEY_ID']
|
49
53
|
end
|
50
54
|
|
55
|
+
def aws_secret_access_key=(aws_secret_access_key)
|
56
|
+
@aws_secret_access_key = aws_secret_access_key if aws_secret_access_key
|
57
|
+
end
|
58
|
+
|
51
59
|
def aws_secret_access_key
|
52
60
|
@aws_secret_access_key || ENV['AWS_SECRET_ACCESS_KEY']
|
53
61
|
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.0.
|
4
|
+
version: 3.0.21
|
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: 2013-11-
|
12
|
+
date: 2013-11-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: middleman-core
|