Sha256: 347556181f94692f3d548b6d180804d9fa14872e88a9560c8da42d38b3c9d20e

Contents?: true

Size: 486 Bytes

Versions: 3

Compression:

Stored size: 486 Bytes

Contents

require "bundler/gem_tasks"
require 'rake/testtask'
require 'rake/extensiontask'

gem = Gem::Specification.load(File.dirname(__FILE__) + '/cppjieba_rb.gemspec')
Rake::ExtensionTask.new("cppjieba_rb", gem) do |ext|
  ext.lib_dir = File.join('lib', 'cppjieba_rb')
end

Rake::Task[:test].prerequisites << :compile

Rake::TestTask.new do |t|
  t.libs << 'test'
end
desc "clean compile files"
task :clean_compile do
  system "rm -r tmp"
  system "rm lib/*.bundle"
end
task :default => :test

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cppjieba_rb-0.4.2 Rakefile
cppjieba_rb-0.4.1 Rakefile
cppjieba_rb-0.4.0 Rakefile