pennyworth 13.7.0 → 14.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/README.adoc +47 -27
- data/lib/pennyworth/cli/shell.rb +2 -2
- data/lib/pennyworth/integrations/git_hub/client.rb +6 -41
- data/lib/pennyworth/models/encoding.rb +1 -1
- data/lib/pennyworth/models/http_status.rb +6 -1
- data/lib/pennyworth/models/standard_error.rb +6 -1
- data/lib/pennyworth/models/system/error.rb +1 -1
- data/lib/pennyworth/models/system/signal.rb +1 -1
- data/lib/pennyworth/models/text.rb +1 -1
- data/lib/pennyworth/presenters/gem.rb +0 -5
- data/lib/pennyworth/presenters/repository.rb +0 -5
- data/lib/pennyworth/presenters/standard_error.rb +1 -1
- data/pennyworth.gemspec +10 -9
- data.tar.gz.sig +0 -0
- metadata +32 -19
- metadata.gz.sig +0 -0
- data/lib/pennyworth/integrations/git_hub/response.rb +0 -33
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 93d16f682b00a348d30b98f13d0c4c5d1db1ba8694d72f6e9911021806568083
|
4
|
+
data.tar.gz: 242c572a1a138efd7140430e050a5e8347d1d44b775572bcc06550ef5b6f3991
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2f12042ed873e355f7146b16ad8c11dbd7ac1bcf93d5c2ec8f577d21ea1eadb04cbfa763749332317c86d3425862336c9438c08690ea87769b8e1eb04af2c7d3
|
7
|
+
data.tar.gz: 200a0fe420af8c07a6f93e8ee9524753f15a79972f730b5d2c1778e8e1a477709104b02f148dfb748c58a77c55dbc9a0fd899a7e4db48f236dcfabbcb6159e35
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/README.adoc
CHANGED
@@ -232,7 +232,7 @@ Provides quick access to link:https://www.alchemists.io[Alchemists] resources.
|
|
232
232
|
|
233
233
|
1. link:https://www.alchemists.io/public/alfred/workflows/alchemists.alfredworkflow[Download] and
|
234
234
|
double click to install.
|
235
|
-
2. Click on _Configure Workflow_ to
|
235
|
+
2. Click on _Configure Workflow_ to view documentation.
|
236
236
|
|
237
237
|
==== Dry RB
|
238
238
|
|
@@ -242,7 +242,7 @@ Provides quick access to link:https://dry-rb.org[Dry RB] resources.
|
|
242
242
|
|
243
243
|
1. link:https://www.alchemists.io/public/alfred/workflows/dry.alfredworkflow[Download] and double
|
244
244
|
click to install.
|
245
|
-
2. Click on _Configure Workflow_ to
|
245
|
+
2. Click on _Configure Workflow_ to view documentation.
|
246
246
|
|
247
247
|
==== RuboCop
|
248
248
|
|
@@ -252,7 +252,7 @@ Provides quick access to link:https://docs.rubocop.org/rubocop[RuboCop] resource
|
|
252
252
|
|
253
253
|
1. link:https://www.alchemists.io/public/alfred/workflows/rubocop.alfredworkflow[Download] and
|
254
254
|
double click to install.
|
255
|
-
2. Click on _Configure Workflow_ to
|
255
|
+
2. Click on _Configure Workflow_ to view documentation.
|
256
256
|
|
257
257
|
==== Ruby
|
258
258
|
|
@@ -262,7 +262,7 @@ Provides quick access to link:https://www.ruby-lang.org[Ruby] resources.
|
|
262
262
|
|
263
263
|
1. link:https://www.alchemists.io/public/alfred/workflows/ruby.alfredworkflow[Download] and
|
264
264
|
double click to install.
|
265
|
-
2. Click on _Configure Workflow_ to
|
265
|
+
2. Click on _Configure Workflow_ to view documentation.
|
266
266
|
|
267
267
|
==== Other
|
268
268
|
|
@@ -277,7 +277,7 @@ full definition each time.
|
|
277
277
|
|
278
278
|
1. link:https://www.alchemists.io/public/alfred/workflows/acronyms.alfredworkflow[Download] and
|
279
279
|
double click to install.
|
280
|
-
2. Click on _Configure Workflow_ to
|
280
|
+
2. Click on _Configure Workflow_ to view documentation.
|
281
281
|
|
282
282
|
===== Alpine
|
283
283
|
|
@@ -287,7 +287,7 @@ Provides quick access to link:https://www.alpinelinux.org[Alpine Linux] resource
|
|
287
287
|
|
288
288
|
1. link:https://www.alchemists.io/public/alfred/workflows/alpine.alfredworkflow[Download] and double
|
289
289
|
click to install.
|
290
|
-
2. Click on _Configure Workflow_ to
|
290
|
+
2. Click on _Configure Workflow_ to view documentation.
|
291
291
|
|
292
292
|
===== Applications
|
293
293
|
|
@@ -297,7 +297,7 @@ Launches your engineering environment but can be tweaked to your preferences. Us
|
|
297
297
|
|
298
298
|
1. link:https://www.alchemists.io/public/alfred/workflows/applications.alfredworkflow[Download] and
|
299
299
|
double click to install.
|
300
|
-
2. Click on _Configure Workflow_ to
|
300
|
+
2. Click on _Configure Workflow_ to view documentation.
|
301
301
|
|
302
302
|
===== Bash
|
303
303
|
|
@@ -307,7 +307,7 @@ Provides quick access to link:https://www.gnu.org/software/bash[Bash] resources.
|
|
307
307
|
|
308
308
|
1. link:https://www.alchemists.io/public/alfred/workflows/bash.alfredworkflow[Download] and
|
309
309
|
double click to install.
|
310
|
-
2. Click on _Configure Workflow_ to
|
310
|
+
2. Click on _Configure Workflow_ to view documentation.
|
311
311
|
|
312
312
|
===== Bio
|
313
313
|
|
@@ -317,7 +317,7 @@ Provides biographical calculations and information.
|
|
317
317
|
|
318
318
|
1. link:https://www.alchemists.io/public/alfred/workflows/bio.alfredworkflow[Download] and
|
319
319
|
double click to install.
|
320
|
-
2. Click on _Configure Workflow_ to
|
320
|
+
2. Click on _Configure Workflow_ to view documentation.
|
321
321
|
|
322
322
|
===== Browsers
|
323
323
|
|
@@ -327,7 +327,7 @@ Provides quick access to browser resources.
|
|
327
327
|
|
328
328
|
1. link:https://www.alchemists.io/public/alfred/workflows/browsers.alfredworkflow[Download] and
|
329
329
|
double click to install.
|
330
|
-
2. Click on _Configure Workflow_ to
|
330
|
+
2. Click on _Configure Workflow_ to view documentation.
|
331
331
|
|
332
332
|
===== Bundler
|
333
333
|
|
@@ -337,7 +337,7 @@ Provides quick access to link:https://bundler.io[Bundler] related resources.
|
|
337
337
|
|
338
338
|
1. link:https://www.alchemists.io/public/alfred/workflows/bundler.alfredworkflow[Download] and
|
339
339
|
double click to install.
|
340
|
-
2. Click on _Configure Workflow_ to
|
340
|
+
2. Click on _Configure Workflow_ to view documentation.
|
341
341
|
|
342
342
|
===== Circle CI
|
343
343
|
|
@@ -347,7 +347,7 @@ Provides quick access to link:https://circleci.com/[Circle CI] resources.
|
|
347
347
|
|
348
348
|
1. link:https://www.alchemists.io/public/alfred/workflows/circle_ci.alfredworkflow[Download] and
|
349
349
|
double click to install.
|
350
|
-
2. Click on _Configure Workflow_ to
|
350
|
+
2. Click on _Configure Workflow_ to view documentation.
|
351
351
|
|
352
352
|
===== Crystal
|
353
353
|
|
@@ -357,7 +357,7 @@ Provides quick access to link:https://crystal-lang.org[Crystal] resources.
|
|
357
357
|
|
358
358
|
1. link:https://www.alchemists.io/public/alfred/workflows/crystal.alfredworkflow[Download] and
|
359
359
|
double click to install.
|
360
|
-
2. Click on _Configure Workflow_ to
|
360
|
+
2. Click on _Configure Workflow_ to view documentation.
|
361
361
|
|
362
362
|
===== CSS
|
363
363
|
|
@@ -367,7 +367,7 @@ Provides quick access to link:https://www.w3.org/Style/CSS/specs.en.html[CSS] re
|
|
367
367
|
|
368
368
|
1. link:https://www.alchemists.io/public/alfred/workflows/css.alfredworkflow[Download] and double
|
369
369
|
click to install.
|
370
|
-
2. Click on _Configure Workflow_ to
|
370
|
+
2. Click on _Configure Workflow_ to view documentation.
|
371
371
|
|
372
372
|
===== Docker
|
373
373
|
|
@@ -377,7 +377,7 @@ Provides quick access to link:https://www.docker.com[Docker] resources.
|
|
377
377
|
|
378
378
|
1. link:https://www.alchemists.io/public/alfred/workflows/docker.alfredworkflow[Download] and
|
379
379
|
double click to install.
|
380
|
-
2. Click on _Configure Workflow_ to
|
380
|
+
2. Click on _Configure Workflow_ to view documentation.
|
381
381
|
|
382
382
|
===== Elm
|
383
383
|
|
@@ -387,7 +387,27 @@ Provides quick access to link:https://elm-lang.org[Elm] resources.
|
|
387
387
|
|
388
388
|
1. link:https://www.alchemists.io/public/alfred/workflows/elm.alfredworkflow[Download] and double
|
389
389
|
click to install.
|
390
|
-
2. Click on _Configure Workflow_ to
|
390
|
+
2. Click on _Configure Workflow_ to view documentation.
|
391
|
+
|
392
|
+
===== Farnam Street
|
393
|
+
|
394
|
+
image:https://www.alchemists.io/images/projects/pennyworth/screenshots/farnam_street.png[Farnam Street workflow screenshot.,width=706,height=631,role=focal_point]
|
395
|
+
|
396
|
+
Provides quick access to link:https://fs.blog[Farnam Street] resources.
|
397
|
+
|
398
|
+
1. link:https://www.alchemists.io/public/alfred/workflows/farnam_street.alfredworkflow[Download] and
|
399
|
+
double click to install.
|
400
|
+
2. Click on _Configure Workflow_ to view documentation.
|
401
|
+
|
402
|
+
===== Git
|
403
|
+
|
404
|
+
image:https://www.alchemists.io/images/projects/pennyworth/screenshots/git.png[Git workflow screenshot.,width=706,height=415,role=focal_point]
|
405
|
+
|
406
|
+
Provides quick access to link:https://git-scm.com[Git] resources.
|
407
|
+
|
408
|
+
1. link:https://www.alchemists.io/public/alfred/workflows/git.alfredworkflow[Download] and
|
409
|
+
double click to install.
|
410
|
+
2. Click on _Configure Workflow_ to view documentation.
|
391
411
|
|
392
412
|
===== GitHub
|
393
413
|
|
@@ -397,7 +417,7 @@ Provides quick access to link:https://github.com[GitHub] resources.
|
|
397
417
|
|
398
418
|
1. link:https://www.alchemists.io/public/alfred/workflows/github.alfredworkflow[Download] and
|
399
419
|
double click to install.
|
400
|
-
2. Click on _Configure Workflow_ to
|
420
|
+
2. Click on _Configure Workflow_ to view documentation.
|
401
421
|
|
402
422
|
===== Hanami
|
403
423
|
|
@@ -407,7 +427,7 @@ Provides quick access to link:https://hanamirb.org[Hanami] resources.
|
|
407
427
|
|
408
428
|
1. link:https://www.alchemists.io/public/alfred/workflows/hanami.alfredworkflow[Download] and
|
409
429
|
double click to install.
|
410
|
-
2. Click on _Configure Workflow_ to
|
430
|
+
2. Click on _Configure Workflow_ to view documentation.
|
411
431
|
|
412
432
|
===== Jitsi
|
413
433
|
|
@@ -417,7 +437,7 @@ Provides quick access to link:https://jitsi.org[Jitsi] resources.
|
|
417
437
|
|
418
438
|
1. link:https://www.alchemists.io/public/alfred/workflows/jitsi.alfredworkflow[Download] and
|
419
439
|
double click to install.
|
420
|
-
2. Click on _Configure Workflow_ to
|
440
|
+
2. Click on _Configure Workflow_ to view documentation.
|
421
441
|
|
422
442
|
===== macOS
|
423
443
|
|
@@ -427,7 +447,7 @@ Provides quick access to macOS resources.
|
|
427
447
|
|
428
448
|
1. link:https://www.alchemists.io/public/alfred/workflows/mac_os.alfredworkflow[Download] and
|
429
449
|
double click to install.
|
430
|
-
2. Click on _Configure Workflow_ to
|
450
|
+
2. Click on _Configure Workflow_ to view documentation.
|
431
451
|
|
432
452
|
===== Rack
|
433
453
|
|
@@ -437,7 +457,7 @@ Provides quick access to link:https://github.com/rack/rack[Rack] resources.
|
|
437
457
|
|
438
458
|
1. link:https://www.alchemists.io/public/alfred/workflows/rack.alfredworkflow[Download] and double
|
439
459
|
click to install.
|
440
|
-
2. Click on _Configure Workflow_ to
|
460
|
+
2. Click on _Configure Workflow_ to view documentation.
|
441
461
|
|
442
462
|
===== RSpec
|
443
463
|
|
@@ -447,7 +467,7 @@ Provides quick access to link:https://rspec.info[RSpec] resources.
|
|
447
467
|
|
448
468
|
1. link:https://www.alchemists.io/public/alfred/workflows/rspec.alfredworkflow[Download] and double
|
449
469
|
click to install.
|
450
|
-
2. Click on _Configure Workflow_ to
|
470
|
+
2. Click on _Configure Workflow_ to view documentation.
|
451
471
|
|
452
472
|
===== Ruby on Rails
|
453
473
|
|
@@ -456,7 +476,7 @@ image:https://www.alchemists.io/images/projects/pennyworth/screenshots/ruby_on_r
|
|
456
476
|
Provides access to link:https://https://rubyonrails.org[Ruby on Rails] resources.
|
457
477
|
|
458
478
|
1. link:https://www.alchemists.io/public/alfred/workflows/ruby_on_rails.alfredworkflow[Download] and double click to install.
|
459
|
-
2. Click on _Configure Workflow_ to
|
479
|
+
2. Click on _Configure Workflow_ to view documentation.
|
460
480
|
|
461
481
|
===== Slack
|
462
482
|
|
@@ -466,7 +486,7 @@ Provides quick access to link:https://slack.com[Slack] resources.
|
|
466
486
|
|
467
487
|
1. link:https://www.alchemists.io/public/alfred/workflows/slack.alfredworkflow[Download] and
|
468
488
|
double click to install.
|
469
|
-
2. Click on _Configure Workflow_ to
|
489
|
+
2. Click on _Configure Workflow_ to view documentation.
|
470
490
|
|
471
491
|
===== SSL
|
472
492
|
|
@@ -475,7 +495,7 @@ image:https://www.alchemists.io/images/projects/pennyworth/screenshots/ssl.png[S
|
|
475
495
|
Provides quick access to SSL resources for the security conscious.
|
476
496
|
|
477
497
|
1. link:https://www.alchemists.io/public/alfred/workflows/ssl.alfredworkflow[Download] and double click to install.
|
478
|
-
2. Click on _Configure Workflow_ to
|
498
|
+
2. Click on _Configure Workflow_ to view documentation.
|
479
499
|
|
480
500
|
===== Terraform
|
481
501
|
|
@@ -485,7 +505,7 @@ Provides quick access to link:https://www.terraform.io[Terraform] resources.
|
|
485
505
|
|
486
506
|
1. link:https://www.alchemists.io/public/alfred/workflows/terraform.alfredworkflow[Download] and
|
487
507
|
double click to install.
|
488
|
-
2. Click on _Configure Workflow_ to
|
508
|
+
2. Click on _Configure Workflow_ to view documentation.
|
489
509
|
|
490
510
|
===== Text
|
491
511
|
|
@@ -495,7 +515,7 @@ Provides general text manipulation utilities beyond the Pennyworth powered _text
|
|
495
515
|
|
496
516
|
1. link:https://www.alchemists.io/public/alfred/workflows/text.alfredworkflow[Download] and
|
497
517
|
double click to install.
|
498
|
-
2. Click on _Configure Workflow_ to
|
518
|
+
2. Click on _Configure Workflow_ to view documentation.
|
499
519
|
|
500
520
|
=== Troubleshooting
|
501
521
|
|
data/lib/pennyworth/cli/shell.rb
CHANGED
@@ -38,8 +38,8 @@ module Pennyworth
|
|
38
38
|
in action_config: Symbol => action then config.call action
|
39
39
|
in action_encodings: true then encodings.call
|
40
40
|
in action_git_hub: :organization
|
41
|
-
git_hub.call "orgs/#{configuration.git_hub_organization}
|
42
|
-
in action_git_hub: :user then git_hub.call "users/#{configuration.git_hub_user}
|
41
|
+
git_hub.call "orgs/#{configuration.git_hub_organization}"
|
42
|
+
in action_git_hub: :user then git_hub.call "users/#{configuration.git_hub_user}"
|
43
43
|
in action_http_statuses: true then http_statuses.call
|
44
44
|
in action_ruby_gems: true
|
45
45
|
ruby_gems.call "owners/#{configuration.ruby_gems_owner}/gems.json"
|
@@ -1,56 +1,21 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require "
|
3
|
+
require "ghub"
|
4
4
|
|
5
5
|
module Pennyworth
|
6
6
|
module Integrations
|
7
7
|
module GitHub
|
8
|
-
# Provides low-level
|
8
|
+
# Provides low-level access to the GitHub API.
|
9
9
|
class Client
|
10
|
-
|
11
|
-
|
12
|
-
using Refinements::Arrays
|
13
|
-
|
14
|
-
HEADERS = {
|
15
|
-
accept: "application/vnd.github.v3+json",
|
16
|
-
content_type: "Content-Type: application/json; charset=utf-8"
|
17
|
-
}.freeze
|
18
|
-
|
19
|
-
def initialize headers: HEADERS, **dependencies
|
20
|
-
super(**dependencies)
|
21
|
-
@headers = headers
|
10
|
+
def initialize endpoint: Ghub::Endpoints::Repositories::Root.new
|
11
|
+
@endpoint = endpoint
|
22
12
|
end
|
23
13
|
|
24
|
-
def get endpoint
|
25
|
-
paginate -> page { sole_get endpoint, parameters: parameters.merge(page:) }
|
26
|
-
end
|
14
|
+
def get(path) = endpoint.index(*path.split("/")).value_or([]).map(&:to_h)
|
27
15
|
|
28
16
|
private
|
29
17
|
|
30
|
-
attr_reader :
|
31
|
-
|
32
|
-
# :reek:FeatureEnvy
|
33
|
-
def paginate request, records: [], page: 1
|
34
|
-
response = request.call page
|
35
|
-
|
36
|
-
records.including(response.records)
|
37
|
-
.then do |updated_records|
|
38
|
-
return updated_records if response.last_page.zero?
|
39
|
-
|
40
|
-
paginate request, records: updated_records, page: response.next_page
|
41
|
-
end
|
42
|
-
end
|
43
|
-
|
44
|
-
def sole_get endpoint, parameters: {}
|
45
|
-
http.headers(headers)
|
46
|
-
.basic_auth(user: api_login, pass: api_token)
|
47
|
-
.get("#{configuration.git_hub_api_url}/#{endpoint}", params: parameters)
|
48
|
-
.then { |response| Response.new response }
|
49
|
-
end
|
50
|
-
|
51
|
-
def api_login = environment.fetch "GITHUB_API_LOGIN"
|
52
|
-
|
53
|
-
def api_token = environment.fetch "GITHUB_API_TOKEN"
|
18
|
+
attr_reader :endpoint
|
54
19
|
end
|
55
20
|
end
|
56
21
|
end
|
@@ -1,8 +1,13 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
module Pennyworth
|
4
|
+
# :reek:ModuleInitialize
|
4
5
|
module Models
|
5
6
|
# Defines HTTP status details.
|
6
|
-
HTTPStatus =
|
7
|
+
HTTPStatus = Data.define :code, :label, :url do
|
8
|
+
def initialize code: nil, label: nil, url: nil
|
9
|
+
super
|
10
|
+
end
|
11
|
+
end
|
7
12
|
end
|
8
13
|
end
|
@@ -1,8 +1,13 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
module Pennyworth
|
4
|
+
# :reek:ModuleInitialize
|
4
5
|
module Models
|
5
6
|
# Defines a standard error.
|
6
|
-
StandardError =
|
7
|
+
StandardError = Data.define :name, :file_path, :line_number do
|
8
|
+
def initialize name: nil, file_path: nil, line_number: nil
|
9
|
+
super
|
10
|
+
end
|
11
|
+
end
|
7
12
|
end
|
8
13
|
end
|
@@ -30,11 +30,6 @@ module Pennyworth
|
|
30
30
|
|
31
31
|
def source_url = record.fetch(:source_code_uri)
|
32
32
|
|
33
|
-
def changes_url
|
34
|
-
warn "[DEPRECATION]: #changes_url is deprecated, use #versions_url instead."
|
35
|
-
versions_url
|
36
|
-
end
|
37
|
-
|
38
33
|
def issues_url = record.fetch(:bug_tracker_uri)
|
39
34
|
|
40
35
|
def versions_url = record.fetch(:changelog_uri)
|
@@ -23,11 +23,6 @@ module Pennyworth
|
|
23
23
|
|
24
24
|
def source_url = record.fetch(:html_url)
|
25
25
|
|
26
|
-
def changes_url
|
27
|
-
warn "[DEPRECATION]: #changes_url is deprecated, use #versions_url instead."
|
28
|
-
versions_url
|
29
|
-
end
|
30
|
-
|
31
26
|
def issues_url = "#{source_url}/issues"
|
32
27
|
|
33
28
|
def versions_url = "#{site_url}/versions"
|
data/pennyworth.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |spec|
|
4
4
|
spec.name = "pennyworth"
|
5
|
-
spec.version = "
|
5
|
+
spec.version = "14.0.0"
|
6
6
|
spec.authors = ["Brooke Kuhlmann"]
|
7
7
|
spec.email = ["brooke@alchemists.io"]
|
8
8
|
spec.homepage = "https://www.alchemists.io/projects/pennyworth"
|
@@ -22,15 +22,16 @@ Gem::Specification.new do |spec|
|
|
22
22
|
spec.signing_key = Gem.default_key_path
|
23
23
|
spec.cert_chain = [Gem.default_cert_path]
|
24
24
|
|
25
|
-
spec.required_ruby_version = "~> 3.
|
26
|
-
spec.add_dependency "cogger", "~> 0.
|
25
|
+
spec.required_ruby_version = "~> 3.2"
|
26
|
+
spec.add_dependency "cogger", "~> 0.5"
|
27
27
|
spec.add_dependency "dry-container", "~> 0.11"
|
28
|
-
spec.add_dependency "
|
29
|
-
spec.add_dependency "
|
30
|
-
spec.add_dependency "
|
31
|
-
spec.add_dependency "
|
32
|
-
spec.add_dependency "
|
33
|
-
spec.add_dependency "
|
28
|
+
spec.add_dependency "ghub", "~> 0.3"
|
29
|
+
spec.add_dependency "http", "~> 5.1"
|
30
|
+
spec.add_dependency "infusible", "~> 1.0"
|
31
|
+
spec.add_dependency "rack", "~> 3.0"
|
32
|
+
spec.add_dependency "refinements", "~> 10.0"
|
33
|
+
spec.add_dependency "runcom", "~> 9.0"
|
34
|
+
spec.add_dependency "spek", "~> 1.0"
|
34
35
|
spec.add_dependency "zeitwerk", "~> 2.6"
|
35
36
|
|
36
37
|
spec.bindir = "exe"
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pennyworth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 14.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brooke Kuhlmann
|
@@ -28,7 +28,7 @@ cert_chain:
|
|
28
28
|
CxDe2+VuChj4I1nvIHdu+E6XoEVlanUPKmSg6nddhkKn2gC45Kyzh6FZqnzH/CRp
|
29
29
|
RFE=
|
30
30
|
-----END CERTIFICATE-----
|
31
|
-
date: 2022-
|
31
|
+
date: 2022-12-27 00:00:00.000000000 Z
|
32
32
|
dependencies:
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: cogger
|
@@ -36,14 +36,14 @@ dependencies:
|
|
36
36
|
requirements:
|
37
37
|
- - "~>"
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version: '0.
|
39
|
+
version: '0.5'
|
40
40
|
type: :runtime
|
41
41
|
prerelease: false
|
42
42
|
version_requirements: !ruby/object:Gem::Requirement
|
43
43
|
requirements:
|
44
44
|
- - "~>"
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version: '0.
|
46
|
+
version: '0.5'
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: dry-container
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
@@ -58,90 +58,104 @@ dependencies:
|
|
58
58
|
- - "~>"
|
59
59
|
- !ruby/object:Gem::Version
|
60
60
|
version: '0.11'
|
61
|
+
- !ruby/object:Gem::Dependency
|
62
|
+
name: ghub
|
63
|
+
requirement: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - "~>"
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: '0.3'
|
68
|
+
type: :runtime
|
69
|
+
prerelease: false
|
70
|
+
version_requirements: !ruby/object:Gem::Requirement
|
71
|
+
requirements:
|
72
|
+
- - "~>"
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: '0.3'
|
61
75
|
- !ruby/object:Gem::Dependency
|
62
76
|
name: http
|
63
77
|
requirement: !ruby/object:Gem::Requirement
|
64
78
|
requirements:
|
65
79
|
- - "~>"
|
66
80
|
- !ruby/object:Gem::Version
|
67
|
-
version: '5.
|
81
|
+
version: '5.1'
|
68
82
|
type: :runtime
|
69
83
|
prerelease: false
|
70
84
|
version_requirements: !ruby/object:Gem::Requirement
|
71
85
|
requirements:
|
72
86
|
- - "~>"
|
73
87
|
- !ruby/object:Gem::Version
|
74
|
-
version: '5.
|
88
|
+
version: '5.1'
|
75
89
|
- !ruby/object:Gem::Dependency
|
76
90
|
name: infusible
|
77
91
|
requirement: !ruby/object:Gem::Requirement
|
78
92
|
requirements:
|
79
93
|
- - "~>"
|
80
94
|
- !ruby/object:Gem::Version
|
81
|
-
version: '
|
95
|
+
version: '1.0'
|
82
96
|
type: :runtime
|
83
97
|
prerelease: false
|
84
98
|
version_requirements: !ruby/object:Gem::Requirement
|
85
99
|
requirements:
|
86
100
|
- - "~>"
|
87
101
|
- !ruby/object:Gem::Version
|
88
|
-
version: '
|
102
|
+
version: '1.0'
|
89
103
|
- !ruby/object:Gem::Dependency
|
90
104
|
name: rack
|
91
105
|
requirement: !ruby/object:Gem::Requirement
|
92
106
|
requirements:
|
93
107
|
- - "~>"
|
94
108
|
- !ruby/object:Gem::Version
|
95
|
-
version: '
|
109
|
+
version: '3.0'
|
96
110
|
type: :runtime
|
97
111
|
prerelease: false
|
98
112
|
version_requirements: !ruby/object:Gem::Requirement
|
99
113
|
requirements:
|
100
114
|
- - "~>"
|
101
115
|
- !ruby/object:Gem::Version
|
102
|
-
version: '
|
116
|
+
version: '3.0'
|
103
117
|
- !ruby/object:Gem::Dependency
|
104
118
|
name: refinements
|
105
119
|
requirement: !ruby/object:Gem::Requirement
|
106
120
|
requirements:
|
107
121
|
- - "~>"
|
108
122
|
- !ruby/object:Gem::Version
|
109
|
-
version: '
|
123
|
+
version: '10.0'
|
110
124
|
type: :runtime
|
111
125
|
prerelease: false
|
112
126
|
version_requirements: !ruby/object:Gem::Requirement
|
113
127
|
requirements:
|
114
128
|
- - "~>"
|
115
129
|
- !ruby/object:Gem::Version
|
116
|
-
version: '
|
130
|
+
version: '10.0'
|
117
131
|
- !ruby/object:Gem::Dependency
|
118
132
|
name: runcom
|
119
133
|
requirement: !ruby/object:Gem::Requirement
|
120
134
|
requirements:
|
121
135
|
- - "~>"
|
122
136
|
- !ruby/object:Gem::Version
|
123
|
-
version: '
|
137
|
+
version: '9.0'
|
124
138
|
type: :runtime
|
125
139
|
prerelease: false
|
126
140
|
version_requirements: !ruby/object:Gem::Requirement
|
127
141
|
requirements:
|
128
142
|
- - "~>"
|
129
143
|
- !ruby/object:Gem::Version
|
130
|
-
version: '
|
144
|
+
version: '9.0'
|
131
145
|
- !ruby/object:Gem::Dependency
|
132
146
|
name: spek
|
133
147
|
requirement: !ruby/object:Gem::Requirement
|
134
148
|
requirements:
|
135
149
|
- - "~>"
|
136
150
|
- !ruby/object:Gem::Version
|
137
|
-
version: '0
|
151
|
+
version: '1.0'
|
138
152
|
type: :runtime
|
139
153
|
prerelease: false
|
140
154
|
version_requirements: !ruby/object:Gem::Requirement
|
141
155
|
requirements:
|
142
156
|
- - "~>"
|
143
157
|
- !ruby/object:Gem::Version
|
144
|
-
version: '0
|
158
|
+
version: '1.0'
|
145
159
|
- !ruby/object:Gem::Dependency
|
146
160
|
name: zeitwerk
|
147
161
|
requirement: !ruby/object:Gem::Requirement
|
@@ -193,7 +207,6 @@ files:
|
|
193
207
|
- lib/pennyworth/import.rb
|
194
208
|
- lib/pennyworth/inflector.rb
|
195
209
|
- lib/pennyworth/integrations/git_hub/client.rb
|
196
|
-
- lib/pennyworth/integrations/git_hub/response.rb
|
197
210
|
- lib/pennyworth/integrations/ruby_gems/client.rb
|
198
211
|
- lib/pennyworth/loaders/encodings.rb
|
199
212
|
- lib/pennyworth/loaders/http_statuses.rb
|
@@ -244,14 +257,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
244
257
|
requirements:
|
245
258
|
- - "~>"
|
246
259
|
- !ruby/object:Gem::Version
|
247
|
-
version: '3.
|
260
|
+
version: '3.2'
|
248
261
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
249
262
|
requirements:
|
250
263
|
- - ">="
|
251
264
|
- !ruby/object:Gem::Version
|
252
265
|
version: '0'
|
253
266
|
requirements: []
|
254
|
-
rubygems_version: 3.
|
267
|
+
rubygems_version: 3.4.1
|
255
268
|
signing_key:
|
256
269
|
specification_version: 4
|
257
270
|
summary: A command line interface that augments Alfred workflows.
|
metadata.gz.sig
CHANGED
Binary file
|
@@ -1,33 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Pennyworth
|
4
|
-
module Integrations
|
5
|
-
module GitHub
|
6
|
-
# Represents a generic GitHub API response.
|
7
|
-
class Response
|
8
|
-
def initialize raw
|
9
|
-
@raw = raw
|
10
|
-
end
|
11
|
-
|
12
|
-
def next_page = page("next")
|
13
|
-
|
14
|
-
def last_page = page("last")
|
15
|
-
|
16
|
-
def records = success? ? JSON(raw.body, symbolize_names: true) : []
|
17
|
-
|
18
|
-
def success? = raw.status.success?
|
19
|
-
|
20
|
-
private
|
21
|
-
|
22
|
-
attr_reader :raw
|
23
|
-
|
24
|
-
def page reference
|
25
|
-
links.find { |link| link.include? reference }
|
26
|
-
.then { |link| String(link)[/page=(?<page>\d+)/, :page].to_i }
|
27
|
-
end
|
28
|
-
|
29
|
-
def links = String(raw.headers["Link"]).split(", ")
|
30
|
-
end
|
31
|
-
end
|
32
|
-
end
|
33
|
-
end
|