rails_asset_packager 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,5 +1,9 @@
1
1
  -----------------------------------------------------------------------------
2
- v0.2.0 | plainprogrammer | 2011-01-26
2
+ v0.2.2 | plainprogrammer | 2011-01-26
3
+
4
+ * Changed name for S3 checksum field to be consistent with S3 documentation.
5
+ -----------------------------------------------------------------------------
6
+ v0.2.1 | plainprogrammer | 2011-01-26
3
7
 
4
8
  * Changed how checksum is stored and checked by calling to_s.
5
9
  -----------------------------------------------------------------------------
@@ -1,3 +1,3 @@
1
1
  module RailsAssetPackager
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
@@ -70,7 +70,7 @@ namespace :asset do
70
70
  key = f.gsub(/\.\/public/, prefix)
71
71
  puts "#{f} -> #{key}"
72
72
 
73
- unless AWS::S3::S3Object.exists?(key, S3_CONFIG['bucket']) && AWS::S3::S3Object.about(key, S3_CONFIG['bucket'])['rails_asset_packager-checksum'] == Digest::MD5.file(f).to_s
73
+ unless AWS::S3::S3Object.exists?(key, S3_CONFIG['bucket']) && AWS::S3::S3Object.about(key, S3_CONFIG['bucket'])['x-amz-meta-checksum'] == Digest::MD5.file(f).to_s
74
74
  AWS::S3::S3Object.store(
75
75
  key,
76
76
  File.open(f),
@@ -78,7 +78,7 @@ namespace :asset do
78
78
  :access => :public_read,
79
79
  'Cache-Control' => 'max-age=315360000',
80
80
  'x-amz-storage-class' => 'REDUCED_REDUNDANCY',
81
- 'rails_asset_packager-checksum' => Digest::MD5.file(f).to_s
81
+ 'x-amz-meta-checksum' => Digest::MD5.file(f).to_s
82
82
  )
83
83
  end
84
84
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_asset_packager
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 1
10
- version: 0.2.1
9
+ - 2
10
+ version: 0.2.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Scott Becker