paperclip-azure 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/azure/core/auth/shared_access_signature.rb +0 -1
- data/lib/paperclip-azure.rb +14 -2
- data/paperclip-azure.gemspec +1 -2
- metadata +1 -2
- data/lib/azure/blob/blob_service.rb +0 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c545a39d7a8acfaa758d17bed06bcbccd56cfdfd
|
4
|
+
data.tar.gz: 848ef0de836ae654dd0446bf20edd3a93dd3c238
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aed8e69bb643129c453affe8ebb921c94e051914dc61f3e6f4b15231be783b3db47437a92aec1d1db7fff8c9b13769cdf3fa11327100a9aede245327f80baacd
|
7
|
+
data.tar.gz: 1a65ce162e567c6e6e203f48e84b12b4b35e3000569a678e43defebdcf7902c4513f25b15ee981efc34997ba9d97fd0c3dacb158d1715b1b7e33776f825166f9
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.1
|
data/lib/paperclip-azure.rb
CHANGED
@@ -1,3 +1,15 @@
|
|
1
|
-
require
|
1
|
+
require 'azure'
|
2
|
+
|
2
3
|
require File.join(File.dirname(__FILE__), 'azure', 'core', 'auth', 'shared_access_signature')
|
3
|
-
require File.join(File.dirname(__FILE__), 'paperclip', 'storage', 'azure')
|
4
|
+
require File.join(File.dirname(__FILE__), 'paperclip', 'storage', 'azure')
|
5
|
+
|
6
|
+
module Azure
|
7
|
+
module Blob
|
8
|
+
BlobService.class_eval do
|
9
|
+
def initialize(signer=Core::Auth::SharedKey.new, account_name=Azure.config.storage_account_name)
|
10
|
+
super(signer, account_name)
|
11
|
+
@host = "http://#{account_name}.blob.core.windows.net"
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
data/paperclip-azure.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "paperclip-azure"
|
8
|
-
s.version = "0.2.
|
8
|
+
s.version = "0.2.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Jordan Yaker"]
|
@@ -25,7 +25,6 @@ Gem::Specification.new do |s|
|
|
25
25
|
"README.rdoc",
|
26
26
|
"Rakefile",
|
27
27
|
"VERSION",
|
28
|
-
"lib/azure/blob/blob_service.rb",
|
29
28
|
"lib/azure/core/auth/shared_access_signature.rb",
|
30
29
|
"lib/paperclip-azure.rb",
|
31
30
|
"lib/paperclip/storage/azure.rb",
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: paperclip-azure
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jordan Yaker
|
@@ -152,7 +152,6 @@ files:
|
|
152
152
|
- README.rdoc
|
153
153
|
- Rakefile
|
154
154
|
- VERSION
|
155
|
-
- lib/azure/blob/blob_service.rb
|
156
155
|
- lib/azure/core/auth/shared_access_signature.rb
|
157
156
|
- lib/paperclip-azure.rb
|
158
157
|
- lib/paperclip/storage/azure.rb
|
@@ -1,12 +0,0 @@
|
|
1
|
-
if defined? Azure::Blob::BlobService
|
2
|
-
module Azure
|
3
|
-
module Blob
|
4
|
-
BlobService.class_eval do
|
5
|
-
def initialize(signer=Core::Auth::SharedKey.new, account_name=Azure.config.storage_account_name)
|
6
|
-
super(signer, account_name)
|
7
|
-
@host = "http://#{account_name}.blob.core.windows.net"
|
8
|
-
end
|
9
|
-
end
|
10
|
-
end
|
11
|
-
end
|
12
|
-
end
|