This repository was archived by the owner on Oct 26, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathRakefile
More file actions
43 lines (39 loc) · 1.31 KB
/
Rakefile
File metadata and controls
43 lines (39 loc) · 1.31 KB
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
42
43
require 'rubygems'
require 'rake/testtask'
require 'spec/rake/spectask'
begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "spotify-api"
gem.summary = "an api for spotify, based on jotify"
gem.email = "jan.berkel@gmail.com"
gem.homepage = "http://github.com/jberkel/spotify-api"
gem.description = "an api for spotify, based on jotify"
gem.authors = ["Jan Berkel"]
gem.platform = "universal-java"
gem.add_dependency "rack"
gem.add_dependency "rack-test"
gem.add_dependency "sinatra"
gem.add_dependency "json-jruby"
gem.add_dependency "httparty"
end
rescue LoadError
puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
end
Spec::Rake::SpecTask.new do |t|
t.rcov = false
t.spec_files = FileList["spec/**/*_spec.rb"].delete_if { |f| f =~ /integration/ }
t.libs << "./lib"
end
desc "runs specs with rcov"
Spec::Rake::SpecTask.new('spec:coverage') do |t|
t.rcov = true
t.spec_files = FileList["spec/**/*_spec.rb"].delete_if { |f| f =~ /integration/ }
t.libs << "./lib"
t.rcov_opts = ['--exclude', 'spec/.*rb,\(__.+__\)']
end
Spec::Rake::SpecTask.new(:integration) do |t|
t.rcov = false
t.spec_files = FileList["spec/**/*_spec.rb"].select { |f| f =~ /integration/ }
t.libs << "./lib"
end