lhj-tools 0.1.24 → 0.1.27
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/command/sync_pod_version.rb +91 -0
- data/lib/lhj/command.rb +1 -0
- data/lib/lhj/helper/pgyer_config.rb +9 -12
- data/lib/lhj/helper/pgyer_helper.rb +2 -1
- data/lib/lhj/helper/pod_repo_config.rb +24 -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.27
|
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-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: claide
|
@@ -314,6 +314,7 @@ files:
|
|
314
314
|
- lib/lhj/command/rename_image.rb
|
315
315
|
- lib/lhj/command/reverse_import.rb
|
316
316
|
- lib/lhj/command/sync_pod_repo.rb
|
317
|
+
- lib/lhj/command/sync_pod_version.rb
|
317
318
|
- lib/lhj/command/template.rb
|
318
319
|
- lib/lhj/command/trans.rb
|
319
320
|
- lib/lhj/command/view.rb
|
@@ -336,10 +337,15 @@ files:
|
|
336
337
|
- lib/lhj/helper/oss_helper.rb
|
337
338
|
- lib/lhj/helper/pgyer_config.rb
|
338
339
|
- lib/lhj/helper/pgyer_helper.rb
|
340
|
+
- lib/lhj/helper/pod_repo_config.rb
|
339
341
|
- lib/lhj/helper/tb_config.rb
|
340
342
|
- lib/lhj/helper/tb_helper.rb
|
341
343
|
- lib/lhj/helper/team_member_config.rb
|
342
344
|
- lib/lhj/helper/trans_helper.rb
|
345
|
+
- lib/lhj/jenkins/client.rb
|
346
|
+
- lib/lhj/jenkins/exceptions.rb
|
347
|
+
- lib/lhj/jenkins/job.rb
|
348
|
+
- lib/lhj/jenkins/urihelper.rb
|
343
349
|
- lib/lhj/tools.rb
|
344
350
|
- lib/lhj/tools/version.rb
|
345
351
|
- lib/lhj/tree/directory_renderer.rb
|