Sha256: 1a9b4af866e53a1600f52c96106ae1dd87de5d88d0e9623bc9f84ad1a186787d

Contents?: true

Size: 805 Bytes

Versions: 7

Compression:

Stored size: 805 Bytes

Contents

require 'rake/testtask'
require "rake/clean"

CLOBBER.include "pkg"

Bundler::GemHelper.install_tasks name: ENV.fetch('GEM_NAME', 'skiptrace')

Rake::TestTask.new do |t|
  t.libs << 'test'
  t.test_files = FileList['test/**/*_test.rb']
  t.verbose = true
end

case RUBY_ENGINE
when 'ruby'
  require 'rake/extensiontask'

  Rake::ExtensionTask.new('skiptrace') do |ext|
    ext.name = 'cruby'
    ext.lib_dir = 'lib/skiptrace/internal'
  end

  task default: [:clean, :compile, :test]
when 'jruby'
  require 'rake/javaextensiontask'

  Rake::JavaExtensionTask.new('skiptrace') do |ext|
    ext.name = 'jruby_internals'
    ext.lib_dir = 'lib/skiptrace/internal'
    ext.source_version = '1.8'
    ext.target_version = '1.8'
  end

  task default: [:clean, :compile, :test]
else
  task default: [:test]
end

Version data entries

7 entries across 7 versions & 4 rubygems

Version Path
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/bindex-0.8.1/Rakefile
chatops-rpc-0.0.2 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/bindex-0.8.1/Rakefile
chatops-rpc-0.0.1 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/bindex-0.8.1/Rakefile
bindex-0.8.1 Rakefile
skiptrace-0.8.1 Rakefile
skiptrace-0.8.0 Rakefile
bindex-0.8.0 Rakefile