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.
@@ -1,6 +1,5 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 1.8.7
4
3
  - 1.9.2
5
4
  - 1.9.3
6
5
  - 2.0.0
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
 
@@ -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
@@ -226,7 +226,7 @@ http_interactions:
226
226
  \ i am a new blog post\n </body>\n</html>\n"
227
227
  headers:
228
228
  Content-Type:
229
- - text/html
229
+ - text/html; charset=utf-8
230
230
  Content-Length:
231
231
  - '104'
232
232
  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:
@@ -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:
@@ -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 = "2.8.0"
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"]
@@ -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
 
@@ -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: 2.8.0
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-05-28 00:00:00.000000000 Z
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: 1250183461535379030
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: 1250183461535379030
354
+ hash: 2932196294779507205
355
355
  requirements: []
356
356
  rubyforge_project:
357
357
  rubygems_version: 1.8.25