forked from cookpad/chanko
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
38 lines (29 loc) · 1022 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
#!/usr/bin/env rake
# Add your own tasks in files placed in lib/tasks ending in .rake,
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
require 'bundler'
Bundler.setup
Bundler::GemHelper.install_tasks
Dir['lib/tasks/*.rake'].each { |rake| load rake }
require 'rspec/core'
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)
task :default => :spec
desc "Run all specs with rcov"
RSpec::Core::RakeTask.new(:rcov) do |t|
t.rcov = true
t.rcov_opts = %w{--rails --exclude osx\/objc,gems\/,spec\/,features\/}
end
begin
require 'jeweler'
Jeweler::Tasks.new do |gemspec|
gemspec.name = "chanko"
gemspec.summary = "Extend rails application"
gemspec.email = "[email protected]"
gemspec.homepage = ""
gemspec.description = "Extend rails application "
gemspec.authors = ["MORITA shingo"]
end
rescue LoadError
puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
end