lhj-tools 0.2.13 → 0.2.14

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
-