Sha256: 0b331b7d9b65264838393a5a610750ddb8daf73b532d4280ab8ace8be752c84d
Contents?: true
Size: 702 Bytes
Versions: 1
Compression:
Stored size: 702 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', version) + '_native') # Capture the exit status of the binary and exit with the same exit($?.exitstatus)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
svmlightcli-0.1.2 | bin/svm_classify |