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' | |
require 'sinatra' | |
require 'sinatra/captcha' | |
require 'erb' | |
get '/' do | |
erb :captcha | |
end | |
post '/' do |
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' | |
require 'sinatra' | |
require 'sinatra/captcha' | |
require 'erb' | |
get '/' do | |
erb :captcha | |
end | |
post '/' do |
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
map.connect 'orders/:date_from', | |
:controller => 'orders', | |
:action => 'index', | |
:date_from => Time.new |
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 'pp' | |
=> true | |
>> pp Config::CONFIG | |
{"INSTALL_SCRIPT"=>"/usr/bin/install -c", | |
"DEFS"=>"", | |
"PACKAGE_VERSION"=>"", | |
"GREP"=>"/usr/bin/grep", | |
"EXPORT_PREFIX"=>"", | |
"COMMON_LIBS"=>"", | |
"sharedstatedir"=> |
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
MacBook-Air:~ benlovell$ sudo gem install nokogiri -s http://tenderlovemaking.com | |
Building native extensions. This could take a while... | |
Successfully installed nokogiri-1.3.1.20090615105405 | |
1 gem installed | |
Installing ri documentation for nokogiri-1.3.1.20090615105405... | |
Installing RDoc documentation for nokogiri-1.3.1.20090615105405... | |
MacBook-Air:~ benlovell$ irb | |
>> require 'nokogiri' | |
=> true | |
>> |
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
MacBook-Air:do_sqlite3 benlovell$ rake spec | |
(in /Users/benlovell/Code/do/do_sqlite3) | |
To cross-compile, install rake-compiler (gem install rake-compiler) | |
rubyforge gem is required to generate releases, please install it (gem install rubyforge). | |
rm -r ext/do_sqlite3_ext/do_sqlite3_ext.o | |
rm -r ext/do_sqlite3_ext/do_sqlite3_ext.bundle | |
rm -r lib/do_sqlite3_ext.bundle | |
rm -r ext/do_sqlite3_ext/mkmf.log | |
rm -r ext/do_sqlite3_ext/conftest.dSYM | |
rm -r ext/do_sqlite3_ext/Makefile |
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
>> Config::CONFIG | |
=> {"INSTALL_SCRIPT"=>"/usr/bin/install -c", "DEFS"=>"", "PACKAGE_VERSION"=>"", "GREP"=>"/usr/bin/grep", "EXPORT_PREFIX"=>"", "COMMON_LIBS"=>"", "sharedstatedir"=>"/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/com", "AR"=>"ar", "target_alias"=>"", "MANTYPE"=>"doc", "host_os"=>"darwin10.0", "RDOCTARGET"=>"", "build"=>"i686-apple-darwin10.0", "PACKAGE_STRING"=>"", "AS"=>"as", "build_os"=>"darwin10.0", "DLDFLAGS"=>"", "LIBRUBYARG"=>"-lruby", "PATH_SEPARATOR"=>":", "RUBY_INSTALL_NAME"=>"ruby", "PACKAGE_NAME"=>"", "LN_S"=>"ln -s", "EXTSTATIC"=>"", "EXEEXT"=>"", "mandir"=>"/usr/share/man", "YACC"=>"bison -y", "LIBPATHENV"=>"DYLD_LIBRARY_PATH", "sitearch"=>"universal-darwin10.0", "psdir"=>"/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/share/doc/$(PACKAGE)", "oldincludedir"=>"/usr/include", "DLEXT2"=>"", "LIBS"=>"-lpthread -ldl ", "localedir"=>"/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/share/locale", "bindir"=>"/System/Library/Frameworks/Ruby.framework/Vers |
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
MacBook-Air:do_sqlite3 benlovell$ rake spec | |
(in /Users/benlovell/Code/do/do_sqlite3) | |
To cross-compile, install rake-compiler (gem install rake-compiler) | |
rubyforge gem is required to generate releases, please install it (gem install rubyforge). | |
rm -r ext/do_sqlite3_ext/Makefile | |
rm -r ext-java/target | |
checking for sqlite3.h... yes | |
checking for sqlite3_open() in -lsqlite3... yes | |
checking for sqlite3_prepare_v2()... yes | |
checking for sqlite3_open_v2()... yes |
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
/Library/Ruby/Gems/1.8/gems/do_sqlite3-0.9.12/lib/do_sqlite3_ext.bundle: dlopen(/Library/Ruby/Gems/1.8/gems/do_sqlite3-0.9.12/lib/do_sqlite3_ext.bundle, 9): no suitable image found. Did find: (LoadError) | |
/Library/Ruby/Gems/1.8/gems/do_sqlite3-0.9.12/lib/do_sqlite3_ext.bundle: mach-o, but wrong architecture - /Library/Ruby/Gems/1.8/gems/do_sqlite3-0.9.12/lib/do_sqlite3_ext.bundle | |
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require' | |
from /Library/Ruby/Gems/1.8/gems/do_sqlite3-0.9.12/lib/do_sqlite3.rb:18 | |
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require' | |
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require' | |
from /Library/Ruby/Gems/1.8/gems/dm-core-0.9.11/lib/dm-core/adapters/sqlite3_adapter.rb:2 | |
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require' | |
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require' | |
from /Library/Ruby/Gems/1.8/gems/dm-core-0.9.11/lib/dm-core.rb:146:in `setup' |
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
ENV['RACK_ENV'] = 'test' | |
app_file = File.join(File.dirname(__FILE__), *%w[.. .. app.rb]) | |
require app_file | |
Sinatra::Application.app_file = app_file | |
require 'spec/expectations' | |
require 'webrat' |
NewerOlder