fbe 0.0.66 → 0.0.68

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: 178b4bc5b0be6cf895688baa5c1687ead1f3e6613d60222bb9002de99b258878
4
- data.tar.gz: 59c0fb88298dc09affd70693812fb045e96ced8890a2eb97bff74a638bb73e1b
3
+ metadata.gz: ae6d025a9d9a5313f1f119bcad19e8a258b6e0d3aa54ce82271954f90b2b8faa
4
+ data.tar.gz: 561ffc4e127b79438b22c5553657f3bb1b4e5c300443dc49b6d33e2d1983c7e7
5
5
  SHA512:
6
- metadata.gz: d4f839fb8e2e597fb718a2de2f27d9fa134c64c1d621e67fb1245d224f25c0a864bf730944d49ca5d2ec3384400c7fa8e4d492031409ef5f16d25b7376c328f5
7
- data.tar.gz: a974f2a744aa2288638b85572b199879bbd5064af0d7ad58888c24612a485b035b9c16f75989e4a318af35f0b6921f2e0a65772364a9b2ba36f07fdea1bfa453
6
+ metadata.gz: 63acde9b2e7c70995bd0b9a618f6503bad162c761ef36f8385d8a1796828d71731fa347cd99fb6906965a6c358897300a06a149376fb2a7dc3cde4c7ea7b05d9
7
+ data.tar.gz: 74a1126e2dbb842ba8523f5a3276fbcbdcbf6ee505ef88f9412451d9933df3ba0c898d9dc8358178eba86828bd4aa7d92f7421e8c71814399df920f8fa7c66e1
data/.rultor.yml CHANGED
@@ -19,7 +19,7 @@
19
19
  # SOFTWARE.
20
20
  ---
21
21
  docker:
22
- image: yegor256/rultor-image:1.23.1
22
+ image: yegor256/rultor-ruby
23
23
  assets:
24
24
  rubygems.yml: yegor256/home#assets/rubygems.yml
25
25
  install: |
data/Gemfile CHANGED
@@ -29,7 +29,7 @@ gem 'minitest-reporters', '1.7.1', require: false
29
29
  gem 'rake', '13.2.1', require: false
30
30
  gem 'rspec-rails', '7.0.1', require: false
31
31
  gem 'rubocop', '1.66.1', require: false
32
- gem 'rubocop-performance', '1.21.1', require: false
32
+ gem 'rubocop-performance', '1.22.1', require: false
33
33
  gem 'rubocop-rspec', '3.0.5', require: false
34
34
  gem 'simplecov', '0.22.0', require: false
35
35
  gem 'simplecov-cobertura', '2.1.0', require: false
data/Gemfile.lock CHANGED
@@ -240,7 +240,7 @@ GEM
240
240
  unicode-display_width (>= 2.4.0, < 3.0)
241
241
  rubocop-ast (1.32.3)
242
242
  parser (>= 3.3.1.0)
243
- rubocop-performance (1.21.1)
243
+ rubocop-performance (1.22.1)
244
244
  rubocop (>= 1.48.1, < 2.0)
245
245
  rubocop-ast (>= 1.31.1, < 2.0)
246
246
  rubocop-rspec (3.0.5)
@@ -267,7 +267,7 @@ GEM
267
267
  ethon (>= 0.9.0)
268
268
  tzinfo (2.0.6)
269
269
  concurrent-ruby (~> 1.0)
270
- unicode-display_width (2.5.0)
270
+ unicode-display_width (2.6.0)
271
271
  uri (0.13.0)
272
272
  useragent (0.16.10)
273
273
  verbose (0.0.2)
@@ -297,7 +297,7 @@ DEPENDENCIES
297
297
  rake (= 13.2.1)
298
298
  rspec-rails (= 7.0.1)
299
299
  rubocop (= 1.66.1)
300
- rubocop-performance (= 1.21.1)
300
+ rubocop-performance (= 1.22.1)
301
301
  rubocop-rspec (= 3.0.5)
302
302
  simplecov (= 0.22.0)
303
303
  simplecov-cobertura (= 2.1.0)
data/lib/fbe/octo.rb CHANGED
@@ -297,6 +297,69 @@ class Fbe::FakeOctokit
297
297
  }
