Skip to content

Commit 7182021

Browse files
committed
chore: fix github workflows
1 parent cb217a0 commit 7182021

File tree

6 files changed

+37
-6
lines changed

6 files changed

+37
-6
lines changed

.github/workflows/lint.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ jobs:
1919
uses: ruby/setup-ruby@v1
2020
with:
2121
ruby-version: ${{ matrix.ruby-version }}
22+
- name: Remove vscode gems
23+
run: bundle config set --local without vscode
2224
- name: Install dependencies
2325
run: bundle install
2426
- name: Run rubocop
25-
run: bundle exec rubocop
27+
run: bundle exec rubocop

.github/workflows/test.yml

+4
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,12 @@ jobs:
1919
uses: ruby/setup-ruby@v1
2020
with:
2121
ruby-version: ${{ matrix.ruby-version }}
22+
- name: Remove vscode gems
23+
run: bundle config set --local without vscode
2224
- name: Install dependencies
2325
run: bundle install
26+
- name: Enable file transport in git
27+
run: git config --global protocol.file.allow always
2428
- name: Run tests
2529
run: bundle exec rake test
2630
env:

.rubocop.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
inherit_from: .rubocop_todo.yml
2+
13
inherit_gem:
24
rubocop-rock: defaults.yml
35

@@ -111,4 +113,4 @@ Style/GlobalStdStream:
111113
Enabled: false
112114

113115
Style/OptionalBooleanParameter:
114-
Enabled: false
116+
Enabled: false

.rubocop_todo.yml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# This configuration was generated by
2+
# `rubocop --auto-gen-config`
3+
# on 2024-07-10 18:16:42 UTC using RuboCop version 1.28.2.
4+
# The point is for the user to remove these configuration records
5+
# one by one as the offenses are removed from the code base.
6+
# Note that changes in the inspected code, or installation of new
7+
# versions of RuboCop, may require this file to be generated again.
8+
9+
# Offense count: 2
10+
# Configuration parameters: Include.
11+
# Include: **/*.gemspec
12+
Gemspec/RubyVersionGlobalsUsage:
13+
Exclude:
14+
- 'autobuild.gemspec'

Gemfile

+7-2
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,17 @@ source 'https://rubygems.org'
22

33
gemspec
44

5+
group :lint do
6+
gem 'parallel', '1.24.0'
7+
gem 'rubocop', '1.28.2'
8+
gem 'rubocop-ast', '1.17.0'
9+
gem 'rubocop-rock'
10+
end
11+
512
group :vscode do
613
gem 'debase', '>= 0.2.2.beta10'
714
gem 'pry'
815
gem 'pry-byebug'
9-
gem 'rubocop', '>= 0.6.0'
10-
gem 'rubocop-rock'
1116
gem 'ruby-debug-ide', '>= 0.6.0'
1217
gem 'solargraph'
1318
end

autobuild.gemspec

+6-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ Gem::Specification.new do |s|
2424
.reject { |f| f.match(%r{^(test|spec|features)/}) }
2525

2626
s.add_runtime_dependency "concurrent-ruby", "~> 1.1"
27-
s.add_runtime_dependency "net-smtp" if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new("3.1.0")
27+
if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new("3.1.0")
28+
s.add_runtime_dependency "net-smtp"
29+
end
2830
s.add_runtime_dependency "pastel", "~> 0.7.0"
2931
s.add_runtime_dependency "rake", "~> 13.0"
3032
s.add_runtime_dependency 'tty-cursor', '~> 0.7.0'
@@ -36,5 +38,7 @@ Gem::Specification.new do |s|
3638
s.add_development_dependency "minitest", "~> 5.0", ">= 5.0"
3739
s.add_development_dependency "simplecov"
3840
s.add_development_dependency "timecop"
39-
s.add_development_dependency "webrick" if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new("3.0.0")
41+
if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new("3.0.0")
42+
s.add_development_dependency "webrick"
43+
end
4044
end

0 commit comments

Comments
 (0)