Examples of addGemPath()


Examples of de.saumya.mojo.ruby.gems.GemsConfig.addGemPath()

        // setup local rubygems repository
        this.home = new File("target");
        this.path = new File("target/rubygems");
        GemsConfig config = new GemsConfig();
        config.setGemHome(home);
        config.addGemPath(path);
       
        this.path.mkdirs();
        this.expected = "onetwothree" + SEP + this.home.getAbsolutePath() + SEP
                + this.path.getAbsolutePath() + SEP;
View Full Code Here

Examples of org.jruby.embed.IsolatedScriptingContainer.addGemPath()

  // System.setProperty( "jruby.debug.loadService", "true" );
  System.setProperty( "jruby.native.verbose", "true" );

  IsolatedScriptingContainer jruby = new IsolatedScriptingContainer();
  jruby.addLoadPath( Scripts.class.getClassLoader() );
  jruby.addGemPath( Gems.class.getClassLoader() );
 
        // run a script from LOAD_PATH
        String hello = (String) jruby.runScriptlet( "require 'hello'; Hello.say" );
        assertEquals( hello, "world" );
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.