Skip to content

Commit 8dcba24

Browse files
committed
Require MFA for all gem owners
From https://guides.rubygems.org/mfa-requirement-opt-in/ > You can opt-in a gem you are managing by releasing a version that has metadata.rubygems_mfa_required set to true. > ... > The version being released with rubygems_mfa_required set and all the following versions will require you to have MFA enabled. Once enabled, the gem page will show NEW VERSIONS REQUIRE MFA in the sidebar, and all versions published with rubygems_mfa_required set will also show VERSION PUBLISHED WITH MFA:
1 parent c176a5e commit 8dcba24

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

heroics.gemspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ Gem::Specification.new do |spec|
1919
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
2020
spec.test_files = spec.files.grep('^(test|spec|features)/')
2121
spec.require_paths = ['lib']
22+
spec.metadata["rubygems_mfa_required"] = "true"
2223

2324
spec.add_development_dependency 'bundler'
2425
spec.add_development_dependency 'minitest', '4.7.5'

0 commit comments

Comments
 (0)