middleman-s3_sync 4.0.1.rc.4 → 4.0.1
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 -12
- data/lib/middleman/s3_sync.rb +0 -1
- data/lib/middleman/s3_sync/version.rb +1 -1
- data/middleman-s3_sync.gemspec +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 03e85a73abe85135fe476bcc42f08d76647f8233
|
4
|
+
data.tar.gz: 880513b403e2ac85e5615881cd59f4764fe914f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf1e6923739cd2f1f6f8c51f478dbe83afe094006896ed6a67e238d53081e86b13e23e7882b7fb387b33dd1fb58f1fb67d791cc8e018d27e2d98094f4cf59e5e
|
7
|
+
data.tar.gz: 1dcda4f56a7566a7cab06e2638ad2c739c2a2534c701e7d0177c367c36deaffb3d829e230736181e9f7bd2373d68c63045e1b5d25a7ecdad3d3288e9fcd03f2d
|
@@ -26,6 +26,8 @@ module Middleman
|
|
26
26
|
option :index_document, nil, 'S3 custom index document path'
|
27
27
|
option :error_document, nil, 'S3 custom error document path'
|
28
28
|
|
29
|
+
expose_to_config :s3_sync_options, :default_caching_policy, :caching_policy
|
30
|
+
|
29
31
|
# S3Sync must be the last action in the manipulator chain
|
30
32
|
self.resource_list_manipulator_priority = 9999
|
31
33
|
|
@@ -81,19 +83,12 @@ module Middleman
|
|
81
83
|
end
|
82
84
|
end
|
83
85
|
|
86
|
+
def default_caching_policy(policy = {})
|
87
|
+
::Middleman::S3Sync.add_caching_policy(:default, policy)
|
88
|
+
end
|
84
89
|
|
85
|
-
|
86
|
-
|
87
|
-
::Middleman::S3SyncExtension.s3_sync_options
|
88
|
-
end
|
89
|
-
|
90
|
-
def default_caching_policy(policy = {})
|
91
|
-
::Middleman::S3Sync.add_caching_policy(:default, policy)
|
92
|
-
end
|
93
|
-
|
94
|
-
def caching_policy(content_type, policy = {})
|
95
|
-
::Middleman::S3Sync.add_caching_policy(content_type, policy)
|
96
|
-
end
|
90
|
+
def caching_policy(content_type, policy = {})
|
91
|
+
::Middleman::S3Sync.add_caching_policy(content_type, policy)
|
97
92
|
end
|
98
93
|
end
|
99
94
|
end
|
data/lib/middleman/s3_sync.rb
CHANGED
data/middleman-s3_sync.gemspec
CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |gem|
|
|
18
18
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
19
19
|
gem.require_paths = ["lib"]
|
20
20
|
|
21
|
-
gem.add_runtime_dependency 'middleman-core', '>= 4.0.0
|
21
|
+
gem.add_runtime_dependency 'middleman-core', '>= 4.0.0'
|
22
22
|
gem.add_runtime_dependency 'middleman-cli'
|
23
23
|
gem.add_runtime_dependency 'unf'
|
24
24
|
gem.add_runtime_dependency 'fog-aws', '>= 0.1.1'
|
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: 4.0.1
|
4
|
+
version: 4.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Frederic Jean
|
@@ -17,14 +17,14 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: 4.0.0
|
20
|
+
version: 4.0.0
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - ">="
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: 4.0.0
|
27
|
+
version: 4.0.0
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: middleman-cli
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
@@ -294,9 +294,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
294
294
|
version: '0'
|
295
295
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
296
296
|
requirements:
|
297
|
-
- - "
|
297
|
+
- - ">="
|
298
298
|
- !ruby/object:Gem::Version
|
299
|
-
version:
|
299
|
+
version: '0'
|
300
300
|
requirements: []
|
301
301
|
rubyforge_project:
|
302
302
|
rubygems_version: 2.4.5
|