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
david@david-mirai ~/dev/jruby$ bin/jruby -b -e 'require "yaml"' | |
-> builtin/core_ext/symbol | |
<- builtin/core_ext/symbol - 39ms | |
-> enumerator | |
<- enumerator - 3ms | |
-> yaml | |
-> stringio | |
<- stringio - 9ms | |
-> yaml/compat | |
<- yaml/compat - 15ms |
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
From f1581da3a661efc4845473ceb5364b09e13a0a99 Mon Sep 17 00:00:00 2001 | |
From: David Calavera <[email protected]> | |
Date: Thu, 17 Dec 2009 09:50:52 +0100 | |
Subject: [PATCH] include external prototype library when it's not included in the default sources | |
--- | |
views/layouts/translate.rhtml | 3 +++ | |
1 files changed, 3 insertions(+), 0 deletions(-) | |
diff --git a/views/layouts/translate.rhtml b/views/layouts/translate.rhtml |
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/command_manager' | |
require 'rubygems/remote_fetcher' | |
require 'rubygems/spec_fetcher' | |
Gem::CommandManager.instance.register_command :maven | |
Gem::SpecFetcher.class_eval do | |
alias :fetch_old :fetch | |
def fetch(dependency, all = false, matching_platform = true, prerelease = false) |
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
david@david-mirai ~/dev/maven_gem$ jgem install ant:ant:1.6.5 | |
Retrieving POM from http://mirrors.ibiblio.org/pub/mirrors/maven2/ant/ant/1.6.5/ant-1.6.5.pom | |
Processing POM | |
Using ant.ant-1.6.5.9430 work dir | |
Fetching http://mirrors.ibiblio.org/pub/mirrors/maven2/ant/ant/1.6.5/ant.ant-1.6.5.jar | |
Writing ant.ant-1.6.5.9430/lib/ant.rb | |
Writing ant.ant-1.6.5.9430/metadata | |
Building ant.ant-1.6.5-java.gem | |
Done! | |
Successfully installed ant.ant-1.6.5-java |
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
diff --git a/src/org/jruby/RubyIO.java b/src/org/jruby/RubyIO.java | |
index 6ef60ac..f15a83d 100644 | |
--- a/src/org/jruby/RubyIO.java | |
+++ b/src/org/jruby/RubyIO.java | |
@@ -3688,6 +3688,13 @@ public class RubyIO extends RubyObject { | |
RubyHash rubyOptions = (RubyHash) options; | |
+ if (rubyOptions.containsKey(runtime.newSymbol("textmode")) && | |
+ rubyOptions.fastARef(runtime.newSymbol("textmode")).isTrue() |
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
[david@macskull:ruby19]$ ruby -e 'p Time.at(2.0)' | |
1970-01-01 01:00:02 +0100 | |
[david@macskull:ruby19]$ ruby -e 'p (Time.at(1.1) + 0.9)' | |
1970-01-01 01:00:02 +0100 | |
[david@macskull:ruby19]$ ruby -e 'p(Time.at(1.2) + 0.8)' | |
1970-01-01 01:00:02 +0100 | |
[david@macskull:ruby19]$ ruby -e 'p Time.at(2.0) == (Time.at(1.2) + 0.8)' | |
true | |
[david@macskull:ruby19]$ ruby -e 'p Time.at(2.0) == (Time.at(1.1) + 0.9)' |
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
J:\>bin\jruby.bat t.rb | |
'yes' is not recognized as an internal or external command, | |
operable program or batch file. | |
"after" | |
J:\> |
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
gems: | |
rack (1.1.0) | |
jruby-rack (0.9.7) | |
rails (2.3.5) | |
trinidad (0.8.2) |
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 'ant' | |
require 'fileutils' | |
include FileUtils | |
TARGET_DIR = 'target' | |
LIBS_DIR = 'trinidad-libs' | |
JAR_NAME = 'trinidad-daemon-extension.jar' | |
namespace :ant do | |
desc 'clean the java target directory' |
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
/Users/david/dev/jruby/lib/ruby/gems/1.8/gems/trinidad_sandbox_extension-0.1.0/lib/trinidad_sandbox_extension/sandbox_app.rb:7:in `GET /' | |
/Users/david/dev/jruby/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:863:in `route' | |
/Users/david/dev/jruby/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:521:in `instance_eval' | |
/Users/david/dev/jruby/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:521:in `route_eval' | |
/Users/david/dev/jruby/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:500:in `route!' | |
/Users/david/dev/jruby/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:497:in `catch' | |
/Users/david/dev/jruby/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:497:in `route!' | |
/Users/david/dev/jruby/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:476:in `each' | |
/Users/david/dev/jruby/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:476:in `route!' | |
/Users/david/dev/jruby/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:601:in `dispatch!' |