Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 36 lines (29 sloc) 0.804 kb
cbb40d2 Dale Campbell updating deps
Oshuma authored
1 require 'bundler'
1ccdc73 Dale Campbell doc shit
Oshuma authored
2 require 'rake/rdoctask'
cbb40d2 Dale Campbell updating deps
Oshuma authored
3 require 'rspec/core/rake_task'
716a542 Dale Campbell initial
Oshuma authored
4
7b7bedb Dale Campbell adding gemspec
Oshuma authored
5 Bundler::GemHelper.install_tasks
6
716a542 Dale Campbell initial
Oshuma authored
7 task :default => :spec
8
9 desc 'Run the specs'
cbb40d2 Dale Campbell updating deps
Oshuma authored
10 RSpec::Core::RakeTask.new(:spec) do |t|
11 t.rspec_opts = ['--color']
716a542 Dale Campbell initial
Oshuma authored
12 end
13
14 desc 'Start a console loaded with the library'
15 task :console do
16 sh "irb -I ./lib -r 'grooveshark'"
17 end
1ccdc73 Dale Campbell doc shit
Oshuma authored
18
19 namespace :docs do
20 Rake::RDocTask.new do |rd|
21 rd.title = "TinySong API"
22 rd.main = "README.rdoc"
23 rd.rdoc_dir = "#{File.dirname(__FILE__)}/doc/api"
24 rd.rdoc_files.include("README.rdoc", "lib/**/*.rb")
25 rd.options << "--all"
26 end
27 end
28
29 desc 'Build the API docs'
30 task :docs do
31 Rake::Task['docs:rerdoc'].invoke
32 STDOUT.puts "Copying Javascript files..."
33 doc_root = "#{File.dirname(__FILE__)}/doc"
34 system("cp -r #{doc_root}/js #{doc_root}/api/")
35 end
Something went wrong with that request. Please try again.