carrierwave-aws 0.4.0 → 0.4.1

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: 7a27752d4e7581b2b8d8f9a71b23c0c671c5a85e
4
- data.tar.gz: 1e96f03161449d7d14f7d3272afb3a272ed8612b
3
+ metadata.gz: eabbf546103220f4d72ac4cb88312212acbd0708
4
+ data.tar.gz: 94f36bbc4a81f108336a9628f9cb714bb3bb08a6
5
5
  SHA512:
6
- metadata.gz: 1d4dd67d51ef4a163107144b48336ffa0921facd5b969748d8d3d66fe7a15405b924c8b6b51624c6d22e53344b34e645bf2d9087d56a5621162b33a602f07a95
7
- data.tar.gz: b73a9988c9b4f4b57ba4dc2e43bbc423b3e0a938caee3083e1d1d2a2771ba669fffcd5871f3939c1fe1ee6047b830517f3410afb48468b709a1e9264a4c3d093
6
+ metadata.gz: 657e1f08cf52b24282a10e9d4dd46850a22a4944fb0408c33cb5b42e4e36ff1a3b834f9ecac67fb91183ac6ab06f425058d4aaea22219b85c563880cbaa97455
7
+ data.tar.gz: 785e58e18a6810a419729dc2486b8e9e652f7765cb962402f2bdd76c0163ba60d15d4f3cbb9b7c892b5ab9b84fe8126e2f9cab9396cef4f3d3a21db4b05a4e78
@@ -1,4 +1,9 @@
1
- ## Version 0.4.0 2013-03-20
1
+ ## Version 0.4.1 2014-03-28
2
+
3
+ * Fix regression in `aws_read_options` defaulting to `nil` rather than an empty
4
+ hash. [Johannes Würbach]
5
+
6
+ ## Version 0.4.0 2014-03-20
2
7
 
3
8
  * Allow custom options for authenticated urls [Filipe Giusti]
4
9
  * Loosen aws-sdk constraints
@@ -1,5 +1,5 @@
1
1
  module Carrierwave
2
2
  module AWS
3
- VERSION = '0.4.0'
3
+ VERSION = '0.4.1'
4
4
  end
5
5
  end
@@ -103,7 +103,7 @@ module CarrierWave
103
103
  end
104
104
 
105
105
  def uploader_read_options
106
- uploader.aws_read_options
106
+ uploader.aws_read_options || {}
107
107
  end
108
108
 
109
109
  def uploader_write_options(new_file)
@@ -74,6 +74,11 @@ describe CarrierWave::Storage::AWS::File do
74
74
  it 'includes aws_read_options' do
75
75
  aws_file.uploader_read_options.should == { encryption_key: 'abc' }
76
76
  end
77
+
78
+ it 'ensures that read options are a hash' do
79
+ uploader.stub(:aws_read_options) { nil }
80
+ aws_file.uploader_read_options.should == {}
81
+ end
77
82
  end
78
83
 
79
84
  describe '#to_file' do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: carrierwave-aws
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Parker Selbert
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-20 00:00:00.000000000 Z
11
+ date: 2014-03-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: carrierwave
@@ -63,8 +63,8 @@ files:
63
63
  - ".gitignore"
64
64
  - ".rspec"
65
65
  - ".travis.yml"
66
+ - CHANGELOG.md
66
67
  - Gemfile
67
- - HISTORY.md
68
68
  - LICENSE.txt
69
69
  - README.md
70
70
  - Rakefile