forked from youpy/ruby-echonest
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Rakefile
37 lines (29 loc) · 724 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
require 'rubygems'
require 'rake'
require 'rake/clean'
require 'rake/testtask'
require 'rake/packagetask'
require 'rubygems/package_task'
require 'rdoc/task'
require 'rake/contrib/sshpublisher'
require 'spec/rake/spectask'
require 'fileutils'
include FileUtils
$LOAD_PATH.unshift "lib"
require "echonest"
task :default => [:spec]
task :package => [:clean]
Spec::Rake::SpecTask.new do |t|
t.spec_opts = ['--options', "spec/spec.opts"]
t.spec_files = FileList['spec/*_spec.rb']
t.rcov = true
end
spec = eval(File.read("bassnode-ruby-echonest.gemspec"))
Gem::PackageTask.new(spec) do |p|
p.need_tar = true
p.gem_spec = spec
end
desc "Show information about the gem"
task :debug_gem do
puts spec.to_ruby
end