labclient 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/labclient/client/setup.rb +3 -2
- data/lib/labclient/repository/repository_tree.rb +7 -0
- data/lib/labclient/repository/tree.rb +1 -1
- data/lib/labclient/version.rb +1 -1
- data/lib/labclient.rb +1 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5a516961c1eaeef85e9ee1d1de52980e03aae212122fd8d1bc49a05e9d4328ac
|
4
|
+
data.tar.gz: 384c408eb1320f1d31e661fe153edaacad187f02a6971775d7b1afd918eaf88c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e3b2453fa6d325e570360ca1b956261e5841901c528d8df3af44b28db7bf20081b0bd49c490e58c71055524b1ceff090ba63fb8205d6f379f0547161bfd80aec
|
7
|
+
data.tar.gz: 942ce7e24982e01141d664b0f4038dd4f8207ccb9f849cd74a058125aecf672c51af03e198f9e2ce7dd7f9bd35976f7e9a35fe1fe7b088240a636edd376d6d6c
|
@@ -17,14 +17,15 @@ module LabClient
|
|
17
17
|
# If nothing entered Prompt for Input
|
18
18
|
def prompt_for_url
|
19
19
|
print 'Enter GitLab URL (e.g. https://gitlab.com): '
|
20
|
-
@settings[:url] = $stdin.gets&.chomp
|
20
|
+
@settings[:url] = ENV['LABCLIENT_TESTING'] ? 'testu' : $stdin.gets&.chomp
|
21
21
|
raise 'LabClient Error - Missing URL!' if @settings[:url].blank?
|
22
22
|
end
|
23
23
|
|
24
24
|
# Check for Token
|
25
25
|
def prompt_for_token
|
26
26
|
print 'Enter Personal Access Token: '
|
27
|
-
|
27
|
+
|
28
|
+
@settings[:token] = ENV['LABCLIENT_TESTING'] ? 'testt' : $stdin.gets&.chomp
|
28
29
|
end
|
29
30
|
|
30
31
|
# Fill Defaults
|
@@ -29,7 +29,7 @@ module LabClient
|
|
29
29
|
def tree(project_id, query = {})
|
30
30
|
project_id = format_id(project_id)
|
31
31
|
|
32
|
-
client.request(:get, "projects/#{project_id}/repository/tree",
|
32
|
+
client.request(:get, "projects/#{project_id}/repository/tree", RepositoryTree, query)
|
33
33
|
end
|
34
34
|
end
|
35
35
|
end
|
data/lib/labclient/version.rb
CHANGED
data/lib/labclient.rb
CHANGED
@@ -771,6 +771,7 @@ require 'labclient/pipelines/pipeline'
|
|
771
771
|
# Repository
|
772
772
|
require 'labclient/repository/alias'
|
773
773
|
require 'labclient/repository/tree'
|
774
|
+
require 'labclient/repository/repository_tree'
|
774
775
|
require 'labclient/repository/blob'
|
775
776
|
require 'labclient/repository/archive'
|
776
777
|
require 'labclient/repository/compare'
|
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.5.
|
4
|
+
version: 0.5.1
|
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-12-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -848,6 +848,7 @@ files:
|
|
848
848
|
- lib/labclient/repository/contributors.rb
|
849
849
|
- lib/labclient/repository/merge_base.rb
|
850
850
|
- lib/labclient/repository/raw_blob.rb
|
851
|
+
- lib/labclient/repository/repository_tree.rb
|
851
852
|
- lib/labclient/repository/tree.rb
|
852
853
|
- lib/labclient/resource_labels/epics/client.rb
|
853
854
|
- lib/labclient/resource_labels/epics/list.rb
|