jekyll-s3 2.8.0 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +0 -1
- data/README.md +2 -0
- data/changelog.md +8 -0
- data/features/cassettes/cucumber_tags/new-and-changed-files.yml +1 -1
- data/features/cassettes/cucumber_tags/no-new-or-changed-files.yml +3 -3
- data/features/cassettes/cucumber_tags/one-file-to-delete.yml +3 -3
- data/features/cassettes/cucumber_tags/only-changed-files.yml +4 -4
- data/features/cassettes/cucumber_tags/s3-and-cloudfront-when-updating-a-file.yml +4 -4
- data/jekyll-s3.gemspec +1 -1
- data/lib/jekyll-s3/upload.rb +1 -0
- data/spec/lib/upload_spec.rb +2 -2
- metadata +4 -4
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -11,6 +11,8 @@ Deploy your jekyll site to S3.
|
|
11
11
|
* Help you use AWS Cloudfront to distribute your Jekyll blog
|
12
12
|
* Create an S3 website for you
|
13
13
|
* Improve page speed with HTTP cache control and gzipping
|
14
|
+
* Set HTTP redirects for your website
|
15
|
+
* (for other features, see the documentation below)
|
14
16
|
|
15
17
|
## Install
|
16
18
|
|
data/changelog.md
CHANGED
@@ -2,6 +2,14 @@
|
|
2
2
|
|
3
3
|
This project uses [Semantic Versioning](http://semver.org).
|
4
4
|
|
5
|
+
## 3.0.0
|
6
|
+
|
7
|
+
* Set `text/html; charset=utf-8` as the `content_type` for each `text/html`
|
8
|
+
object.
|
9
|
+
|
10
|
+
This change may cause unexpected behaviour for some users. As a consequence,
|
11
|
+
bump up major version.
|
12
|
+
|
5
13
|
## 2.8.0
|
6
14
|
|
7
15
|
* Add support for simple redirects
|
@@ -211,7 +211,7 @@ http_interactions:
|
|
211
211
|
Accept-Ranges:
|
212
212
|
- bytes
|
213
213
|
Content-Type:
|
214
|
-
- text/html
|
214
|
+
- text/html; charset=utf-8
|
215
215
|
Content-Length:
|
216
216
|
- '60'
|
217
217
|
Server:
|
@@ -256,7 +256,7 @@ http_interactions:
|
|
256
256
|
Accept-Ranges:
|
257
257
|
- bytes
|
258
258
|
Content-Type:
|
259
|
-
- text/html
|
259
|
+
- text/html; charset=utf-8
|
260
260
|
Content-Length:
|
261
261
|
- '60'
|
262
262
|
Server:
|
@@ -301,7 +301,7 @@ http_interactions:
|
|
301
301
|
Accept-Ranges:
|
302
302
|
- bytes
|
303
303
|
Content-Type:
|
304
|
-
- text/html
|
304
|
+
- text/html; charset=utf-8
|
305
305
|
Content-Length:
|
306
306
|
- '60'
|
307
307
|
Server:
|
@@ -211,7 +211,7 @@ http_interactions:
|
|
211
211
|
Accept-Ranges:
|
212
212
|
- bytes
|
213
213
|
Content-Type:
|
214
|
-
- text/html
|
214
|
+
- text/html; charset=utf-8
|
215
215
|
Content-Length:
|
216
216
|
- '117'
|
217
217
|
Server:
|
@@ -256,7 +256,7 @@ http_interactions:
|
|
256
256
|
Accept-Ranges:
|
257
257
|
- bytes
|
258
258
|
Content-Type:
|
259
|
-
- text/html
|
259
|
+
- text/html; charset=utf-8
|
260
260
|
Content-Length:
|
261
261
|
- '117'
|
262
262
|
Server:
|
@@ -301,7 +301,7 @@ http_interactions:
|
|
301
301
|
Accept-Ranges:
|
302
302
|
- bytes
|
303
303
|
Content-Type:
|
304
|
-
- text/html
|
304
|
+
- text/html; charset=utf-8
|
305
305
|
Content-Length:
|
306
306
|
- '117'
|
307
307
|
Server:
|
@@ -211,7 +211,7 @@ http_interactions:
|
|
211
211
|
Accept-Ranges:
|
212
212
|
- bytes
|
213
213
|
Content-Type:
|
214
|
-
- text/html
|
214
|
+
- text/html; charset=utf-8
|
215
215
|
Content-Length:
|
216
216
|
- '117'
|
217
217
|
Server:
|
@@ -256,7 +256,7 @@ http_interactions:
|
|
256
256
|
Accept-Ranges:
|
257
257
|
- bytes
|
258
258
|
Content-Type:
|
259
|
-
- text/html
|
259
|
+
- text/html; charset=utf-8
|
260
260
|
Content-Length:
|
261
261
|
- '117'
|
262
262
|
Server:
|
@@ -301,7 +301,7 @@ http_interactions:
|
|
301
301
|
Accept-Ranges:
|
302
302
|
- bytes
|
303
303
|
Content-Type:
|
304
|
-
- text/html
|
304
|
+
- text/html; charset=utf-8
|
305
305
|
Content-Length:
|
306
306
|
- '117'
|
307
307
|
Server:
|
@@ -320,7 +320,7 @@ http_interactions:
|
|
320
320
|
\ i got some new content for you, arnie\n </body>\n</html>\n"
|
321
321
|
headers:
|
322
322
|
Content-Type:
|
323
|
-
- text/html
|
323
|
+
- text/html; charset=utf-8
|
324
324
|
Content-Length:
|
325
325
|
- '121'
|
326
326
|
User-Agent:
|
@@ -211,7 +211,7 @@ http_interactions:
|
|
211
211
|
Accept-Ranges:
|
212
212
|
- bytes
|
213
213
|
Content-Type:
|
214
|
-
- text/html
|
214
|
+
- text/html; charset=utf-8
|
215
215
|
Content-Length:
|
216
216
|
- '60'
|
217
217
|
Server:
|
@@ -256,7 +256,7 @@ http_interactions:
|
|
256
256
|
Accept-Ranges:
|
257
257
|
- bytes
|
258
258
|
Content-Type:
|
259
|
-
- text/html
|
259
|
+
- text/html; charset=utf-8
|
260
260
|
Content-Length:
|
261
261
|
- '60'
|
262
262
|
Server:
|
@@ -301,7 +301,7 @@ http_interactions:
|
|
301
301
|
Accept-Ranges:
|
302
302
|
- bytes
|
303
303
|
Content-Type:
|
304
|
-
- text/html
|
304
|
+
- text/html; charset=utf-8
|
305
305
|
Content-Length:
|
306
306
|
- '60'
|
307
307
|
Server:
|
@@ -320,7 +320,7 @@ http_interactions:
|
|
320
320
|
\ This is something for a change!\n\n\n </body>\n</html>\n"
|
321
321
|
headers:
|
322
322
|
Content-Type:
|
323
|
-
- text/html
|
323
|
+
- text/html; charset=utf-8
|
324
324
|
Content-Length:
|
325
325
|
- '117'
|
326
326
|
User-Agent:
|
data/jekyll-s3.gemspec
CHANGED
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = "jekyll-s3"
|
6
|
-
s.version = "
|
6
|
+
s.version = "3.0.0"
|
7
7
|
s.platform = Gem::Platform::RUBY
|
8
8
|
s.authors = ["Philippe Creux", "Lauri Lehmijoki"]
|
9
9
|
s.email = ["pcreux@gmail.com", "lauri.lehmijoki@iki.fi"]
|
data/lib/jekyll-s3/upload.rb
CHANGED
@@ -61,6 +61,7 @@ module Jekyll
|
|
61
61
|
:reduced_redundancy => config['s3_reduced_redundancy']
|
62
62
|
}
|
63
63
|
|
64
|
+
opts[:content_type] = "text/html; charset=utf-8" if mime_type == 'text/html'
|
64
65
|
opts[:content_encoding] = "gzip" if gzip?
|
65
66
|
opts[:cache_control] = "max-age=#{max_age}" if cache_control?
|
66
67
|
|
data/spec/lib/upload_spec.rb
CHANGED
@@ -11,7 +11,7 @@ describe Jekyll::S3::Upload do
|
|
11
11
|
s3_client = create_verifying_s3_client(file_to_upload) do |s3_object|
|
12
12
|
s3_object.should_receive(:write).with(
|
13
13
|
anything(),
|
14
|
-
:content_type => 'text/html',
|
14
|
+
:content_type => 'text/html; charset=utf-8',
|
15
15
|
:reduced_redundancy => true
|
16
16
|
)
|
17
17
|
end
|
@@ -47,7 +47,7 @@ describe Jekyll::S3::Upload do
|
|
47
47
|
s3_client = create_verifying_s3_client(file_to_upload) do |s3_object|
|
48
48
|
s3_object.should_receive(:write).with(
|
49
49
|
anything(),
|
50
|
-
:content_type => 'text/html',
|
50
|
+
:content_type => 'text/html; charset=utf-8',
|
51
51
|
:reduced_redundancy => false
|
52
52
|
)
|
53
53
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-s3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.0.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-
|
13
|
+
date: 2013-06-14 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: aws-sdk
|
@@ -342,7 +342,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
342
342
|
version: '0'
|
343
343
|
segments:
|
344
344
|
- 0
|
345
|
-
hash:
|
345
|
+
hash: 2932196294779507205
|
346
346
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
347
347
|
none: false
|
348
348
|
requirements:
|
@@ -351,7 +351,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
351
351
|
version: '0'
|
352
352
|
segments:
|
353
353
|
- 0
|
354
|
-
hash:
|
354
|
+
hash: 2932196294779507205
|
355
355
|
requirements: []
|
356
356
|
rubyforge_project:
|
357
357
|
rubygems_version: 1.8.25
|