jekyll-s3-yearofmoo 0.0.19 → 0.0.20

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -1,3 +1,4 @@
1
+ .DS_Store
1
2
  .rvmrc
2
3
  *.gem
3
4
  .bundle
data/README.md CHANGED
@@ -1,62 +1,3 @@
1
- # jekyll-s3
2
-
3
- Deploy your jekyll site to S3.
4
-
5
- ## Install
6
-
7
- gem install jekyll-s3
8
-
9
- ## Setup
10
-
11
- * Go to your jekyll site directory
12
- * Run `jekyll-s3`. It generates a configuration file called `_jekyll_s3.yml` that looks like that:
13
- <pre>
14
- s3_id: YOUR_AWS_S3_ACCESS_KEY_ID
15
- s3_secret: YOUR_AWS_S3_SECRET_ACCESS_KEY
16
- s3_bucket: your.blog.bucket.com
17
- cloudfront_distribution_id: YOUR_CLOUDFRONT_DIST_ID (OPTIONAL)
18
- </pre>
19
-
20
- * Edit it with your details.
21
-
22
- ## Deploy!
23
-
24
- * Run `jekyll-s3`. Done.
25
-
26
- ## Want the root url to render index.html?
27
-
28
- * Log into <https://console.aws.amazon.com/s3/home>
29
- * Set the Index document to index.html in Bucket Properties >
30
- Website.
31
- * Visit the website endpoint:
32
- (http://yourblog.s3-website...amazonaws.com)
33
-
34
- ## How to use Cloudfront to deliver your blog
35
-
36
- It is easy to deliver your S3-based web site via Cloudfront, the CDN of Amazon.
37
-
38
- * Go to <https://console.aws.amazon.com/cloudfront/home>
39
- * Create a distribution and set the your Jekyll S3 bucket as the origin
40
- * Add the `cloudfront_distribution_id: your-dist-id` setting into
41
- `_jekyll_s3.yml`
42
- * Run `jekyll-s3` to deploy your site to S3 and invalidate the Cloudfront
43
- distribution
44
-
45
- ## Todo
46
-
47
- * Upload new / updated files *only* (using s3-sync?)
48
-
49
- ## Development
50
-
51
- * Install bundler and run `bundle install`
52
- * Run the integration tests by running `bundle exec cucumber`
53
- * Run the unit tests by running `bundle exec rspec spec/lib/*.rb`
54
-
55
- ## License
56
-
57
- MIT
58
-
59
- ## Copyright
60
-
61
- Copyright (c) 2011 VersaPay, Philippe Creux.
1
+ # jekyll-yearofmoo-s3
62
2
 
3
+ This is a fork of the `jekyll-s3` gem and is designed to support manaul HTTP headers and file exlusion for uploading to s3.
@@ -76,6 +76,15 @@ cloudfront_distribution_id: YOUR_CLOUDFRONT_DIST_ID (OPTIONAL)
76
76
  if ext == '.html' || ext == '.xview'
77
77
  return 'text/html'
78
78
  end
79
+ if file =~ /\.js\.gz/
80
+ return 'application/javascript'
81
+ end
82
+ if file =~ /\.css\.gz/
83
+ return 'text/css'
84
+ end
85
+ if file =~ /\.html\.gz/
86
+ return 'text/html'
87
+ end
79
88
  return nil
80
89
  end
81
90
 
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  module S3
3
- VERSION = "0.0.19"
3
+ VERSION = "0.0.20"
4
4
  end
5
5
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 19
9
- version: 0.0.19
8
+ - 20
9
+ version: 0.0.20
10
10
  platform: ruby
11
11
  authors:
12
12
  - Philippe Creux
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2012-08-26 00:00:00 -04:00
17
+ date: 2012-08-28 00:00:00 -04:00
18
18
  default_executable: jekyll-s3-yearofmoo
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency