dpl 1.6.6.travis.498.1 → 1.6.6.travis.500.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/.gitignore +2 -0
- data/README.md +2 -1
- data/lib/dpl/provider/s3.rb +6 -0
- data/spec/provider/s3_spec.rb +7 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ODE2ZDFjNTMwOGZjODFiNzAyZTU3NDNiODU4MTRlZmQ0ZjZhNWM2Yw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
Mjk2OTI4YjQzM2E5NDI2ZTA5ZWZkYWYwM2I4ZDYzOGNiODhlMzQ3Mg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ODkxZTU4YjU4NGM3NjQxZmZiYTU4MGM3MWRhNDdjN2Y0MDllMzljOGY1NWU2
|
10
|
+
ZWM3YWI2MGZhNzYyMzU2NTVjNTNlNzNmMDJlNTU5ODk4ZTQxNGZkYTIyZGE4
|
11
|
+
MGE2Y2ViNmE3Y2VkMzFkZmM1MWRkNTgyOWNiYWY1YmI2ZDlhNTA=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YzkwMmJkMmVjMGRkZjg1N2I3MmMzYTkxYmQ1ZTFiNzIwZjJlNzUwZjZiMjA4
|
14
|
+
OWVjZjc5MjE0OTgwYmQyODVmZjlhZGU2MTE1YThjNTUzZTlkMWU0ZWE0ZDU1
|
15
|
+
M2Q1NzAxZWY5OWQzNzcwYzY5ZDA4YWNlZGQxMGFhZjVmNjVmYTg=
|
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -184,8 +184,9 @@ As a rule of thumb, you should switch to the Git strategy if you run into issues
|
|
184
184
|
* **detect-encoding**: Set HTTP header `Content-Encoding` for files compressed with `gzip` and `compress` utilities. Defaults to not set.
|
185
185
|
* **cache_control**: Set HTTP header `Cache-Control` to suggest that the browser cache the file. Defaults to `no-cache`. Valid options are `no-cache`, `no-store`, `max-age=<seconds>`,`s-maxage=<seconds>` `no-transform`, `public`, `private`.
|
186
186
|
* **expires**: This sets the date and time that the cached object is no longer cacheable. Defaults to not set. The date must be in the format `YYYY-MM-DD HH:MM:SS -ZONE`.
|
187
|
-
* **acl**: Sets the access control for the uploaded objects. Defaults to `private`. Valid options are `private`, `public_read`, `public_read_write`, `authenticated_read`, `bucket_owner_read`, `
|
187
|
+
* **acl**: Sets the access control for the uploaded objects. Defaults to `private`. Valid options are `private`, `public_read`, `public_read_write`, `authenticated_read`, `bucket_owner_read`, `bucket_owner_full_control`.
|
188
188
|
* **dot_match**: When set to `true`, upload files starting a `.`.
|
189
|
+
* **index_document_suffix**: Set the index document of a S3 website.
|
189
190
|
|
190
191
|
#### Examples:
|
191
192
|
|
data/lib/dpl/provider/s3.rb
CHANGED
data/spec/provider/s3_spec.rb
CHANGED
@@ -80,13 +80,19 @@ describe DPL::Provider::S3 do
|
|
80
80
|
provider.push_app
|
81
81
|
end
|
82
82
|
|
83
|
-
example "Sets
|
83
|
+
example "Sets ACL" do
|
84
84
|
provider.options.update(:acl => "public_read")
|
85
85
|
expect(Dir).to receive(:glob).and_yield(__FILE__)
|
86
86
|
expect_any_instance_of(AWS::S3::ObjectCollection).to receive(:create).with(anything(), anything(), hash_including(:acl => "public_read"))
|
87
87
|
provider.push_app
|
88
88
|
end
|
89
89
|
|
90
|
+
example "Sets Website Index Document" do
|
91
|
+
provider.options.update(:index_document_suffix => "test/index.html")
|
92
|
+
expect(Dir).to receive(:glob).and_yield(__FILE__)
|
93
|
+
provider.push_app
|
94
|
+
end
|
95
|
+
|
90
96
|
example "when detect_encoding is set" do
|
91
97
|
path = 'foo.js'
|
92
98
|
provider.options.update(:detect_encoding => true)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dpl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.6.travis.
|
4
|
+
version: 1.6.6.travis.500.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Konstantin Haase
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-07-
|
11
|
+
date: 2014-07-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|