lhj-tools 0.2.13 → 0.2.14
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 +4 -4
- data/lib/lhj/command/{jenkins_build.rb → jenkins/jenkins_build.rb} +6 -2
- data/lib/lhj/command.rb +1 -1
- data/lib/lhj/helper/bugly_helper.rb +1 -1
- data/lib/lhj/helper/traditional_check_helper.rb +61 -0
- data/lib/lhj/helper/trans_helper.rb +9 -0
- data/lib/lhj/lhj.rb +2 -5
- data/lib/lhj/version.rb +1 -1
- metadata +18 -7
- data/lib/lhj/jenkins/client.rb +0 -837
- data/lib/lhj/jenkins/exceptions.rb +0 -226
- data/lib/lhj/jenkins/job.rb +0 -1933
- data/lib/lhj/jenkins/urihelper.rb +0 -21
@@ -1,21 +0,0 @@
|
|
1
|
-
require 'uri'
|
2
|
-
require 'addressable/uri'
|
3
|
-
|
4
|
-
module Lhj
|
5
|
-
module JenkinsApi
|
6
|
-
module UriHelper
|
7
|
-
# Encode a string for using in the query part of an URL
|
8
|
-
#
|
9
|
-
def form_encode(string)
|
10
|
-
URI.encode_www_form_component string.encode(Encoding::UTF_8)
|
11
|
-
end
|
12
|
-
|
13
|
-
# Encode a string for use in the hiearchical part of an URL
|
14
|
-
#
|
15
|
-
def path_encode(path)
|
16
|
-
Addressable::URI.escape(path.encode(Encoding::UTF_8))
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|
21
|
-
|