Sha256: b35acd65a6480ac1ea6a520c7d1bb57a43daea2e956a94a5c9e12d3b0ec65f61

Contents?: true

Size: 732 Bytes

Versions: 3

Compression:

Stored size: 732 Bytes

Contents

require "bundler/gem_tasks"
require "rake/testtask"

Rake::TestTask.new(:test) do |t|
  t.libs << "test"
  t.libs << "lib"
  t.test_files = FileList["test/**/*_test.rb"]
end

require "rake/extensiontask"

task :build => :compile

Rake::ExtensionTask.new("debug") do |ext|
  ext.lib_dir = "lib/debug"
end

task :default => [:clobber, :compile, 'README.md', :test]

file 'README.md' => ['lib/debug/session.rb', 'lib/debug/config.rb',
                     'exe/rdbg', 'misc/README.md.erb'] do
  require_relative 'lib/debug/session'
  require 'erb'
  File.write 'README.md', ERB.new(File.read('misc/README.md.erb')).result
  puts 'README.md is updated.'
end

task :run => :compile do
  system(RbConfig.ruby, *%w(-I ./lib test.rb))
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
debug-1.2.1 Rakefile
debug-1.2.0 Rakefile
debug-1.1.0 Rakefile