Skip to content
Newer
Older
100644 34 lines (26 sloc) 855 Bytes
9952097 @flyerhzm re-setup rvm, bundler and spec environment
flyerhzm authored
1 require "bundler"
2 Bundler.setup
3e704ea first commit
Richard authored
3
9952097 @flyerhzm re-setup rvm, bundler and spec environment
flyerhzm authored
4 require "rake"
5 require "rspec"
6 require "rspec/core/rake_task"
7
8 $LOAD_PATH.unshift File.expand_path("../lib", __FILE__)
9 require "rails_best_practices/version"
10
11 task :build do
12 system "gem build rails_best_practices.gemspec"
13 end
14
15 task :install => :build do
16 system "sudo gem install rails_best_practices-#{RailsBestPractices::VERSION}.gem"
17 end
18
19 task :release => :build do
20 puts "Tagging #{RailsBestPractices::VERSION}..."
21 system "git tag -a #{RailsBestPractices::VERSION} -m 'Tagging #{RailsBestPractices::VERSION}'"
22 puts "Pushing to Github..."
23 system "git push --tags"
24 puts "Pushing to rubygems.org..."
25 system "gem push rails_best_practices-#{RailsBestPractices::VERSION}.gem"
26 end
3e704ea first commit
Richard authored
27
f9d601a @flyerhzm move guard dependency from gemspec to Gemfile, update rspec and rake
flyerhzm authored
28 RSpec::Core::RakeTask.new(:spec) do |spec|
9952097 @flyerhzm re-setup rvm, bundler and spec environment
flyerhzm authored
29 spec.pattern = "spec/**/*_spec.rb"
3e704ea first commit
Richard authored
30 end
31
9952097 @flyerhzm re-setup rvm, bundler and spec environment
flyerhzm authored
32 task :default => :spec
aaf38e5 @flyerhzm support rubygems-test
flyerhzm authored
33 task :test => :spec
Something went wrong with that request. Please try again.