s3_website 2.7.6 → 2.8.0

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: d299d7f67b1761c67dec45101228c871af587630
4
- data.tar.gz: f422c6066800271303d189d4a205744508ca1a63
3
+ metadata.gz: d4ca49ebc954fd1ded5959e91e27da33d05c28ce
4
+ data.tar.gz: 0bd579509ed4c85abeeccc887df69c91942fcdc1
5
5
  SHA512:
6
- metadata.gz: df7b35cc68abd07816902aa2b1753436b617fc46123d56fab1bf4f023416505f839b35fb21384de059c8ff82f9e6fd9b0283750615b15f1ed2295ac1295217f3
7
- data.tar.gz: 6686e17eaa28e15c98eb7d8528ab993fb8a545faf9440fe1e0879c5c0c7caf9063e76442cfa46488787da6d680ae7d5773e355dfff42f1ff78f7d1b9391774e8
6
+ metadata.gz: 7ea2fa351d97196f9227d01eefff1b362c3556c678b664f07ba65d77ae5d7b6cc174d2e3e7bdfeffd6171ae429f56c62814f968ad717a49eda9fd4748569bf64
7
+ data.tar.gz: 4649b12be2593ec2afff0b2ffbcce019ddebe58ee961d63ee28d9d34f22e4c1068555bd21615021a9a630644e1c44db20515626b006fd30495bd54d817088af4
data/README.md CHANGED
@@ -127,7 +127,7 @@ gzip: true
127
127
  ```
128
128
 
129
129
  Note that you can additionally specify the file extensions you want to Gzip
130
- (`.html`, `.css`, `.js`, and `.txt` will be compressed when `gzip: true`):
130
+ (`.html`, `.css`, `.js`, `.ico`, and `.txt` will be compressed when `gzip: true`):
131
131
 
132
132
  ```yaml
133
133
  gzip:
@@ -443,6 +443,7 @@ Contributors (in alphabetical order)
443
443
  * David Raffensperger
444
444
  * Douglas Teoh
445
445
  * Greg Karékinian
446
+ * Ian Hattendorf
446
447
  * John Allison
447
448
  * Jon Frisby
448
449
  * Jordan White
data/changelog.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  This project uses [Semantic Versioning](http://semver.org).
4
4
 
5
+ ## 2.8.0
6
+
7
+ * Automatically gzip `.ico` files, if `gzip: true`
8
+
5
9
  ## 2.7.6
6
10
 
7
11
  * Null-check the result of File.listFiles
@@ -1,3 +1,3 @@
1
1
  module S3Website
2
- VERSION = '2.7.6'
2
+ VERSION = '2.8.0'
3
3
  end
@@ -16,7 +16,7 @@ import scala.util.Try
16
16
 
17
17
  object Encoding {
18
18
 
19
- val defaultGzipExtensions = ".html" :: ".css" :: ".js" :: ".txt" :: Nil
19
+ val defaultGzipExtensions = ".html" :: ".css" :: ".js" :: ".txt" :: ".ico" :: Nil
20
20
 
21
21
  case class Gzip()
22
22
  case class Zopfli()
@@ -2,7 +2,6 @@ package s3.website.model
2
2
 
3
3
  import java.io.File
4
4
  import s3.website.model.Files.recursiveListFiles
5
- import s3.website.{ErrorOrFile, ErrorReport}
6
5
 
7
6
  // ssg = static site generator
8
7
  trait Ssg {
@@ -48,6 +48,15 @@ class S3WebsiteSpec extends Specification {
48
48
  push()
49
49
  noUploadsOccurred must beTrue
50
50
  }
51
+
52
+ (".html" :: ".css" :: ".js" :: ".txt" :: ".ico" :: Nil).foreach((fileExtension) =>
53
+ s"gzip files that end with $fileExtension" in new BasicSetup {
54
+ config = "gzip: true"
55
+ setLocalFileWithContent((s"file.$fileExtension", "file contents"))
56
+ push()
57
+ sentPutObjectRequest.getMetadata.getContentEncoding must equalTo("gzip")
58
+ }
59
+ )
51
60
  }
52
61
 
53
62
  """
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.7.6
4
+ version: 2.8.0
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-02-03 00:00:00.000000000 Z
11
+ date: 2015-02-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor