azure-contrib 0.0.8 → 0.0.9
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/lib/azure-contrib/blob_service.rb +8 -7
- data/lib/azure-contrib/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 34169aa3e93ddbbba39665753d802d838a2c4b17
|
4
|
+
data.tar.gz: 0375973c0a0f938f4192181fde9e3e17a2012574
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 92c8193ca7b9053c7e1aa81a34c8c6cb35c33f83602dc5b6a46e5e18d7c05af345f5409b178b0796e8b76181b2743bdbb8912dd96abb4601e60e6c7b8672b80f
|
7
|
+
data.tar.gz: ce656fc945b27456921c2a3c9e85965d0cb8fa0662bb958d2bda9ed2af6e9f23983ca0cdc691a884a30f9176800820aa295a35235a512e2cc319e00932704c98
|
@@ -46,8 +46,9 @@ class BlockActor
|
|
46
46
|
end
|
47
47
|
|
48
48
|
module Azure
|
49
|
-
module
|
50
|
-
|
49
|
+
module BlobService
|
50
|
+
|
51
|
+
def create_block_blob_with_chunking(container, blob, content_or_filepath, options={})
|
51
52
|
chunking = options.delete(:chunking)
|
52
53
|
if chunking
|
53
54
|
filepath = content_or_filepath
|
@@ -64,7 +65,7 @@ module Azure
|
|
64
65
|
puts "done."
|
65
66
|
else
|
66
67
|
content = content_or_filepath
|
67
|
-
|
68
|
+
create_block_blob_without_chunking(container, blob, content, options)
|
68
69
|
end
|
69
70
|
end
|
70
71
|
|
@@ -87,10 +88,10 @@ module Azure
|
|
87
88
|
pool.terminate
|
88
89
|
return block_list
|
89
90
|
end
|
90
|
-
end
|
91
91
|
|
92
|
-
|
93
|
-
|
94
|
-
|
92
|
+
alias_method :create_block_blob_without_chunking, :create_block_blob
|
93
|
+
alias_method :create_block_blob, :create_block_blob_with_chunking
|
94
|
+
|
95
95
|
end
|
96
|
+
|
96
97
|
end
|