fbe 0.0.69 → 0.0.71

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a538e70cd251261fa8b1a980051cfd90195c79e291cbcc08431ae3a78481b5e7
4
- data.tar.gz: 7492622c36dedef8fa2582cd47ecacf4006dec00244b28b0f8832ca68eb81bc8
3
+ metadata.gz: d3d98cff29df2eb4e4260d8806bef3fa8248d23f817fc4b9ef346053e05fbd17
4
+ data.tar.gz: 4519dd55fb5c4f17e3055bbf3d4958ae345f102a6a79c4fdb5b3c2d4b9bd3367
5
5
  SHA512:
6
- metadata.gz: 9d4c8417052d583b4a83177771c75c7cee4567a2e56f3522d6bd34cd81eeeafaa7328f38d251345023dbaca9b76fcc3cdda9b0252bb1ff8a5edee6702c49eb09
7
- data.tar.gz: ef57a016e97e85e12da1426a97557f0d54d059b34fcfc07246e82124141726d9e82326f4d86bdea3394337823b35b48568652be0ad0c5a175b854bc243497da9
6
+ metadata.gz: f423fa6c81d2ccd42a5d39f8395a307645d42a4f14a23a8454141c0eeabb346e3ceb3c332f7588ab8bed154e3d93900b0d213381fd5e75698d352f8ed7b0a5a9
7
+ data.tar.gz: 48152236cb7e1c9f7935c7bac2161b1030fd00b411c41f1ea47371d5ac7aa2b776323114a1ffd227be3929a448e8f7e22a8a6bdd6be66e10d4661b69cb3b778b
@@ -163,6 +163,10 @@ class Fbe::Graph
163
163
  }
164
164
  end
165
165
 
166
+ def total_commits(_owner, _name, _branch)
167
+ 1484
168
+ end
169
+
166
170
  private
167
171
 
168
172
  def conversation(id)
data/lib/fbe/octo.rb CHANGED
@@ -664,10 +664,7 @@ class Fbe::FakeOctokit
664
664
  node_id: 'R_kgDOK2_4Aw',
665
665
  name: 'baza',
666
666
  full_name: 'zerocracy/baza',
667
- private: false,
668
- owner: {
669
- login: 'zerocracy'
670
- }
667
+ private: false
671
668
  }
672
669
  },
673
670
  head: {
@@ -722,10 +719,7 @@ class Fbe::FakeOctokit
722
719
  node_id: 'R_kgDOK2_4Aw',
723
720
  name: 'judges-action',
724
721
  full_name: 'zerocracy/judges-action',
725
- private: false,
726
- owner: {
727
- login: 'zerocracy'
728
- }
722
+ private: false
729
723
  }
730
724
  },
731
725
  head: {
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.69'
30
+ VERSION = '0.0.71'
31
31
  end
@@ -131,4 +131,10 @@ class TestGitHubGraph < Minitest::Test
131
131
  assert_equal(23, result['issues'])
132
132
  assert_equal(19, result['pulls'])
133
133
  end
134
+
135
+ def test_fake_total_commits
136
+ WebMock.disable_net_connect!
137
+ graph = Fbe.github_graph(options: Judges::Options.new('testing' => true), loog: Loog::NULL, global: {})
138
+ assert_equal(1484, graph.total_commits('zerocracy', 'fbe', 'master'))
139
+ end
134
140
  end
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.69
4
+ version: 0.0.71
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-23 00:00:00.000000000 Z
11
+ date: 2024-09-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: backtrace