azure-contrib 0.0.8 → 0.0.9

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: 5392eacf70c2b45c8b37c4621b1e61203a278fa3
4
- data.tar.gz: a7aa39d2c8f78200fe50d972c566747695ea943f
3
+ metadata.gz: 34169aa3e93ddbbba39665753d802d838a2c4b17
4
+ data.tar.gz: 0375973c0a0f938f4192181fde9e3e17a2012574
5
5
  SHA512:
6
- metadata.gz: 4f5c0cf7bd4ffda1f06090d49c409f771240052e5f1e777903e064b07f0dd9b0736bb7f05d18a1e96cde2e87b150fcc8cd4bf02d35130b7bc4623eb674976518
7
- data.tar.gz: 47c6825d633c01a83f82a101b66140a6dcb0bbd750286de831452a5b53d8ae070d1025940ba54f9f173e50f94f8bfadd6b2acdb547249ab2dbd2dec963fcef75
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 BlobServiceExtensions
50
- def create_block_blob(container, blob, content_or_filepath, options={})
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
- super(container, blob, content, options)
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
- # Why alias_method chain when Ruby gives you a more reasonable way to do this
93
- class BlobService
94
- prepend BlobServiceExtensions
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
@@ -1,5 +1,5 @@
1
1
  module Azure
2
2
  module Contrib
3
- VERSION = "0.0.8"
3
+ VERSION = "0.0.9"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: azure-contrib
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Michael