Skip to content

Commit c59970e

Browse files
authored
Merge pull request arangamani#299 from gsreynolds/ruby_versions
[CI] Update tested Ruby versions
2 parents 72f49f2 + caaabb2 commit c59970e

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

.travis.yml

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
language: ruby
22

33
rvm:
4-
- 2.2.9
5-
- 2.3.6
6-
- 2.4.3
7-
- 2.5.0
4+
- 2.2.10
5+
- 2.3.8
6+
- 2.4.10
7+
- 2.5.8
8+
- 2.6.6
9+
- 2.7.1
810

911
script:
1012
- bundle exec rake unit_tests

jenkins_api_client.gemspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@ Gem::Specification.new do |s|
2626
s.add_dependency 'mixlib-shellout', '>= 1.1.0'
2727
s.add_dependency 'socksify', '>= 1.7.0'
2828
s.add_dependency 'json', '>= 1.0'
29+
s.add_dependency 'addressable', '~> 2.7'
2930
end
30-

lib/jenkins_api_client/urihelper.rb

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
require 'uri'
2+
require 'addressable/uri'
23

34
module JenkinsApi
45
module UriHelper
@@ -11,7 +12,7 @@ def form_encode(string)
1112
# Encode a string for use in the hiearchical part of an URL
1213
#
1314
def path_encode(path)
14-
URI.escape(path.encode(Encoding::UTF_8))
15+
Addressable::URI.escape(path.encode(Encoding::UTF_8))
1516
end
1617
end
1718
end

0 commit comments

Comments
 (0)