Skip to content

Instantly share code, notes, and snippets.

View wilson's full-sized avatar

Wilson Bilkovich wilson

View GitHub Profile
# hg summary
# parent: 33780:28ef231a65a3 FIREFOX_3_6_3_BUILD1 FIREFOX_3_6_3_RELEASE
# Added tag FIREFOX_3_6_2_RELEASE for changeset d6e028dc1b68. CLOSED TREE
# branch: GECKO1922_20100315_RELBRANCH
. $topsrcdir/browser/config/mozconfig
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/ff-opt
mk_add_options MOZ_MAKE_FLAGS="-s -j4"
mk_add_options MOZ_CO_PROJECT=browser
mk_add_options AUTOCONF=autoconf213
def product(*arrays)
result = []
arrays = arrays.map {|array| Type.coerce_to(array, Array, :to_ary)}
arrays.push self
...
# vim: set filetype=ruby
rails_ver = ">= 2.3.5"
gem "rails", rails_ver
gem "rake", ">= 0.8.7"
gem "haml", ">= 2.2.9"
gem "acts_as_list", ">= 0.1.2"
gem "authlogic", ">= 2.1.2"
gem "bunny", ">= 0.6.0"
本拠> git fetch
本拠> git cherry -v wilson/master
+ 6bb11cd7627f81f6bc81a8ba042ec0907fc19fe4 Avoid Symbol#to_proc, compatible with MRI 1.8.6 again.
+ 0ccaf87116defe87678499ea97c3640fb3188cce Give some 'require_as' examples in the README
本拠> git status
# On branch wilson
# Your branch is ahead of 'wilson/master' by 2 commits.
#
nothing to commit (working directory clean)
本拠> git rebase wilson/master
# Load the environment constructed from the Gemfile
require 'vendor/bundled_gems/environment'
module Rails
class Boot
def run
load_initializer
extend_environment
Rails::Initializer.run(:set_load_path)
end
本拠> rake --trace ~/code/kgb/dharma
(in /Users/wilson/code/kgb/dharma)
/usr/local/lib/ruby/site_ruby/1.9.1/rubygems.rb:14: warning: already initialized constant VERSION
/usr/local/lib/ruby/site_ruby/1.9.1/rubygems.rb:14: warning: already initialized constant RubyGemsVersion
/usr/local/lib/ruby/site_ruby/1.9.1/rubygems.rb:194: warning: already initialized constant MUTEX
/usr/local/lib/ruby/site_ruby/1.9.1/rubygems.rb:196: warning: already initialized constant RubyGemsPackageVersion
/usr/local/lib/ruby/site_ruby/1.9.1/rubygems.rb:202: warning: already initialized constant WIN_PATTERNS
/usr/local/lib/ruby/site_ruby/1.9.1/rubygems.rb:1079: warning: already initialized constant MARSHAL_SPEC_DIR
/usr/local/lib/ruby/site_ruby/1.9.1/rubygems.rb:1084: warning: already initialized constant YAML_SPEC_DIR
/usr/local/lib/ruby/site_ruby/1.9.1/rubygems/version.rb:72: warning: already initialized constant VERSION_PATTERN
Breakpoint 1, rubinius::MetaClass::attach (state=0x101204b00, obj=0x101226220, sup=0x0) at vm/builtin/class.cpp:204
204
(gdb) rp already_meta
#<MetaClass:Class Object:0x101226220>
$1 = void
(gdb) rp already_meta->superclass()
#<Class(Class):0x101225c70>
name: :Class
superclass: #<Module(Class):0x101225df0>
constants: #<Rubinius::LookupTable:0x101400ed0>
(gdb) rp already_meta->true_superclass(state)
#<Module(Class):0x101225df0>
name: :Module
superclass: #<Object(Class):0x101225d70>
constants: #<Rubinius::LookupTable:0x1014010a0>
method_table: #<Rubinius::MethodTable:0x101401170>: 18
:constant_table, :direct_superclass, :attr_writer, :protected, :alias_method, :module_function, :const_set, :encloser, :name, :append_features, :included, :attr_accessor, :const_missing, :include, :method_table, :superclass=, :attr_reader, :private
>
>
$2 = void
# shortcut method for opening a metaclass on the receiver
module Kernel;def m;class << self;self;end;end;end
Module.m # #<Class:Module>, metaclass of Module
Module.m.superclass # Class, because that is how Module is bootstrapped
Module.m.m # #<Class:#<Class:Module>>, metaclass of Module's metaclass
Module.m.superclass # #<Class:#<Class:Module>>
Module.m.m.superclass # #<Class:#<Class:Module>>
# Opening a metaclass on Module's metaclass changes its superclass to be the same as its metaclass's superclass!?
Process: vm [69929]
Path: /Users/wilson/code/rbx/vm/vm
Identifier: vm
Version: ??? (???)
Code Type: X86-64 (Native)
Parent Process: zsh [37874]
Date/Time: 2009-11-22 04:23:08.915 -0500
OS Version: Mac OS X 10.6.2 (10C540)
Report Version: 6