lhj-tools 0.1.22 → 0.1.26
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/sync_pod_repo.rb +2 -2
- data/lib/lhj/helper/log_helper.rb +25 -8
- data/lib/lhj/helper/pgyer_config.rb +23 -5
- data/lib/lhj/helper/pgyer_helper.rb +7 -6
- data/lib/lhj/helper/pod_repo_config.rb +24 -0
- data/lib/lhj/helper/team_member_config.rb +20 -0
- data/lib/lhj/helper/trans_helper.rb +6 -1
- data/lib/lhj/jenkins/client.rb +837 -0
- data/lib/lhj/jenkins/exceptions.rb +226 -0
- data/lib/lhj/jenkins/job.rb +1933 -0
- data/lib/lhj/jenkins/urihelper.rb +21 -0
- data/lib/lhj/tools/version.rb +1 -1
- data/lib/lhj/tools.rb +6 -0
- metadata +8 -2
@@ -0,0 +1,21 @@
|
|
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
|
+
|
data/lib/lhj/tools/version.rb
CHANGED
data/lib/lhj/tools.rb
CHANGED
@@ -3,9 +3,15 @@ require_relative "tools/version"
|
|
3
3
|
require 'colored'
|
4
4
|
|
5
5
|
module Lhj
|
6
|
+
require 'lhj/jenkins/urihelper'
|
7
|
+
require 'lhj/jenkins/exceptions'
|
8
|
+
require 'lhj/jenkins/client'
|
9
|
+
require 'lhj/jenkins/job'
|
10
|
+
|
6
11
|
require 'lhj/env'
|
7
12
|
require 'lhj/ui/ui'
|
8
13
|
require 'lhj/config'
|
14
|
+
require 'lhj/helper/pod_repo_config'
|
9
15
|
require 'lhj/helper/pgyer_helper'
|
10
16
|
require 'lhj/helper/dingtalk_helper'
|
11
17
|
require 'lhj/helper/tb_helper'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lhj-tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.26
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- lihaijian
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-02-
|
11
|
+
date: 2022-02-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: claide
|
@@ -336,9 +336,15 @@ files:
|
|
336
336
|
- lib/lhj/helper/oss_helper.rb
|
337
337
|
- lib/lhj/helper/pgyer_config.rb
|
338
338
|
- lib/lhj/helper/pgyer_helper.rb
|
339
|
+
- lib/lhj/helper/pod_repo_config.rb
|
339
340
|
- lib/lhj/helper/tb_config.rb
|
340
341
|
- lib/lhj/helper/tb_helper.rb
|
342
|
+
- lib/lhj/helper/team_member_config.rb
|
341
343
|
- lib/lhj/helper/trans_helper.rb
|
344
|
+
- lib/lhj/jenkins/client.rb
|
345
|
+
- lib/lhj/jenkins/exceptions.rb
|
346
|
+
- lib/lhj/jenkins/job.rb
|
347
|
+
- lib/lhj/jenkins/urihelper.rb
|
342
348
|
- lib/lhj/tools.rb
|
343
349
|
- lib/lhj/tools/version.rb
|
344
350
|
- lib/lhj/tree/directory_renderer.rb
|