Skip to content

Commit

Permalink
support jruby19
Browse files Browse the repository at this point in the history
  • Loading branch information
tonytonyjan committed Dec 12, 2015
1 parent 8c63b8a commit 84c85a9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
4 changes: 2 additions & 2 deletions lib/jaro_winkler/jaro_winkler_pure.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ class InvalidWeightError < Error; end
module_function

def distance str1, str2, options={}
_distance str1.codepoints, str2.codepoints, options
_distance str1.codepoints.to_a, str2.codepoints.to_a, options
end

def jaro_distance str1, str2, options={}
_jaro_distance str1.codepoints, str2.codepoints, options
_jaro_distance str1.codepoints.to_a, str2.codepoints.to_a, options
end

def _distance codes1, codes2, options={}
Expand Down
9 changes: 2 additions & 7 deletions test/test_jaro_winkler.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
# encoding: utf-8
require 'minitest/autorun'

if fork
require 'jaro_winkler/jaro_winkler_ext'
Process.wait
else
require 'jaro_winkler/jaro_winkler_pure'
end
require 'jaro_winkler'

class TestJaroWinkler < Minitest::Test
def test_distance
Expand Down

0 comments on commit 84c85a9

Please sign in to comment.