Skip to content

Commit

Permalink
use rake gem packaging tasks instead of bundler
Browse files Browse the repository at this point in the history
  • Loading branch information
tonytonyjan committed Dec 12, 2015
1 parent 72e64ca commit 871c0d7
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require 'bundler/gem_tasks'
require 'rubygems/package_task'
require 'rake/extensiontask'
require 'rake/testtask'

Expand Down Expand Up @@ -49,12 +49,18 @@ task compare: :compile do
table.each{|row| puts row.join(' | ')}
end

Rake::ExtensionTask.new('jaro_winkler') do |ext|
ext.lib_dir = 'lib/jaro_winkler'
unless RUBY_PLATFORM == 'java'
Rake::ExtensionTask.new 'jaro_winkler_ext' do |ext|
ext.lib_dir = 'lib/jaro_winkler'
ext.ext_dir = 'ext/jaro_winkler'
end
end

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

spec = Gem::Specification.load(File.expand_path('../jaro_winkler.gemspec', __FILE__))
Gem::PackageTask.new(spec).define

0 comments on commit 871c0d7

Please sign in to comment.