fbe 0.12.0 → 0.13.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
- data/lib/fbe/octo.rb +12 -0
- data/lib/fbe.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c246a018ffc571090427b00e75439fcd53bb28b2c05d2c97d0671f8fc0af1e07
|
4
|
+
data.tar.gz: 60feb8b7e7f85220559dc37fbee2d8eac8f9978a370ad2ea60017497532541db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4912083a66ad868fce98a78a8ad0fe6286ff8c413cc8de1903322c6e6962b53894314175e02eac005cef621e15b25b1bccff15607019f1a9bcaf81bf0663ee5d
|
7
|
+
data.tar.gz: 0a392932079415d28521ff312cb794254d648cd92d0013dd611cb55602e7b0b443a2aae910106ce73b5cefffd15ddceb221949c77e36b5f4b57560d74beff847
|
data/lib/fbe/octo.rb
CHANGED
@@ -341,6 +341,18 @@ class Fbe::FakeOctokit
|
|
341
341
|
true
|
342
342
|
end
|
343
343
|
|
344
|
+
# Accepts a repository invitation.
|
345
|
+
#
|
346
|
+
# @param [Integer] id The invitation ID
|
347
|
+
# @return [Boolean] Returns true when successful (204 No Content in actual API)
|
348
|
+
# @example
|
349
|
+
# fake_client = Fbe::FakeOctokit.new
|
350
|
+
# fake_client.accept_repository_invitation(1) #=> true
|
351
|
+
def accept_repository_invitation(id)
|
352
|
+
raise Octokit::NotFound if id == 404_000
|
353
|
+
true
|
354
|
+
end
|
355
|
+
|
344
356
|
# Gives a star to a repository.
|
345
357
|
#
|
346
358
|
# @param [String] _repo The repository name (e.g., 'user/repo')
|
data/lib/fbe.rb
CHANGED