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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fecd5b8613590588dcb0e03fba595842ae08a620
4
- data.tar.gz: 58a6c177c57c4aa4342b3a77040a820350291ac0
3
+ metadata.gz: 249499710b8f42a2c0cb7a9ea400aa4ae82ab96c
4
+ data.tar.gz: 63b7d19173fa80c79c7be45db9251e5c80bb362f
5
5
  SHA512:
6
- metadata.gz: d79615674c9abc497304c840ad16fcda17a5bd10c4735c96f49da971448fe7266a48f1936641ada4df5acae17b2cedf724e6d990005883498eca620a76a95308
7
- data.tar.gz: 338f7aa4b955888938691e2774f97aee1f910ec64ef04de5e4c2a97819949c6223184addc7754b4a3fc30f9937b9fdd0b17deabf690fec0b30ba31797a096a87
6
+ metadata.gz: 761567767273463b0deb34113fee1e5caa7a12829dc5fe8a7761b93ef65788d52c8d645ce3db9ff1bdd3d16dc78c7650b965efe068cc1de25ea699358024a921
7
+ data.tar.gz: a3bfc7d0b16f8ea38f228c147a29ed788c5a99ccc03da50f8dbdbae6f066c2f1b4a8a512a1d58864b58a612c3e08b5673fff1e89e1c7e5b1aa8030c9c6aff8d4
@@ -1,5 +1,5 @@
1
1
  module Carrierwave
2
2
  module Azure
3
- VERSION = '0.0.1'
3
+ VERSION = '0.0.2'
4
4
  end
5
5
  end
@@ -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.persent?
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.1
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-09 00:00:00.000000000 Z
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.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