fbe 0.0.73 → 0.0.74

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/fbe/octo.rb +57 -0
  3. data/lib/fbe.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a429f58e75303ad69ff2717b90fd11e65d33cf17a146430685a76e85ee2bff73
4
- data.tar.gz: 440be0c613bfcce9989a223babebda217a4dfdf6193edbf5effcd8bf8f420900
3
+ metadata.gz: 5af7330e4b710edf50500dd3a69969669d86e4ecb01ad14ba54a602c1f7e414b
4
+ data.tar.gz: 5022fb1a52f7fee7f9abf9d516e956f182efd60b6fb5964613cd1d1ad6037385
5
5
  SHA512:
6
- metadata.gz: f4b2a3724d75117fd6235c691f180aa9e1c05aaa583b90b711b12aa3255048a714ee4a4745034ff0dd70dc0b698f53067e097c832f200e9634b091ad53694753
7
- data.tar.gz: 4cd020ce614248bdd7072f059e52d20daefde71db91bf540549067d08637d0139f742d8aec3ac4a5479350d46a271e6e65c595b03b2eeea996c31a03cf0e08d9
6
+ metadata.gz: 7be786a2f37e025311d450f4c800614c227545a33fb4ff5d8b8b29f254a802163695996076004addc3076cdcd6fd6aca9380036023ca2e7d7dd0a278810ec3b1
7
+ data.tar.gz: c3d2298c17f60be42303276a7295f8b1069adffb53af62b7084985a0709e35e5874407373c4f8b9e027af2879a1d5c7b4b3fb306b5c4925421bdaba40f26b816
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
  {
data/lib/fbe.rb CHANGED
@@ -27,5 +27,5 @@
27
27
  # License:: MIT
28
28
  module Fbe
29
29
  # Current version of the gem (changed by .rultor.yml on every release)
30
- VERSION = '0.0.73'
30
+ VERSION = '0.0.74'
31
31
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fbe
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.73
4
+ version: 0.0.74
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yegor Bugayenko