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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3efd0d4afe605894d4e3d857a2225c44a1dffd3b
4
- data.tar.gz: 5f96d9848f246c3746580120d1abbe87523eb96f
3
+ metadata.gz: bf7e2a2b825546838c1592073e23dfdfc788d951
4
+ data.tar.gz: d7d62a5cb2493a6dac4baef74282e4713da09545
5
5
  SHA512:
6
- metadata.gz: e7b8d014e0c62e8651946dc6063d41356fca576987b9f826fceb2184c0c98ae7a18d44437bf961407cf4c1c6454ceb30af3fd32de6ecc72f33f6cf5fde9bae6b
7
- data.tar.gz: 2345968862f0b4037fadbe0ae148f146c4d0943ecfb3f3942a7a1934092c3854522e0f916f98e37814d7df800647385f99dfaaddbbd97e6d9fff0ca37ab8e199
6
+ metadata.gz: aa92f28d352cdc28d453931b66d46a133ae7bed0643df5517353f19742979fc712ff0fe8f00049ae6fc5cd67be952e2ee2f5963b06e95b5f0c7d67289aa978c9
7
+ data.tar.gz: 4fd3cc7c217fb904b0902c4fc7184c30871afca855e5be3a006f992b2599b89041f7ed1965896c253b962855ba6a2ca21b79ccc41abae73f1b28019b08b865c0
data/.gitignore CHANGED
@@ -3,6 +3,7 @@
3
3
  .bundle
4
4
  .config
5
5
  .yardoc
6
+ .idea
6
7
  Gemfile.lock
7
8
  InstalledFiles
8
9
  _yardoc
@@ -16,3 +17,4 @@ test/tmp
16
17
  test/version_tmp
17
18
  tmp
18
19
  spec/environment.rb
20
+ .ruby-version
@@ -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.10.2.preview'
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'
@@ -1,5 +1,5 @@
1
1
  module Carrierwave
2
2
  module AzureRM
3
- VERSION = '0.0.2'
3
+ VERSION = '0.0.3'
4
4
  end
5
5
  end
@@ -107,7 +107,7 @@ module CarrierWave
107
107
  private
108
108
 
109
109
  def blob
110
- load_content if @blob.nil?
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.2
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: 2016-07-25 00:00:00.000000000 Z
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.10.2.preview
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.10.2.preview
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.6.6
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