-
Notifications
You must be signed in to change notification settings - Fork 1
/
Rakefile
46 lines (36 loc) · 1.18 KB
/
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
38
39
40
41
42
43
44
require 'rake'
require 'rake/testtask'
require 'rdoc/task'
require 'rspec/core/rake_task'
require 'yaml'
yml = YAML.load_file(File.join(File.dirname(__FILE__), "VERSION.yml"))
VERSION = "#{yml[:major]}.#{yml[:minor]}.#{yml[:patch]}"
require 'jeweler2'
Jeweler::Tasks.new do |gem|
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
gem.name = "ripple"
gem.summary = "Ripple is a Lilypond generator."
gem.description = "Ripple is a Lilypond generator."
gem.email = "[email protected]"
gem.homepage = "https://github.com/ciconia/ripple"
gem.authors = ["Sharon Rosner"]
gem.version = VERSION
gem.add_dependency('directory_watcher', '>= 1.1.1')
end
Jeweler::RubygemsDotOrgTasks.new
Rake::RDocTask.new do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'ripple'
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
end
# console
desc "Open an irb session preloaded with this library"
task :console do
sh "irb -I lib -r ripple.rb"
end
desc "Run specs"
RSpec::Core::RakeTask.new('spec') do |t|
t.pattern = ['spec/spec_helper.rb', 'spec/**/*_spec.rb']
end