This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'open3' | |
cmd = 'echo hello' | |
Open3::popen3(cmd) do |stdin, stdout, stderr| | |
puts stdout.gets | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Compiler code | |
def compile(clazz, signature_provider=nil) | |
signature_provider=clazz unless signature_provider | |
clazz.public_instance_methods.each do |name| | |
signature = signature_provider.signature_for name | |
# do it... | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'java' | |
require 'jacob.jar' | |
import com.jacob.com.ComThread | |
import com.jacob.com.Dispatch | |
import com.jacob.com.Variant | |
class WIN32OLE | |
def initialize(id) | |
@obj = Dispatch.new(id) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Wrapper for calling the ActiveX-Method with input-parameter(s). | |
* @param nX an input-parameter of type int | |
* @param nY an input-parameter of type int | |
* @return the result is of type int | |
*/ | |
public int pixelGetColor(int nX, int nY) { | |
return Dispatch.call(this, "PixelGetColor", new Variant(nX), new Variant(nY)).changeType(Variant.VariantInt).getInt(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CLI: | |
C:\opt\jacobgen_0.10> docs\run_jacobgen.bat -distdir:"..\heh" -listfile:"jacobgenlog.txt" -package:heh "C:\Program Files\AutoIt3\AutoItX\AutoItX3.dll" | |
BAT: | |
REM | |
REM set JAVA_HOME=D:\jdk1.5.0_11 | |
set JRE=%JAVA_HOME%\bin\java | |
set JACOBGEN_HOME=. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mysql: 1814 tests, 6025 assertions, 19 failures, 1 errors | |
derby: 1819 tests, 5494 assertions, 43 failures, 183 errors | |
1819 tests, 5547 assertions, 43 failures, 161 errors | |
sqlite3: 1814 tests, 5382 assertions, 58 failures, 39 errors |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'java' | |
$LOAD_PATH.unshift File.dirname(__FILE__) + "/../dist" | |
require 'JRubyParser.jar' | |
import org.jrubyparser.Parser | |
import org.jrubyparser.parser.ParserConfiguration | |
JFile = java.io.File | |
import java.io.FileReader |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$LOAD_PATH.unshift File.dirname(__FILE__) + "/../helpers" | |
require 'java' | |
require File.dirname(__FILE__) + "/../../dist/JRubyParser.jar" | |
require 'parser_helpers' | |
require 'node_helpers' | |
describe Parser do | |
it "should parse a no-arg method without parens" do | |
ast = parse(<<-EOF) | |
def foo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ant clean spec-short-1.9 | |
Buildfile: build.xml | |
init: | |
clean: | |
[delete] Deleting directory /Users/enebo/work/jruby_trunk/build | |
[delete] Deleting directory /Users/enebo/work/jruby_trunk/docs/api | |
[delete] Deleting directory /Users/enebo/work/jruby_trunk/src_gen |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
run-specs-interpreted-short: | |
[echo] Excludes: /Users/enebo/work/jruby_trunk/spec/tags | |
[echo] compile=OFF, threshold=20, objectspace=true threadpool=false reflection=false compat=RUBY1_8 | |
[java] jruby 1.4.0dev (ruby 1.8.7 patchlevel 174) (2009-09-30 aa209db) (Java HotSpot(TM) Client VM 1.5.0_20) [i386-java] | |
[java] /bin/sh: sad: command not found | |
[java] /bin/sh: sad: command not found | |
[java] | |
[java] | |
[java] 1) | |
[java] Time.gm should accept various year ranges FAILED |
OlderNewer