carrierwave-azure_rm 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -0
- data/carrierwave-azure_rm.gemspec +1 -1
- data/lib/carrierwave/azure_rm/version.rb +1 -1
- data/lib/carrierwave/storage/azure_rm.rb +8 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bf7e2a2b825546838c1592073e23dfdfc788d951
|
4
|
+
data.tar.gz: d7d62a5cb2493a6dac4baef74282e4713da09545
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aa92f28d352cdc28d453931b66d46a133ae7bed0643df5517353f19742979fc712ff0fe8f00049ae6fc5cd67be952e2ee2f5963b06e95b5f0c7d67289aa978c9
|
7
|
+
data.tar.gz: 4fd3cc7c217fb904b0902c4fc7184c30871afca855e5be3a006f992b2599b89041f7ed1965896c253b962855ba6a2ca21b79ccc41abae73f1b28019b08b865c0
|
data/.gitignore
CHANGED
@@ -17,7 +17,7 @@ Gem::Specification.new do |gem|
|
|
17
17
|
gem.require_paths = ['lib']
|
18
18
|
|
19
19
|
gem.add_dependency 'carrierwave'
|
20
|
-
gem.add_dependency 'azure-storage', '~> 0.
|
20
|
+
gem.add_dependency 'azure-storage', '~> 0.12.0.preview'
|
21
21
|
|
22
22
|
gem.add_development_dependency 'rake'
|
23
23
|
gem.add_development_dependency 'rspec', '~> 3'
|
@@ -107,7 +107,7 @@ module CarrierWave
|
|
107
107
|
private
|
108
108
|
|
109
109
|
def blob
|
110
|
-
|
110
|
+
load_blob if @blob.nil?
|
111
111
|
@blob
|
112
112
|
end
|
113
113
|
|
@@ -116,6 +116,13 @@ module CarrierWave
|
|
116
116
|
@content
|
117
117
|
end
|
118
118
|
|
119
|
+
def load_blob
|
120
|
+
@blob = begin
|
121
|
+
@connection.get_blob_properties @uploader.azure_container, @path
|
122
|
+
rescue ::Azure::Core::Http::HTTPError
|
123
|
+
end
|
124
|
+
end
|
125
|
+
|
119
126
|
def load_content
|
120
127
|
@blob, @content = begin
|
121
128
|
@connection.get_blob @uploader.azure_container, @path
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: carrierwave-azure_rm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- nooulaif
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-03-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: carrierwave
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.
|
33
|
+
version: 0.12.0.preview
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.
|
40
|
+
version: 0.12.0.preview
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rake
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -108,7 +108,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
108
108
|
version: '0'
|
109
109
|
requirements: []
|
110
110
|
rubyforge_project:
|
111
|
-
rubygems_version: 2.
|
111
|
+
rubygems_version: 2.5.1
|
112
112
|
signing_key:
|
113
113
|
specification_version: 4
|
114
114
|
summary: Microsoft Azure Storage blob support for CarrierWave
|