lhj-tools 0.1.25 → 0.1.28

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
+
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Lhj
4
4
  module Tools
5
- VERSION = "0.1.25"
5
+ VERSION = "0.1.28"
6
6
  end
7
7
  end
data/lib/lhj/tools.rb CHANGED
@@ -3,6 +3,11 @@ 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'
@@ -13,6 +18,7 @@ module Lhj
13
18
  require 'lhj/action/sh_helper'
14
19
  require 'lhj/helper/git_helper'
15
20
  require 'lhj/helper/log_helper'
21
+ require 'lhj/helper/vika_helper'
16
22
 
17
23
  class Error < StandardError; end
18
24
 
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.25
4
+ version: 0.1.28
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-14 00:00:00.000000000 Z
11
+ date: 2022-04-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: claide
@@ -296,6 +296,7 @@ files:
296
296
  - lib/lhj/command.rb
297
297
  - lib/lhj/command/config.rb
298
298
  - lib/lhj/command/config/info.rb
299
+ - lib/lhj/command/duplicate_imageset.rb
299
300
  - lib/lhj/command/file_path.rb
300
301
  - lib/lhj/command/head_import.rb
301
302
  - lib/lhj/command/http.rb
@@ -314,6 +315,7 @@ files:
314
315
  - lib/lhj/command/rename_image.rb
315
316
  - lib/lhj/command/reverse_import.rb
316
317
  - lib/lhj/command/sync_pod_repo.rb
318
+ - lib/lhj/command/sync_pod_version.rb
317
319
  - lib/lhj/command/template.rb
318
320
  - lib/lhj/command/trans.rb
319
321
  - lib/lhj/command/view.rb
@@ -341,6 +343,12 @@ files:
341
343
  - lib/lhj/helper/tb_helper.rb
342
344
  - lib/lhj/helper/team_member_config.rb
343
345
  - lib/lhj/helper/trans_helper.rb
346
+ - lib/lhj/helper/vika_config.rb
347
+ - lib/lhj/helper/vika_helper.rb
348
+ - lib/lhj/jenkins/client.rb
349
+ - lib/lhj/jenkins/exceptions.rb
350
+ - lib/lhj/jenkins/job.rb
351
+ - lib/lhj/jenkins/urihelper.rb
344
352
  - lib/lhj/tools.rb
345
353
  - lib/lhj/tools/version.rb
346
354
  - lib/lhj/tree/directory_renderer.rb