Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 54 lines (46 sloc) 1.642 kB
7df5701 @thomasjachmann gemification using jeweler
authored
1 require 'rubygems'
2 require 'rake'
3
4 begin
5 require 'jeweler'
6 Jeweler::Tasks.new do |gem|
7 gem.name = 'launchpad'
8 gem.summary = 'A gem for accessing novation\'s launchpad programmatically and easily.'
9 gem.description = 'This gem provides an interface to access novation\'s launchpad programmatically. LEDs can be lighted and button presses can be evaluated using launchpad\'s MIDI input/output.'
10 gem.email = 'tom.j@gmx.net'
11 gem.homepage = 'http://github.com/thomasjachmann/launchpad'
12 gem.authors = ['Thomas Jachmann']
13 gem.add_dependency('portmidi')
14 #gem.add_development_dependency 'thoughtbot-shoulda', '>= 0'
15 # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
16 end
17 rescue LoadError
18 puts 'Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler'
19 end
20
21 require 'rake/testtask'
22 Rake::TestTask.new(:test) do |test|
23 test.libs << 'lib' << 'test'
24 test.pattern = 'test/**/test_*.rb'
25 test.verbose = true
26 end
27
28 begin
29 require 'rcov/rcovtask'
30 Rcov::RcovTask.new do |test|
31 test.libs << 'test'
32 test.pattern = 'test/**/test_*.rb'
33 test.verbose = true
34 end
35 rescue LoadError
36 task :rcov do
37 abort 'RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov'
38 end
39 end
40
41 task :test => :check_dependencies
42
43 task :default => :test
44
45 require 'rake/rdoctask'
46 Rake::RDocTask.new do |rdoc|
47 version = File.exist?('VERSION') ? File.read('VERSION') : ""
48
49 rdoc.rdoc_dir = 'rdoc'
50 rdoc.title = "launchpad #{version}"
51 rdoc.rdoc_files.include('README*')
52 rdoc.rdoc_files.include('lib/**/*.rb')
53 end
Something went wrong with that request. Please try again.