Skip to content

Instantly share code, notes, and snippets.

rm$ ruby functional/ft_24_block_participants.rb
ruby 1.8.7 (2009-12-24 patchlevel 248) [scrubbed]
Wed Jun 16 18:39:44 -0400 2010
Loaded suite functional/ft_24_block_participants
Started
FF.
Finished in 0.998852 seconds.
1) Failure:
test_block_result(FtBlockParticipantTest)
rm$ ruby -I /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib -ractive_support functional/ft_24_block_participants.rb
ruby 1.8.7 (2009-12-24 patchlevel 248) [scrubbed]
Wed Jun 16 22:28:03 -0400 2010
Loaded suite functional/ft_24_block_participants
Started
FF.
Finished in 1.315301 seconds.
1) Failure:
test_block_result(FtBlockParticipantTest)
rm$ ruby -I $HOME/.gem/ruby/1.8/gems/yajl-ruby-0.7.6/lib functional/ft_24_block_participants.rb
ruby 1.8.7 (2009-12-24 patchlevel 248) [scrubbed]
Wed Jun 16 22:35:14 -0400 2010
Loaded suite functional/ft_24_block_participants
Started
...
Finished in 0.855936 seconds.
3 tests, 3 assertions, 0 failures, 0 errors
require 'rubygems'
require 'ruote'
require 'ruote/storage/hash_storage'
# preparing the engine
engine = Ruote::Engine.new(
Ruote::Worker.new(
Ruote::HashStorage.new))
$ echo 'require "rubygems"; require "perftools"' |ruby
/usr/local/lib/ruby/gems/1.8/gems/perftools.rb-0.4.0/lib/perftools.so: /usr/local/lib/ruby/gems/1.8/gems/perftools.rb-0.4.0/lib/perftools.so: Undefined symbol "__gxx_personality_v0" - /usr/local/lib/ruby/gems/1.8/gems/perftools.rb-0.4.0/lib/perftools.so (LoadError)
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from -:1
NoMethodError: undefined method `downcase' for nil:NilClass
/usr/local/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/request.rb:44:in `media_type'
/usr/local/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/request.rb:114:in `form_data?'
/usr/local/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/request.rb:144:in `POST'
/usr/local/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/request.rb:165:in `params'
/usr/local/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:408:in `call!'
/usr/local/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:399:in `call'
/usr/local/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/showexceptions.rb:24:in `call'
/usr/local/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:979:in `call'
/usr/local/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:1005:in `synchronize'
@kagminjeong
kagminjeong / curb-timeout-test-server.rb
Created November 2, 2010 17:44
Sinatra application to test timeout functionality in curb
# This Sinatra application must be run with mongrel
# or possibly with unicorn for the serve action to work properly.
# See http://efreedom.com/Question/1-3669674/Streaming-Data-Sinatra-Rack-Application
require 'sinatra'
get '/wait/:time' do |time|
time = time.to_i
sleep(time)
"Slept #{time} at #{Time.now}"
*** LOCAL GEMS ***
aaronh-chronic (0.3.9)
abstract (1.0.0)
activemodel (3.0.3)
activerecord (3.0.3)
activesupport (3.0.3)
arel (2.0.6)
bacon (1.1.0)
builder (3.0.0, 2.1.2)
require 'rubygems'
require 'right_aws'
a=RightAws::AsInterface.new
a.create_launch_configuration('test1', 'ami-5ae11133', 'm1.small', :user_data => 'foo bar')
a.describe_launch_configurations.map { |lc| lc[:user_data] }
# => ["Zm9vIGJhcg=="]
% ./configure --prefix=~/tmp/rpg
building for FreeBSD on localhost.localdomain at Mon Jun 6 13:56:47 EDT 2011
looking for /bin/sh (found)
looking for bash (/usr/local/bin/bash)
looking for dash (missing)
looking for sed (/usr/bin/sed)
looking for perl (/usr/bin/perl)
looking for ruby (/usr/local/bin/ruby)
looking for install (/usr/bin/install -c -o root -g wheel)
looking for egrep (/usr/bin/grep -E)