send_s3_file 0.0.3 → 0.0.4

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: 325cd0dca93a09982d185f00716c72b18d8ff7e4
4
- data.tar.gz: 255994aa5d9ff702b490648b55e415e1f43e7187
3
+ metadata.gz: 751e04963c0e229cdeb9d63d5392b6c84a57e1e9
4
+ data.tar.gz: df350f1959759109de57f7983eb050807e31a276
5
5
  SHA512:
6
- metadata.gz: 1ccb13ba146f764a88c9303bc58670dac167fe3466ef0907210f4ee7575176bcbb40ece2ced9f30cd5ba2e093672b1034370123da1ef9c81935cf6d0895bba61
7
- data.tar.gz: 620111fec29c11f841b81464619b9814e55ddc986f31d7db656de89b83b7ef502440590907c7f57ea2af291293c92c260422647c19579ade7f55e0d19d70df8d
6
+ metadata.gz: a8d6c7ce15da500b910efffe42d0dc5c1bfce9a0938ea4ecef00c2fc1a66b86a3a0ec66ae3d70f8a1dc02e8708d852ea0150c808f13d158c885fee4f0521b37d
7
+ data.tar.gz: 02f86e1917bd908696cbe3802664849ac3a5c33d18172403475f04de251328ef6117b1f021f42006f3522a2022c54a843ac0b14e647bcff5aff81e2935012d4a
data/lib/send_s3_file.rb CHANGED
@@ -10,7 +10,8 @@ module SendS3File
10
10
  headers.merge!(
11
11
  'Content-Type' => build_content_type(options),
12
12
  'Content-Disposition' => build_disposition(options),
13
- 'Content-Transfer-Encoding' => 'binary'
13
+ 'Content-Transfer-Encoding' => 'binary',
14
+ 'Content-Length' => s3_object.content_length
14
15
  )
15
16
 
16
17
  render :status => options[:status], :text => Proc.new {|response, output|
@@ -1,3 +1,3 @@
1
1
  module SendS3File
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: send_s3_file
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jatin Naik
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-27 00:00:00.000000000 Z
11
+ date: 2014-11-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionpack