Skip to content

Commit 6ad8fa5

Browse files
committed
Modernize gem.
1 parent 7ffe926 commit 6ad8fa5

File tree

8 files changed

+76
-2
lines changed

8 files changed

+76
-2
lines changed

.github/workflows/rubocop.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: RuboCop
2+
3+
on: [push, pull_request]
4+
5+
permissions:
6+
contents: read
7+
8+
env:
9+
CONSOLE_OUTPUT: XTerm
10+
11+
jobs:
12+
check:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
- uses: ruby/setup-ruby@v1
18+
with:
19+
ruby-version: ruby
20+
bundler-cache: true
21+
22+
- name: Run RuboCop
23+
timeout-minutes: 10
24+
run: bundle exec rubocop

.github/workflows/test-coverage.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
- name: Run tests
3434
timeout-minutes: 5
3535
run: bundle exec bake test
36-
36+
3737
- uses: actions/upload-artifact@v3
3838
with:
3939
name: coverage-${{matrix.os}}-${{matrix.ruby}}

.rubocop.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
AllCops:
2+
DisabledByDefault: true
3+
4+
Layout/IndentationStyle:
5+
Enabled: true
6+
EnforcedStyle: tabs
7+
8+
Layout/InitialIndentation:
9+
Enabled: true
10+
11+
Layout/IndentationWidth:
12+
Enabled: true
13+
Width: 1
14+
15+
Layout/IndentationConsistency:
16+
Enabled: true
17+
EnforcedStyle: normal
18+
19+
Layout/EndAlignment:
20+
Enabled: true
21+
EnforcedStyleAlignWith: start_of_line
22+
23+
Layout/BeginEndAlignment:
24+
Enabled: true
25+
EnforcedStyleAlignWith: start_of_line
26+
27+
Layout/ElseAlignment:
28+
Enabled: true
29+
30+
Layout/DefEndAlignment:
31+
Enabled: true
32+
33+
Layout/CaseIndentation:
34+
Enabled: true
35+
36+
Layout/CommentIndentation:
37+
Enabled: true
38+
39+
Layout/EmptyLinesAroundClassBody:
40+
Enabled: true
41+
42+
Layout/EmptyLinesAroundModuleBody:
43+
Enabled: true
44+
45+
Style/FrozenStringLiteralComment:
46+
Enabled: true

async-http-faraday.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Gem::Specification.new do |spec|
77
spec.version = Async::HTTP::Faraday::VERSION
88

99
spec.summary = "Provides an adaptor between async-http and faraday."
10-
spec.authors = ["Samuel Williams", "Igor Sidorov", "Andreas Garnaes", "Genki Takiuchi", "Olle Jonsson", "Benoit Daloze", "Denis Talakevich", "Flavio Fernandes"]
10+
spec.authors = ["Samuel Williams", "Igor Sidorov", "Andreas Garnaes", "Genki Takiuchi", "Olle Jonsson", "Benoit Daloze", "Denis Talakevich", "Flavio Fernandes", "Jacob Frautschi"]
1111
spec.license = "MIT"
1212

1313
spec.cert_chain = ['release.cert']

gems.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
gem "sus"
1919
gem "covered"
2020
gem "decode"
21+
gem "rubocop"
2122

2223
gem "bake-test"
2324
gem "bake-test-external"

lib/async/http/faraday/adapter.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
# Copyright, 2019-2020, by Igor Sidorov.
88
# Copyright, 2023, by Genki Takiuchi.
99
# Copyright, 2023, by Flavio Fernandes.
10+
# Copyright, 2024, by Jacob Frautschi.
1011

1112
require 'faraday'
1213
require 'faraday/adapter'

license.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Copyright, 2020-2021, by Olle Jonsson.
88
Copyright, 2020, by Benoit Daloze.
99
Copyright, 2023, by Genki Takiuchi.
1010
Copyright, 2023, by Flavio Fernandes.
11+
Copyright, 2024, by Jacob Frautschi.
1112

1213
Permission is hereby granted, free of charge, to any person obtaining a copy
1314
of this software and associated documentation files (the "Software"), to deal

test/async/http/faraday/adapter.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
# Copyright, 2019, by Denis Talakevich.
77
# Copyright, 2019-2020, by Igor Sidorov.
88
# Copyright, 2023, by Genki Takiuchi.
9+
# Copyright, 2024, by Jacob Frautschi.
910

1011
require 'async/http/faraday'
1112

0 commit comments

Comments
 (0)