azure-contrib 0.0.6 → 0.0.7

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: c302badbb1d0e82da01d8a17e91c316622eb7f65
4
- data.tar.gz: ffb2d8cd073e39190eae90cd3bc3a2851b73c60a
3
+ metadata.gz: 5ae5247c030aade1eaf0b0cffbdc80a87e326ac6
4
+ data.tar.gz: 51aaf651b4d16916a4f106a060bbe95329fb7b71
5
5
  SHA512:
6
- metadata.gz: 6a95c55bfa5930e632360d95e702f14b7895119f300ef11d1a9c6e7087909ec06a0fa5272c066cb972cc39a5fcd8a198195d0641e76ee9516010209ba3c196b2
7
- data.tar.gz: 2f6a2caa446c559e255297bd594803cc003a8451d287fcd491269025be5959f37dbede404d5862db1e878006452db75087feeddfabc5688b5af7cc9da0c6ae3c
6
+ metadata.gz: 9a173522ab54077398462d7a99e16345c214dd5dffdc11fe9f6cd87fb8c2fd0c2cd147ab979b98e4a5209800f8eaf843901afe6535aec0492ebc2d14c3e844d0
7
+ data.tar.gz: 3e3070938a0fe1572677400edcf048c4efd679e55121ee1ad06b171ee090a2ae3cec36db24e173d293df55ab65a7c277ec5d1b28fb69cb00fddf1b833f049493
@@ -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.6"
3
+ VERSION = "0.0.7"
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.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Michael