lhj-tools 0.1.25 → 0.1.26

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.26"
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'
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.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-14 00:00:00.000000000 Z
11
+ date: 2022-02-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: claide
@@ -341,6 +341,10 @@ files:
341
341
  - lib/lhj/helper/tb_helper.rb
342
342
  - lib/lhj/helper/team_member_config.rb
343
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
344
348
  - lib/lhj/tools.rb
345
349
  - lib/lhj/tools/version.rb
346
350
  - lib/lhj/tree/directory_renderer.rb