Skip to content

Commit e49e7aa

Browse files
committed
Refactor gemspec
- remove unnecessary files - remove reference to not included executables - add bug tracker URL
1 parent 2a0c5af commit e49e7aa

File tree

1 file changed

+16
-17
lines changed

1 file changed

+16
-17
lines changed

mutex_m.gemspec

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,27 @@
11
begin
2-
require_relative "lib/mutex_m"
2+
require_relative 'lib/mutex_m'
33
rescue LoadError
44
# for Ruby core repository
5-
require_relative "mutex_m"
5+
require_relative 'mutex_m'
66
end
77

88
Gem::Specification.new do |spec|
9-
spec.name = "mutex_m"
10-
spec.version = Mutex_m::VERSION
11-
spec.authors = ["Keiju ISHITSUKA"]
12-
spec.email = ["[email protected]"]
9+
spec.name = 'mutex_m'
10+
spec.version = Mutex_m::VERSION
11+
spec.authors = ['Keiju ISHITSUKA']
12+
spec.email = ['[email protected]']
1313

14-
spec.summary = %q{Mixin to extend objects to be handled like a Mutex.}
15-
spec.description = %q{Mixin to extend objects to be handled like a Mutex.}
16-
spec.homepage = "https://github.com/ruby/mutex_m"
17-
spec.licenses = ["Ruby", "BSD-2-Clause"]
14+
spec.summary = 'Mixin to extend objects to be handled like a Mutex.'
15+
spec.description = spec.summary
16+
spec.homepage = 'https://github.com/ruby/mutex_m'
17+
spec.metadata['source_code_uri'] = spec.homepage
18+
spec.metadata['bug_tracker_uri'] = "#{spec.homepage}/issues"
19+
spec.licenses = %w[Ruby BSD-2-Clause]
1820

19-
spec.files = ["Gemfile", "LICENSE.txt", "README.md", "Rakefile", "lib/mutex_m.rb", "mutex_m.gemspec"]
20-
spec.bindir = "exe"
21-
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
22-
spec.require_paths = ["lib"]
21+
spec.files = %w[LICENSE.txt README.md lib/mutex_m.rb]
2322
spec.required_ruby_version = '>= 2.5'
2423

25-
spec.add_development_dependency "bundler"
26-
spec.add_development_dependency "rake"
27-
spec.add_development_dependency "test-unit"
24+
spec.add_development_dependency 'bundler'
25+
spec.add_development_dependency 'rake'
26+
spec.add_development_dependency 'test-unit'
2827
end

0 commit comments

Comments
 (0)