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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3cc5e83da7bfd7639905564a61f26cc74916b1e8
4
- data.tar.gz: c4f2d171cf39e6a5c6ea2776a8813b0dee89992d
3
+ metadata.gz: 03e85a73abe85135fe476bcc42f08d76647f8233
4
+ data.tar.gz: 880513b403e2ac85e5615881cd59f4764fe914f4
5
5
  SHA512:
6
- metadata.gz: 8c140b7a8ac66998daa5ab29d263c8ac6c2669b359f305b6a6874afd766f855db5ffe67ba259f27a15cd3fcb95c7e7d2a4f9c7109a39080957de231f51be6bef
7
- data.tar.gz: 7d6105e86327e6337e8ed340fa6122d5423fb309d5b6ed00b3f3ce2b6a3dd8d28a1db7c4da154d723275b6c73585cdb0ac2b25833402d7f37ff6efd2dc0a0f38
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
- module ClassMethods
86
- def s3_sync_options
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
@@ -65,7 +65,6 @@ module Middleman
65
65
 
66
66
  def app=(app)
67
67
  @app = app
68
- @app.extend ::Middleman::S3SyncExtension::ClassMethods
69
68
  end
70
69
 
71
70
  def content_types
@@ -1,5 +1,5 @@
1
1
  module Middleman
2
2
  module S3Sync
3
- VERSION = "4.0.1.rc.4"
3
+ VERSION = "4.0.1"
4
4
  end
5
5
  end
@@ -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.rc.1'
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.rc.4
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.rc.1
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.rc.1
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: 1.3.1
299
+ version: '0'
300
300
  requirements: []
301
301
  rubyforge_project:
302
302
  rubygems_version: 2.4.5