ghub 0.0.0 → 2.3.0
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
- checksums.yaml.gz.sig +0 -0
- data/README.adoc +42 -21
- data/ghub.gemspec +16 -13
- data/lib/ghub/api/client.rb +6 -6
- data/lib/ghub/api/page.rb +12 -8
- data/lib/ghub/client.rb +24 -23
- data/lib/ghub/configuration/content.rb +3 -1
- data/lib/ghub/configuration/loader.rb +3 -3
- data/lib/ghub/container.rb +7 -5
- data/lib/ghub/{import.rb → dependencies.rb} +1 -1
- data/lib/ghub/endpoints/branches/protection/actions/show.rb +6 -5
- data/lib/ghub/endpoints/branches/protection/actions/update.rb +7 -6
- data/lib/ghub/endpoints/branches/protection/container.rb +5 -7
- data/lib/ghub/endpoints/branches/protection/{import.rb → dependencies.rb} +1 -1
- data/lib/ghub/endpoints/branches/protection/models/show.rb +17 -16
- data/lib/ghub/endpoints/branches/protection/root.rb +3 -6
- data/lib/ghub/endpoints/branches/signature/container.rb +4 -6
- data/lib/ghub/endpoints/branches/signature/{import.rb → dependencies.rb} +1 -1
- data/lib/ghub/endpoints/branches/signature/root.rb +14 -13
- data/lib/ghub/endpoints/container.rb +3 -2
- data/lib/ghub/endpoints/{import.rb → dependencies.rb} +1 -1
- data/lib/ghub/endpoints/organizations/members/actions/index.rb +7 -6
- data/lib/ghub/endpoints/organizations/members/container.rb +4 -6
- data/lib/ghub/endpoints/organizations/members/{import.rb → dependencies.rb} +1 -1
- data/lib/ghub/endpoints/organizations/members/root.rb +1 -1
- data/lib/ghub/endpoints/pulls/actions/index.rb +7 -6
- data/lib/ghub/endpoints/pulls/actions/show.rb +6 -5
- data/lib/ghub/endpoints/pulls/container.rb +5 -7
- data/lib/ghub/endpoints/pulls/{import.rb → dependencies.rb} +1 -1
- data/lib/ghub/endpoints/pulls/models/show.rb +15 -14
- data/lib/ghub/endpoints/pulls/responses/show.rb +7 -7
- data/lib/ghub/endpoints/pulls/root.rb +1 -1
- data/lib/ghub/endpoints/repositories/actions/create.rb +15 -14
- data/lib/ghub/endpoints/repositories/actions/index.rb +7 -12
- data/lib/ghub/endpoints/repositories/actions/patch.rb +15 -14
- data/lib/ghub/endpoints/repositories/actions/show.rb +6 -11
- data/lib/ghub/endpoints/repositories/container.rb +7 -9
- data/lib/ghub/endpoints/repositories/{import.rb → dependencies.rb} +1 -1
- data/lib/ghub/endpoints/repositories/path.rb +3 -7
- data/lib/ghub/endpoints/repositories/root.rb +4 -3
- data/lib/ghub/endpoints/search/users/actions/index.rb +30 -0
- data/lib/ghub/endpoints/search/users/container.rb +28 -0
- data/lib/ghub/endpoints/search/users/dependencies.rb +13 -0
- data/lib/ghub/endpoints/search/users/models/index.rb +41 -0
- data/lib/ghub/endpoints/search/users/responses/index.rb +38 -0
- data/lib/ghub/endpoints/search/users/root.rb +16 -0
- data/lib/ghub/endpoints/users/actions/index.rb +7 -6
- data/lib/ghub/endpoints/users/actions/show.rb +7 -6
- data/lib/ghub/endpoints/users/container.rb +6 -8
- data/lib/ghub/endpoints/users/{import.rb → dependencies.rb} +1 -1
- data/lib/ghub/endpoints/users/models/index.rb +3 -4
- data/lib/ghub/endpoints/users/models/show.rb +3 -4
- data/lib/ghub/endpoints/users/root.rb +1 -1
- data/lib/ghub/models/application.rb +8 -7
- data/lib/ghub/models/boolean_link.rb +4 -2
- data/lib/ghub/models/branch.rb +8 -6
- data/lib/ghub/models/check.rb +2 -6
- data/lib/ghub/models/dismissal_restriction.rb +10 -9
- data/lib/ghub/models/label.rb +2 -3
- data/lib/ghub/models/license.rb +2 -3
- data/lib/ghub/models/link.rb +2 -2
- data/lib/ghub/models/links.rb +5 -6
- data/lib/ghub/models/owner.rb +2 -3
- data/lib/ghub/models/permissions/branch.rb +2 -3
- data/lib/ghub/models/permissions/repository.rb +2 -3
- data/lib/ghub/models/repository.rb +17 -11
- data/lib/ghub/models/restriction.rb +10 -9
- data/lib/ghub/models/review.rb +8 -7
- data/lib/ghub/models/status_check.rb +6 -5
- data/lib/ghub/models/team.rb +2 -3
- data/lib/ghub/models/user.rb +4 -3
- data/lib/ghub.rb +6 -1
- data.tar.gz.sig +0 -0
- metadata +90 -55
- metadata.gz.sig +0 -0
- data/lib/ghub/resultable.rb +0 -20
data/lib/ghub/models/team.rb
CHANGED
data/lib/ghub/models/user.rb
CHANGED
data/lib/ghub.rb
CHANGED
|
@@ -6,11 +6,16 @@ require "zeitwerk"
|
|
|
6
6
|
|
|
7
7
|
Dry::Schema.load_extensions :monads
|
|
8
8
|
|
|
9
|
-
Zeitwerk::Loader.
|
|
9
|
+
Zeitwerk::Loader.new.then do |loader|
|
|
10
10
|
loader.inflector.inflect "api" => "API"
|
|
11
|
+
loader.tag = File.basename __FILE__, ".rb"
|
|
12
|
+
loader.push_dir __dir__
|
|
11
13
|
loader.setup
|
|
12
14
|
end
|
|
13
15
|
|
|
14
16
|
# Main namespace.
|
|
15
17
|
module Ghub
|
|
18
|
+
def self.loader registry = Zeitwerk::Registry
|
|
19
|
+
@loader ||= registry.loaders.each.find { |loader| loader.tag == File.basename(__FILE__, ".rb") }
|
|
20
|
+
end
|
|
16
21
|
end
|
data.tar.gz.sig
CHANGED
|
Binary file
|
metadata
CHANGED
|
@@ -1,121 +1,154 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ghub
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 2.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Brooke Kuhlmann
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain:
|
|
11
10
|
- |
|
|
12
11
|
-----BEGIN CERTIFICATE-----
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
12
|
+
MIIENjCCAp6gAwIBAgIBAzANBgkqhkiG9w0BAQsFADBBMQ8wDQYDVQQDDAZicm9v
|
|
13
|
+
a2UxGjAYBgoJkiaJk/IsZAEZFgphbGNoZW1pc3RzMRIwEAYKCZImiZPyLGQBGRYC
|
|
14
|
+
aW8wHhcNMjYwMzI1MTI0OTEyWhcNMjcwMzI1MTI0OTEyWjBBMQ8wDQYDVQQDDAZi
|
|
15
|
+
cm9va2UxGjAYBgoJkiaJk/IsZAEZFgphbGNoZW1pc3RzMRIwEAYKCZImiZPyLGQB
|
|
16
|
+
GRYCaW8wggGiMA0GCSqGSIb3DQEBAQUAA4IBjwAwggGKAoIBgQCro8tj5/E1Hg88
|
|
17
|
+
f4qfiwPVd2zJQHvdYt4GHVvuHRRgx4HGhJuNp+4BId08RBn7V6V1MW6MY3kezRBs
|
|
18
|
+
M+7QOQ4b1xNLTvY7FYQB1wGK5a4x7TTokDrPYQxDB2jmsdDYCzVbIMrAvUfcecRi
|
|
19
|
+
khyGZCdByiiCl4fKv77P12tTT+NfsvXkLt/AYCGwjOUyGKTQ01Z6eC09T27GayPH
|
|
20
|
+
QQvIkakyFgcJtzSyGzs8bzK5q9u7wQ12MNTjJoXzW69lqp0oNvDylu81EiSUb5S6
|
|
21
|
+
QzzPxZBiRB1sgtbt1gUbVI262ZDq1gR+HxPFmp+Cgt7ZLIJZAtesQvtcMzseXpfn
|
|
22
|
+
hpmm0Sw22KGhRAy/mqHBRhDl5HqS1SJp2Ko3lcnpXeFResp0HNlt8NSu13vhC08j
|
|
23
|
+
GUHU9MyIXbFOsnp3K3ADrAVjPWop8EZkmUR3MV/CUm00w2cZHCSGiXl1KMpiVKvk
|
|
24
|
+
Ywr1gd2ZME4QLSo+EXUtLxDUa/W3xnBS8dBOuMMz02FPWYr3PN8CAwEAAaM5MDcw
|
|
25
|
+
CQYDVR0TBAIwADALBgNVHQ8EBAMCBLAwHQYDVR0OBBYEFAFgmv0tYMZnItuPycSM
|
|
26
|
+
F5wykJEVMA0GCSqGSIb3DQEBCwUAA4IBgQAG+ykjp+DIXSybGEtX+/ve974mYfN6
|
|
27
|
+
8U7qcVfRM+qDSOZ+97iu30qUTbVAKIHlHCDKRn3SgOffDUB5VU2MsJBh/3TPKWBZ
|
|
28
|
+
anB/uzMcwOfru+qyA3b7ZFqZzRLWmR5FtPObFxc0gYMT3YvLNHk2Nb9Vjq/PoiGG
|
|
29
|
+
e75PXweDOokwDA5m1gMOz1rdp/dlGMXkSFQg94PPVyUKXgO4VzWTgePSDxOIL+v6
|
|
30
|
+
+OWV6AaEH9BaqxnmdA5ubi0L7bhl0gbN92FxpNO3kpTjww8kme856a+wCK3qyM5w
|
|
31
|
+
7ZLbUexynDN0Au8eSpT2Bf6ztGmB1S9ffzDJsGX1/lkpMIB51e48Xe2+gzzOgemk
|
|
32
|
+
CdZaGupj6WkarnT8kh/cPtyA5ax4rGX6GOS8meGxzkv8Uy0JSEOYAp6wLfIisYZp
|
|
33
|
+
IJBIXIOkwKKJ0eB5YHrUSJxzpP4LlcIg/eTftaXmJdYjy+2VRrCZYDjfguyLmMjR
|
|
34
|
+
KR9w4/Fjvqy87kCHmxMWa6IL2Vzt1Clm2cA=
|
|
30
35
|
-----END CERTIFICATE-----
|
|
31
|
-
date:
|
|
36
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
32
37
|
dependencies:
|
|
33
38
|
- !ruby/object:Gem::Dependency
|
|
34
|
-
name:
|
|
39
|
+
name: containable
|
|
35
40
|
requirement: !ruby/object:Gem::Requirement
|
|
36
41
|
requirements:
|
|
37
42
|
- - "~>"
|
|
38
43
|
- !ruby/object:Gem::Version
|
|
39
|
-
version: '
|
|
44
|
+
version: '2.5'
|
|
40
45
|
type: :runtime
|
|
41
46
|
prerelease: false
|
|
42
47
|
version_requirements: !ruby/object:Gem::Requirement
|
|
43
48
|
requirements:
|
|
44
49
|
- - "~>"
|
|
45
50
|
- !ruby/object:Gem::Version
|
|
46
|
-
version: '
|
|
51
|
+
version: '2.5'
|
|
47
52
|
- !ruby/object:Gem::Dependency
|
|
48
53
|
name: dry-monads
|
|
49
54
|
requirement: !ruby/object:Gem::Requirement
|
|
50
55
|
requirements:
|
|
51
56
|
- - "~>"
|
|
52
57
|
- !ruby/object:Gem::Version
|
|
53
|
-
version: '1.
|
|
58
|
+
version: '1.11'
|
|
54
59
|
type: :runtime
|
|
55
60
|
prerelease: false
|
|
56
61
|
version_requirements: !ruby/object:Gem::Requirement
|
|
57
62
|
requirements:
|
|
58
63
|
- - "~>"
|
|
59
64
|
- !ruby/object:Gem::Version
|
|
60
|
-
version: '1.
|
|
65
|
+
version: '1.11'
|
|
61
66
|
- !ruby/object:Gem::Dependency
|
|
62
67
|
name: dry-schema
|
|
63
68
|
requirement: !ruby/object:Gem::Requirement
|
|
64
69
|
requirements:
|
|
65
70
|
- - "~>"
|
|
66
71
|
- !ruby/object:Gem::Version
|
|
67
|
-
version: '1.
|
|
72
|
+
version: '1.15'
|
|
68
73
|
type: :runtime
|
|
69
74
|
prerelease: false
|
|
70
75
|
version_requirements: !ruby/object:Gem::Requirement
|
|
71
76
|
requirements:
|
|
72
77
|
- - "~>"
|
|
73
78
|
- !ruby/object:Gem::Version
|
|
74
|
-
version: '1.
|
|
79
|
+
version: '1.15'
|
|
75
80
|
- !ruby/object:Gem::Dependency
|
|
76
81
|
name: http
|
|
77
82
|
requirement: !ruby/object:Gem::Requirement
|
|
78
83
|
requirements:
|
|
79
84
|
- - "~>"
|
|
80
85
|
- !ruby/object:Gem::Version
|
|
81
|
-
version: '
|
|
86
|
+
version: '6.0'
|
|
82
87
|
type: :runtime
|
|
83
88
|
prerelease: false
|
|
84
89
|
version_requirements: !ruby/object:Gem::Requirement
|
|
85
90
|
requirements:
|
|
86
91
|
- - "~>"
|
|
87
92
|
- !ruby/object:Gem::Version
|
|
88
|
-
version: '
|
|
93
|
+
version: '6.0'
|
|
89
94
|
- !ruby/object:Gem::Dependency
|
|
90
95
|
name: infusible
|
|
91
96
|
requirement: !ruby/object:Gem::Requirement
|
|
92
97
|
requirements:
|
|
93
98
|
- - "~>"
|
|
94
99
|
- !ruby/object:Gem::Version
|
|
95
|
-
version: '0
|
|
100
|
+
version: '5.0'
|
|
96
101
|
type: :runtime
|
|
97
102
|
prerelease: false
|
|
98
103
|
version_requirements: !ruby/object:Gem::Requirement
|
|
99
104
|
requirements:
|
|
100
105
|
- - "~>"
|
|
101
106
|
- !ruby/object:Gem::Version
|
|
102
|
-
version: '0
|
|
107
|
+
version: '5.0'
|
|
108
|
+
- !ruby/object:Gem::Dependency
|
|
109
|
+
name: inspectable
|
|
110
|
+
requirement: !ruby/object:Gem::Requirement
|
|
111
|
+
requirements:
|
|
112
|
+
- - "~>"
|
|
113
|
+
- !ruby/object:Gem::Version
|
|
114
|
+
version: '1.0'
|
|
115
|
+
type: :runtime
|
|
116
|
+
prerelease: false
|
|
117
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
118
|
+
requirements:
|
|
119
|
+
- - "~>"
|
|
120
|
+
- !ruby/object:Gem::Version
|
|
121
|
+
version: '1.0'
|
|
122
|
+
- !ruby/object:Gem::Dependency
|
|
123
|
+
name: pipeable
|
|
124
|
+
requirement: !ruby/object:Gem::Requirement
|
|
125
|
+
requirements:
|
|
126
|
+
- - "~>"
|
|
127
|
+
- !ruby/object:Gem::Version
|
|
128
|
+
version: '2.4'
|
|
129
|
+
type: :runtime
|
|
130
|
+
prerelease: false
|
|
131
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
132
|
+
requirements:
|
|
133
|
+
- - "~>"
|
|
134
|
+
- !ruby/object:Gem::Version
|
|
135
|
+
version: '2.4'
|
|
103
136
|
- !ruby/object:Gem::Dependency
|
|
104
137
|
name: refinements
|
|
105
138
|
requirement: !ruby/object:Gem::Requirement
|
|
106
139
|
requirements:
|
|
107
140
|
- - "~>"
|
|
108
141
|
- !ruby/object:Gem::Version
|
|
109
|
-
version: '
|
|
142
|
+
version: '14.0'
|
|
110
143
|
type: :runtime
|
|
111
144
|
prerelease: false
|
|
112
145
|
version_requirements: !ruby/object:Gem::Requirement
|
|
113
146
|
requirements:
|
|
114
147
|
- - "~>"
|
|
115
148
|
- !ruby/object:Gem::Version
|
|
116
|
-
version: '
|
|
149
|
+
version: '14.0'
|
|
117
150
|
- !ruby/object:Gem::Dependency
|
|
118
|
-
name:
|
|
151
|
+
name: rfc-web-link
|
|
119
152
|
requirement: !ruby/object:Gem::Requirement
|
|
120
153
|
requirements:
|
|
121
154
|
- - "~>"
|
|
@@ -134,22 +167,21 @@ dependencies:
|
|
|
134
167
|
requirements:
|
|
135
168
|
- - "~>"
|
|
136
169
|
- !ruby/object:Gem::Version
|
|
137
|
-
version: '2.
|
|
170
|
+
version: '2.8'
|
|
138
171
|
type: :runtime
|
|
139
172
|
prerelease: false
|
|
140
173
|
version_requirements: !ruby/object:Gem::Requirement
|
|
141
174
|
requirements:
|
|
142
175
|
- - "~>"
|
|
143
176
|
- !ruby/object:Gem::Version
|
|
144
|
-
version: '2.
|
|
145
|
-
description:
|
|
177
|
+
version: '2.8'
|
|
146
178
|
email:
|
|
147
179
|
- brooke@alchemists.io
|
|
148
180
|
executables: []
|
|
149
181
|
extensions: []
|
|
150
182
|
extra_rdoc_files:
|
|
151
|
-
- README.adoc
|
|
152
183
|
- LICENSE.adoc
|
|
184
|
+
- README.adoc
|
|
153
185
|
files:
|
|
154
186
|
- LICENSE.adoc
|
|
155
187
|
- README.adoc
|
|
@@ -161,28 +193,29 @@ files:
|
|
|
161
193
|
- lib/ghub/configuration/content.rb
|
|
162
194
|
- lib/ghub/configuration/loader.rb
|
|
163
195
|
- lib/ghub/container.rb
|
|
196
|
+
- lib/ghub/dependencies.rb
|
|
164
197
|
- lib/ghub/endpoints/branches/protection/actions/show.rb
|
|
165
198
|
- lib/ghub/endpoints/branches/protection/actions/update.rb
|
|
166
199
|
- lib/ghub/endpoints/branches/protection/container.rb
|
|
167
|
-
- lib/ghub/endpoints/branches/protection/
|
|
200
|
+
- lib/ghub/endpoints/branches/protection/dependencies.rb
|
|
168
201
|
- lib/ghub/endpoints/branches/protection/models/show.rb
|
|
169
202
|
- lib/ghub/endpoints/branches/protection/requests/update.rb
|
|
170
203
|
- lib/ghub/endpoints/branches/protection/responses/show.rb
|
|
171
204
|
- lib/ghub/endpoints/branches/protection/root.rb
|
|
172
205
|
- lib/ghub/endpoints/branches/signature/container.rb
|
|
173
|
-
- lib/ghub/endpoints/branches/signature/
|
|
206
|
+
- lib/ghub/endpoints/branches/signature/dependencies.rb
|
|
174
207
|
- lib/ghub/endpoints/branches/signature/root.rb
|
|
175
208
|
- lib/ghub/endpoints/container.rb
|
|
176
|
-
- lib/ghub/endpoints/
|
|
209
|
+
- lib/ghub/endpoints/dependencies.rb
|
|
177
210
|
- lib/ghub/endpoints/organizations/members/actions/index.rb
|
|
178
211
|
- lib/ghub/endpoints/organizations/members/container.rb
|
|
179
|
-
- lib/ghub/endpoints/organizations/members/
|
|
212
|
+
- lib/ghub/endpoints/organizations/members/dependencies.rb
|
|
180
213
|
- lib/ghub/endpoints/organizations/members/responses/index.rb
|
|
181
214
|
- lib/ghub/endpoints/organizations/members/root.rb
|
|
182
215
|
- lib/ghub/endpoints/pulls/actions/index.rb
|
|
183
216
|
- lib/ghub/endpoints/pulls/actions/show.rb
|
|
184
217
|
- lib/ghub/endpoints/pulls/container.rb
|
|
185
|
-
- lib/ghub/endpoints/pulls/
|
|
218
|
+
- lib/ghub/endpoints/pulls/dependencies.rb
|
|
186
219
|
- lib/ghub/endpoints/pulls/models/show.rb
|
|
187
220
|
- lib/ghub/endpoints/pulls/responses/index.rb
|
|
188
221
|
- lib/ghub/endpoints/pulls/responses/show.rb
|
|
@@ -192,23 +225,28 @@ files:
|
|
|
192
225
|
- lib/ghub/endpoints/repositories/actions/patch.rb
|
|
193
226
|
- lib/ghub/endpoints/repositories/actions/show.rb
|
|
194
227
|
- lib/ghub/endpoints/repositories/container.rb
|
|
195
|
-
- lib/ghub/endpoints/repositories/
|
|
228
|
+
- lib/ghub/endpoints/repositories/dependencies.rb
|
|
196
229
|
- lib/ghub/endpoints/repositories/path.rb
|
|
197
230
|
- lib/ghub/endpoints/repositories/requests/create.rb
|
|
198
231
|
- lib/ghub/endpoints/repositories/requests/patch.rb
|
|
199
232
|
- lib/ghub/endpoints/repositories/responses/index.rb
|
|
200
233
|
- lib/ghub/endpoints/repositories/responses/show.rb
|
|
201
234
|
- lib/ghub/endpoints/repositories/root.rb
|
|
235
|
+
- lib/ghub/endpoints/search/users/actions/index.rb
|
|
236
|
+
- lib/ghub/endpoints/search/users/container.rb
|
|
237
|
+
- lib/ghub/endpoints/search/users/dependencies.rb
|
|
238
|
+
- lib/ghub/endpoints/search/users/models/index.rb
|
|
239
|
+
- lib/ghub/endpoints/search/users/responses/index.rb
|
|
240
|
+
- lib/ghub/endpoints/search/users/root.rb
|
|
202
241
|
- lib/ghub/endpoints/users/actions/index.rb
|
|
203
242
|
- lib/ghub/endpoints/users/actions/show.rb
|
|
204
243
|
- lib/ghub/endpoints/users/container.rb
|
|
205
|
-
- lib/ghub/endpoints/users/
|
|
244
|
+
- lib/ghub/endpoints/users/dependencies.rb
|
|
206
245
|
- lib/ghub/endpoints/users/models/index.rb
|
|
207
246
|
- lib/ghub/endpoints/users/models/show.rb
|
|
208
247
|
- lib/ghub/endpoints/users/responses/index.rb
|
|
209
248
|
- lib/ghub/endpoints/users/responses/show.rb
|
|
210
249
|
- lib/ghub/endpoints/users/root.rb
|
|
211
|
-
- lib/ghub/import.rb
|
|
212
250
|
- lib/ghub/models/application.rb
|
|
213
251
|
- lib/ghub/models/boolean_link.rb
|
|
214
252
|
- lib/ghub/models/branch.rb
|
|
@@ -242,35 +280,32 @@ files:
|
|
|
242
280
|
- lib/ghub/responses/status_check.rb
|
|
243
281
|
- lib/ghub/responses/team.rb
|
|
244
282
|
- lib/ghub/responses/user.rb
|
|
245
|
-
|
|
246
|
-
homepage: https://www.alchemists.io/projects/ghub
|
|
283
|
+
homepage: https://alchemists.io/projects/ghub
|
|
247
284
|
licenses:
|
|
248
285
|
- Hippocratic-2.1
|
|
249
286
|
metadata:
|
|
250
287
|
bug_tracker_uri: https://github.com/bkuhlmann/ghub/issues
|
|
251
|
-
changelog_uri: https://
|
|
252
|
-
|
|
288
|
+
changelog_uri: https://alchemists.io/projects/ghub/versions
|
|
289
|
+
homepage_uri: https://alchemists.io/projects/ghub
|
|
253
290
|
funding_uri: https://github.com/sponsors/bkuhlmann
|
|
254
291
|
label: Ghub
|
|
255
292
|
rubygems_mfa_required: 'true'
|
|
256
293
|
source_code_uri: https://github.com/bkuhlmann/ghub
|
|
257
|
-
post_install_message:
|
|
258
294
|
rdoc_options: []
|
|
259
295
|
require_paths:
|
|
260
296
|
- lib
|
|
261
297
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
262
298
|
requirements:
|
|
263
|
-
- - "
|
|
299
|
+
- - ">="
|
|
264
300
|
- !ruby/object:Gem::Version
|
|
265
|
-
version: '
|
|
301
|
+
version: '4.0'
|
|
266
302
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
267
303
|
requirements:
|
|
268
304
|
- - ">="
|
|
269
305
|
- !ruby/object:Gem::Version
|
|
270
306
|
version: '0'
|
|
271
307
|
requirements: []
|
|
272
|
-
rubygems_version:
|
|
273
|
-
signing_key:
|
|
308
|
+
rubygems_version: 4.0.21
|
|
274
309
|
specification_version: 4
|
|
275
310
|
summary: A monadic GitHub API client.
|
|
276
311
|
test_files: []
|
metadata.gz.sig
CHANGED
|
Binary file
|
data/lib/ghub/resultable.rb
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Ghub
|
|
4
|
-
# Allows a model to be callable, frozen, and cast itself as a monad to be processed as a result.
|
|
5
|
-
module Resultable
|
|
6
|
-
include Dry::Monads[:result]
|
|
7
|
-
|
|
8
|
-
def self.included object
|
|
9
|
-
super
|
|
10
|
-
object.extend ClassMethods
|
|
11
|
-
end
|
|
12
|
-
|
|
13
|
-
# Allows an object to be callable via a class method.
|
|
14
|
-
module ClassMethods
|
|
15
|
-
def call(...) = new(...)
|
|
16
|
-
end
|
|
17
|
-
|
|
18
|
-
def to_monad = Success self
|
|
19
|
-
end
|
|
20
|
-
end
|