Skip to content

Commit dc91505

Browse files
committed
Set minimum Ruby version to 2.6.0 and enable MFA
1 parent 5d37f23 commit dc91505

1 file changed

Lines changed: 5 additions & 8 deletions

File tree

administrate-materialize-theme.gemspec

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,11 @@ Gem::Specification.new do |spec|
1616
spec.description = "A Material Design theme for Administrate using Materialize framework"
1717
spec.license = "MIT"
1818

19-
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
20-
# to allow pushing to a single host or delete this section to allow pushing to any host.
21-
if spec.respond_to?(:metadata)
22-
# spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'"
23-
else
24-
raise "RubyGems 2.0 or newer is required to protect against " \
25-
"public gem pushes."
26-
end
19+
spec.required_ruby_version = '>= 2.6.0'
20+
21+
spec.metadata['homepage_uri'] = spec.homepage
22+
spec.metadata['source_code_uri'] = spec.homepage
23+
spec.metadata['rubygems_mfa_required'] = 'true'
2724

2825
spec.files = Dir["{app,lib}/**/*", "MIT-LICENSE", "Rakefile", "README.md"]
2926

0 commit comments

Comments
 (0)