s3_website 2.12.1 → 2.12.2

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: 0d072fe5e94c54fb0e8ebdd9bb02687a35de0f16
4
- data.tar.gz: 0ec1b0c48ca905e36ddb7b93cc8055f0e046b6b5
3
+ metadata.gz: 394af2c60316995777e9657e4ff07db858cbf7d3
4
+ data.tar.gz: 7addbc2e141859787e825625ecb805cc65c6c8f2
5
5
  SHA512:
6
- metadata.gz: 226adb0f1d89d4be427dd9565450681762fcb6a5b12d770d53cc1cd383dc7573dd7fa79625853f2353eaf00e4fd32b5b22c7035db768b0ba64cd7aff3f04a55b
7
- data.tar.gz: 5ec5fcd77f1b2d6c47049ea20f9886bbb5137216c234b5ea5ce912b55427f7d416b628cefff71f97242bb39470357c41f1e64780bdb14cfea11b0e8e71b2096f
6
+ metadata.gz: e0a177d63c01e92059f1711d2ac2bd1ef54ae9e62cd8e5187c64c7a5688560067ce8d83885f8c22c2e9c310ad293bb9747be522d9e6c6381af67e5196d606b0a
7
+ data.tar.gz: 6e01eb1128e2093aecde61aedd45366a13233c61fde6d83c13b2262aea192b1389c7b1abf7f5e8f07d29ca6409a2f81b9416eace31f4e2d91dca3fbebc97ccb5
data/README.md CHANGED
@@ -479,6 +479,7 @@ Creux](https://github.com/pcreux) on
479
479
  exist.
480
480
 
481
481
  Contributors (in alphabetical order)
482
+ * Akshay Karle
482
483
  * Alan deLevie
483
484
  * Almir Sarajčić
484
485
  * Andrew T. Baker
@@ -26,6 +26,7 @@ Here is the IAM Policy Document of the above setup:
26
26
 
27
27
  ```json
28
28
  {
29
+ "Version": "2008-10-17",
29
30
  "Statement": [
30
31
  {
31
32
  "Action": [
data/changelog.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  This project uses [Semantic Versioning](http://semver.org).
4
4
 
5
+ ## 2.12.2
6
+
7
+ * Merge <https://github.com/laurilehmijoki/s3_website/pull/190>
8
+
5
9
  ## 2.12.1
6
10
 
7
11
  * Fix broken build
@@ -1,3 +1,3 @@
1
1
  module S3Website
2
- VERSION = '2.12.1'
2
+ VERSION = '2.12.2'
3
3
  end
@@ -122,7 +122,7 @@ object CloudFront {
122
122
  .getPath
123
123
  .replaceAll("'", URLEncoder.encode("'", "UTF-8")) // CloudFront does not accept ' in invalidation path
124
124
  .flatMap(chr => {
125
- if (Seq("ä", "ö", "ü").contains(chr.toString.toLowerCase))
125
+ if (("[^\\x00-\\x7F]".r findFirstIn chr.toString).isDefined)
126
126
  URLEncoder.encode(chr.toString, "UTF-8")
127
127
  else
128
128
  chr.toString
@@ -246,10 +246,10 @@ class S3WebsiteSpec extends Specification {
246
246
 
247
247
  "encode unsafe characters in the keys" in new BasicSetup {
248
248
  config = "cloudfront_distribution_id: EGM1J2JJX9Z"
249
- setLocalFile("articles/Äöü.html")
250
- setOutdatedS3Keys("articles/Äöü.html")
249
+ setLocalFile("articles/Äöüßñé.html")
250
+ setOutdatedS3Keys("articles/Äöüßñé.html")
251
251
  push()
252
- sentInvalidationRequest.getInvalidationBatch.getPaths.getItems.toSeq.sorted must equalTo(("/articles/%C3%84%C3%B6%C3%BC.html" :: Nil).sorted)
252
+ sentInvalidationRequest.getInvalidationBatch.getPaths.getItems.toSeq.sorted must equalTo(("/articles/%C3%84%C3%B6%C3%BC%C3%9F%C3%B1%C3%A9.html" :: Nil).sorted)
253
253
  }
254
254
 
255
255
  "invalidate the root object '/' if a top-level object is updated or deleted" in new BasicSetup {
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: s3_website
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.12.1
4
+ version: 2.12.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lauri Lehmijoki
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-21 00:00:00.000000000 Z
11
+ date: 2015-10-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor