Thanks for your pull request.
I saw same error, when I modify my local source like,
builder.add_compile_flags '-x c++'
# '-lstdc++'
So, i think your fix may be correct.
This is error messages.
~/work/github/fuzzy-string-match $ rake test
ruby -I ./lib which rspec -b ./test/basic_native_spec.rb
Ffuzzy-string-match Warning: FuzzyStringMatch.new.create() is obsolute, please use FuzzyStringMatch.create() ...
.
Failures:
1) FuzzyStringMatch when some string distances (Native) are should
Failure/Error: @jarow.getDistance( "henka", "henkan" ).should be_within(0.0001).of(0.9722)
NoMethodError:
undefined method `getDistance' for #
./test/basic_native_spec.rb:31:in`block (2 levels) in <top (required)>'
# /usr/local/stow/ruby-1.9.3-p194/lib/ruby/gems/1.9.1/gems/rspec-core-2.10.0/lib/rspec/core/example.rb:87:in `instance_eval'
# /usr/local/stow/ruby-1.9.3-p194/lib/ruby/gems/1.9.1/gems/rspec-core-2.10.0/lib/rspec/core/example.rb:87:in`block in run'
# /usr/local/stow/ruby-1.9.3-p194/lib/ruby/gems/1.9.1/gems/rspec-core-2.10.0/lib/rspec/core/example.rb:195:in `with_around_each_hooks'
# /usr/local/stow/ruby-1.9.3-p194/lib/ruby/gems/1.9.1/gems/rspec-core-2.10.0/lib/rspec/core/example.rb:84:in`run'
# /usr/local/stow/ruby-1.9.3-p194/lib/ruby/gems/1.9.1/gems/rspec-core-2.10.0/lib/rspec/core/example_group.rb:353:in `block in run_examples'
# /usr/local/stow/ruby-1.9.3-p194/lib/ruby/gems/1.9.1/gems/rspec-core-2.10.0/lib/rspec/core/example_group.rb:349:in`map'
# /usr/local/stow/ruby-1.9.3-p194/lib/ruby/gems/1.9.1/gems/rspec-core-2.10.0/lib/rspec/core/example_group.rb:349:in `run_examples'
# /usr/local/stow/ruby-1.9.3-p194/lib/ruby/gems/1.9.1/gems/rspec-core-2.10.0/lib/rspec/core/example_group.rb:335:in`run'
# /usr/local/stow/ruby-1.9.3-p194/lib/ruby/gems/1.9.1/gems/rspec-core-2.10.0/lib/rspec/core/command_line.rb:28:in `block (2 levels) in run'
# /usr/local/stow/ruby-1.9.3-p194/lib/ruby/gems/1.9.1/gems/rspec-core-2.10.0/lib/rspec/core/command_line.rb:28:in`map'
# /usr/local/stow/ruby-1.9.3-p194/lib/ruby/gems/1.9.1/gems/rspec-core-2.10.0/lib/rspec/core/command_line.rb:28:in `block in run'
# /usr/local/stow/ruby-1.9.3-p194/lib/ruby/gems/1.9.1/gems/rspec-core-2.10.0/lib/rspec/core/reporter.rb:34:in`report'
# /usr/local/stow/ruby-1.9.3-p194/lib/ruby/gems/1.9.1/gems/rspec-core-2.10.0/lib/rspec/core/command_line.rb:25:in `run'
# /usr/local/stow/ruby-1.9.3-p194/lib/ruby/gems/1.9.1/gems/rspec-core-2.10.0/lib/rspec/core/runner.rb:69:in`run'
# /usr/local/stow/ruby-1.9.3-p194/lib/ruby/gems/1.9.1/gems/rspec-core-2.10.0/lib/rspec/core/runner.rb:10:in `block in autorun'
Finished in 0.01386 seconds
2 examples, 1 failure
Failed examples:
rspec ./test/basic_native_spec.rb:30 # FuzzyStringMatch when some string distances (Native) are should
rake aborted!
Command failed with status (1): [ruby -I ./lib which rspec -b ./test/basi...]
Thanks for your pull request. I saw same error, when I modify my local source like,
So, i think your fix may be correct. This is error messages.
~/work/github/fuzzy-string-match $ rake test ruby -I ./lib
which rspec
-b ./test/basic_native_spec.rb Ffuzzy-string-match Warning: FuzzyStringMatch.new.create() is obsolute, please use FuzzyStringMatch.create() ... .Failures:
1) FuzzyStringMatch when some string distances (Native) are should Failure/Error: @jarow.getDistance( "henka", "henkan" ).should be_within(0.0001).of(0.9722) NoMethodError: undefined method `getDistance' for #
./test/basic_native_spec.rb:31:in`block (2 levels) in <top (required)>'
Finished in 0.01386 seconds 2 examples, 1 failure
Failed examples:
rspec ./test/basic_native_spec.rb:30 # FuzzyStringMatch when some string distances (Native) are should rake aborted! Command failed with status (1): [ruby -I ./lib
which rspec
-b ./test/basi...]