Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 60 lines (49 sloc) 1.476 kB
3353b0f @jackdempsey bringing in gem skeleton
authored
1 require 'rubygems'
f69769f @jackdempsey use jeweler for easier github integration and project management
authored
2 require 'rake'
3
4 begin
5 require 'jeweler'
6 Jeweler::Tasks.new do |gem|
7 gem.name = "beet"
504c436 @jackdempsey todo is not a valid summary
authored
8 gem.summary = %Q{A gem to help with easily generating projects}
f69769f @jackdempsey use jeweler for easier github integration and project management
authored
9 gem.email = "jack.dempsey@gmail.com"
10 gem.homepage = "http://github.com/jackdempsey/beet"
11 gem.authors = ["Jack Dempsey"]
fabb588 @jackdempsey make sure we're using the latest thor
authored
12 gem.add_dependency "thor", "~> 0.14.0"
f69769f @jackdempsey use jeweler for easier github integration and project management
authored
13 # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
14 end
15
caa61b7 @jackdempsey add gemcutter tasks and regen gemspec
authored
16 Jeweler::GemcutterTasks.new
17
f69769f @jackdempsey use jeweler for easier github integration and project management
authored
18 rescue LoadError
19 puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
3353b0f @jackdempsey bringing in gem skeleton
authored
20 end
21
292b110 @jackdempsey change to shoulda
authored
22 require 'rake/testtask'
23 Rake::TestTask.new(:test) do |test|
24 test.libs << 'lib' << 'test'
25 test.pattern = 'test/**/*_test.rb'
26 test.verbose = true
3353b0f @jackdempsey bringing in gem skeleton
authored
27 end
28
292b110 @jackdempsey change to shoulda
authored
29 begin
30 require 'rcov/rcovtask'
31 Rcov::RcovTask.new do |test|
32 test.libs << 'test'
33 test.pattern = 'test/**/*_test.rb'
34 test.verbose = true
35 end
36 rescue LoadError
37 task :rcov do
38 abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
39 end
3353b0f @jackdempsey bringing in gem skeleton
authored
40 end
41
f69769f @jackdempsey use jeweler for easier github integration and project management
authored
42
292b110 @jackdempsey change to shoulda
authored
43 task :default => :test
f69769f @jackdempsey use jeweler for easier github integration and project management
authored
44
45 require 'rake/rdoctask'
46 Rake::RDocTask.new do |rdoc|
47 if File.exist?('VERSION.yml')
48 config = YAML.load(File.read('VERSION.yml'))
49 version = "#{config[:major]}.#{config[:minor]}.#{config[:patch]}"
50 else
51 version = ""
3353b0f @jackdempsey bringing in gem skeleton
authored
52 end
f69769f @jackdempsey use jeweler for easier github integration and project management
authored
53
54 rdoc.rdoc_dir = 'rdoc'
292b110 @jackdempsey change to shoulda
authored
55 rdoc.title = "beet_shoulda #{version}"
f69769f @jackdempsey use jeweler for easier github integration and project management
authored
56 rdoc.rdoc_files.include('README*')
57 rdoc.rdoc_files.include('lib/**/*.rb')
04c5a96 @jackdempsey fixup values in rakefile
authored
58 end
f69769f @jackdempsey use jeweler for easier github integration and project management
authored
59
Something went wrong with that request. Please try again.