Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 61 lines (51 sloc) 1.397 kb
f9ac5a0 PT/BT - Added gem stuff
btakita authored
1 require "rake"
2 require 'rake/gempackagetask'
3 require 'rake/contrib/rubyforgepublisher'
4 require 'rake/clean'
5 require 'rake/testtask'
6 require 'rake/rdoctask'
7
8 desc "Runs the Rspec suite"
9 task(:default) do
10 run_suite
11 end
12
13 desc "Runs the Rspec suite"
14 task(:spec) do
15 run_suite
16 end
17
18 def run_suite
19 dir = File.dirname(__FILE__)
f6a033e Fixed rakefile
btakita authored
20 system("ruby #{dir}/spec/spec_suite.rb") || raise("Example Suite failed")
f9ac5a0 PT/BT - Added gem stuff
btakita authored
21 end
22
90659c5 Gem configuration
btakita authored
23 PKG_NAME = "desert"
f9ac5a0 PT/BT - Added gem stuff
btakita authored
24 PKG_VERSION = "0.1.0"
25 PKG_FILES = FileList[
26 '[A-Z]*',
27 '*.rb',
28 'lib/**/*.rb',
b0eb6d8 DIY: moved misplaces desert plugin andd added the generator to the ge…
dav authored
29 'lib/generators/**/*',
30 'lib/generators/**/templates/*',
f9ac5a0 PT/BT - Added gem stuff
btakita authored
31 'examples/**/*.rb'
32 ]
33
34 spec = Gem::Specification.new do |s|
35 s.name = PKG_NAME
36 s.version = PKG_VERSION
90659c5 Gem configuration
btakita authored
37 s.summary = "Desert is a component framework for Rails that allows your plugins to be packaged as mini Rails apps."
f9ac5a0 PT/BT - Added gem stuff
btakita authored
38 s.test_files = "examples/spec_suite.rb"
39 s.description = s.summary
40
41 s.files = PKG_FILES.to_a
42 s.require_path = 'lib'
43
44 s.has_rdoc = true
45 s.extra_rdoc_files = [ "README", "CHANGES" ]
46 s.rdoc_options = ["--main", "README", "--inline-source", "--line-numbers"]
47
48 s.test_files = Dir.glob('spec/*_spec.rb')
49 s.require_path = 'lib'
90659c5 Gem configuration
btakita authored
50 s.autorequire = 'desert'
f9ac5a0 PT/BT - Added gem stuff
btakita authored
51 s.author = "Pivotal Labs"
52 s.email = "opensource@pivotallabs.com"
53 s.homepage = "http://pivotallabs.com"
54 s.rubyforge_project = "pivotalrb"
55 end
56
57 Rake::GemPackageTask.new(spec) do |pkg|
58 pkg.need_zip = true
59 pkg.need_tar = true
60 end
Something went wrong with that request. Please try again.