s3_website 2.7.0 → 2.7.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 +4 -4
- data/.travis.yml +1 -1
- data/README.md +16 -6
- data/changelog.md +8 -0
- data/lib/s3_website/version.rb +1 -1
- data/release +2 -3
- data/resources/s3_website.jar.md5 +1 -1
- data/s3_website.gemspec +2 -2
- metadata +15 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b16d61f88d92a39c8fd0f0b174ede0244d994aab
|
4
|
+
data.tar.gz: 19f39cde88d46c4a8f7355cdd4bbdebe2e497c89
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 01f0b6b1e80cd8ce4607f945b02b0f2e2375c6edd1ed8ae8d60d0ed5b05b2d1685dda0504f344dc4ee4d54f1e008281e9032101afbd60dffff34f64c50a8104a
|
7
|
+
data.tar.gz: b56e58fd215dfb3c431968c7cb465e51f5fbaff6cd8f3c0a5ddc266fb0e4a23bccaa1e7c030022b983e204f0e4bb582de39f3380a9772b70c18d5988ae090b52
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -219,7 +219,9 @@ create a CloudFront distribution for you.
|
|
219
219
|
If you already have a CloudFront distribution that serves data from your website
|
220
220
|
S3 bucket, just add the following line into the file `s3_website.yml`:
|
221
221
|
|
222
|
-
|
222
|
+
```yaml
|
223
|
+
cloudfront_distribution_id: your-dist-id
|
224
|
+
```
|
223
225
|
|
224
226
|
Next time you run `s3_website push`, it will invalidate the items on CloudFront and
|
225
227
|
thus force the CDN system to reload the changes from your website S3 bucket.
|
@@ -254,7 +256,9 @@ You can instruct the push command to invalidate the root resource instead of the
|
|
254
256
|
*index.html* resource by adding the following setting into the configuration
|
255
257
|
file:
|
256
258
|
|
257
|
-
|
259
|
+
```yaml
|
260
|
+
cloudfront_invalidate_root: true
|
261
|
+
```
|
258
262
|
|
259
263
|
To recap, this setting instructs s3_website to invalidate the root resource
|
260
264
|
(e.g., *article/*) instead of the filename'd resource (e.g.,
|
@@ -318,15 +322,20 @@ command `s3_website cfg apply` internally calls the `configure-s3-website` gem.)
|
|
318
322
|
If your website has a lot of redirects, you may find the following setting
|
319
323
|
helpful:
|
320
324
|
|
321
|
-
|
325
|
+
```yaml
|
326
|
+
treat_zero_length_objects_as_redirects: true
|
327
|
+
```
|
322
328
|
|
323
|
-
The setting allows `s3_website push` to infer whether a redirect exists
|
329
|
+
The setting allows `s3_website push` to infer whether a redirect exists on the S3 bucket.
|
324
330
|
You will experience faster `push` performance when this setting is `true`.
|
325
|
-
|
331
|
+
|
332
|
+
If this setting is enabled and you modify the `redirects` setting in
|
326
333
|
*s3_website.yml*, use `push --force` to apply the modified values.
|
327
334
|
|
328
335
|
For backward-compatibility reasons, this setting is `false` by default.
|
329
336
|
|
337
|
+
In this context, the word *object* refers to object on S3, not file-system file.
|
338
|
+
|
330
339
|
### Specifying custom concurrency level
|
331
340
|
|
332
341
|
By default, `s3_website` does 3 operations in parallel. An operation can be an
|
@@ -335,7 +344,7 @@ HTTP PUT operation against the S3 API, for example.
|
|
335
344
|
You can increase the concurrency level by adding the following setting into the
|
336
345
|
`s3_website.yml` file:
|
337
346
|
|
338
|
-
```
|
347
|
+
```yaml
|
339
348
|
concurrency_level: <integer>
|
340
349
|
```
|
341
350
|
|
@@ -434,6 +443,7 @@ Contributors (in alphabetical order)
|
|
434
443
|
* Douglas Teoh
|
435
444
|
* Greg Karékinian
|
436
445
|
* John Allison
|
446
|
+
* Jon Frisby
|
437
447
|
* Jordan White
|
438
448
|
* Justin Latimer
|
439
449
|
* László Bácsi
|
data/changelog.md
CHANGED
@@ -2,6 +2,12 @@
|
|
2
2
|
|
3
3
|
This project uses [Semantic Versioning](http://semver.org).
|
4
4
|
|
5
|
+
## 2.7.1
|
6
|
+
|
7
|
+
* Loosen dependency requirements
|
8
|
+
|
9
|
+
See <https://github.com/laurilehmijoki/s3_website/pull/135> for discussion.
|
10
|
+
|
5
11
|
## 2.7.0
|
6
12
|
|
7
13
|
* Add setting `treat_zero_length_objects_as_redirects`
|
@@ -12,6 +18,8 @@ This project uses [Semantic Versioning](http://semver.org).
|
|
12
18
|
redirects on your site, you may find that this feature decreases the duration
|
13
19
|
of `s3_website push`.
|
14
20
|
|
21
|
+
See <https://github.com/laurilehmijoki/s3_website/issues/132> for discussion.
|
22
|
+
|
15
23
|
## 2.6.1
|
16
24
|
|
17
25
|
* Always invalidate the object */index.html* if the setting `cloudfront_invalidate_root` is on
|
data/lib/s3_website/version.rb
CHANGED
data/release
CHANGED
@@ -18,8 +18,7 @@ end
|
|
18
18
|
|
19
19
|
puts "Building s3_website.jar..."
|
20
20
|
jar_location = 'target/scala-2.11/s3_website.jar'
|
21
|
-
run "./sbt clean"
|
22
|
-
run "./sbt assembly"
|
21
|
+
run "./sbt clean assembly"
|
23
22
|
|
24
23
|
# The bin s3_website uses the MD5 checksum to verify that the jar is not corrupted
|
25
24
|
jar_md5 = Digest::MD5.file(jar_location).hexdigest
|
@@ -33,7 +32,7 @@ run "rake build"
|
|
33
32
|
|
34
33
|
client = Octokit::Client.new(:login => 'laurilehmijoki', :password => ENV['S3_WEBSITE_RELEASE_KEY'])
|
35
34
|
release = client.create_release(
|
36
|
-
'laurilehmijoki/s3_website',
|
35
|
+
'laurilehmijoki/s3_website',
|
37
36
|
tag_name,
|
38
37
|
:body => "See https://github.com/laurilehmijoki/s3_website/blob/master/changelog.md##{version.gsub('.', '')}"
|
39
38
|
)
|
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
1fd00c96b6f35828bf1a32575f1dffb2
|
data/s3_website.gemspec
CHANGED
@@ -17,10 +17,10 @@ Gem::Specification.new do |s|
|
|
17
17
|
|
18
18
|
s.default_executable = %q{s3_website}
|
19
19
|
|
20
|
-
s.add_dependency 'thor', '
|
20
|
+
s.add_dependency 'thor', '~> 0.18'
|
21
21
|
s.add_dependency 'configure-s3-website', '= 1.6.0'
|
22
22
|
s.add_dependency 'colored', '1.2'
|
23
|
-
s.add_dependency 'dotenv', '~> 0
|
23
|
+
s.add_dependency 'dotenv', '~> 1.0'
|
24
24
|
|
25
25
|
s.add_development_dependency 'rake', '10.1.1'
|
26
26
|
s.add_development_dependency 'octokit', '3.1.0'
|
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: s3_website
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.7.
|
4
|
+
version: 2.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lauri Lehmijoki
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-11-
|
11
|
+
date: 2014-11-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.18
|
19
|
+
version: '0.18'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.18
|
26
|
+
version: '0.18'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: configure-s3-website
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -56,16 +56,16 @@ dependencies:
|
|
56
56
|
name: dotenv
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - ~>
|
59
|
+
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 0
|
61
|
+
version: '1.0'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - ~>
|
66
|
+
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 0
|
68
|
+
version: '1.0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rake
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -103,8 +103,8 @@ executables:
|
|
103
103
|
extensions: []
|
104
104
|
extra_rdoc_files: []
|
105
105
|
files:
|
106
|
-
- .gitignore
|
107
|
-
- .travis.yml
|
106
|
+
- ".gitignore"
|
107
|
+
- ".travis.yml"
|
108
108
|
- Gemfile
|
109
109
|
- LICENSE
|
110
110
|
- README.md
|
@@ -153,17 +153,17 @@ require_paths:
|
|
153
153
|
- lib
|
154
154
|
required_ruby_version: !ruby/object:Gem::Requirement
|
155
155
|
requirements:
|
156
|
-
- -
|
156
|
+
- - ">="
|
157
157
|
- !ruby/object:Gem::Version
|
158
158
|
version: '0'
|
159
159
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
160
160
|
requirements:
|
161
|
-
- -
|
161
|
+
- - ">="
|
162
162
|
- !ruby/object:Gem::Version
|
163
163
|
version: '0'
|
164
164
|
requirements: []
|
165
165
|
rubyforge_project:
|
166
|
-
rubygems_version: 2.2.
|
166
|
+
rubygems_version: 2.2.2
|
167
167
|
signing_key:
|
168
168
|
specification_version: 4
|
169
169
|
summary: Manage your S3 website
|