azure-contrib 0.0.7 → 0.0.8

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: 5ae5247c030aade1eaf0b0cffbdc80a87e326ac6
4
- data.tar.gz: 51aaf651b4d16916a4f106a060bbe95329fb7b71
3
+ metadata.gz: 5392eacf70c2b45c8b37c4621b1e61203a278fa3
4
+ data.tar.gz: a7aa39d2c8f78200fe50d972c566747695ea943f
5
5
  SHA512:
6
- metadata.gz: 9a173522ab54077398462d7a99e16345c214dd5dffdc11fe9f6cd87fb8c2fd0c2cd147ab979b98e4a5209800f8eaf843901afe6535aec0492ebc2d14c3e844d0
7
- data.tar.gz: 3e3070938a0fe1572677400edcf048c4efd679e55121ee1ad06b171ee090a2ae3cec36db24e173d293df55ab65a7c277ec5d1b28fb69cb00fddf1b833f049493
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 BlobService
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
- create_block_blob_without_chunking(container, blob, content, options)
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
@@ -1,5 +1,5 @@
1
1
  module Azure
2
2
  module Contrib
3
- VERSION = "0.0.7"
3
+ VERSION = "0.0.8"
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.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Michael