-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathRakefile
41 lines (33 loc) · 785 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
require "bundler/gem_tasks"
desc "Set up and run tests"
task :default => [:test]
def run_specs paths
quiet = ENV['VERBOSE'] ? '' : '-q'
exec "bacon -Ispec -rubygems #{quiet} #{paths.join ' '}"
end
desc "run tests"
task :test do
run_specs Dir['spec/**/*_spec.rb'].shuffle!
end
desc "run pry with the development version of funkify loaded"
task :pry do
sh "pry -I./lib -r funkify"
end
desc "remove all gems"
task :rm_gems do
sh "rm *.gem" rescue nil
end
desc "build the gem"
task :gem => :rm_gems do
sh "gem build funkify.gemspec"
end
desc "display the current version"
task :version do
puts Funkify::VERSION
end
desc "build and push latest gems"
task :pushgem => :gem do
Dir["*.gem"].each do |gemfile|
sh "gem push funkify-#{Funkify::VERSION}.gem"
end
end