fbe 0.0.65 → 0.0.67

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +2 -2
  3. data/Gemfile.lock +7 -7
  4. data/lib/fbe/octo.rb +148 -0
  5. data/lib/fbe.rb +1 -1
  6. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0672b3f41fa280a30275163479acc52898dacd94cf3772a9627cb9c451c7a1c2
4
- data.tar.gz: 196176a05a86a3356b91eed8c5ba2ba3f3b805982beaa640cac512b8794a9d7b
3
+ metadata.gz: 5adb2d9b9ca4a9d11bc4ef76e9cd92242af706e932b6df13b2344280d7cb9767
4
+ data.tar.gz: 55252a1f89312bf2bd6fc37a7e32fc6059d31630e77ab46d40ef2619a4eefe14
5
5
  SHA512:
6
- metadata.gz: e6be3ae5603941f7655e1ca5ed973d109a34a8ab407e85b47bf960abffa0317f46608fb11d5cb233de3c3b818db02a2bf51ae71fc822020e70b4d3c2ebfc7c0f
7
- data.tar.gz: 319887a5a13f96d888d4b7e841c4b682d12b1df30e2ee2369c63b75b1b16e04140ba9d3ed16a9332bab70f0836f98cdcd68bca3d1e2409d0de040d3b6401c671
6
+ metadata.gz: 66386a3fe388c6c718b16e5cb64cca0c13d6b0244137b97fd8d361b47d9e2cb790c8faf09f29053f49a9daf8a7e4991fd7c7b3cdd22a30bc0cbeb49f21549daf
7
+ data.tar.gz: bc4006107a15beb21074be870ad5d909188c3cc91d18bfb4929da12560f822c0e6a39b4026f8491530ee291a6631490d2e33f6ebc0ec26b74fe7b9d619ed3afd
data/Gemfile CHANGED
@@ -29,8 +29,8 @@ 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
33
- gem 'rubocop-rspec', '3.0.4', require: false
32
+ gem 'rubocop-performance', '1.22.0', require: false
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
36
36
  gem 'webmock', '3.23.1', require: false
data/Gemfile.lock CHANGED
@@ -171,7 +171,7 @@ GEM
171
171
  sawyer (~> 0.9)
172
172
  others (0.0.3)
173
173
  parallel (1.26.3)
174
- parser (3.3.4.2)
174
+ parser (3.3.5.0)
175
175
  ast (~> 2.4.1)
176
176
  racc
177
177
  psych (5.1.2)
@@ -238,12 +238,12 @@ GEM
238
238
  rubocop-ast (>= 1.32.2, < 2.0)
239
239
  ruby-progressbar (~> 1.7)
240
240
  unicode-display_width (>= 2.4.0, < 3.0)
241
- rubocop-ast (1.32.2)
241
+ rubocop-ast (1.32.3)
242
242
  parser (>= 3.3.1.0)
243
- rubocop-performance (1.21.1)
243
+ rubocop-performance (1.22.0)
244
244
  rubocop (>= 1.48.1, < 2.0)
245
245
  rubocop-ast (>= 1.31.1, < 2.0)
246
- rubocop-rspec (3.0.4)
246
+ rubocop-rspec (3.0.5)
247
247
  rubocop (~> 1.61)
248
248
  ruby-progressbar (1.13.0)
249
249
  sawyer (0.9.2)
@@ -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,8 +297,8 @@ 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)
301
- rubocop-rspec (= 3.0.4)
300
+ rubocop-performance (= 1.22.0)
301
+ rubocop-rspec (= 3.0.5)
302
302
  simplecov (= 0.22.0)
303
303
  simplecov-cobertura (= 2.1.0)
304
304
  webmock (= 3.23.1)
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
  {
@@ -1113,4 +1176,89 @@ class Fbe::FakeOctokit
1113
1176
  repository: repository(repo)
1114
1177
  }
1115
1178
  end
