Permalink
Browse files

organizing gem dependencies into groups, made yard optional (rake doe…

…sn't fail)
  • Loading branch information...
1 parent 69be350 commit 778d3cdbeac864e7ce5f214210014f42663ad615 @adamjmurray committed Jun 23, 2012
Showing with 16 additions and 14 deletions.
  1. +11 −3 Gemfile
  2. +4 −10 Rakefile
  3. +1 −1 lib/mtk/midi/file.rb
View
14 Gemfile
@@ -1,8 +1,16 @@
source :rubygems
-gem "rake", "~> 0.9"
-gem "rspec", "~> 2.10"
-gem "yard", "~> 0.8"
+group :dev do
+ gem "rake", "~> 0.9"
+ gem "rspec", "~> 2.10"
+ gem "cover_me","~> 1.2"
+end
+
+group :doc do
+ gem "yard", "~> 0.8"
+ gem "redcarpet", "~> 2.1"
+end
+
gem "midilib", "~> 2.0"
gem "gamelan", "~> 0.3"
gem "citrus", "~> 2.4"
View
14 Rakefile
@@ -1,6 +1,5 @@
require 'rspec/core/rake_task'
require 'rake/clean'
-require 'yard'
SUPPORTED_RUBIES = %w[ 1.9.3 jruby-1.6.7 ]
@@ -50,14 +49,9 @@ namespace :spec do
end
-YARD::Rake::YardocTask.new do |yard|
- yard.files = ['lib/**/*.rb', 'spec/**/*.rb']
- yard.options = []
- if File.exist? '../yard-spec-plugin/lib/yard-rspec.rb'
- # prefer my local patched copy which can handle my rspec conventions better...
- yard.options.concat ['-e' '../yard-spec-plugin/lib/yard-rspec.rb']
- else
- # use the gem
- yard.options.concat ['-e' 'yard-rspec']
+begin
+ require 'yard'
+ YARD::Rake::YardocTask.new do |yard|
+ yard.files = ['lib/**/*.rb']
end
end
View
2 lib/mtk/midi/file.rb
@@ -87,7 +87,7 @@ def write_timelines(timelines, parent_sequence=nil)
# Write the Timeline as a MIDI file
#
- # @param [Timeline]
+ # @param timeline [Timeline]
def write_timeline(timeline, parent_sequence=nil)
sequence = parent_sequence || ::MIDI::Sequence.new
clock_rate = sequence.ppqn

0 comments on commit 778d3cd

Please sign in to comment.