-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathtwig.gemspec
More file actions
48 lines (45 loc) · 2.15 KB
/
twig.gemspec
File metadata and controls
48 lines (45 loc) · 2.15 KB
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
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'twig/homepage'
require 'twig/version'
Gem::Specification.new do |spec|
spec.name = 'twig'
spec.version = Twig::VERSION
spec.authors = ['Ron DeVera']
spec.homepage = Twig::HOMEPAGE
spec.license = 'MIT'
spec.summary = 'Your personal Git branch assistant.'
spec.description = %w[
Twig is your personal Git branch assistant. It's a command-line tool for
listing your most recent branches, and for remembering branch details for
you, like issue tracker ids and todos. It supports subcommands, like
automatically fetching statuses from your issue tracking system. It's
flexible enough to fit your everyday Git workflow, and will save you a ton
of time.
].join(' ')
spec.post_install_message =
"\n*************************************************" \
"\n* *" \
"\n* Welcome to Twig! *" \
"\n* *" \
"\n* Quick start: *" \
"\n* *" \
"\n* 1. Run `twig init` to set up tab completion. *" \
"\n* 2. Run `twig` to list your Git branches. *" \
"\n* *" \
"\n* For more info, run `twig help` or visit *" \
"\n* #{sprintf('%-46s', Twig::HOMEPAGE) }*" \
"\n* *" \
"\n*************************************************" \
"\n\n"
spec.files = `git ls-files`.split($/)
spec.executables = spec.files.grep(%r{^bin/}).map { |file| File.basename(file) }
spec.require_paths = ['lib']
spec.test_files = spec.files.grep(%r{^spec/})
spec.required_ruby_version = '>= 1.8.7'
spec.add_runtime_dependency 'json', '~> 1.8.3'
spec.add_runtime_dependency 'launchy', '~> 2.4'
spec.add_development_dependency 'rake', '~> 10.3'
spec.add_development_dependency 'rspec', '~> 3.0'
end