Skip to content

Commit

Permalink
Merge pull request #620 from ayushpoddar/disable-mfa-duplicate
Browse files Browse the repository at this point in the history
Remove `rubygems_mfa_required` setting and disable RequireMFA cop
  • Loading branch information
avdv authored Jul 12, 2024
2 parents 24e402c + 0b7b88c commit f729bea
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 4 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,21 @@ on:
# pull_request_target:
# types: [opened, reopened, synchronize]

permissions:
contents: read

jobs:
update_release_draft:
runs-on: ubuntu-latest
permissions:
# write permission is required to create a github release
contents: write
# write permission is required for autolabeler
# otherwise, read permission is required at least
pull-requests: write
steps:
# Drafts your next Release notes as Pull Requests are merged into "master"
- uses: release-drafter/release-drafter@v5
- uses: release-drafter/release-drafter@v6
# (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml
# with:
# config-name: my-config.yml
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@ jobs:
strategy:
matrix:
ruby-version: ['2.6', '2.7', '3.0', '3.1']
os: [ubuntu-latest, macos-latest, windows-latest]
os:
- ubuntu-latest
- macos-latest
# FIXME: builds on Windows are broken because of hpricot
# - windows-latest

steps:
- uses: actions/checkout@v2
Expand Down
3 changes: 3 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@ Metrics/CyclomaticComplexity:
Metrics/PerceivedComplexity:
Max: 8

Gemspec/RequireMFA:
Enabled: false

# TODO -----------------------------------------------------------------

Style/Documentation:
Expand Down
1 change: 0 additions & 1 deletion colorls.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -81,5 +81,4 @@ Gem::Specification.new do |spec|
spec.add_development_dependency 'rubocop-rspec', '~> 2.20.0'
spec.add_development_dependency 'rubygems-tasks', '~> 0'
spec.add_development_dependency 'simplecov', '~> 0.22.0'
spec.metadata['rubygems_mfa_required'] = 'true'
end
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
add_filter '/spec/'
end

if ENV['CI'] == 'true'
if ENV['CI'] == 'never' # FIXME: migrate to new Codecov uploader / action
require 'codecov'
SimpleCov.formatter = SimpleCov::Formatter::Codecov
end
Expand Down

0 comments on commit f729bea

Please sign in to comment.