Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 46 lines (36 sloc) 1.056 kb
293e878 gabriele renzi bundler sometimes does strange things on my box, move load path to the e...
riffraff authored
1 $LOAD_PATH.unshift File.expand_path("../lib", __FILE__)
55d558e Richard Huang use rvm and bundler
authored
2 require "bundler"
3 Bundler.setup
c740655 Richard Huang first commit
authored
4
55d558e Richard Huang use rvm and bundler
authored
5 require "rake"
457d77e Richard Huang update Rakefile
authored
6 require "rdoc/task"
55d558e Richard Huang use rvm and bundler
authored
7 require "rspec"
8 require "rspec/core/rake_task"
9
10 require "bullet/version"
c740655 Richard Huang first commit
authored
11
55d558e Richard Huang use rvm and bundler
authored
12 task :build do
13 system "gem build bullet.gemspec"
c740655 Richard Huang first commit
authored
14 end
f97ffbe can detect basic n+1 query and use spec for testing
Richard authored
15
55d558e Richard Huang use rvm and bundler
authored
16 task :install => :build do
17 system "sudo gem install bullet-#{Bullet::VERSION}.gem"
18 end
f5875e2 Richard Huang add gemspec support
authored
19
55d558e Richard Huang use rvm and bundler
authored
20 task :release => :build do
21 puts "Tagging #{Bullet::VERSION}..."
22 system "git tag -a #{Bullet::VERSION} -m 'Tagging #{Bullet::VERSION}'"
23 puts "Pushing to Github..."
24 system "git push --tags"
25 puts "Pushing to rubygems.org..."
26 system "gem push bullet-#{Bullet::VERSION}.gem"
97a304c Richard Huang rspec 2.0 support
authored
27 end
28
457d77e Richard Huang update Rakefile
authored
29 RSpec::Core::RakeTask.new(:spec) do |spec|
55d558e Richard Huang use rvm and bundler
authored
30 spec.pattern = "spec/**/*_spec.rb"
97a304c Richard Huang rspec 2.0 support
authored
31 end
32
457d77e Richard Huang update Rakefile
authored
33 RSpec::Core::RakeTask.new('spec:progress') do |spec|
55d558e Richard Huang use rvm and bundler
authored
34 spec.rspec_opts = %w(--format progress)
35 spec.pattern = "spec/**/*_spec.rb"
97a304c Richard Huang rspec 2.0 support
authored
36 end
37
55d558e Richard Huang use rvm and bundler
authored
38 Rake::RDocTask.new do |rdoc|
39 rdoc.rdoc_dir = "rdoc"
40 rdoc.title = "bullet #{Bullet::VERSION}"
41 rdoc.rdoc_files.include("README*")
42 rdoc.rdoc_files.include("lib/**/*.rb")
b60207e Richard Huang change Rakefile
authored
43 end
55d558e Richard Huang use rvm and bundler
authored
44
45 task :default => :spec
Something went wrong with that request. Please try again.