Sha256: c467b3e1ae3e00653d08f24a42f3a58b580c32a4ab889952e1bc1132ded544c8

Contents?: true

Size: 1.05 KB

Versions: 37

Compression:

Stored size: 1.05 KB

Contents

#!/usr/bin/env rake
require 'bundler/setup'
require "bundler/gem_tasks"

task :clean do
  sh "rm -rf lib/v8/init.bundle lib/v8/init.so"
  sh "rm -rf pkg"
end

require "rake/extensiontask"
Rake::ExtensionTask.new("init", eval(File.read("therubyracer.gemspec"))) do |ext|
  ext.ext_dir = "ext/v8"
  ext.lib_dir = "lib/v8"
  ext.source_pattern = "*.{cc,h}"
end

require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec) do |task|
  task.rspec_opts = '--tag ~memory --tag ~threads'
end

task :sanity => [:clean, :compile] do
  sh %q{ruby -Ilib -e "require 'v8'"}
end

NativeGem = "pkg/therubyracer-#{V8::VERSION}-#{Gem::Platform.new(RUBY_PLATFORM)}.gem"
file NativeGem => :build do
  require "rubygems/compiler"
  compiler = Gem::Compiler.new("pkg/therubyracer-#{V8::VERSION}.gem", 'pkg')
  compiler.compile
end

desc "Build #{NativeGem} into the pkg directory"
task "build:native" => NativeGem

desc "Build and install #{File.basename NativeGem} into system gems"
task "install:native" => "build:native" do
  sh "gem install #{NativeGem}"
end

task :default => :spec

Version data entries

37 entries across 37 versions & 8 rubygems

Version Path
arcabouco-0.2.13 vendor/bundle/gems/therubyracer-0.12.2/Rakefile
therubyracer-0.12.3 Rakefile
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/therubyracer-0.11.4/Rakefile
therubyracer-xcode-0.12.3 Rakefile
therubyracer-xcode-0.12.2 Rakefile
therubyracer-tmpfork-0.12.2 Rakefile
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/therubyracer-0.12.2/Rakefile
therubyracer-0.12.2 Rakefile
therubyracer-0.12.1 Rakefile
therubyracer-discourse-0.12.0 Rakefile
therubyracer-0.12.0 Rakefile
therubyracer-0.11.4 Rakefile
therubyracer-0.11.3 Rakefile
therubyracer-0.11.2 Rakefile
sunrise-cms-0.5.0.rc1 vendor/bundle/ruby/1.9.1/gems/therubyracer-0.11.0/Rakefile
therubyracer-0.11.1 Rakefile
therubyracer-0.11.1beta1 Rakefile
therubyracer-0.11.0 Rakefile
therubyracer-0.11.0beta8-x86-freebsd-9 Rakefile
therubyracer-0.11.0beta8-x86_64-linux Rakefile