forked from kiyoka/fuzzy-string-match
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Rakefile
57 lines (51 loc) · 1.73 KB
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#-*- mode: ruby; -*-
#
# Release Engineering
# 1. edit the VERSION.yml file
# 2. rake test
# 3. rake gemspec && rake build
# to generate fuzzy-string-match-x.x.x.gem
# 4. install fuzzy-string-match-x.x.x.gem to clean environment and test
# 5. rake release
# 6. gem push pkg/fuzzy-string-match-x.x.x.gem ( need gem version 1.3.6 or higer. Please "gem update --system" to update )
#
# for Development
# rake test_dev
# rake benchmark
require 'rake'
begin
require 'jeweler'
Jeweler::Tasks.new do |gemspec|
gemspec.name = "fuzzy-string-match"
gemspec.summary = "fuzzy string matching library"
gemspec.description = "calculate Jaro Winkler distance."
gemspec.email = "kiyoka@sumibi.org"
gemspec.homepage = "http://github.com/kiyoka/fuzzy-string-match"
gemspec.authors = ["Kiyoka Nishiyama"]
gemspec.files = FileList['.gemtest',
'Rakefile',
'VERSION.yml',
'lib/*.rb',
'test/basic_spec.rb',
'test/mutibyte_spec.rb',
'LICENSE.txt',
'README.md'].to_a
gemspec.add_dependency( "rspec" )
gemspec.add_dependency( 'RubyInline', '>= 3.8.6')
gemspec.required_ruby_version = '>= 1.9.1'
end
rescue LoadError
puts "Jeweler not available. Install it with: sudo gem install jeweler"
end
task :default => [:test] do
end
task :test do
sh "ruby -I ./lib `which rspec` -b ./test/basic_spec.rb"
sh "ruby -I ./lib `which rspec` -b ./test/mutibyte_spec.rb"
end
task :test_dev do
sh "ruby -I ./lib `which rspec` -b ./test/verify_with_amatch_spec.rb"
end
task :bench do
sh "ruby ./benchmark/vs_amatch.rb"
end