Sha256: 044b7b187f5411fe4575ababcc341d08e9c65a0cbc81f94b0bfcec44c70670f4
Contents?: true
Size: 697 Bytes
Versions: 2
Compression:
Stored size: 697 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_classify_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_classify |
svmlightcli-0.1.0 | bin/svm_classify |