Rakefile in bitcoin-ruby-0.0.1 vs Rakefile in bitcoin-ruby-0.0.2

- old
+ new

@@ -6,10 +6,14 @@ PROJECT_SPECS = ( FileList['spec/bitcoin/bitcoin_spec.rb'] + FileList['spec/bitcoin/protocol/*_spec.rb'] + FileList['spec/bitcoin/script/*_spec.rb'] + FileList['spec/bitcoin/wallet/*_spec.rb'] + + ['spec/bitcoin/storage/storage_spec.rb', + 'spec/bitcoin/storage/reorg_spec.rb', + 'spec/bitcoin/storage/validation_spec.rb'] + + FileList['spec/bitcoin/node/*_spec.rb'] + FileList['spec/bitcoin/*_spec.rb'] ).uniq RUBY = 'ruby' unless defined?(RUBY) task :default => :bacon @@ -86,19 +90,19 @@ desc 'Generate RDoc documentation' task :rdoc do `rm -rf rdoc` - system("rdoc -o rdoc -m README.rdoc examples/ doc/ lib/ README.rdoc COPYING") + system("rdoc -a -A -H -t 'bitcoin-ruby RDoc' -W 'http://github.com/mhanne/bitcoin-ruby/tree/master/%s' -o rdoc -m README.rdoc examples/ doc/ lib/ README.rdoc COPYING") end - desc 'Generate test coverage report' task :coverage do begin require 'simplecov' rescue LoadError puts "Simplecov not found. Run `gem install simplecov` to install it." exit end - system "bacon #{PROJECT_SPECS.join(' ')}" + sh "bacon", *PROJECT_SPECS + system('open coverage/index.html') if RUBY_PLATFORM.include? 'darwin' end