jammit-s3 0.5.3.4 → 0.5.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'jammit-s3'
3
- s.version = '0.5.3.4'
3
+ s.version = '0.5.3.5'
4
4
 
5
5
  s.homepage = "http://documentcloud.github.com/jammit/"
6
6
  s.summary = "Asset Packaging for Rails with Deployment to S3/Cloudfront"
@@ -17,7 +17,7 @@ Gem::Specification.new do |s|
17
17
 
18
18
  s.add_dependency 'jammit', '>= 0.5.3'
19
19
  s.add_dependency 'mimemagic', '>= 0.1.7'
20
- s.add_dependency 's3', ">= 0.3.4"
20
+ s.add_dependency 's3', ">= 0.3.7"
21
21
 
22
22
  s.files = Dir['lib/**/*', 'bin/*', 'jammit-s3.gemspec', 'LICENSE', 'README']
23
23
  end
@@ -9,13 +9,13 @@ module Jammit
9
9
  @access_key_id = options[:access_key_id] || Jammit.configuration[:s3_access_key_id]
10
10
  @secret_access_key = options[:secret_access_key] || Jammit.configuration[:s3_secret_access_key]
11
11
  @bucket_location = options[:bucket_location] || Jammit.configuration[:s3_bucket_location]
12
-
12
+ @cache_control = options[:cache_control] || Jammit.configuration[:s3_cache_control]
13
+
13
14
  @bucket = find_or_create_bucket
14
15
  end
15
16
  end
16
17
 
17
18
  def upload
18
-
19
19
  log "Pushing assets to S3 bucket: #{@bucket.name}"
20
20
  globs = []
21
21
 
@@ -60,6 +60,7 @@ module Jammit
60
60
 
61
61
  # save to s3
62
62
  new_object = @bucket.objects.build(remote_path)
63
+ new_object.cache_control = @cache_control if @cache_control
63
64
  new_object.content_type = MimeMagic.by_path(remote_path)
64
65
  new_object.content = open(local_path)
65
66
  new_object.content_encoding = "gzip" if use_gzip
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jammit-s3
3
3
  version: !ruby/object:Gem::Version
4
- hash: 99
4
+ hash: 97
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
9
  - 3
10
- - 4
11
- version: 0.5.3.4
10
+ - 5
11
+ version: 0.5.3.5
12
12
  platform: ruby
13
13
  authors:
14
14
  - Jacques Crocker
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2010-10-26 00:00:00 -07:00
19
+ date: 2010-10-29 00:00:00 -07:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
@@ -60,12 +60,12 @@ dependencies:
60
60
  requirements:
61
61
  - - ">="
62
62
  - !ruby/object:Gem::Version
63
- hash: 27
63
+ hash: 29
64
64
  segments:
65
65
  - 0
66
66
  - 3
67
- - 4
68
- version: 0.3.4
67
+ - 7
68
+ version: 0.3.7
69
69
  requirement: *id003
70
70
  description: " Jammit-S3 is an extension to the awesome Jammit library that handles deployment to s3 and cloudfront.\n"
71
71
  email: railsjedi@gmail.com