-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgit_tree.gemspec
51 lines (43 loc) · 1.76 KB
/
git_tree.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
require_relative 'lib/git_tree/version'
Gem::Specification.new do |spec| # rubocop:disable Metrics/BlockLength
github = 'https://github.com/mslinn/git_tree'
spec.authors = ['Mike Slinn']
spec.bindir = 'bindir'
spec.description = <<~END_OF_DESC
Installs 3 commands that process a git directory tree.
Directories containing a file called .ignore are ignored.
The git-tree-replicate command writes a script that clones the repos in the tree,
and adds any defined remotes.
The git-tree-evars command writes a script that defines environment variables pointing to git repos.
The git-tree-exec command executes a bash expression on children of a directory, or a list of directories.
END_OF_DESC
spec.email = ['mslinn@mslinn.com']
spec.executables = %w[git-tree-exec git-tree-evars git-tree-replicate]
spec.files = Dir[
'{bindir,lib}/**/*',
'.rubocop.yml',
'LICENSE.*',
'Rakefile',
'*.gemspec',
'*.md'
]
spec.homepage = 'https://www.mslinn.com/git/1100-git-tree.html'
spec.license = 'MIT'
spec.metadata = {
'allowed_push_host' => 'https://rubygems.org',
'bug_tracker_uri' => "#{github}/issues",
'changelog_uri' => "#{github}/CHANGELOG.md",
'homepage_uri' => spec.homepage,
'source_code_uri' => github,
}
spec.name = 'git_tree'
spec.platform = Gem::Platform::RUBY
spec.post_install_message = <<~END_MESSAGE
Thanks for installing #{spec.name}!
END_MESSAGE
spec.required_ruby_version = '>= 2.6.0'
spec.summary = 'Installs two commands that scan a git directory tree and write out scripts for replication.'
spec.version = GitUrlsVersion::VERSION
spec.add_dependency 'rainbow'
spec.add_dependency 'rugged'
end