Skip to content

Commit 341bab1

Browse files
committed
Actualize gemspec
Remake homepage, add a lot of metadata, including `rubygems_mfa_required` to resolve RuboCop offense.
1 parent 5547196 commit 341bab1

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

grape-swagger-representable.gemspec

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,25 @@ Gem::Specification.new do |s|
99
s.email = ['[email protected]']
1010

1111
s.summary = 'Grape swagger adapter to support representable object parsing'
12-
s.homepage = 'https://github.com/ruby-grape/grape-swagger-representable'
1312
s.license = 'MIT'
1413

1514
s.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
1615
s.bindir = 'exe'
1716
s.executables = s.files.grep(%r{^exe/}) { |f| File.basename(f) }
1817
s.require_paths = ['lib']
1918

19+
github_uri = "https://github.com/ruby-grape/#{s.name}"
20+
21+
s.homepage = github_uri
22+
23+
s.metadata = {
24+
'rubygems_mfa_required' => 'true',
25+
'bug_tracker_uri' => "#{github_uri}/issues",
26+
'documentation_uri' => "http://www.rubydoc.info/gems/#{s.name}/#{s.version}",
27+
'homepage_uri' => s.homepage,
28+
'source_code_uri' => github_uri
29+
}
30+
2031
s.required_ruby_version = '>= 2.7', '< 4'
2132

2233
s.add_runtime_dependency 'grape-swagger', '~> 2.0'

0 commit comments

Comments
 (0)