Sha256: a06083670215f5dc2c83eb4a0a93629525ec250b3be9e8aed1b8d1ae9a8d88df

Contents?: true

Size: 737 Bytes

Versions: 2

Compression:

Stored size: 737 Bytes

Contents

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

ext_names = %w/md_query_native md_item_native/
ext_names.each do |ext_name|
  CLEAN.include Dir.glob("ext/#{ext_name}/*{.o,.log}")
  CLEAN.include "ext/#{ext_name}/Makefile"
  CLOBBER.include "ext/#{ext_name}/#{ext_name}.bundle"
  CLOBBER.include "lib/#{ext_name}.bundle"

  file "lib/#{ext_name}.bundle" =>
    Dir.glob("ext/#{ext_name}/*{.rb,.m}") do
    Dir.chdir("ext/#{ext_name}") do
      ruby "extconf.rb"
      sh "make"
    end
    cp "ext/#{ext_name}/#{ext_name}.bundle", "lib/"
  end

  task :spec => "lib/#{ext_name}.bundle"
end

require 'rspec/core'
require 'rspec/core/rake_task'

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

task :default => :spec

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spotlight-0.0.8 Rakefile
spotlight-0.0.7 Rakefile