fbe 0.0.72 → 0.0.74
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/actionlint.yml +1 -1
- data/.github/workflows/codecov.yml +1 -1
- data/.github/workflows/copyrights.yml +1 -1
- data/.github/workflows/markdown-lint.yml +1 -1
- data/.github/workflows/pdd.yml +1 -1
- data/.github/workflows/xcop.yml +1 -1
- data/.github/workflows/yamllint.yml +1 -1
- data/lib/fbe/octo.rb +104 -0
- data/lib/fbe.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5af7330e4b710edf50500dd3a69969669d86e4ecb01ad14ba54a602c1f7e414b
|
4
|
+
data.tar.gz: 5022fb1a52f7fee7f9abf9d516e956f182efd60b6fb5964613cd1d1ad6037385
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7be786a2f37e025311d450f4c800614c227545a33fb4ff5d8b8b29f254a802163695996076004addc3076cdcd6fd6aca9380036023ca2e7d7dd0a278810ec3b1
|
7
|
+
data.tar.gz: c3d2298c17f60be42303276a7295f8b1069adffb53af62b7084985a0709e35e5874407373c4f8b9e027af2879a1d5c7b4b3fb306b5c4925421bdaba40f26b816
|
data/.github/workflows/pdd.yml
CHANGED
data/.github/workflows/xcop.yml
CHANGED
data/lib/fbe/octo.rb
CHANGED
@@ -520,6 +520,63 @@ class Fbe::FakeOctokit
|
|
520
520
|
}
|
521
521
|
end
|
522
522
|
|
523
|
+
def search_commits(_query, _options = {})
|
524
|
+
{
|
525
|
+
total_count: 3,
|
526
|
+
incomplete_results: false,
|
527
|
+
items: [
|
528
|
+
{
|
529
|
+
commit: {
|
530
|
+
author: { name: 'Yegor', email: 'yegor@gmail.com', date: Time.parse('2024-09-15 12:23:25 UTC') },
|
531
|
+
committer: { name: 'Yegor', email: 'yegor@gmail.com', date: Time.parse('2024-09-15 12:23:25 UTC') },
|
532
|
+
message: 'Some text',
|
533
|
+
tree: { sha: '6e04579960bf67610d' },
|
534
|
+
comment_count: 0
|
535
|
+
},
|
536
|
+
author: { login: 'yegor256', id: 526_301, type: 'User', site_admin: false },
|
537
|
+
committer: { login: 'yegor256', id: 526_301, type: 'User', site_admin: false },
|
538
|
+
parents: [{ sha: '60cff20bdb66' }],
|
539
|
+
repository: {
|
540
|
+
id: 799_177_290, name: 'judges-action', full_name: 'zerocracy/judges-action',
|
541
|
+
owner: { login: 'zerocracy', id: 24_234_201, type: 'Organization', site_admin: false }
|
542
|
+
}
|
543
|
+
},
|
544
|
+
{
|
545
|
+
commit: {
|
546
|
+
author: { name: 'Yegor', email: 'yegor2@gmail.com', date: Time.parse('2024-09-14 12:23:25 UTC') },
|
547
|
+
committer: { name: 'Yegor', email: 'yegor2@gmail.com', date: Time.parse('2024-09-14 12:23:25 UTC') },
|
548
|
+
message: 'Some text 2',
|
549
|
+
tree: { sha: 'defa18e4e2250987' },
|
550
|
+
comment_count: 0
|
551
|
+
},
|
552
|
+
author: { login: 'yegor257', id: 526_302, type: 'User', site_admin: false },
|
553
|
+
committer: { login: 'yegor257', id: 526_302, type: 'User', site_admin: false },
|
554
|
+
parents: [{ sha: 'a04c15bb34fddbba' }],
|
555
|
+
repository: {
|
556
|
+
id: 799_177_290, name: 'judges-action', full_name: 'zerocracy/judges-action',
|
557
|
+
owner: { login: 'zerocracy', id: 24_234_201, type: 'Organization', site_admin: false }
|
558
|
+
}
|
559
|
+
},
|
560
|
+
{
|
561
|
+
commit: {
|
562
|
+
author: { name: 'Yegor', email: 'yegor3@gmail.com', date: Time.parse('2024-09-13 12:23:25 UTC') },
|
563
|
+
committer: { name: 'Yegor', email: 'yegor3@gmail.com', date: Time.parse('2024-09-13 12:23:25 UTC') },
|
564
|
+
message: 'Some text 3',
|
565
|
+
tree: { sha: 'bb7277441139739b902a' },
|
566
|
+
comment_count: 0
|
567
|
+
},
|
568
|
+
author: { login: 'yegor258', id: 526_303, type: 'User', site_admin: false },
|
569
|
+
committer: { login: 'yegor258', id: 526_303, type: 'User', site_admin: false },
|
570
|
+
parents: [{ sha: '18db84d469bb727' }],
|
571
|
+
repository: {
|
572
|
+
id: 799_177_290, name: 'judges-action', full_name: 'zerocracy/judges-action',
|
573
|
+
owner: { login: 'zerocracy', id: 24_234_201, type: 'Organization', site_admin: false }
|
574
|
+
}
|
575
|
+
}
|
576
|
+
]
|
577
|
+
}
|
578
|
+
end
|
579
|
+
|
523
580
|
def issue_timeline(_repo, _issue, _options = {})
|
524
581
|
[
|
525
582
|
{
|
@@ -1336,4 +1393,51 @@ class Fbe::FakeOctokit
|
|
1336
1393
|
truncated: false
|
1337
1394
|
}
|
1338
1395
|
end
|
1396
|
+
|
1397
|
+
def contributors(_repo, _anon = nil, _options = {})
|
1398
|
+
[
|
1399
|
+
{
|
1400
|
+
login: 'yegor256',
|
1401
|
+
id: 526_301,
|
1402
|
+
type: 'User',
|
1403
|
+
contributions: 500
|
1404
|
+
},
|
1405
|
+
{
|
1406
|
+
login: 'renovate[bot]',
|
1407
|
+
id: 29_139_614,
|
1408
|
+
type: 'Bot',
|
1409
|
+
contributions: 320
|
1410
|
+
},
|
1411
|
+
{
|
1412
|
+
login: 'user1',
|
1413
|
+
id: 2_476_362,
|
1414
|
+
type: 'User',
|
1415
|
+
contributions: 120
|
1416
|
+
},
|
1417
|
+
{
|
1418
|
+
login: 'rultor',
|
1419
|
+
id: 8_086_956,
|
1420
|
+
type: 'Bot',
|
1421
|
+
contributions: 87
|
1422
|
+
},
|
1423
|
+
{
|
1424
|
+
login: 'user2',
|
1425
|
+
id: 5_427_638,
|
1426
|
+
type: 'User',
|
1427
|
+
contributions: 49
|
1428
|
+
},
|
1429
|
+
{
|
1430
|
+
login: 'user3',
|
1431
|
+
id: 2_648_875,
|
1432
|
+
type: 'User',
|
1433
|
+
contributions: 10
|
1434
|
+
},
|
1435
|
+
{
|
1436
|
+
login: 'user4',
|
1437
|
+
id: 7_125_293,
|
1438
|
+
type: 'User',
|
1439
|
+
contributions: 1
|
1440
|
+
}
|
1441
|
+
]
|
1442
|
+
end
|
1339
1443
|
end
|
data/lib/fbe.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fbe
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.74
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yegor Bugayenko
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-09-
|
11
|
+
date: 2024-09-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: backtrace
|