Sha256: b304a408cf2cae2566d776eeace0f7245e1452f51fdd82bde029ccd67c129717

Contents?: true

Size: 1.64 KB

Versions: 13

Compression:

Stored size: 1.64 KB

Contents

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

begin
  require "rake/extensiontask"
  task :build => :compile

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

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

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 :check_readme do
  require_relative 'lib/debug/session'
  require 'erb'
  current_readme = File.read("README.md")
  generated_readme = ERB.new(File.read('misc/README.md.erb')).result

  if current_readme != generated_readme
    fail <<~MSG
      The content of README.md doesn't match its template and/or source.
      Please apply the changes to info source (e.g. command comments) or the template and run 'rake README.md' to update README.md.
    MSG
  end
end

desc "Run debug.gem test-framework tests"
Rake::TestTask.new(:test_test) do |t|
  t.test_files = FileList["test/support/*_test.rb"]
end

desc "Run all debugger console related tests"
Rake::TestTask.new(:test_console) do |t|
  t.test_files = FileList["test/console/*_test.rb"]
end

desc "Run all debugger protocols (CAP & DAP) related tests"
Rake::TestTask.new(:test_protocol) do |t|
  t.test_files = FileList["test/protocol/*_test.rb"]
end

task test: 'test_console' do
  warn '`rake test` doesn\'t run protocol tests. Use `rake test_all` to test all.'
end

task test_all: [:test_test, :test_console, :test_protocol]

Version data entries

13 entries across 13 versions & 3 rubygems

Version Path
debug-1.10.0 Rakefile
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/debug-1.9.2/Rakefile
debug-1.9.2 Rakefile
debug-1.9.1 Rakefile
debug-1.9.0 Rakefile
study_line-0.1.6 vendor/bundle/ruby/3.2.0/gems/debug-1.8.0/Rakefile
study_line-0.1.5 vendor/bundle/ruby/3.2.0/gems/debug-1.8.0/Rakefile
study_line-0.1.4 vendor/bundle/ruby/3.2.0/gems/debug-1.8.0/Rakefile
study_line-0.1.3 vendor/bundle/ruby/3.2.0/gems/debug-1.8.0/Rakefile
study_line-0.1.2 vendor/bundle/ruby/3.2.0/gems/debug-1.8.0/Rakefile
study_line-0.1.1 vendor/bundle/ruby/3.2.0/gems/debug-1.8.0/Rakefile
debug-1.8.0 Rakefile
debug-1.7.2 Rakefile