gitlab-fog-azure-rm 1.2.0 → 1.3.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9cc556f2028cd1a063691e4556dc1421014476690f700eb31fea81bcac574b41
4
- data.tar.gz: e6e7d3c355e63cf6a0501d2bc85cbfd994ae54349c950657f6619244fecc9d02
3
+ metadata.gz: fc0e6fc125b778bb49c22a6fbfeb0ab779d99bfffaca5496df1834d2a0f69a86
4
+ data.tar.gz: 5f9ce8aa7d939260edc6047636e6fdfbebaeae6cd7fd611921aa7cc2a3c36056
5
5
  SHA512:
6
- metadata.gz: c1ffb76c0ba61d39f675c90612afdf3ae06f0b0835c8f6162a874b73a637e58e4c2c07c0b193ede34ef84601c040920e7a93c2ade997abcdd3c39a64f45d9ff9
7
- data.tar.gz: bae99d6843a450a5072a9a8e5a2e94de43a6849565fa38c2b288d3c14fbeb70066be960b08c0172a5a9eb61314119d1e78dfb890f90fa4b4af7f7784b028fcdd
6
+ metadata.gz: 1578489ca552ed032d47387738f1b8807f467bac75b1d2446fe0ea547ed8b96b81d44c9af7c3134d50da7bb86158e757f8bb18ce4e3e998a9badfb5ce76a55e4
7
+ data.tar.gz: ff5993b7140d6e3dd0de19d776dd2666980f65a1cb0baeee5abc28ed98eb29a71386108763530f591cb768116493994fbdec1bd877a2c8939c31c6cb85535385
data/.gitlab-ci.yml CHANGED
@@ -1,4 +1,5 @@
1
- image: "ruby:2.7"
1
+ default:
2
+ image: "ruby:${RUBY_VERSION}"
2
3
 
3
4
  cache:
4
5
  paths:
@@ -11,7 +12,12 @@ before_script:
11
12
  test:
12
13
  script:
13
14
  - bundle exec rake test
15
+ parallel:
16
+ matrix:
17
+ - RUBY_VERSION: [ "2.7", "3.0", "3.1" ]
14
18
 
15
19
  rubocop:
16
20
  script:
17
21
  - bundle exec rubocop
22
+ variables:
23
+ RUBY_VERSION: "2.7"
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## Unreleased
2
2
 
3
+ ## 1.3.0
4
+
5
+ - Fix Ruby 3.0 compatibility !27
6
+
3
7
  ## 1.2.0
4
8
 
5
9
  - Support setting returned Content-Disposition in GetBlob requests !25
@@ -5,7 +5,7 @@ module Fog
5
5
  class Real
6
6
  BLOCK_SIZE = 32 * 1024 * 1024 # 32 MB
7
7
 
8
- def get_blob_with_block_given(container_name, blob_name, options, &_block)
8
+ def get_blob_with_block_given(container_name, blob_name, options, &block)
9
9
  options[:request_id] = SecureRandom.uuid
10
10
  msg = "get_blob_with_block_given: blob #{blob_name} in the container #{container_name}. options: #{options}"
11
11
  Fog::Logger.debug msg
@@ -19,7 +19,7 @@ module Fog
19
19
 
20
20
  content_length = blob.properties[:content_length]
21
21
  if content_length.zero?
22
- Proc.new.call('', 0, 0)
22
+ block.call('', 0, 0)
23
23
  return [blob, '']
24
24
  end
25
25
 
@@ -30,7 +30,7 @@ module Fog
30
30
  raise ArgumentError.new(':end_range MUST be greater than :start_range') if start_range > end_range
31
31
 
32
32
  if start_range == end_range
33
- Proc.new.call('', 0, 0)
33
+ block.call('', 0, 0)
34
34
  return [blob, '']
35
35
  end
36
36
 
@@ -55,7 +55,7 @@ module Fog
55
55
  raise_azure_exception(ex, msg)
56
56
  end
57
57
 
58
- Proc.new.call(content, end_range - buffer_end_range, total_bytes)
58
+ block.call(content, end_range - buffer_end_range, total_bytes)
59
59
  buffer_start_range += buffer_size
60
60
  end
61
61
  # No need to return content when block is given.
@@ -84,7 +84,7 @@ module Fog
84
84
 
85
85
  # This class provides the mock implementation for unit tests.
86
86
  class Mock
87
- def get_blob(_container_name, _blob_name, _options = {}, &_block)
87
+ def get_blob(_container_name, _blob_name, _options = {}, &block)
88
88
  Fog::Logger.debug 'get_blob successfully.'
89
89
  unless block_given?
90
90
  return [
@@ -122,7 +122,7 @@ module Fog
122
122
  remaining = total_bytes = data.length
123
123
  while remaining > 0
124
124
  chunk = data.read([remaining, 2].min)
125
- Proc.new.call(chunk, remaining, total_bytes)
125
+ block.call(chunk, remaining, total_bytes)
126
126
  remaining -= 2
127
127
  end
128
128
 
@@ -1,5 +1,5 @@
1
1
  module Fog
2
2
  module AzureRM
3
- VERSION = '1.2.0'.freeze
3
+ VERSION = '1.3.0'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitlab-fog-azure-rm
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shaffan Chaudhry
@@ -15,10 +15,10 @@ authors:
15
15
  - Azeem Sajid
16
16
  - Maham Nazir
17
17
  - Abbas Sheikh
18
- autorequire:
18
+ autorequire:
19
19
  bindir: bin
20
20
  cert_chain: []
21
- date: 2021-09-20 00:00:00.000000000 Z
21
+ date: 2022-06-02 00:00:00.000000000 Z
22
22
  dependencies:
23
23
  - !ruby/object:Gem::Dependency
24
24
  name: codeclimate-test-reporter
@@ -176,7 +176,7 @@ dependencies:
176
176
  version: 0.12.0
177
177
  description: This is a stripped-down fork of fog-azure-rm that enables Azure Blob
178
178
  Storage to be used with CarrierWave and Fog.
179
- email:
179
+ email:
180
180
  executables: []
181
181
  extensions: []
182
182
  extra_rdoc_files:
@@ -339,7 +339,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
339
339
  version: '0'
340
340
  requirements: []
341
341
  rubygems_version: 3.1.6
342
- signing_key:
342
+ signing_key:
343
343
  specification_version: 4
344
344
  summary: Module for the 'fog' gem to support Azure Blob Storage with CarrierWave and
345
345
  Fog.