Skip to content
This repository
Newer
Older
100644 36 lines (29 sloc) 0.975 kb
582a2ea1 »
2012-06-07 setup bundler in Rakefile
1 require 'bundler/setup'
0fb4a37b »
2011-10-28 Define rspec task properly so it does the exit status correctly
2 require 'rspec/core/rake_task'
3
13854e3d »
2012-01-06 Add release task
4 base = File.dirname(__FILE__)
5 require base + "/lib/capybara/poltergeist/version"
ad594277 »
2012-06-04 Add coffeescript gem
6 require 'coffee-script'
40f63482 »
2012-10-07 CI: retry failed tests
7 require 'rspec-rerun'
13854e3d »
2012-01-06 Add release task
8
76fe32de »
2011-10-27 omg
9 task :autocompile do
c731e54b »
2012-06-04 Use guard for autocompile
10 system "guard"
76fe32de »
2011-10-27 omg
11 end
93d72cc2 »
2011-10-27 Run rspec as the default rake task
12
ad594277 »
2012-06-04 Add coffeescript gem
13 task :compile do
14 Dir.glob("lib/capybara/poltergeist/client/*.coffee").each do |f|
15 compiled = "lib/capybara/poltergeist/client/compiled/#{f.split("/").last.split(".").first}.js"
16 File.open(compiled, "w") do |out|
b4f9ac5b »
2012-06-04 Compile coffeescript before testing
17 puts "Compiling #{f}"
ad594277 »
2012-06-04 Add coffeescript gem
18 out << CoffeeScript.compile(File.read(f), :bare => true)
19 end
20 end
21 end
22
412e40e8 »
2012-06-07 Don't need an empty block for RakeTask.new
23 RSpec::Core::RakeTask.new('test')
93d72cc2 »
2011-10-27 Run rspec as the default rake task
24
b4f9ac5b »
2012-06-04 Compile coffeescript before testing
25 task :default => [:compile, :test]
40f63482 »
2012-10-07 CI: retry failed tests
26 task :ci => 'rspec-rerun:spec'
13854e3d »
2012-01-06 Add release task
27
28 task :release do
29 puts "Releasing #{Capybara::Poltergeist::VERSION}, y/n?"
30 exit(1) unless STDIN.gets.chomp == "y"
31 sh "gem build poltergeist.gemspec && " \
32 "gem push poltergeist-#{Capybara::Poltergeist::VERSION}.gem && " \
33 "git tag v#{Capybara::Poltergeist::VERSION} && " \
34 "git push --tags"
35 end
Something went wrong with that request. Please try again.