Sha256: 5695f8b703846ff7c49e82cb7f5517393773c1af818faf45d8398f56c3317417
Contents?: true
Size: 556 Bytes
Versions: 2
Compression:
Stored size: 556 Bytes
Contents
require "bundler/gem_tasks" require "rake/extensiontask" Rake::ExtensionTask.new("jaro_winkler") do |ext| ext.lib_dir = "lib/jaro_winkler" end task :benchmark do ROOT_PATH = File.expand_path('..', __FILE__) LIB_PATH = File.join(ROOT_PATH, 'lib') BENCHMARK_PATH = File.join(ROOT_PATH, 'benchmark') Dir[File.join(BENCHMARK_PATH, '*.rb')].each do |path| output_path = File.join(BENCHMARK_PATH, File.basename(path, '*.rb').sub('.rb', '.txt')) cmd = "RUBYLIB=#{LIB_PATH} ruby #{path} > #{output_path}" puts cmd system(cmd) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
jaro_winkler-1.2.4 | Rakefile |
jaro_winkler-1.2.3 | Rakefile |