-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathRakefile
40 lines (33 loc) · 1.12 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
require 'rubygems'
require 'rake/gempackagetask'
require 'rake/testtask'
require 'lib/repository/version'
task :default => :test
spec = Gem::Specification.new do |s|
s.name = 'kelredd-repository'
s.version = Repository::Version.to_s
s.has_rdoc = true
s.extra_rdoc_files = %w(README.rdoc)
s.rdoc_options = %w(--main README.rdoc)
s.summary = "Abstracts a file storage system."
s.author = 'Kelly Redding'
s.email = '[email protected]'
s.homepage = 'http://github.com/kelredd/repository'
s.files = %w(README.rdoc Rakefile) + Dir.glob("{lib,test}/**/*")
# s.executables = ['repository']
# s.add_dependency('gem_name', '~> 0.0.1')
end
Rake::GemPackageTask.new(spec) do |pkg|
pkg.gem_spec = spec
end
Rake::TestTask.new do |t|
t.libs << 'test'
t.test_files = FileList["test/**/*_test.rb"]
t.verbose = true
end
desc 'Generate the gemspec to serve this Gem from Github'
task :gemspec do
file = File.dirname(__FILE__) + "/#{spec.name}.gemspec"
File.open(file, 'w') {|f| f << spec.to_ruby }
puts "Created gemspec: #{file}"
end