Sha256: 38e1e8e075d920ae701e7cf26360bcae0b0422a293c5b3411e576edadd790be7

Contents?: true

Size: 694 Bytes

Versions: 2

Compression:

Stored size: 694 Bytes

Contents

#!/usr/bin/env ruby

# This is copied from the generated RubyGems bin stub
# It basically runs a specified version of the gem if given

version = ">= 0.a"

if ARGV.first
  str = ARGV.first
  str = str.dup.force_encoding("BINARY") if str.respond_to? :force_encoding
  if str =~ /\A_(.*)_\z/ and Gem::Version.correct?($1) then
    version = $1
    ARGV.shift
  end
end

gem 'svmlightcli', version

# Now we don't want to just load the ruby bin file, we want to execute it
# The reason is that it may not be necessarily a ruby file, could be native
system(Gem.bin_path('svmlightcli', 'svm_learn_native', version))
# Capture the exit status of the binary and exit with the same
exit($?.exitstatus)

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
svmlightcli-0.1.1 bin/svm_learn
svmlightcli-0.1.0 bin/svm_learn