artifactory 3.0.12 → 3.0.13

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
  SHA256:
3
- metadata.gz: 9f2ac1ef78888d5d68cd444274bfdc534226285b1680c3dbd5051e588a7e782c
4
- data.tar.gz: 73dd6f6671ed821caf2bb0a2d209011848d62f7a2b29377d32b0b28ae672cf70
3
+ metadata.gz: 17f2e20aaeb0c7dde0f7f46d3fbd780cd1e8818f7a72d10bbc68bc959362dfe5
4
+ data.tar.gz: bd0ca811f01c5958e2e8565163b5af0983dbd19a51c51bfd42ac4c5a818d1add
5
5
  SHA512:
6
- metadata.gz: 547a6b02af33b3c6ae0dcef9f696bda622664256953963a93537075c84f5951eadc0191465598608a79ba7c4efe0441d03eb92e918df1812c70edc854bc83621
7
- data.tar.gz: 0ef42dcf24579618c86fd7e8512021e4eef5c16cdc4dcef65116da36cab77403dc704b927708783c42ee8261975dce7dd14522b95db4f8dfc25fff2ec8c99989
6
+ metadata.gz: f28c346e5ba840570ae0e96a1a077a4ab0ea86c89526dfc2e03ac9b165d861d099f42179a2f59313570eba55bc09af61bfde7f4993435b2db61592175731d6ab
7
+ data.tar.gz: 5570f6b4d16e61ed9350243dc0811bf171bc872a35abdf26d0b3fffc549bfa4c694e1a1922251e041fa029ecc9137fd21b018a96708e20e275ecca245319acc5
@@ -243,7 +243,15 @@ module Artifactory
243
243
  # the URL-safe version of the string
244
244
  #
245
245
  def url_safe(value)
246
- URI.escape(URI.unescape(value.to_s))
246
+ uri_parser.escape(uri_parser.unescape(value.to_s))
247
+ end
248
+
249
+ #
250
+ # Generate a URI parser
251
+ #
252
+ # @return [URI::Parser]
253
+ def uri_parser
254
+ @uri_parser ||= URI::Parser.new
247
255
  end
248
256
  end
249
257
 
@@ -353,8 +361,8 @@ module Artifactory
353
361
  #
354
362
  def to_query_string_parameters(hash = {})
355
363
  properties = hash.map do |k, v|
356
- key = URI.escape(k.to_s)
357
- value = URI.escape(v.to_s)
364
+ key = self.class.uri_parser.escape(k.to_s)
365
+ value = self.class.uri_parser.escape(v.to_s)
358
366
 
359
367
  "#{key}=#{value}"
360
368
  end
@@ -15,5 +15,5 @@
15
15
  #
16
16
 
17
17
  module Artifactory
18
- VERSION = "3.0.12".freeze
18
+ VERSION = "3.0.13".freeze
19
19
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: artifactory
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.12
4
+ version: 3.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chef Release Engineering Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-12-31 00:00:00.000000000 Z
11
+ date: 2020-05-15 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A Ruby client for Artifactory
14
14
  email: releng@chef.io