298
298
  end
299
299
 
300
+ def pull_requests(_repo, _options = {})
301
+ [
302
+ {
303
+ id: 2_072_543_250,
304
+ number: 100,
305
+ state: 'closed',
306
+ locked: false,
307
+ title: '#90: some title',
308
+ user: { login: 'yegor256', id: 526_301, type: 'User' },
309
+ body: 'Closes #90',
310
+ created_at: Time.parse('2024-09-15 09:32:49 UTC'),
311
+ updated_at: Time.parse('2024-09-15 10:06:23 UTC'),
312
+ closed_at: Time.parse('2024-09-15 10:05:34 UTC'),
313
+ merged_at: Time.parse('2024-09-15 10:05:34 UTC'),
314
+ merge_commit_sha: '0527cc188b0495e',
315
+ draft: false,
316
+ head: {
317
+ label: 'yegor256:90',
318
+ ref: '90',
319
+ sha: '0527cc188b049',
320
+ user: { login: 'yegor256', id: 526_301, type: 'User' },
321
+ repo: repository('yegor256/repo')
322
+ },
323
+ base: {
324
+ label: 'zerocracy:master',
325
+ ref: 'master',
326
+ sha: '4643eb3c7a0ccb3c',
327
+ user: { login: 'zerocracy', id: 24_234_201, type: 'Organization' },
328
+ repo: repository('zerocracy/repo')
329
+ }
330
+ },
331
+ {
332
+ id: 2_072_543_240,
333
+ number: 95,
334
+ state: 'open',
335
+ locked: false,
336
+ title: '#80: some title',
337
+ user: { login: 'yegor256', id: 526_301, type: 'User' },
338
+ body: 'Closes #80',
339
+ created_at: Time.parse('2024-09-14 09:32:49 UTC'),
340
+ updated_at: Time.parse('2024-09-14 10:06:23 UTC'),
341
+ closed_at: nil,
342
+ merged_at: nil,
343
+ merge_commit_sha: '0627cc188b0497e',
344
+ draft: false,
345
+ head: {
346
+ label: 'yegor256:80',
347
+ ref: '80',
348
+ sha: '1527cc188b040',
349
+ user: { login: 'yegor256', id: 526_301, type: 'User' },
350
+ repo: repository('yegor256/repo')
351
+ },
352
+ base: {
353
+ label: 'zerocracy:master',
354
+ ref: 'master',
355
+ sha: '5643eb3c7a0ccb3b',
356
+ user: { login: 'zerocracy', id: 24_234_201, type: 'Organization' },
357
+ repo: repository('zerocracy/repo')
358
+ }
359
+ }
360
+ ]
361
+ end
362
+
300
363
  def pull_request_reviews(_repo, _number)
301
364
  [
302
365
  {
@@ -389,7 +452,7 @@ class Fbe::FakeOctokit
389
452
  number: 10,
390
453
  title: 'Awesome PR 10',
391
454
  created_at: Time.parse('2024-08-21 19:00:00 UTC'),
392
- merged_at: Time.parse('2024-08-23 19:00:00 UTC')
455
+ pull_request: { merged_at: Time.parse('2024-08-23 19:00:00 UTC') }
393
456
  }
394
457
  ]
395
458
  }
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.66'
30
+ VERSION = '0.0.68'
31
31
  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.66
4
+ version: 0.0.68
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yegor Bugayenko
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-09-15 00:00:00.000000000 Z
11
+ date: 2024-09-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: backtrace
@@ -309,7 +309,7 @@ licenses:
309
309
  - MIT
310
310
  metadata:
311
311
  rubygems_mfa_required: 'true'
312
- post_install_message:
312
+ post_install_message:
313
313
  rdoc_options:
314
314
  - "--charset=UTF-8"
315
315
  require_paths:
@@ -326,7 +326,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
326
326
  version: '0'
327
327
  requirements: []
328
328
  rubygems_version: 3.4.10
329
- signing_key:
329
+ signing_key:
330
330
  specification_version: 4
331
331
  summary: FactBase Extended (FBE), a collection of utility classes for Zerocracy judges
332
332
  test_files: []