lhj-tools 0.2.12 → 0.2.14
Sign up to get free protection for your applications and to get access to all the features.
- 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 +4 -2
- 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
|
-
|