fbe 0.0.64 → 0.0.66
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +4 -4
- data/Gemfile.lock +29 -30
- data/lib/fbe/octo.rb +114 -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: 178b4bc5b0be6cf895688baa5c1687ead1f3e6613d60222bb9002de99b258878
|
4
|
+
data.tar.gz: 59c0fb88298dc09affd70693812fb045e96ced8890a2eb97bff74a638bb73e1b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d4f839fb8e2e597fb718a2de2f27d9fa134c64c1d621e67fb1245d224f25c0a864bf730944d49ca5d2ec3384400c7fa8e4d492031409ef5f16d25b7376c328f5
|
7
|
+
data.tar.gz: a974f2a744aa2288638b85572b199879bbd5064af0d7ad58888c24612a485b035b9c16f75989e4a318af35f0b6921f2e0a65772364a9b2ba36f07fdea1bfa453
|
data/Gemfile
CHANGED
@@ -27,11 +27,11 @@ gem 'graphql-client'
|
|
27
27
|
gem 'minitest', '5.25.1', require: false
|
28
28
|
gem 'minitest-reporters', '1.7.1', require: false
|
29
29
|
gem 'rake', '13.2.1', require: false
|
30
|
-
gem 'rspec-rails', '
|
31
|
-
gem 'rubocop', '1.
|
30
|
+
gem 'rspec-rails', '7.0.1', require: false
|
31
|
+
gem 'rubocop', '1.66.1', require: false
|
32
32
|
gem 'rubocop-performance', '1.21.1', require: false
|
33
|
-
gem 'rubocop-rspec', '3.0.
|
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
|
37
|
-
gem 'yard', '0.9.
|
37
|
+
gem 'yard', '0.9.37', require: false
|
data/Gemfile.lock
CHANGED
@@ -21,9 +21,9 @@ PATH
|
|
21
21
|
GEM
|
22
22
|
remote: https://rubygems.org/
|
23
23
|
specs:
|
24
|
-
actionpack (7.2.
|
25
|
-
actionview (= 7.2.
|
26
|
-
activesupport (= 7.2.
|
24
|
+
actionpack (7.2.1)
|
25
|
+
actionview (= 7.2.1)
|
26
|
+
activesupport (= 7.2.1)
|
27
27
|
nokogiri (>= 1.8.5)
|
28
28
|
racc
|
29
29
|
rack (>= 2.2.4, < 3.2)
|
@@ -32,13 +32,13 @@ GEM
|
|
32
32
|
rails-dom-testing (~> 2.2)
|
33
33
|
rails-html-sanitizer (~> 1.6)
|
34
34
|
useragent (~> 0.16)
|
35
|
-
actionview (7.2.
|
36
|
-
activesupport (= 7.2.
|
35
|
+
actionview (7.2.1)
|
36
|
+
activesupport (= 7.2.1)
|
37
37
|
builder (~> 3.1)
|
38
38
|
erubi (~> 1.11)
|
39
39
|
rails-dom-testing (~> 2.2)
|
40
40
|
rails-html-sanitizer (~> 1.6)
|
41
|
-
activesupport (7.2.
|
41
|
+
activesupport (7.2.1)
|
42
42
|
base64
|
43
43
|
bigdecimal
|
44
44
|
concurrent-ruby (~> 1.0, >= 1.3.1)
|
@@ -142,7 +142,7 @@ GEM
|
|
142
142
|
typhoeus (~> 1.3)
|
143
143
|
language_server-protocol (3.17.0.3)
|
144
144
|
liquid (5.5.1)
|
145
|
-
logger (1.6.
|
145
|
+
logger (1.6.1)
|
146
146
|
loofah (2.22.0)
|
147
147
|
crass (~> 1.0.2)
|
148
148
|
nokogiri (>= 1.12.0)
|
@@ -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.
|
174
|
+
parser (3.3.5.0)
|
175
175
|
ast (~> 2.4.1)
|
176
176
|
racc
|
177
177
|
psych (5.1.2)
|
@@ -193,9 +193,9 @@ GEM
|
|
193
193
|
rails-html-sanitizer (1.6.0)
|
194
194
|
loofah (~> 2.21)
|
195
195
|
nokogiri (~> 1.14)
|
196
|
-
railties (7.2.
|
197
|
-
actionpack (= 7.2.
|
198
|
-
activesupport (= 7.2.
|
196
|
+
railties (7.2.1)
|
197
|
+
actionpack (= 7.2.1)
|
198
|
+
activesupport (= 7.2.1)
|
199
199
|
irb (~> 1.13)
|
200
200
|
rackup (>= 1.0.0)
|
201
201
|
rake (>= 12.2)
|
@@ -209,42 +209,41 @@ GEM
|
|
209
209
|
reline (0.5.9)
|
210
210
|
io-console (~> 0.5)
|
211
211
|
retries (0.0.5)
|
212
|
-
rexml (3.3.
|
212
|
+
rexml (3.3.6)
|
213
213
|
strscan
|
214
|
-
rspec-core (3.13.
|
214
|
+
rspec-core (3.13.1)
|
215
215
|
rspec-support (~> 3.13.0)
|
216
|
-
rspec-expectations (3.13.
|
216
|
+
rspec-expectations (3.13.2)
|
217
217
|
diff-lcs (>= 1.2.0, < 2.0)
|
218
218
|
rspec-support (~> 3.13.0)
|
219
219
|
rspec-mocks (3.13.1)
|
220
220
|
diff-lcs (>= 1.2.0, < 2.0)
|
221
221
|
rspec-support (~> 3.13.0)
|
222
|
-
rspec-rails (
|
223
|
-
actionpack (>=
|
224
|
-
activesupport (>=
|
225
|
-
railties (>=
|
222
|
+
rspec-rails (7.0.1)
|
223
|
+
actionpack (>= 7.0)
|
224
|
+
activesupport (>= 7.0)
|
225
|
+
railties (>= 7.0)
|
226
226
|
rspec-core (~> 3.13)
|
227
227
|
rspec-expectations (~> 3.13)
|
228
228
|
rspec-mocks (~> 3.13)
|
229
229
|
rspec-support (~> 3.13)
|
230
230
|
rspec-support (3.13.1)
|
231
|
-
rubocop (1.
|
231
|
+
rubocop (1.66.1)
|
232
232
|
json (~> 2.3)
|
233
233
|
language_server-protocol (>= 3.17.0)
|
234
234
|
parallel (~> 1.10)
|
235
235
|
parser (>= 3.3.0.2)
|
236
236
|
rainbow (>= 2.2.2, < 4.0)
|
237
237
|
regexp_parser (>= 2.4, < 3.0)
|
238
|
-
|
239
|
-
rubocop-ast (>= 1.31.1, < 2.0)
|
238
|
+
rubocop-ast (>= 1.32.2, < 2.0)
|
240
239
|
ruby-progressbar (~> 1.7)
|
241
240
|
unicode-display_width (>= 2.4.0, < 3.0)
|
242
|
-
rubocop-ast (1.32.
|
241
|
+
rubocop-ast (1.32.3)
|
243
242
|
parser (>= 3.3.1.0)
|
244
243
|
rubocop-performance (1.21.1)
|
245
244
|
rubocop (>= 1.48.1, < 2.0)
|
246
245
|
rubocop-ast (>= 1.31.1, < 2.0)
|
247
|
-
rubocop-rspec (3.0.
|
246
|
+
rubocop-rspec (3.0.5)
|
248
247
|
rubocop (~> 1.61)
|
249
248
|
ruby-progressbar (1.13.0)
|
250
249
|
sawyer (0.9.2)
|
@@ -263,7 +262,7 @@ GEM
|
|
263
262
|
stringio (3.1.1)
|
264
263
|
strscan (3.1.0)
|
265
264
|
tago (0.0.2)
|
266
|
-
thor (1.3.
|
265
|
+
thor (1.3.2)
|
267
266
|
typhoeus (1.4.1)
|
268
267
|
ethon (>= 0.9.0)
|
269
268
|
tzinfo (2.0.6)
|
@@ -280,8 +279,8 @@ GEM
|
|
280
279
|
hashdiff (>= 0.4.0, < 2.0.0)
|
281
280
|
webrick (1.8.1)
|
282
281
|
yaml (0.3.0)
|
283
|
-
yard (0.9.
|
284
|
-
zeitwerk (2.6.
|
282
|
+
yard (0.9.37)
|
283
|
+
zeitwerk (2.6.18)
|
285
284
|
|
286
285
|
PLATFORMS
|
287
286
|
arm64-darwin-22
|
@@ -296,14 +295,14 @@ DEPENDENCIES
|
|
296
295
|
minitest (= 5.25.1)
|
297
296
|
minitest-reporters (= 1.7.1)
|
298
297
|
rake (= 13.2.1)
|
299
|
-
rspec-rails (=
|
300
|
-
rubocop (= 1.
|
298
|
+
rspec-rails (= 7.0.1)
|
299
|
+
rubocop (= 1.66.1)
|
301
300
|
rubocop-performance (= 1.21.1)
|
302
|
-
rubocop-rspec (= 3.0.
|
301
|
+
rubocop-rspec (= 3.0.5)
|
303
302
|
simplecov (= 0.22.0)
|
304
303
|
simplecov-cobertura (= 2.1.0)
|
305
304
|
webmock (= 3.23.1)
|
306
|
-
yard (= 0.9.
|
305
|
+
yard (= 0.9.37)
|
307
306
|
|
308
307
|
BUNDLED WITH
|
309
308
|
2.4.22
|
data/lib/fbe/octo.rb
CHANGED
@@ -320,6 +320,35 @@ class Fbe::FakeOctokit
|
|
320
320
|
]
|
321
321
|
end
|
322
322
|
|
323
|
+
def review_comments(_repo, _number)
|
324
|
+
[
|
325
|
+
{
|
326
|
+
pull_request_review_id: 22_687_249,
|
327
|
+
id: 17_361_949,
|
328
|
+
body: 'Some comment 1',
|
329
|
+
user: { login: 'yegor256', id: 526_301, type: 'User' },
|
330
|
+
created_at: Time.parse('2024-09-05 15:31:06 UTC'),
|
331
|
+
updated_at: Time.parse('2024-09-05 15:33:04 UTC')
|
332
|
+
},
|
333
|
+
{
|
334
|
+
pull_request_review_id: 22_687_503,
|
335
|
+
id: 17_361_950,
|
336
|
+
body: 'Some comment 2',
|
337
|
+
user: { login: 'yegor256', id: 526_301, type: 'User' },
|
338
|
+
created_at: Time.parse('2024-09-06 14:20:00 UTC'),
|
339
|
+
updated_at: Time.parse('2024-09-06 14:20:50 UTC')
|
340
|
+
},
|
341
|
+
{
|
342
|
+
pull_request_review_id: 22_687_255,
|
343
|
+
id: 17_361_970,
|
344
|
+
body: 'Some comment 3',
|
345
|
+
user: { login: 'yegor256', id: 526_301, type: 'User' },
|
346
|
+
created_at: Time.parse('2024-09-06 20:45:30 UTC'),
|
347
|
+
updated_at: Time.parse('2024-09-06 20:45:30 UTC')
|
348
|
+
}
|
349
|
+
]
|
350
|
+
end
|
351
|
+
|
323
352
|
def add_comment(_repo, _issue, _text)
|
324
353
|
{
|
325
354
|
id: 42
|
@@ -1084,4 +1113,89 @@ class Fbe::FakeOctokit
|
|
1084
1113
|
repository: repository(repo)
|
1085
1114
|
}
|
1086
1115
|
end
|
1116
|
+
|
1117
|
+
def compare(_repo, _start, _end)
|
1118
|
+
{
|
1119
|
+
base_commit: {
|
1120
|
+
sha: '498464613c0b9',
|
1121
|
+
commit: {
|
1122
|
+
author: {
|
1123
|
+
name: 'Yegor Bugayenko', email: 'yegor256@gmail.com', date: Time.parse('2024-09-04 15:23:25 UTC')
|
1124
|
+
},
|
1125
|
+
committer: {
|
1126
|
+
name: 'Yegor Bugayenko', email: 'yegor256@gmail.com', date: Time.parse('2024-09-04 15:23:25 UTC')
|
1127
|
+
},
|
1128
|
+
message: 'Some text',
|
1129
|
+
tree: { sha: '51aee236ba884' },
|
1130
|
+
comment_count: 0,
|
1131
|
+
verification: { verified: false, reason: 'unsigned', signature: nil, payload: nil }
|
1132
|
+
},
|
1133
|
+
author: { login: 'yegor256', id: 526_301, type: 'User', site_admin: false },
|
1134
|
+
committer: { login: 'yegor256', id: 526_301, type: 'User', site_admin: false },
|
1135
|
+
parents: [{ sha: '9763dab47b50a12f59c3630690ec2c0f6bdda0b3' }]
|
1136
|
+
},
|
1137
|
+
merge_base_commit: {
|
1138
|
+
sha: '8e4348746638595a7e',
|
1139
|
+
commit: {
|
1140
|
+
author: {
|
1141
|
+
name: 'Yegor Bugayenko', email: 'yegor256@gmail.com', date: Time.parse('2024-08-25 15:57:35 UTC')
|
1142
|
+
},
|
1143
|
+
committer: {
|
1144
|
+
name: 'Yegor Bugayenko', email: 'yegor256@gmail.com', date: Time.parse('2024-08-25 15:57:35 UTC')
|
1145
|
+
},
|
1146
|
+
message: 'Some text',
|
1147
|
+
tree: { sha: '7145fc122e70bf51e1d' },
|
1148
|
+
comment_count: 0,
|
1149
|
+
verification: { verified: true, reason: 'valid', signature: '', payload: '' }
|
1150
|
+
},
|
1151
|
+
author: { login: 'yegor256', id: 526_301, type: 'User', site_admin: false },
|
1152
|
+
committer: { login: 'yegor256', id: 526_301, type: 'User', site_admin: false },
|
1153
|
+
parents: [
|
1154
|
+
{ sha: '8c8278efedbd795e70' },
|
1155
|
+
{ sha: '7dfd2e0186113f66f' }
|
1156
|
+
]
|
1157
|
+
},
|
1158
|
+
status: 'diverged',
|
1159
|
+
ahead_by: 1,
|
1160
|
+
behind_by: 30,
|
1161
|
+
total_commits: 1,
|
1162
|
+
commits: [
|
1163
|
+
{
|
1164
|
+
sha: 'ee04386901692abb',
|
1165
|
+
commit: {
|
1166
|
+
author: {
|
1167
|
+
name: 'Yegor Bugayenko', email: 'yegor256@gmail.com', date: Time.parse('2024-08-25 15:57:35 UTC')
|
1168
|
+
},
|
1169
|
+
committer: {
|
1170
|
+
name: 'Yegor Bugayenko', email: 'yegor256@gmail.com', date: Time.parse('2024-08-25 15:57:35 UTC')
|
1171
|
+
},
|
1172
|
+
message: 'Some text',
|
1173
|
+
tree: { sha: '7a6124a500aed8c92' },
|
1174
|
+
comment_count: 0,
|
1175
|
+
verification: { verified: false, reason: 'unsigned', signature: nil, payload: nil }
|
1176
|
+
},
|
1177
|
+
author: { login: 'yegor256', id: 526_301, type: 'User', site_admin: false },
|
1178
|
+
committer: { login: 'yegor256', id: 526_301, type: 'User', site_admin: false },
|
1179
|
+
parents: [{ sha: '8e4348746638595a7e' }]
|
1180
|
+
}
|
1181
|
+
],
|
1182
|
+
files: [
|
1183
|
+
{
|
1184
|
+
sha: '9e100c7246c0cc9', filename: 'file.txt', status: 'modified',
|
1185
|
+
additions: 1, deletions: 1, changes: 2,
|
1186
|
+
patch: '@@ -24,7 +24,7 @@ text ...'
|
1187
|
+
},
|
1188
|
+
{
|
1189
|
+
sha: 'f97818271059e5455', filename: 'file2.txt', status: 'modified',
|
1190
|
+
additions: 1, deletions: 1, changes: 2,
|
1191
|
+
patch: '@@ -25,7 +25,7 @@ text ...'
|
1192
|
+
},
|
1193
|
+
{
|
1194
|
+
sha: '5a957c57d090bfeccb', filename: 'file3.txt', status: 'modified',
|
1195
|
+
additions: 1, deletions: 1, changes: 2,
|
1196
|
+
patch: '@@ -27,7 +27,7 @@ text ...'
|
1197
|
+
}
|
1198
|
+
]
|
1199
|
+
}
|
1200
|
+
end
|
1087
1201
|
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.66
|
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-
|
11
|
+
date: 2024-09-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: backtrace
|