azure-contrib 0.0.7 → 0.0.8
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 +7 -8
- 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: 5392eacf70c2b45c8b37c4621b1e61203a278fa3
|
|
4
|
+
data.tar.gz: a7aa39d2c8f78200fe50d972c566747695ea943f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4f5c0cf7bd4ffda1f06090d49c409f771240052e5f1e777903e064b07f0dd9b0736bb7f05d18a1e96cde2e87b150fcc8cd4bf02d35130b7bc4623eb674976518
|
|
7
|
+
data.tar.gz: 47c6825d633c01a83f82a101b66140a6dcb0bbd750286de831452a5b53d8ae070d1025940ba54f9f173e50f94f8bfadd6b2acdb547249ab2dbd2dec963fcef75
|
|
@@ -46,9 +46,8 @@ class BlockActor
|
|
|
46
46
|
end
|
|
47
47
|
|
|
48
48
|
module Azure
|
|
49
|
-
module
|
|
50
|
-
|
|
51
|
-
def create_block_blob_with_chunking(container, blob, content_or_filepath, options={})
|
|
49
|
+
module BlobServiceExtensions
|
|
50
|
+
def create_block_blob(container, blob, content_or_filepath, options={})
|
|
52
51
|
chunking = options.delete(:chunking)
|
|
53
52
|
if chunking
|
|
54
53
|
filepath = content_or_filepath
|
|
@@ -65,7 +64,7 @@ module Azure
|
|
|
65
64
|
puts "done."
|
|
66
65
|
else
|
|
67
66
|
content = content_or_filepath
|
|
68
|
-
|
|
67
|
+
super(container, blob, content, options)
|
|
69
68
|
end
|
|
70
69
|
end
|
|
71
70
|
|
|
@@ -88,10 +87,10 @@ module Azure
|
|
|
88
87
|
pool.terminate
|
|
89
88
|
return block_list
|
|
90
89
|
end
|
|
91
|
-
|
|
92
|
-
alias_method :create_block_blob_without_chunking, :create_block_blob
|
|
93
|
-
alias_method :create_block_blob, :create_block_blob_with_chunking
|
|
94
|
-
|
|
95
90
|
end
|
|
96
91
|
|
|
92
|
+
# Why alias_method chain when Ruby gives you a more reasonable way to do this
|
|
93
|
+
class BlobService
|
|
94
|
+
prepend BlobServiceExtensions
|
|
95
|
+
end
|
|
97
96
|
end
|