1179
+
1180
+ def compare(_repo, _start, _end)
1181
+ {
1182
+ base_commit: {
1183
+ sha: '498464613c0b9',
1184
+ commit: {
1185
+ author: {
1186
+ name: 'Yegor Bugayenko', email: 'yegor256@gmail.com', date: Time.parse('2024-09-04 15:23:25 UTC')
1187
+ },
1188
+ committer: {
1189
+ name: 'Yegor Bugayenko', email: 'yegor256@gmail.com', date: Time.parse('2024-09-04 15:23:25 UTC')
1190
+ },
1191
+ message: 'Some text',
1192
+ tree: { sha: '51aee236ba884' },
1193
+ comment_count: 0,
1194
+ verification: { verified: false, reason: 'unsigned', signature: nil, payload: nil }
1195
+ },
1196
+ author: { login: 'yegor256', id: 526_301, type: 'User', site_admin: false },
1197
+ committer: { login: 'yegor256', id: 526_301, type: 'User', site_admin: false },
1198
+ parents: [{ sha: '9763dab47b50a12f59c3630690ec2c0f6bdda0b3' }]
1199
+ },
1200
+ merge_base_commit: {
1201
+ sha: '8e4348746638595a7e',
1202
+ commit: {
1203
+ author: {
1204
+ name: 'Yegor Bugayenko', email: 'yegor256@gmail.com', date: Time.parse('2024-08-25 15:57:35 UTC')
1205
+ },
1206
+ committer: {
1207
+ name: 'Yegor Bugayenko', email: 'yegor256@gmail.com', date: Time.parse('2024-08-25 15:57:35 UTC')
1208
+ },
1209
+ message: 'Some text',
1210
+ tree: { sha: '7145fc122e70bf51e1d' },
1211
+ comment_count: 0,
1212
+ verification: { verified: true, reason: 'valid', signature: '', payload: '' }
1213
+ },
1214
+ author: { login: 'yegor256', id: 526_301, type: 'User', site_admin: false },
1215
+ committer: { login: 'yegor256', id: 526_301, type: 'User', site_admin: false },
1216
+ parents: [
1217
+ { sha: '8c8278efedbd795e70' },
1218
+ { sha: '7dfd2e0186113f66f' }
1219
+ ]
1220
+ },
1221
+ status: 'diverged',
1222
+ ahead_by: 1,
1223
+ behind_by: 30,
1224
+ total_commits: 1,
1225
+ commits: [
1226
+ {
1227
+ sha: 'ee04386901692abb',
1228
+ commit: {
1229
+ author: {
1230
+ name: 'Yegor Bugayenko', email: 'yegor256@gmail.com', date: Time.parse('2024-08-25 15:57:35 UTC')
1231
+ },
1232
+ committer: {
1233
+ name: 'Yegor Bugayenko', email: 'yegor256@gmail.com', date: Time.parse('2024-08-25 15:57:35 UTC')
1234
+ },
1235
+ message: 'Some text',
1236
+ tree: { sha: '7a6124a500aed8c92' },
1237
+ comment_count: 0,
1238
+ verification: { verified: false, reason: 'unsigned', signature: nil, payload: nil }
1239
+ },
1240
+ author: { login: 'yegor256', id: 526_301, type: 'User', site_admin: false },
1241
+ committer: { login: 'yegor256', id: 526_301, type: 'User', site_admin: false },
1242
+ parents: [{ sha: '8e4348746638595a7e' }]
1243
+ }
1244
+ ],
1245
+ files: [
1246
+ {
1247
+ sha: '9e100c7246c0cc9', filename: 'file.txt', status: 'modified',
1248
+ additions: 1, deletions: 1, changes: 2,
1249
+ patch: '@@ -24,7 +24,7 @@ text ...'
1250
+ },
1251
+ {
1252
+ sha: 'f97818271059e5455', filename: 'file2.txt', status: 'modified',
1253
+ additions: 1, deletions: 1, changes: 2,
1254
+ patch: '@@ -25,7 +25,7 @@ text ...'
1255
+ },
1256
+ {
1257
+ sha: '5a957c57d090bfeccb', filename: 'file3.txt', status: 'modified',
1258
+ additions: 1, deletions: 1, changes: 2,
1259
+ patch: '@@ -27,7 +27,7 @@ text ...'
1260
+ }
1261
+ ]
1262
+ }
1263
+ end
1116
1264
  end
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.65'
30
+ VERSION = '0.0.67'
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.65
4
+ version: 0.0.67
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-06 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