Rakefile in rb-threadframe-0.37 vs Rakefile in rb-threadframe-0.38
- old
+ new
@@ -18,18 +18,18 @@
task :package=>:gem
task :gem=>:gemspec do
Dir.chdir(ROOT_DIR) do
sh "gem build .gemspec"
FileUtils.mkdir_p 'pkg'
- FileUtils.mv "#{gemspec.name}-#{gemspec.version}.gem", 'pkg'
+ FileUtils.mv("#{gemspec.file_name}", "pkg/")
end
end
desc "Install the gem locally"
task :install => :gem do
Dir.chdir(ROOT_DIR) do
- sh %{gem install --local pkg/#{gemspec.name}-#{gemspec.version}}
+ sh %{gem install --local pkg/#{gemspec.file_name}}
end
end
desc 'Create the core thread-frame shared library extension'
task :ext do
@@ -71,10 +71,10 @@
desc 'Test units - the smaller tests'
Rake::TestTask.new(:'test:unit') do |t|
t.libs << './ext'
t.test_files = FileList['test/unit/**/*.rb']
# t.pattern = 'test/**/*test-*.rb' # instead of above
- t.verbose = true
+ t.options = '--verbose' if $VERBOSE
end
task :'test:unit' => [:ext]
desc 'Test everything - unit tests for now.'
task :test do