Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 56 lines (47 sloc) 1.124 kb
648ace07 »
2009-06-15 First commit
1 require 'rubygems'
8880b19c »
2009-11-29 Tests passing under Ruby 1.9.1, upgrading gems
2
3 gems = [
4 [ 'active_wrapper', '=0.2.2' ],
5 [ 'cucumber', '=0.4.4' ],
6 [ 'rspec', '=1.2.9' ]
7 ]
8
9 gems.each do |name, version|
10 if File.exists?(path = "#{File.dirname(__FILE__)}/../vendor/#{name}/lib")
11 $:.unshift path
12 else
13 gem name, version
14 end
15 end
16
648ace07 »
2009-06-15 First commit
17 require 'rake'
8880b19c »
2009-11-29 Tests passing under Ruby 1.9.1, upgrading gems
18 require 'active_wrapper/tasks'
96ad27f1 »
2009-07-03 Lots of work on Cucumber features, adding vendored version of webrat …
19 require 'cucumber/rake/task'
648ace07 »
2009-06-15 First commit
20 require 'rake/gempackagetask'
21 require 'spec/rake/spectask'
22 require 'gemspec'
23
8880b19c »
2009-11-29 Tests passing under Ruby 1.9.1, upgrading gems
24 ActiveWrapper::Tasks.new(
25 :base => File.dirname(__FILE__),
26 :env => ENV['ENV']
27 )
648ace07 »
2009-06-15 First commit
28
29 desc "Generate gemspec"
30 task :gemspec do
31 File.open("#{Dir.pwd}/#{GEM_NAME}.gemspec", 'w') do |f|
32 f.write(GEM_SPEC.to_ruby)
33 end
34 end
35
36 desc "Install gem"
37 task :install do
38 Rake::Task['gem'].invoke
39 `sudo gem uninstall #{GEM_NAME} -x`
40 `sudo gem install pkg/#{GEM_NAME}*.gem`
41 `rm -Rf pkg`
42 end
43
96ad27f1 »
2009-07-03 Lots of work on Cucumber features, adding vendored version of webrat …
44 Cucumber::Rake::Task.new do |t|
45 t.cucumber_opts = "--format pretty"
648ace07 »
2009-06-15 First commit
46 end
47
96ad27f1 »
2009-07-03 Lots of work on Cucumber features, adding vendored version of webrat …
48 Rake::GemPackageTask.new(GEM_SPEC) do |pkg|
49 pkg.gem_spec = GEM_SPEC
648ace07 »
2009-06-15 First commit
50 end
51
52 Spec::Rake::SpecTask.new do |t|
53 t.rcov = true
54 t.spec_opts = ["--format", "specdoc", "--colour"]
55 t.spec_files = FileList["spec/**/*_spec.rb"]
56 end
Something went wrong with that request. Please try again.