This file contains 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
bundle install | |
Fetching source index from http://rubygems.org/ | |
Using rake (0.8.7) from system gems | |
Using abstract (1.0.0) from bundler gems | |
Using builder (2.1.2) from bundler gems | |
Using i18n (0.3.6) from bundler gems | |
Installing memcache-client (1.8.1) from .gem files at /Users/james/.rvm/gems/ruby-1.9.2-preview1/cache | |
Installing tzinfo (0.3.18) from rubygems repository at http://rubygems.org/ | |
Using activesupport (3.0.0.beta2) from bundler gems | |
Using activemodel (3.0.0.beta2) from bundler gems |
This file contains 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
% rails server | |
/Users/james/.rvm/gems/ruby-1.9.2-preview1/gems/tzinfo-0.3.18/lib/tzinfo/timezone.rb:108:in `rescue in get': protected method `setup' called for #<TZInfo::DataTimezone:0x00000100afef00> (TZInfo::InvalidTimezoneIdentifier) | |
from /Users/james/.rvm/gems/ruby-1.9.2-preview1/gems/tzinfo-0.3.18/lib/tzinfo/timezone.rb:83:in `get' | |
from /Users/james/.rvm/gems/ruby-1.9.2-preview1/gems/activesupport-3.0.0.beta2/lib/active_support/values/time_zone.rb:311:in `tzinfo' | |
from /Users/james/.rvm/gems/ruby-1.9.2-preview1/gems/activesupport-3.0.0.beta2/lib/active_support/values/time_zone.rb:205:in `utc_offset' | |
from /Users/james/.rvm/gems/ruby-1.9.2-preview1/gems/activesupport-3.0.0.beta2/lib/active_support/values/time_zone.rb:218:in `<=>' | |
from /Users/james/.rvm/gems/ruby-1.9.2-preview1/gems/activesupport-3.0.0.beta2/lib/active_support/values/time_zone.rb:374:in `sort!' | |
from /Users/james/.rvm/gems/ruby-1.9.2-preview1/gems/activesupport-3.0.0.beta2/lib/active_support/values/time_zone.rb:374:in `<class:TimeZone>' |
This file contains 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 'fastercsv' | |
>> puts require 'fastercsv' | |
false | |
>> g = [1,2,3,4,5] | |
>> puts g.class | |
Array | |
>> out = "" | |
>> r = FasterCSV.new(out) | |
>> r << g | |
>> p r.inspect |
This file contains 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
% rails generate mongoid:config | |
/Users/james/.rvm/gems/ruby-1.8.7-p249/gems/bundler-0.9.25/lib/bundler/resolver.rb:170:in `resolve': Could not find gem 'bson_ext (= 0.20.1, runtime)' in the gems available on this machine. (Bundler::GemNotFound) | |
from /Users/james/.rvm/gems/ruby-1.8.7-p249/gems/bundler-0.9.25/lib/bundler/resolver.rb:121:in `resolve' | |
from /Users/james/.rvm/gems/ruby-1.8.7-p249/gems/bundler-0.9.25/lib/bundler/resolver.rb:224:in `resolve_requirement' | |
from /Users/james/.rvm/gems/ruby-1.8.7-p249/gems/bundler-0.9.25/lib/bundler/resolver.rb:223:in `catch' | |
from /Users/james/.rvm/gems/ruby-1.8.7-p249/gems/bundler-0.9.25/lib/bundler/resolver.rb:223:in `resolve_requirement' | |
from /Users/james/.rvm/gems/ruby-1.8.7-p249/gems/bundler-0.9.25/lib/bundler/resolver.rb:177:in `resolve' | |
from /Users/james/.rvm/gems/ruby-1.8.7-p249/gems/bundler-0.9.25/lib/bundler/resolver.rb:176:in `reverse_each' | |
from /Users/james/.rvm/gems/ruby-1.8.7-p249/gems/bundler-0.9.25/lib/bundler/resolver.rb:176:in `resolve' | |
from /Use |
This file contains 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
{"confidence"=>1.0, "encoding"=>"ascii"} | |
{"confidence"=>1.0, "encoding"=>"ascii"} | |
{"confidence"=>1.0, "encoding"=>"ascii"} | |
{"confidence"=>1.0, "encoding"=>"ascii"} | |
{"confidence"=>1.0, "encoding"=>"ascii"} | |
{"confidence"=>1.0, "encoding"=>"ascii"} | |
{"confidence"=>1.0, "encoding"=>"ascii"} | |
{"confidence"=>1.0, "encoding"=>"ascii"} | |
{"confidence"=>1.0, "encoding"=>"ascii"} | |
{"confidence"=>1.0, "encoding"=>"ascii"} |
This file contains 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
class Foo | |
def initialize(path) | |
@file = path | |
puts self.class.to_s | |
puts Logger.new(STDOUT) | |
puts @logger = Logger.new("#{self.class.to_s}.log") | |
@logger.formatter = Logger::Formatter.new | |
puts "loggered" | |
require 'ruby-debug'; Debugger.start; Debugger.settings[:autoeval] = 1; Debugger.settings[:autolist] = 1; debugger | |
This file contains 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
# default.gems generated gem export file. Note that any env variable settings will be missing. Append these after using a ';' field separator | |
aasm -v2.1.5 | |
abstract -v1.0.0 | |
actionmailer -v3.0.0.beta3 | |
actionpack -v3.0.0.beta3 | |
activemodel -v3.0.0.beta3 | |
activerecord -v3.0.0.beta3 | |
activeresource -v3.0.0.beta3 | |
activesupport -v3.0.0.beta3 | |
activesupport -v2.3.5 |
This file contains 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
1.upto(10) do |row| | |
1.upto(10) do |col| | |
query(row, col) | |
end | |
end |
This file contains 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
% git br -a | |
master | |
* rails3 | |
remotes/origin/2.0 | |
remotes/origin/HEAD -> origin/master | |
remotes/origin/fixes_for_rails3 | |
remotes/origin/master | |
remotes/origin/new-syntax | |
remotes/origin/rails3 | |
remotes/origin/remove_active_support_dependency |
This file contains 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
class Converter | |
require 'logger' | |
# abstract class for converting from our sources into the main db... | |
attr_accessor :sources | |
def initialize(*sources) | |
self.sources = sources |