Closed Qambar closed 9 years ago
You'll need to use Ruby 2.1+ with this gem, as it supports required keyword arguments. See this article for an overview. I'll add this to the docs for clarity. Please be aware that this gem is a bit of a work in progress at the moment, though!
I created a new folder and entered this command 'sphinxtrain-ruby' and got the following errors:
$ mkdir test1 $ cd test1 $ sphinxtrain-ruby /Users/Qambar/.rvm/rubies/ruby-2.0.0-p451/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in'
require': /Users/Qambar/.rvm/gems/ruby-2.0.0-p451/gems/sphinxtrain-ruby-0.0.1/lib/sphinxtrain/map_adapter.rb:9: syntax error, unexpected ',' (SyntaxError) def initialize(old_model:, new_model:, recordings_dir:,... ^ /Users/Qambar/.rvm/gems/ruby-2.0.0-p451/gems/sphinxtrain-ruby-0.0.1/lib/sphinxtrain/map_adapter.rb:65: syntax error, unexpected keyword_end, expecting end-of-input from /Users/Qambar/.rvm/rubies/ruby-2.0.0-p451/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in
require' from /Users/Qambar/.rvm/gems/ruby-2.0.0-p451/gems/sphinxtrain-ruby-0.0.1/lib/sphinxtrain.rb:7:in<top (required)>' from /Users/Qambar/.rvm/rubies/ruby-2.0.0-p451/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in
require' from /Users/Qambar/.rvm/rubies/ruby-2.0.0-p451/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:inrequire' from /Users/Qambar/.rvm/gems/ruby-2.0.0-p451/gems/sphinxtrain-ruby-0.0.1/lib/sphinxtrain-ruby.rb:1:in
<top (required)>' from /Users/Qambar/.rvm/rubies/ruby-2.0.0-p451/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:inrequire' from /Users/Qambar/.rvm/rubies/ruby-2.0.0-p451/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in
require' from /Users/Qambar/.rvm/gems/ruby-2.0.0-p451/gems/sphinxtrain-ruby-0.0.1/bin/sphinxtrain-ruby:3:in<top (required)>' from /Users/Qambar/.rvm/gems/ruby-2.0.0-p451/bin/sphinxtrain-ruby:23:in
load' from /Users/Qambar/.rvm/gems/ruby-2.0.0-p451/bin/sphinxtrain-ruby:23:in<main>' from /Users/Qambar/.rvm/gems/ruby-2.0.0-p451/bin/ruby_executable_hooks:15:in
eval' from /Users/Qambar/.rvm/gems/ruby-2.0.0-p451/bin/ruby_executable_hooks:15:in `