Rakefile in rubyist-aasm-2.0.2 vs Rakefile in rubyist-aasm-2.0.4

- old
+ new

@@ -12,11 +12,11 @@ require 'spec/rake/spectask' rescue Exception nil end -if `ruby -Ilib -rversion -e "print AASM::VERSION::STRING"` =~ /([0-9.]+)$/ +if `ruby -Ilib -raasm -e "print AASM.Version"` =~ /([0-9.]+)$/ CURRENT_VERSION = $1 else CURRENT_VERSION = '0.0.0' end $package_version = CURRENT_VERSION @@ -69,10 +69,10 @@ else desc "Run all examples with RCov" Spec::Rake::SpecTask.new('cruise') do |t| t.spec_files = FileList['spec/**/*.rb'] t.rcov = true - t.rcov_opts = ['--exclude', 'spec', '--exclude', 'Library'] + t.rcov_opts = ['--exclude', 'spec', '--exclude', 'Library', '--exclude', 'rcov.rb'] end desc "Run all examples" Spec::Rake::SpecTask.new('spec') do |t| t.spec_files = FileList['spec/**/*.rb']