Skip to content

Instantly share code, notes, and snippets.

config.gem: Unpacked gem coderay-0.8.260 in vendor/gems has no specification file. Run 'rake gems:refresh_specs' to fix this.
rake aborted!
RubyGem version error: actionpack(2.0.2 not = 1.13.6)
(See full trace by running task with --trace)
/home/hackerkiba/.gems/gems/typo-5.2.98/bin/typo:59:in `migrate': Migration failed (RailsInstaller::InstallFailed)
from /home/hackerkiba/.gems/gems/rails-app-installer-0.2.0/lib/rails-installer.rb:689:in `in_directory'
from /home/hackerkiba/.gems/gems/typo-5.2.98/bin/typo:57:in `migrate'
from /home/hackerkiba/.gems/gems/rails-app-installer-0.2.0/lib/rails-installer.rb:217:in `install_sequence'
from /home/hackerkiba/.gems/gems/rails-app-installer-0.2.0/lib/rails-installer.rb:192:in `install'
rake db:migrate RAILS_ENV=production
(in /home/hackerkiba/blog.kibabase.com)
config.gem: Unpacked gem coderay-0.8.260 in vendor/gems has no specification file. Run 'rake gems:refresh_specs' to fix this.
rake aborted!
RubyGem version error: actionpack(2.0.2 not = 1.13.6)
(See full trace by running task with --trace)
rake db:migrate RAILS_ENV=production --trace
(in /home/hackerkiba/blog.kibabase.com)
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
config.gem: Unpacked gem coderay-0.8.260 in vendor/gems has no specification file. Run 'rake gems:refresh_specs' to fix this.
rake aborted!
RubyGem version error: actionpack(2.0.2 not = 1.13.6)
/home/hackerkiba/blog.kibabase.com/config/../vendor/rails/railties/lib/initializer.rb:259:in `require_frameworks'
/home/hackerkiba/blog.kibabase.com/config/../vendor/rails/railties/lib/initializer.rb:133:in `process'
# Be sure to restart your server when you modify this file
# Uncomment below to force Rails into production mode when
# you don't control web/app server and can't set it the proper way
# ENV['RAILS_ENV'] ||= 'production'
# Specifies gem version of Rails to use when vendor/rails is not present
RAILS_GEM_VERSION = '2.2.2' unless defined? RAILS_GEM_VERSION
# Bootstrap the Rails environment, frameworks, and default configuration
class GameLaw < CharactersLaw
include CP
def initialize engine
super engine
@space.gravity = vec2(0,0)
end
def compute
super
end
end
@NakedMoleRatScientist
NakedMoleRatScientist / keeprunning.rb
Created May 14, 2009 21:06
Rubygame should crash not keep going!
require"rubygems"
require"rubygame"
include Rubygame
class LoopThrough
include Rubygame::EventHandler::HasEventHandler
def initialize
@screen = Screen.new([800,600],0,[Rubygame::HWSURFACE,Rubygame::DOUBLEBUF])
@q = Rubygame::EventQueue.new()
@q.enable_new_style_events()
end
# Passes the given event to the object's event handler.
def handle( event )
@event_handler.handle( event )
rescue NoMethodError
_make_event_handler
end
end
sdl src/app.rb
/usr/local/lib/ruby/gems/1.8/gems/gamebox-0.0.3/lib/gamebox/actor_factory.rb:55:in `build': Failed to construct 'game' (DIY::ConstructionError)
...caused by:
>>> undefined method `is?' for #<Generator:0x468b8e4> from /usr/local/lib/ruby/gems/1.8/gems/gamebox-0.0.3/lib/gamebox/level.rb:29:in `create_actor'
from ./src/../config/../src/demo_level.rb:5:in `setup'
#! /usr/bin/ruby
# Plot random pixels.
require 'rubygems'
require 'rubygame'
include Rubygame
Width = 640
Height = 400
require 'rubygems'
require 'eventmachine'
module ChatClient
def self.list
@list ||= []
end
def post_init
@name = "anonymous_#{rand(99999)}"