bits_service_client 4.0.0.pre.3 → 4.0.0.pre.4

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
  SHA1:
3
- metadata.gz: 7989da9bc76b9cbec050ebdfd1f1b332968ca6e2
4
- data.tar.gz: 623775e563a40638d38b70ea929666c4880d239a
3
+ metadata.gz: 9cb8241cfca3b1fff42deae74bca9e073a3bd38c
4
+ data.tar.gz: 100d6162b60a7554a5d412d9bfd2a1fab4361ddd
5
5
  SHA512:
6
- metadata.gz: 2d0c573d721010471df62ad63a6b839cc7148c7fa2d202425cf6c7944fabbad6265a3d7069abd9d36a26311336238e9605601829f4e0aebaa9ab760f0a24489d
7
- data.tar.gz: ab24fc0808182958a4ad45622c711ee1fb1a1aca5b1d2808699f3b1be41b6d65a7f2f1e9398a714da642159f11fa4fd57b8b84ae2567bc744e59218bd01eb57a
6
+ metadata.gz: 6fe958b880e91398a21394140bc798e95f01a8dae3dfa76b87abd56d33d63430b53b11686c5d3329f43889a2b0e341b2f621b8f499c03be859ccde73541f1391
7
+ data.tar.gz: 3c984bb9c7c9035c60c90d2f532db19836f30a13542b853a60ee63647b18be7883346d1ca9ed72b4f83ffcfad0b5db0733610606ee989d38d7736a755faccdb7
@@ -27,21 +27,26 @@ module BitsService
27
27
  key
28
28
  end
29
29
 
30
- def public_download_url
31
- signed_url = "#{@public_endpoint}#{self.sign_signature('HEAD', resource_path(key), @signing_key_secret, @signing_key_id)}"
30
+ # TODO delete commented code when pipeline is green
31
+ # def public_download_url
32
+ # signed_url = "#{@public_endpoint}#{self.sign_signature('GET', resource_path(key), @signing_key_secret, @signing_key_id)}"
32
33
 
33
- response = @private_http_client.head(signed_url, @vcap_request_id)
34
- validate_response_code!([200, 302], response)
34
+ # response = @private_http_client.get(signed_url, @vcap_request_id)
35
+ # validate_response_code!([200, 302, 404], response)
35
36
 
36
- if response.code.to_i == 302
37
- response['location']
38
- else
39
- signed_url
40
- end
37
+ # if response.code.to_i == 302
38
+ # response['location']
39
+ # else
40
+ # signed_url
41
+ # end
42
+ # end
43
+
44
+ def public_download_url
45
+ "#{@public_endpoint}#{self.sign_signature('GET', resource_path(key), @signing_key_secret, @signing_key_id)}"
41
46
  end
42
47
 
43
48
  def public_upload_url
44
- "#{@public_endpoint}#{self.sign_signature('PUT',resource_path(key), @signing_key_secret, @signing_key_id)}&async=true&verb=put"
49
+ "#{@public_endpoint}#{self.sign_signature('PUT', resource_path(key), @signing_key_secret, @signing_key_id)}&async=true&verb=put"
45
50
  end
46
51
 
47
52
  def internal_download_url
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BitsServiceClient
4
- VERSION = '4.0.0.pre.3'
4
+ VERSION = '4.0.0.pre.4'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bits_service_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0.pre.3
4
+ version: 4.0.0.pre.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rizwan Reza