carrierwave-azure 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/carrierwave/azure/version.rb +1 -1
- data/lib/carrierwave/storage/azure.rb +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 249499710b8f42a2c0cb7a9ea400aa4ae82ab96c
|
4
|
+
data.tar.gz: 63b7d19173fa80c79c7be45db9251e5c80bb362f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 761567767273463b0deb34113fee1e5caa7a12829dc5fe8a7761b93ef65788d52c8d645ce3db9ff1bdd3d16dc78c7650b965efe068cc1de25ea699358024a921
|
7
|
+
data.tar.gz: a3bfc7d0b16f8ea38f228c147a29ed788c5a99ccc03da50f8dbdbae6f066c2f1b4a8a512a1d58864b58a612c3e08b5673fff1e89e1c7e5b1aa8030c9c6aff8d4
|
@@ -34,7 +34,7 @@ module CarrierWave
|
|
34
34
|
def store!(file)
|
35
35
|
@content = file.read
|
36
36
|
@content_type = file.content_type
|
37
|
-
@connection.create_block_blob @uploader.azure_container, @path, @content
|
37
|
+
@connection.create_block_blob @uploader.azure_container, @path, @content, content_type: @content_type
|
38
38
|
true
|
39
39
|
end
|
40
40
|
|
@@ -52,7 +52,7 @@ module CarrierWave
|
|
52
52
|
end
|
53
53
|
|
54
54
|
def content_type
|
55
|
-
@content_type = blob.properties[:content_type] if @content_type.nil? && blob.
|
55
|
+
@content_type = blob.properties[:content_type] if @content_type.nil? && !blob.nil?
|
56
56
|
@content_type
|
57
57
|
end
|
58
58
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: carrierwave-azure
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yusuke Shibahara
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-06-
|
11
|
+
date: 2013-06-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: carrierwave
|
@@ -93,7 +93,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
93
93
|
version: '0'
|
94
94
|
requirements: []
|
95
95
|
rubyforge_project:
|
96
|
-
rubygems_version: 2.0.
|
96
|
+
rubygems_version: 2.0.2
|
97
97
|
signing_key:
|
98
98
|
specification_version: 4
|
99
99
|
summary: Windows Azure blob storage support for CarrierWave
|