labclient 0.3.3 → 0.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/labclient/files/delete.rb +3 -0
- data/lib/labclient/files/show.rb +3 -0
- data/lib/labclient/files/update.rb +3 -0
- data/lib/labclient/search/search.rb +3 -3
- data/lib/labclient/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: daedb89611ac6ae6b19991b249190b317f66df6fa9c1b2f680a17bda30299930
|
4
|
+
data.tar.gz: 3f537bfdcd5c5596f075aa1c2843c6362de4d36cc847b00db24b6564d72e5fd6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f5b9007f00fc52162e8714153abeaca54daac5e53a7b2948ef6d45eee0218b464b36c135c3009e56a13a5eaff6e99a6fe2fa0e67635c112b9a18953d25dabc40
|
7
|
+
data.tar.gz: 56feae8a9c2b5bea03dfc3a206ce5f2236a3bb14054fe7bf01593acd9d31cb3bf82ae0ddf6802c202ad2b126a94a23dfce98c21692177da025efce5faf8611f9
|
@@ -37,6 +37,9 @@ module LabClient
|
|
37
37
|
def delete(project_id, file_path, query)
|
38
38
|
project_id = format_id(project_id)
|
39
39
|
|
40
|
+
# Path Name Encoding
|
41
|
+
file_path = CGI.escape(file_path)
|
42
|
+
|
40
43
|
client.request(:delete, "projects/#{project_id}/repository/files/#{file_path}", nil, query)
|
41
44
|
end
|
42
45
|
end
|
data/lib/labclient/files/show.rb
CHANGED
@@ -43,6 +43,9 @@ module LabClient
|
|
43
43
|
def update(project_id, file_path, query)
|
44
44
|
project_id = format_id(project_id)
|
45
45
|
|
46
|
+
# Path Name Encoding
|
47
|
+
file_path = CGI.escape(file_path)
|
48
|
+
|
46
49
|
client.request(:put, "projects/#{project_id}/repository/files/#{file_path}", nil, query)
|
47
50
|
end
|
48
51
|
end
|
@@ -9,9 +9,9 @@ module LabClient
|
|
9
9
|
desc 'Lots! Search Scopes are on each of the individual scope endpoints'
|
10
10
|
|
11
11
|
markdown <<~DOC
|
12
|
-
- <a target="_blank" href="/#Users-Search">Users</a>
|
13
|
-
- <a target="_blank" href="/#Projects-Search">Projects</a>
|
14
|
-
- <a target="_blank" href="/#Groups-Search">Groups</a>
|
12
|
+
- <a target="_blank" href="/labclient/#Users-Search">Users</a>
|
13
|
+
- <a target="_blank" href="/labclient/#Projects-Search">Projects</a>
|
14
|
+
- <a target="_blank" href="/labclient/#Groups-Search">Groups</a>
|
15
15
|
DOC
|
16
16
|
end
|
17
17
|
end
|
data/lib/labclient/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: labclient
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Davin Walker
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-02-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|