mahoney has joined #ruby-core
hasimo-t has quit [Remote host closed the connection]
hasimo-t has joined #ruby-core
<znz_v> biff: [ruby-changes:27846] nobu:r39898 (trunk): load.c: no longer used variable and object - http://mla.n-z.jp/?ruby-changes=27846
kosaki8 has quit [Quit: Leaving...]
idkazuma has quit [Remote host closed the connection]
agarie has joined #ruby-core
<mahoney> While evaluating within obj.instance_eval, how do I get "obj" from nested classes/functions? I've been tracing up the rb_control_frame_t until I hit an instance of the class of "obj", but that doesn't seem right at all.
<mahoney> I'm trying to hook the global variable $window to the Window that is evaluating the code.
n0kada has quit [Ping timeout: 256 seconds]
tenderlove has quit [Remote host closed the connection]
tenderlove has joined #ruby-core
charliesome has joined #ruby-core
plusk has joined #ruby-core
mahoney has quit [Remote host closed the connection]
n0kada-freenode has joined #ruby-core
<drbrain> zzak: /^invalid options/ ?
<drbrain> why ^?
<zzak> i stole it from another test on there
agarie has quit [Read error: Connection reset by peer]
<zzak> so it works if you do @options.parse %w[--format=foo --whatever-else]
<zzak> but i dont want that in every test
<zzak> think i need setup_generator
agarie has joined #ruby-core
<zzak> drbrain: here's the test https://gist.github.com/zzak/5230067
<zzak> should i commit?
<drbrain> I'm confused, this test doesn't have /^invalid options/
<zzak> should it? i was just testing that you can change the formatter
<drbrain> but your new test in 5230067 seems fine
<zzak> ohh, yah the other gist was confusing
<zzak> sdoc was getting undefined --github flags
<zzak> so i started by writing tests to make sure their custom options are accepted
<zzak> (theres no tests for sdoc currently)
<zzak> ill commit 5230067
<drbrain> oh, yeah, unsurprising
plusk has quit [Quit: plusk]
<drbrain> I'm glad voloko accepted my pull request that extracted his awesome JS search engine
<zzak> oh ya?
plusk has joined #ruby-core
plusk has quit [Client Quit]
<drbrain> yeah
<drbrain> so now I maintain it in rdoc and sdoc uses it :D
<zzak> the json_index generator?
<drbrain> yes
<zzak> :D
<zzak> i was thoroughly frustrated with those tests
<zzak> so @options.send :setup_generator is the only way to switch formatter, unless you parse the --format option?
<drbrain> I think you can call it directly
<drbrain> yeah, no need for send
<zzak> it kept saying undefined method
<drbrain> ruby -rrdoc -e 'RDoc::Options.new.setup_generator "ri"'
<zzak> hmm
<zzak> yeah it works for me too
<zzak> it didnt when i was testing tho
<zzak> oh, derp i was doing @options.setup_generator = 'foo'
<zzak> thank god for commit --amend
<znz_v> biff: [ruby-changes:27847] akr:r39899 (trunk): * test/ruby/test_require.rb: Remove temporally files in the tests. - http://mla.n-z.jp/?ruby-changes=27847
<zzak> im writing sdoc with rspec, since that was what was in the Rakefile
<zzak> but there was literally no tests
<zzak> maybe rewrite them in minitest eventually, so i can use RDoc::TestCase
<drbrain> why not minitest::spec
<zzak> either way
<zzak> thought they might want it done in rspec since that was there before
<zzak> does it matter that it herits from MiniTest::Unit ?
<drbrain> I'm unsure
<drbrain> I think MiniTest::Spec adds a new feature or two
<zzak> i mean RDoc::TestCase is subclass of MiniTest::Unit
<drbrain> if you subclass RDoc::TestCase to write SDoc tests then you cannot mix it with rspec
<zzak> what about minitest::spec
<drbrain> latest minitest allows this
hasimo-t has quit [Remote host closed the connection]
<zzak> drbrain: class MiniTest::Spec; include RDoc::TestCase; end ?
<drbrain> no, since RDoc::TestCase is a module
<drbrain> I think you need to class SDoc::TestCase < RDoc::TestCase; include MiniTest::DSL or somethnig
<drbrain> check the latest minitest release notes
<zzak> ohh, you have to use DSL
<zzak> got it
<zzak> thanks
<drbrain> cool
<zzak> its MiniTest::Spec::DSL
<zzak> but yah, that was a quick switch
<zzak> only 11 assertions so far
plusk has joined #ruby-core
<zzak> doing something wrong
<zzak> always :(
<zzak> cant parse new options after calling setup_generator
<zzak> do i really have to pass --format=sdoc everytime i want to test options? :(
<drbrain> setup_generator adds the generator's options into RDoc::OptionParser
<drbrain> you can probably @options.setup_generator 'sdoc'; @options.parse %w[…]
<zzak> maybe i should set @parser = @options.option_parser
<zzak> im calling setup_generator in before :each
<zzak> for now im doing @default_options = '--format=sdoc'
<zzak> and in each test: @options.parse @default_options << '--github'
<zzak> for example
* drbrain nods
<zzak> @options.setup_generator; @parser = @options.option_parser; ... @parser.parse '--github'; doesnt work
<drbrain> I'd need to see a gist
<zzak> k
<drbrain> what failure do you see?
<zzak> @options.github is nil
<drbrain> but line 24 passes?
<drbrain> well, shouldn't line 24 be: err.wont_match /^invalid options/
<zzak> yah
<zzak> same thing
<drbrain> I think you have too many parts
<zzak> its a valid option
<zzak> maybe because @parser doesnt know about @options
<drbrain> maybe
<drbrain> yes,
<drbrain> delete line 18
<zzak> it works with @default_options.push
<drbrain> line 21 sets an option on @options from line 3
<zzak> haha, howd that sneak in there
<drbrain> but line 25 tests @options from line 18
<drbrain> so, right number of moving parts
<zzak> perfect
<zzak> down to 2 failures
<zzak> committed for now, getting better, hopefully we can release and have RDoc 4.0 support in the next rails
<zzak> kind of crappy that the only blocker is because they have it as a runtime dependency for api.rubyonrails.org, but whatever
nari has joined #ruby-core
kosaki8 has joined #ruby-core
plusk has quit [Quit: plusk]
kosaki8 has quit [Quit: Leaving...]
<charliesome> _ko1: are you around?
davidbalber|away is now known as davidbalbert
ritek has joined #ruby-core
davidbalbert is now known as davidbalber|away
nari has quit [Ping timeout: 248 seconds]
nari has joined #ruby-core
<znz_v> biff: [ruby-changes:27848] nari:r39900 (trunk): * gc.c: We have no chance to expand the heap when lazy sweeping is - http://mla.n-z.jp/?ruby-changes=27848
<znz_v> biff: [ruby-changes:27849] nari:r39901 (trunk): * gc.c (GC_ENABLE_LAZY_SWEEP): new macro to switch lazy sweeping - http://mla.n-z.jp/?ruby-changes=27849
hasimo-t has joined #ruby-core
nari has quit [Ping timeout: 256 seconds]
<znz_v> biff: [ruby-changes:27850] nobu:r39902 (trunk): gc.c: fix compile error - http://mla.n-z.jp/?ruby-changes=27850
bitwiser has joined #ruby-core
hasimo-t has quit [Remote host closed the connection]
nokada has quit [Read error: Connection reset by peer]
nokada_ has joined #ruby-core
nokada has joined #ruby-core
nokada_ has quit [Read error: Connection reset by peer]
charliesome_ has joined #ruby-core
charliesome has quit [Ping timeout: 252 seconds]
charliesome_ is now known as charliesome
bitwiser has quit [Quit: bitwiser]
ritek has quit [Remote host closed the connection]
ritek has joined #ruby-core
ritek has quit [Remote host closed the connection]
kosaki8 has joined #ruby-core
tenderlove has quit [Remote host closed the connection]
tenderlove has joined #ruby-core
ged has quit [Ping timeout: 260 seconds]
kosaki8 has quit [Ping timeout: 260 seconds]
ged has joined #ruby-core
kosaki8 has joined #ruby-core
<znz_v> biff: [ruby-changes:27851] knu:r39903 (trunk): Fix String#rpartition(/re/) against a multibyte string. - http://mla.n-z.jp/?ruby-changes=27851
idkazuma has joined #ruby-core
idkazuma has quit [Ping timeout: 258 seconds]
nari has joined #ruby-core
<znz_v> biff: [ruby-changes:27852] nobu:r39905 (trunk): * test/ruby/envutil.rb (assert_ruby_status): include stderr output. - http://mla.n-z.jp/?ruby-changes=27852
<znz_v> biff: [ruby-changes:27853] nobu:r39904 (trunk): * vm_method.c (rb_sweep_method_entry): simplify code to unlink. - http://mla.n-z.jp/?ruby-changes=27853
agarie has quit [Remote host closed the connection]
kosaki8 has quit [Ping timeout: 260 seconds]
kosaki8 has joined #ruby-core
plusk has joined #ruby-core
kosaki8 has quit [Ping timeout: 258 seconds]
plusk has quit [Quit: plusk]
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
johnnymugs has joined #ruby-core
nagachika has joined #ruby-core
<znz_v> biff: [ruby-changes:27854] naruse:r39906 (trunk): * string.c (rb_str_rpartition): revert r39903, and convert byte offset - http://mla.n-z.jp/?ruby-changes=27854
<znz_v> biff: [ruby-changes:27855] nagachika:r39907 (trunk): * ChangeLog: fix a typo in r39892. - http://mla.n-z.jp/?ruby-changes=27855
<znz_v> biff: [ruby-changes:27856] naruse:r39908 (trunk): Try interface indexes which can use for IPv6 multicast - http://mla.n-z.jp/?ruby-changes=27856
<znz_v> biff: [ruby-changes:27857] nagachika:r39909 (ruby_2_0_0): merge revision(s) 39507,39508: [Backport #7963] - http://mla.n-z.jp/?ruby-changes=27857
<znz_v> biff: [ruby-changes:27858] nagachika:r39910 (ruby_2_0_0): merge revision(s) 39536: [Backport #7989] - http://mla.n-z.jp/?ruby-changes=27858
<znz_v> biff: [ruby-changes:27859] nagachika:r39911 (ruby_2_0_0): merge revision(s) 39578: [Backport #8009] - http://mla.n-z.jp/?ruby-changes=27859
kosaki8 has joined #ruby-core
<znz_v> biff: [ruby-changes:27860] nagachika:r39912 (ruby_2_0_0): merge revision(s) 39601 and 39602(partially): [Backport #7983] - http://mla.n-z.jp/?ruby-changes=27860
<znz_v> biff: [ruby-changes:27861] nagachika:r39913 (ruby_2_0_0): merge revision(s) 39595: [Backport #8014] - http://mla.n-z.jp/?ruby-changes=27861
<znz_v> biff: [ruby-changes:27862] nagachika:r39914 (ruby_2_0_0): merge revision(s) 39627: [Backport #8008] - http://mla.n-z.jp/?ruby-changes=27862
<znz_v> biff: [ruby-changes:27863] nagachika:r39915 (ruby_2_0_0): merge revision(s) 39614: [Backport #8033] - http://mla.n-z.jp/?ruby-changes=27863
<znz_v> biff: [ruby-changes:27864] nagachika:r39916 (ruby_2_0_0): merge revision(s) 39632: [Backport #8013] - http://mla.n-z.jp/?ruby-changes=27864
plusk has joined #ruby-core
plusk has quit [Client Quit]
plusk has joined #ruby-core
<znz_v> biff: [ruby-changes:27865] nagachika:r39917 (ruby_2_0_0): merge revision(s) 39625,39626: [Backport #8008] - http://mla.n-z.jp/?ruby-changes=27865
plusk has left #ruby-core [#ruby-core]
<znz_v> biff: [ruby-changes:27866] nagachika:r39918 (ruby_2_0_0): merge revision(s) 39677,39695: [Backport #8068] - http://mla.n-z.jp/?ruby-changes=27866
<znz_v> biff: [ruby-changes:27867] nari:r39919 (trunk): * proc.c (bm_free): need to clean up the mark flag of a free and - http://mla.n-z.jp/?ruby-changes=27867
<znz_v> biff: [ruby-changes:27868] svn:r39920 (trunk): * 2013-03-25 - http://mla.n-z.jp/?ruby-changes=27868
kosaki8 has quit [Ping timeout: 248 seconds]
kosaki2 has joined #ruby-core
nari has quit [Ping timeout: 240 seconds]
kosaki2 has quit [Remote host closed the connection]
kosaki2 has joined #ruby-core
nagachika has quit [Remote host closed the connection]
kosaki2 has quit [Remote host closed the connection]
kosaki2 has joined #ruby-core
tenderlove has quit [Remote host closed the connection]
tenderlove has joined #ruby-core
judofyr has joined #ruby-core
marcandre has joined #ruby-core
judofyr has quit [Remote host closed the connection]
agarie has joined #ruby-core
kosaki2 has quit [Remote host closed the connection]
kosaki2 has joined #ruby-core
<znz_v> biff: [ruby-changes:27869] kosaki:r39921 (trunk): * addr2line.c (putce): suppress unused return value warning. - http://mla.n-z.jp/?ruby-changes=27869
<znz_v> biff: [ruby-changes:27870] drbrain:r39922 (trunk): * test/rinda/test_rinda.rb: Skip IPv6 tests if no IPv6 addresses - http://mla.n-z.jp/?ruby-changes=27870
kosaki2 has quit [Remote host closed the connection]
<znz_v> biff: [ruby-changes:27871] drbrain:r39923 (trunk): * lib/rinda/tuplespace.rb: Only return tuple entry once on move, - http://mla.n-z.jp/?ruby-changes=27871
idkazuma has joined #ruby-core
wudofyr has quit [Remote host closed the connection]
wudofyr has joined #ruby-core
wudofyr has quit [Remote host closed the connection]
wudofyr has joined #ruby-core
kosaki8 has joined #ruby-core
his_shadow has joined #ruby-core
Guest85414 has quit [Ping timeout: 245 seconds]
kosaki8 has quit [Ping timeout: 248 seconds]
kosaki8_ has joined #ruby-core
johnnymugs has quit [Ping timeout: 245 seconds]
heroux_ has joined #ruby-core
johnnymugs has joined #ruby-core
xibbar has joined #ruby-core
heroux has quit [*.net *.split]
xibbar_ie has quit [*.net *.split]
guilleiguaran_ has quit [*.net *.split]
xibbar_ie has joined #ruby-core
heroux_ has quit [Ping timeout: 260 seconds]
heroux has joined #ruby-core
charliesome has joined #ruby-core
nagachika has joined #ruby-core
nagachika has quit [Remote host closed the connection]
sora_h__ has joined #ruby-core
_br_- has joined #ruby-core
<agarie> hey, I found a very small mistake in the docs, it's only a single line. Should I send a patch or is it better to show it here?
_br_ has quit [*.net *.split]
n0kada-freenode has quit [*.net *.split]
sora_h has quit [*.net *.split]
brixen_ has joined #ruby-core
<drbrain> I can take care of it
<drbrain> agarie: what is it?
<agarie> drbrain: in the array docs, there's a line which says "Array.new(3, true) #=> [0, 0, 0]", when it should be "Array.new(3, true) #=> [true, true, true]"
<agarie> It's under "Creating Arrays"
nokada has quit [*.net *.split]
hone has quit [*.net *.split]
kosaki8_ has quit [*.net *.split]
brixen has quit [*.net *.split]
hiroyuki2 has quit [*.net *.split]
<drbrain> looks like it's been fixed on trunk
<agarie> oh ok, thanks for taking a look