Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 46 lines (36 sloc) 1.06 kB
55d558e @flyerhzm use rvm and bundler
authored
1 require "bundler"
2 Bundler.setup
c740655 @flyerhzm first commit
authored
3
55d558e @flyerhzm use rvm and bundler
authored
4 require "rake"
5 require "rake/rdoctask"
6 require "rspec"
7 require "rspec/core/rake_task"
8
9 $LOAD_PATH.unshift File.expand_path("../lib", __FILE__)
10 require "bullet/version"
c740655 @flyerhzm first commit
authored
11
55d558e @flyerhzm use rvm and bundler
authored
12 task :build do
13 system "gem build bullet.gemspec"
c740655 @flyerhzm first commit
authored
14 end
f97ffbe can detect basic n+1 query and use spec for testing
Richard authored
15
55d558e @flyerhzm use rvm and bundler
authored
16 task :install => :build do
17 system "sudo gem install bullet-#{Bullet::VERSION}.gem"
18 end
f5875e2 @flyerhzm add gemspec support
authored
19
55d558e @flyerhzm 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 @flyerhzm rspec 2.0 support
authored
27 end
28
55d558e @flyerhzm use rvm and bundler
authored
29 Rspec::Core::RakeTask.new(:spec) do |spec|
30 spec.pattern = "spec/**/*_spec.rb"
97a304c @flyerhzm rspec 2.0 support
authored
31 end
32
55d558e @flyerhzm use rvm and bundler
authored
33 Rspec::Core::RakeTask.new('spec:progress') do |spec|
34 spec.rspec_opts = %w(--format progress)
35 spec.pattern = "spec/**/*_spec.rb"
97a304c @flyerhzm rspec 2.0 support
authored
36 end
37
55d558e @flyerhzm 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 @flyerhzm change Rakefile
authored
43 end
55d558e @flyerhzm use rvm and bundler
authored
44
45 task :default => :spec
Something went wrong with that request. Please try again.