Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 51 lines (41 sloc) 1.245 kb
8bef6dc @jferris Setup bundler in Rakefile
jferris authored
1 require 'rubygems'
2 require 'bundler/setup'
a1652ca @jferris Use Appraisal
jferris authored
3 require 'appraisal'
9cc48ec initial commit
Chad Pytel authored
4 require 'rake'
5 require 'rake/testtask'
6 require 'rake/rdoctask'
a98482a @jferris Updated the gemspec
jferris authored
7 require 'rake/gempackagetask'
84e8d18 @jferris Bundle dependencies for cucumber and the test rails app; run cucumber wi...
jferris authored
8 require 'cucumber/rake/task'
ce4c1af @jferris Upgrade to RSpec 2.3
jferris authored
9 require 'rspec/core/rake_task'
28b6a03 @jferris Initial download from new api
jferris authored
10 require 'yard'
9cc48ec initial commit
Chad Pytel authored
11
a1652ca @jferris Use Appraisal
jferris authored
12 desc 'Default: run the specs and features.'
13 task :default => :spec do
14 system("rake -s appraisal cucumber;")
15 end
9cc48ec initial commit
Chad Pytel authored
16
0b48b95 @jferris Renamed skywriter to copycopter
jferris authored
17 desc 'Test the copycopter_client plugin.'
ce4c1af @jferris Upgrade to RSpec 2.3
jferris authored
18 RSpec::Core::RakeTask.new do |t|
19 t.rspec_opts = ['--color', "--format progress"]
20 t.pattern = 'spec/copycopter_client/**/*_spec.rb'
9cc48ec initial commit
Chad Pytel authored
21 end
22
06235b7 @jferris Rails 3 support
jferris authored
23 desc "Run cucumber features"
24 Cucumber::Rake::Task.new do |t|
25 t.cucumber_opts = ['--tags', '~@wip',
26 '--format', (ENV['CUCUMBER_FORMAT'] || 'progress')]
27 end
28b6a03 @jferris Initial download from new api
jferris authored
28
29 YARD::Rake::YardocTask.new do |t|
d8db2c8 @jferris Updated documentation
jferris authored
30 t.files = ['lib/**/*.rb']
28b6a03 @jferris Initial download from new api
jferris authored
31 end
32
a98482a @jferris Updated the gemspec
jferris authored
33 eval("$specification = begin; #{IO.read('copycopter_client.gemspec')}; end")
34 Rake::GemPackageTask.new($specification) do |package|
35 package.need_zip = true
36 package.need_tar = true
37 end
38
ad7ffd5 @jferris Added rake tasks for managing the gem
jferris authored
39 gem_file = "pkg/#{$specification.name}-#{$specification.version}.gem"
40
41 desc "Build and install the latest gem"
42 task :install => :gem do
43 sh("gem install --local #{gem_file}")
44 end
45
46 desc "Build and release the latest gem"
47 task :release => :gem do
48 sh("gem push #{gem_file}")
49 end
50
Something went wrong with that request. Please try again.