Skip to content

Instantly share code, notes, and snippets.

View dmilith's full-sized avatar
🤓
Calculating infinity…

Daniel (dmilith) Dettlaff dmilith

🤓
Calculating infinity…
View GitHub Profile
diff --git a/slices/merb-auth-slice-activation/app/helpers/mailer_helper.rb b/slices/merb-auth-slice-activation/app/help
index c3feb44..964101b 100644
--- a/slices/merb-auth-slice-activation/app/helpers/mailer_helper.rb
+++ b/slices/merb-auth-slice-activation/app/helpers/mailer_helper.rb
@@ -5,11 +5,9 @@ module Merb
# Does it's best to
def activation_url(user)
@activation_host ||= MaSA[:activation_host] || MaSA[:default_activation_host]
- @activation_protocol ||= MaSA[:activation_protocol] || "http"
require File.join(File.dirname(__FILE__), '..', 'spec_helper.rb')
require 'webrat'
describe "routes test" do
before(:each) do
@response0 = request("/")
@response1 = request("/register")
@response2 = request("/register/new")
@response3 = request("/register/create")
ruby -v
ruby 1.8.6 (2008-03-03 patchlevel 114) [universal-darwin9.0]
jruby -v
jruby 1.1.7 (ruby 1.8.6 patchlevel 287) (2009-01-12 rev 8711) [i386-java
dmilith:(~/Projects/RubyBenchmark)$ ruby ./test.rb
0.776125
0.775249
0.756961
.menu {
position: absolute;
top: 8.4em;
margin-left: 22em;
margin-bottom: 15px;
display: block;
}
.menusmall {
position: absolute;
dmilith:(~)$ cd Projects/codadris
dmilith:(~/Projects/codadris)$ git pull
remote: Counting objects: 6, done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 4 (delta 2), reused 0 (delta 0)
Unpacking objects: 100% (4/4), done.
From ssh://verknowsys@git.verknowsys.info/git/codadris
* [new branch] master2 -> origin/master2
* [new branch] origin/master -> origin/origin/master
Already up-to-date.
dmilith:(~/Projects/codadris)$ java -version
java version "1.6.0_07"
Java(TM) SE Runtime Environment (build 1.6.0_07-b06-153)
Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_07-b06-57, mixed mode)
dmilith:(~/Projects/codadris)$ ./maven2_install.rb
Darwin
+ Error stacktraces are turned on.
Maven version: 2.0.6
[DEBUG] Building Maven user-level plugin registry from: '/Users/dmilith/.m2/plugin-registry.xml'
compile-jruby:
[apt] Compiling 728 source files to /Users/dmilith/Projects/jruby/build/classes/jruby
[apt] warning: Annotation types without processors: [java.lang.Override, java.lang.Deprecated, java.lang.SuppressWarnings, org.jruby.anno.JRubyConstant, org.jruby.anno.JRubyModule, java.lang.annotation.Retention, java.lang.annotation.Target]
[apt] 1 warning
[apt] /Users/dmilith/Projects/jruby/src/org/jruby/anno/JavaMethodDescriptor.java:74: cannot find symbol
[apt] symbol : method copyOfRange(java.lang.Class[],int,int)
[apt] location: class java.util.Arrays
[apt] argumentTypes = Arrays.copyOfRange(parameters, (hasContext ? 1 : 0), parameters.length - (hasBlock ? 1 : 0));
[apt] ^
[apt] Note: Some input files use unchecked or unsafe operations.
dmilith:(~)$ gem19 install merb do_postgres
Building native extensions. This could take a while...
Building native extensions. This could take a while...
ERROR: Error installing merb:
ERROR: Failed to build gem native extension.
/Users/dmilith/Bin/Ruby1.9.1/bin/ruby19 extconf.rb install merb do_postgres
creating Makefile
make
~
~ FATAL: The gem RedCloth (~> 4.1.0, runtime), [] was not found
~
zsh: exit 1 jruby -S merb -a mongrel
dmilith:(~/Projekty/nargit)$ jgem install RedCloth
Successfully installed RedCloth-4.1.1-universal-java
1 gem installed
Installing ri documentation for RedCloth-4.1.1-universal-java...
Installing RDoc documentation for RedCloth-4.1.1-universal-java...
dmilith:(~/Projekty/nargit)$ jruby -S merb -a mongrel
// Find all employees older than 31
Query q = pm.newQuery("Native", new NativeQuery()
{
public boolean match(Object e)
{
if (!(e instanceof Employee))
{
return false;
}
return ((Employee)e).getAge() >= 32;