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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: feba18a50d23cb1fe77c28d22d2c57d025e0e2fc
4
- data.tar.gz: 2070409846735a00a49617fbc77bfbb1d2cde82e
3
+ metadata.gz: 7e8a5cb2c096e224e6c21b405cb142a157711dac
4
+ data.tar.gz: 5b906c2f9d25530a297a1a8d2da9b8e8ad147681
5
5
  SHA512:
6
- metadata.gz: 76d95a583a6544dd8eef1e5919f100f506a214713ccaaff912e14c1930528c61e6c77ef738bf76b004cba22593094f9f1b7be8afd745fc68314bf8d377a5d234
7
- data.tar.gz: 6fd91b181e957fcd30d4ab60e83fa4e4450c8cbe5a20c2453155318092ba01f88c644d78aa70a9bf76e26c488750e7ea6202c72d7df3f3eb23258844fa651afa
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
- app.after_build do |builder|
20
- ::Middleman::S3Sync.sync if options.after_build
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
@@ -1,5 +1,5 @@
1
1
  module Middleman
2
2
  module S3Sync
3
- VERSION = "3.0.20"
3
+ VERSION = "3.0.21"
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.0.20
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-06 00:00:00.000000000 Z
12
+ date: 2013-11-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: middleman-core