forked from therubymug/hitch
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathRakefile
52 lines (43 loc) · 1.4 KB
/
Rakefile
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
# Look in the tasks/setup.rb file for the various options that can be
# configured in this Rakefile. The .rake files in the tasks directory
# are where the options are used.
begin
require 'bones'
Bones.setup
rescue LoadError
begin
load 'tasks/setup.rb'
rescue LoadError
raise RuntimeError, '### please install the "bones" gem ###'
end
end
ensure_in_path 'lib'
require 'hitch'
task :default => 'spec:run'
PROJ.name = 'hitch'
PROJ.authors = 'Rogelio J. Samour (therubymug)'
PROJ.email = '[email protected]'
PROJ.url = 'http://github.com/therubymug/hitch'
PROJ.version = Hitch::VERSION
PROJ.rubyforge.name = 'hitch'
PROJ.dependencies = ['highline']
PROJ.readme_file = 'README.rdoc'
PROJ.spec.opts << '--color'
require 'fileutils'
spec = Gem::Specification.new do |s|
s.name = %q{hitch}
s.version = Hitch::VERSION
s.summary = %q{Hitch allows developers to be properly credited when Pair Programming and using Git.}
s.email = %q{[email protected]}
s.homepage = %q{http://github.com/therubymug/hitch}
s.has_rdoc = false
s.authors = ["Rogelio Samour", "Les Hill"]
s.files = %w( README.rdoc Rakefile ) + Dir["{bin,lib}/**/*"].sort
s.extra_rdoc_files = ["README.rdoc"]
s.executables = ["hitch", "unhitch", "hitchrc"]
s.add_dependency('highline', '>= 1.5.0')
end
desc "Generate the static gemspec required for github"
task :gemspec do
open("hitch.gemspec", "w").write(spec.to_ruby)
end