Show
added a comment - e.g. Given this code, the following is the result of various Rubys
original_constants = Object .constants
Kernel::Foo1 = 'foo1'
module Kernel
Foo2 = 'foo2'
end
Foo3 = 'foo3'
puts ( Object .constants - original_constants).join(', ')
~/Projects/open_source/JRUBY-3144-3399 $ multiruby test7.rb
============================ jruby-working =======================================================
Foo3
============================ jruby2 ==============================================================
Foo3
============================ ruby-1.8.6-p287-previously-mac-10.5-default-no-ssl ==================
Foo3, Foo1, Foo2
============================ ruby-1.8.6-p369 =====================================================
Foo3, Foo1, Foo2
============================ ruby-1.8.7-p160 =====================================================
Foo2, Foo3, Foo1
============================ ruby-1.8.7-p17 ======================================================
Foo2, Foo3, Foo1
============================ ruby-1.8.7-p174 =====================================================
Foo2, Foo3, Foo1
============================ ruby-1.8.7-p22 ======================================================
Foo2, Foo3, Foo1
============================ ruby-1.8.7-p71 ======================================================
Foo2, Foo3, Foo1
============================ ruby-1.8.7-p72 ======================================================
Foo2, Foo3, Foo1
============================ ruby-1.8.7-p72-mac-default ==========================================
Foo1, Foo2, Foo3
============================ ruby-1.8.7-preview1 =================================================
Foo2, Foo3, Foo1
============================ ruby-1.8.7-preview2 =================================================
Foo2, Foo3, Foo1
============================ ruby-1.8.7-preview3 =================================================
Foo3, Foo1, Foo2
============================ ruby-1.8.7-preview4 =================================================
Foo3, Foo1, Foo2
============================ ruby-1.9.1-p0-previously-macports-defualt ===========================
Foo3, Foo1, Foo2
============================ ruby-1.9.1-p129 =====================================================
Foo3, Foo1, Foo2
============================ ruby-1.9.1-p243-macports ============================================
Foo3, Foo1, Foo2
Tagged in r9111.