-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtypocop.gemspec
28 lines (26 loc) · 1.03 KB
/
typocop.gemspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
require_relative 'lib/typocop/version'
Gem::Specification.new do |s|
s.name = 'typocop'
s.version = Typocop::VERSION
s.summary = 'Comment on PRs with typos or approvals'
s.description = 'Typocop integrates with GitHub Actions to automatically comment on pull requests when typos are detected or when a PR is approved).'
s.authors = ['datpmt']
s.email = '[email protected]'
s.files = Dir['CHANGELOG.md', 'LICENSE', 'README.md', 'lib/**/*', 'bin/*']
s.homepage =
'https://rubygems.org/gems/typocop'
s.license = 'MIT'
s.metadata = {
'source_code_uri' => 'https://github.com/datpmt/typocop',
'changelog_uri' => 'https://github.com/datpmt/typocop/blob/main/CHANGELOG.md'
}
s.add_dependency 'octokit', '9.2.0'
s.add_dependency 'rugged', '~> 1.6.3'
s.add_dependency 'thor', '~> 1.3.2'
s.add_dependency 'typo_checker'
s.executables = %w[typocop]
s.files.each do |file|
next unless file.start_with?('bin/')
File.chmod(0o755, file) unless File.executable?(file)
end
end