Rakefile in rb-threadframe-0.39 vs Rakefile in rb-threadframe-0.40
- old
+ new
@@ -12,11 +12,11 @@
def gemspec
@gemspec ||= eval(File.read(Gemspec_filename), binding, Gemspec_filename)
end
-require 'rake/gempackagetask'
+require 'rubygems/package_task'
desc "Build the gem"
task :package=>:gem
task :gem=>:gemspec do
Dir.chdir(ROOT_DIR) do
sh "gem build #{Gemspec_filename}"
@@ -30,15 +30,15 @@
Dir.chdir(ROOT_DIR) do
sh %{gem install --local pkg/#{gemspec.file_name}}
end
end
-desc 'Create the core thread-frame shared library extension'
+desc 'Create the thread-frame shared library extension'
task :ext do
Dir.chdir('ext') do
system("#{Gem.ruby} extconf.rb && make")
- end
+ end if '1.9.2' == RUBY_VERSION
end
desc 'Remove built files'
task :clean do
Dir.chdir File.join(ROOT_DIR, 'ext') do
@@ -108,10 +108,10 @@
task :gemspec do
gemspec.validate
end
# --------- RDoc Documentation ------
-require 'rake/rdoctask'
+require 'rdoc/task'
desc "Generate rdoc documentation"
Rake::RDocTask.new("rdoc") do |rdoc|
rdoc.rdoc_dir = 'doc'
rdoc.title = 'rb-threadframe'
# Make the readme file the start page for the generated html