I installed rubeus using the command below:
jruby -S gem install rubeus
bundle install
Then when i execute:
include Rubeus::Swing
I get this error :
undefined method `to_a' for "include Rubeus::Swing\n":String
So I think gem installed the wrong version, because method to_a is no longer supported in Ruby 1.9.x for strings
How can I fix this?
code:
require 'rubygems'
require 'java'
require 'rubeus'
include Rubeus::Swing #it's where everything crashes :-)
UPDATE
It seems the problem is with the jirb, I saved the code in a file and ran the code with jruby, and everything went well... I'm confused, what's wrong with jirb?