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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1473c529866a904fd3ada8d72808fadc06a69e72ae3638af5dfd87bb2b18e367
4
- data.tar.gz: 71bfd6254d45641dd916aa4e21b064bc5bdf7895ec25acc098a6720ac78fef71
3
+ metadata.gz: daedb89611ac6ae6b19991b249190b317f66df6fa9c1b2f680a17bda30299930
4
+ data.tar.gz: 3f537bfdcd5c5596f075aa1c2843c6362de4d36cc847b00db24b6564d72e5fd6
5
5
  SHA512:
6
- metadata.gz: 88101b7d1eacb4eba72b3b1ad95dd440d8f5f4e0125c48adf1ee0c97fabfd01b4867f1016353cf3a3b4c83fc90a1a72220503e0b4eaba9e48cb2ee5c1fdb1918
7
- data.tar.gz: '09d3e63065fa2d45021de723ceb096e2c3e38164957634f812d5ca2c57c8a6bf977269c45356a9fa9ae424321ec3dd98f9f2899296ea40f0b1e35df8643bda54'
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
@@ -42,6 +42,9 @@ module LabClient
42
42
 
43
43
  project_id = format_id(project_id)
44
44
 
45
+ # Path Name Encoding
46
+ file_path = CGI.escape(file_path)
47
+
45
48
  client.request(:get, "projects/#{project_id}/repository/files/#{file_path}#{kind}", nil, ref: ref)
46
49
  end
47
50
  end
@@ -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
@@ -1,3 +1,3 @@
1
1
  module LabClient
2
- VERSION = '0.3.3'.freeze
2
+ VERSION = '0.3.4'.freeze
3
3
  end
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.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-01-27 00:00:00.000000000 Z
11
+ date: 2021-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport