Sha256: 13cc193fc9028a0f43f183451cbe989e2b3801a227b5177357911265579e88fc

Contents?: true

Size: 529 Bytes

Versions: 2

Compression:

Stored size: 529 Bytes

Contents

require "bundler/gem_tasks"
require "rspec/core/rake_task"

RSpec::Core::RakeTask.new(:spec)

task :build => :compile

case RUBY_PLATFORM
when /java/
  require 'rake/javaextensiontask'
  Rake::JavaExtensionTask.new('binding_ninja') do |ext|
    ext.lib_dir = "lib/binding_ninja"
    ext.source_version = '1.8'
    ext.target_version = '1.8'
  end
else
  require 'rake/extensiontask'
  Rake::ExtensionTask.new("binding_ninja") do |ext|
    ext.lib_dir = "lib/binding_ninja"
  end
end

task :default => [:clobber, :compile, :spec]

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
binding_ninja-0.2.3 Rakefile
binding_ninja-0.2.3-java Rakefile