Skip to content

Instantly share code, notes, and snippets.

source "http://rubygems.org"
# Specify your gem's dependencies in mantisrb.gemspec
gemspec
@klauern
klauern / .project
Created November 15, 2011 02:52
project config for gh project
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>github</name>
<comment>FIXME: write description</comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
PS C:\mydocs\Work\RubyPCIProjects\jruby> bin/jruby.bat spec/mspec/bin/mspec -T --1.9 spec/ruby/command_line/dash_a_spec.rb
Errno::ENOENT: No such file or directory - cannot execute
_exec_internal at org/jruby/RubyKernel.java:1584
exec at file:/C:/mydocs/Work/RubyPCIProjects/jruby/lib/jruby.jar!/jruby/kernel19/kernel.rb:25
run at C:/mydocs/Work/RubyPCIProjects/jruby/spec/mspec/lib/mspec/commands/mspec.rb:168
main at C:/mydocs/Work/RubyPCIProjects/jruby/spec/mspec/lib/mspec/utils/script.rb:218
(root) at spec/mspec/bin/mspec:7
Various incantations all result in the same error:
@klauern
klauern / ant clean test after patch
Created December 1, 2011 22:18
Error on 'ant clean test' on Win XP
PS C:\klauer-jruby> ant clean test
Buildfile: C:\klauer-jruby\build.xml
init:
prepare-bin-jruby:
clean:
[delete] Deleting directory C:\klauer-jruby\build
[delete] Deleting directory C:\klauer-jruby\docs\api
@klauern
klauern / console
Created December 8, 2011 20:54
ant test failure on test_file_url
run-junit-interpreted-short:
[echo] compile=OFF, jit.threshold=20, jit.maxsize=1000000000, jit.max=-1, objectspace=false threadpool=false reflection=false version=ruby1_8
[junit] Testsuite: org.jruby.test.ScriptTestSuite
[junit] Tests run: 32, Failures: 0, Errors: 0, Time elapsed: 13.844 sec
[junit]
[junit] Testsuite: org.jruby.test.JRubyTestSuite
[junit] Tests run: 35, Failures: 1, Errors: 0, Time elapsed: 28.656 sec
[junit]
[junit] Testcase: test_file(org.jruby.test.TestUnitTestSuite$ScriptTest): FAILED
[junit] Faults encountered running test\test_file, complete output follows:
@klauern
klauern / console
Created December 9, 2011 01:06
nifty WinXP errors on test/test_load.rb
PS C:\klauer-jruby> .\bin\jruby.bat .\test\test_load.rb
Run options:
# Running tests:
LoadError: no such file to load -- jruby
require at org/jruby/RubyKernel.java:961
(root) at C:/jruby-1.6.5//lib/ruby/site_ruby/shared/builtin/java/java.io.rb:1
require at org/jruby/RubyKernel.java:961
(root) at C:/jruby-1.6.5//lib/ruby/site_ruby/shared/builtin/java/java.io.rb:43
@klauern
klauern / console
Created December 15, 2011 13:50
git clone failures in Windows
PS C:\> git clone https://github.com/jruby/jruby.git jruby-d
Cloning into jruby-d...
remote: Counting objects: 176863, done.
remote: Compressing objects: 100% (42078/42078), done.
remote: Total 176863 (delta 124156), reused 175381 (delta 122846)Receiving objects: 100% (176863/176863), 78.24 MiB | 1.02 MiB/s
Receiving objects: 100% (176863/176863), 78.63 MiB | 1.02 MiB/s, done.
Resolving deltas: 100% (124156/124156), done.
error: unable to create file test/externals/ruby1.9/excludes/Psych::TestCoder.rb (Invalid argument)
error: unable to create file test/externals/ruby1.9/excludes/Psych::TestDateTime.rb (Invalid argument)
error: unable to create file test/externals/ruby1.9/excludes/Psych::TestEmitter.rb (Invalid argument)
@klauern
klauern / gist:1529369
Created December 28, 2011 19:47
rvm jruby upgrade
klauer@klauer-imac ~
$ rvm upgrade jruby-1.6.5 jruby-1.6.5.1
ERROR: Destination ruby is not a known ruby string.
klauer@klauer-imac ~
$ rvm install jruby
jruby-1.6.5.1 - #fetching
jruby-1.6.5.1 - #downloading jruby-bin-1.6.5.1, this may take a while depending on your connection...
% Total % Received % Xferd Average Speed Time Time Time Current
@klauern
klauern / gist:1530900
Created December 29, 2011 01:10
failed 'ant clean test' on Win
PS C:\jruby> ant clean test
Buildfile: C:\jruby\build.xml
init:
prepare-bin-jruby:
clean:
[delete] Deleting directory C:\jruby\build
[delete] Deleting directory C:\jruby\docs\api
@klauern
klauern / commandline.ps1
Created December 29, 2011 14:04
Oracle Service Name properties file for SchemasSpy
PS C:\mydocs\Downloads> java -jar .\schemaSpy_5.0.0.jar
*** Required parameter '-o' was not specified. ***
Usage:
java -jar .\schemaSpy_5.0.0.jar [options]
-t databaseType type of database - defaults to ora
use -dbhelp for a list of built-in types
-u user connect to the database with this user id
-s schema defaults to the specified user
-p password defaults to no password