universal-git-client 1.2.12 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -6
- data/VERSION +1 -1
- data/lib/universal-git-client/client.rb +18 -18
- data/lib/universal-git-client/client_factory.rb +5 -5
- metadata +24 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4a1986189a45e90767947fe0d753a88fc86742d613c7097553d28c123b15e0db
|
4
|
+
data.tar.gz: 8ed57df40c827ff360fcff3be8882c6d9a1d840d81d4e7d6850930e0888c0b38
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8fef43b395cb3c105d356f2ae21470e0423235dc9869afed10c346c4e45e3161e71ae97f2973a7b5696dd8c4e85dc4a3f192351e4fdc3e78b1500f57e0c0c0f4
|
7
|
+
data.tar.gz: d7838c365df557e2e46a18e3a036ca0fdc7e0b0ab7d57dbba0ab63e1bfc040e35ac9e12606a686f20b6179c668f06c6932902c595a0ca0ca07d2eb26470a25f9
|
data/README.md
CHANGED
@@ -16,12 +16,7 @@
|
|
16
16
|
|
17
17
|
5 - To validate, click on "Publish release".
|
18
18
|
|
19
|
-
6 -
|
20
|
-
If you don't have access to this account. Please contact cucumber open to give you access
|
21
|
-
|
22
|
-
7 - Execute the shell command `gem build universal-git-client.gemspec`. It will generate a gem file
|
23
|
-
|
24
|
-
8 - Execute the shell command `gem push universal-git-client-<GEM_VERSION>.gem`
|
19
|
+
6 - A GitHub action will start automatically to publish the gem on Rubygems.
|
25
20
|
|
26
21
|
That's it!
|
27
22
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
2.1.0
|
@@ -19,47 +19,47 @@ module UniversalGitClient
|
|
19
19
|
normalize(response, :User)
|
20
20
|
end
|
21
21
|
|
22
|
-
def organizations(
|
23
|
-
response = http_client.organizations(
|
22
|
+
def organizations(**args)
|
23
|
+
response = http_client.organizations(**args)
|
24
24
|
normalize(response, :Organization)
|
25
25
|
end
|
26
26
|
|
27
|
-
def user_repos(
|
28
|
-
response = http_client.user_repos(
|
27
|
+
def user_repos(**args)
|
28
|
+
response = http_client.user_repos(**args)
|
29
29
|
normalize(response, :Repository)
|
30
30
|
end
|
31
31
|
|
32
|
-
def orga_repos(
|
33
|
-
response = http_client.orga_repos(
|
32
|
+
def orga_repos(**args)
|
33
|
+
response = http_client.orga_repos(**args)
|
34
34
|
normalize(response, :Repository)
|
35
35
|
end
|
36
36
|
|
37
|
-
def repository(
|
38
|
-
response = http_client.repository(
|
37
|
+
def repository(**args)
|
38
|
+
response = http_client.repository(**args)
|
39
39
|
normalize(response, :Repository)
|
40
40
|
end
|
41
41
|
|
42
|
-
def branches(
|
43
|
-
response = http_client.branches(
|
42
|
+
def branches(**args)
|
43
|
+
response = http_client.branches(**args)
|
44
44
|
normalize(response, :Branch)
|
45
45
|
end
|
46
46
|
|
47
|
-
def branch(
|
48
|
-
response = http_client.branch(
|
47
|
+
def branch(**args)
|
48
|
+
response = http_client.branch(**args)
|
49
49
|
normalize(response, :Branch)
|
50
50
|
end
|
51
51
|
|
52
|
-
def download_repo_archive(
|
53
|
-
http_client.download_repo_archive(
|
52
|
+
def download_repo_archive(**args)
|
53
|
+
http_client.download_repo_archive(**args)
|
54
54
|
end
|
55
55
|
|
56
|
-
def setup_repo_webhook(
|
57
|
-
response = http_client.setup_repo_webhook(
|
56
|
+
def setup_repo_webhook(**args)
|
57
|
+
response = http_client.setup_repo_webhook(**args)
|
58
58
|
normalize(response, :Webhook)
|
59
59
|
end
|
60
60
|
|
61
|
-
def delete_repo_webhook(
|
62
|
-
http_client.delete_repo_webhook(
|
61
|
+
def delete_repo_webhook(**args)
|
62
|
+
http_client.delete_repo_webhook(**args)
|
63
63
|
end
|
64
64
|
|
65
65
|
private
|
@@ -7,16 +7,16 @@ require 'universal-git-client/http/bitbucket_server'
|
|
7
7
|
module UniversalGitClient
|
8
8
|
class ClientFactory
|
9
9
|
class << self
|
10
|
-
def build(provider,
|
10
|
+
def build(provider, **args)
|
11
11
|
case provider
|
12
12
|
when :github
|
13
|
-
Client.new('GitHub', UniversalGitClient::Http::Github.new(
|
13
|
+
Client.new('GitHub', UniversalGitClient::Http::Github.new(**args))
|
14
14
|
when :gitlab
|
15
|
-
Client.new('GitLab', UniversalGitClient::Http::Gitlab.new(
|
15
|
+
Client.new('GitLab', UniversalGitClient::Http::Gitlab.new(**args))
|
16
16
|
when :bitbucket
|
17
|
-
Client.new('Bitbucket', UniversalGitClient::Http::Bitbucket.new(
|
17
|
+
Client.new('Bitbucket', UniversalGitClient::Http::Bitbucket.new(**args))
|
18
18
|
when :bitbucket_server
|
19
|
-
Client.new('Bitbucket Server', UniversalGitClient::Http::BitbucketServer.new(
|
19
|
+
Client.new('Bitbucket Server', UniversalGitClient::Http::BitbucketServer.new(**args))
|
20
20
|
else
|
21
21
|
raise ArgumentError, 'Unknown provider'
|
22
22
|
end
|
metadata
CHANGED
@@ -1,15 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: universal-git-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- HipTest
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-10-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: activesupport
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 7.0.8
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 7.0.8
|
13
27
|
- !ruby/object:Gem::Dependency
|
14
28
|
name: deep_merge
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -36,14 +50,14 @@ dependencies:
|
|
36
50
|
requirements:
|
37
51
|
- - "~>"
|
38
52
|
- !ruby/object:Gem::Version
|
39
|
-
version: 0.
|
53
|
+
version: 0.21.0
|
40
54
|
type: :runtime
|
41
55
|
prerelease: false
|
42
56
|
version_requirements: !ruby/object:Gem::Requirement
|
43
57
|
requirements:
|
44
58
|
- - "~>"
|
45
59
|
- !ruby/object:Gem::Version
|
46
|
-
version: 0.
|
60
|
+
version: 0.21.0
|
47
61
|
- !ruby/object:Gem::Dependency
|
48
62
|
name: down
|
49
63
|
requirement: !ruby/object:Gem::Requirement
|
@@ -106,28 +120,28 @@ dependencies:
|
|
106
120
|
requirements:
|
107
121
|
- - "~>"
|
108
122
|
- !ruby/object:Gem::Version
|
109
|
-
version: 6.
|
123
|
+
version: 6.5.0
|
110
124
|
type: :development
|
111
125
|
prerelease: false
|
112
126
|
version_requirements: !ruby/object:Gem::Requirement
|
113
127
|
requirements:
|
114
128
|
- - "~>"
|
115
129
|
- !ruby/object:Gem::Version
|
116
|
-
version: 6.
|
130
|
+
version: 6.5.0
|
117
131
|
- !ruby/object:Gem::Dependency
|
118
132
|
name: bundler
|
119
133
|
requirement: !ruby/object:Gem::Requirement
|
120
134
|
requirements:
|
121
135
|
- - "~>"
|
122
136
|
- !ruby/object:Gem::Version
|
123
|
-
version: '
|
137
|
+
version: '2.0'
|
124
138
|
type: :development
|
125
139
|
prerelease: false
|
126
140
|
version_requirements: !ruby/object:Gem::Requirement
|
127
141
|
requirements:
|
128
142
|
- - "~>"
|
129
143
|
- !ruby/object:Gem::Version
|
130
|
-
version: '
|
144
|
+
version: '2.0'
|
131
145
|
- !ruby/object:Gem::Dependency
|
132
146
|
name: juwelier
|
133
147
|
requirement: !ruby/object:Gem::Requirement
|
@@ -306,14 +320,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
306
320
|
requirements:
|
307
321
|
- - ">="
|
308
322
|
- !ruby/object:Gem::Version
|
309
|
-
version: '
|
323
|
+
version: '2.7'
|
310
324
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
311
325
|
requirements:
|
312
326
|
- - ">="
|
313
327
|
- !ruby/object:Gem::Version
|
314
328
|
version: '0'
|
315
329
|
requirements: []
|
316
|
-
rubygems_version: 3.
|
330
|
+
rubygems_version: 3.2.33
|
317
331
|
signing_key:
|
318
332
|
specification_version: 4
|
319
333
|
summary: Use this gem to normalize git providers api responses
|