adambeynon changed the topic of #opal to: http://opalrb.org - Ruby runtime and library on top of Javascript | 1.0.0 is near | This channel is logged at http://irclog.whitequark.org/opal
ryanstout has quit [Quit: ryanstout]
ryanstout has joined #opal
e_dub has joined #opal
e_dub has quit [Ping timeout: 272 seconds]
e_dub has joined #opal
meh` has quit [Ping timeout: 252 seconds]
skofo has joined #opal
ryanstout has quit [Read error: Connection reset by peer]
ryanstout has joined #opal
skofo has quit [Ping timeout: 245 seconds]
ryanstout has quit [Quit: ryanstout]
adambeynon has joined #opal
GitHub33 has joined #opal
<GitHub33> [opal-rspec] adambeynon pushed 1 new commit to master: http://git.io/apMJMA
<GitHub33> opal-rspec/master 1e158d3 Adam Beynon: Add some extra specs for mocking and stubbing
GitHub33 has left #opal [#opal]
kludge` has quit [Ping timeout: 248 seconds]
kludge` has joined #opal
GitHub9 has joined #opal
GitHub9 has left #opal [#opal]
<GitHub9> opalrb.org/master df948cb Adam Beynon: Replace opal-rspec link with opal-rspec
<GitHub9> [opalrb.org] adambeynon pushed 1 new commit to master: http://git.io/nH0EAg
GitHub82 has joined #opal
<GitHub82> opalrb.org/gh-pages 45fe9fd Adam Beynon: Site updated to df948cb
GitHub82 has left #opal [#opal]
<GitHub82> [opalrb.org] adambeynon pushed 1 new commit to gh-pages: http://git.io/3dHjTQ
[spoiler] has joined #opal
GitHub71 has joined #opal
<GitHub71> [opal] adambeynon pushed 1 new commit to master: http://git.io/79vRgA
GitHub71 has left #opal [#opal]
GitHub189 has joined #opal
<GitHub71> opal/master 5b48e1a Adam Beynon: v0.5.1
GitHub189 has left #opal [#opal]
<GitHub189> [opal] adambeynon tagged v0.5.1 at 6d9cb9a: http://git.io/_bRUVg
GitHub39 has joined #opal
GitHub39 has left #opal [#opal]
<GitHub39> opal-rspec/master 06449c8 Adam Beynon: v0.2.0
<GitHub39> [opal-rspec] adambeynon pushed 1 new commit to master: http://git.io/VMic8A
GitHub104 has joined #opal
GitHub104 has left #opal [#opal]
<GitHub104> [opal-rspec] adambeynon tagged v0.2.0 at 4689c5f: http://git.io/COK35g
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
travis-ci has joined #opal
<travis-ci> [travis-ci] Build details : http://travis-ci.org/opal/opal/builds/13762141
<travis-ci> [travis-ci] opal/opal#1387 (v0.5.1 - 5b48e1a : Adam Beynon): The build passed.
<travis-ci> [travis-ci] Change view : https://github.com/opal/opal/compare/v0.5.1
travis-ci has left #opal [#opal]
travis-ci has joined #opal
travis-ci has left #opal [#opal]
<travis-ci> [travis-ci] opal/opal#1387 (master - 5b48e1a : Adam Beynon): The build passed.
<travis-ci> [travis-ci] Build details : http://travis-ci.org/opal/opal/builds/13762143
DouweM has quit [Ping timeout: 245 seconds]
DouweM has joined #opal
e_dub has quit [Ping timeout: 272 seconds]
e_dub has joined #opal
e_dub has quit [Ping timeout: 240 seconds]
e_dub has joined #opal
[spoiler] has quit [Read error: Connection reset by peer]
e_dub has quit [Ping timeout: 272 seconds]
meh` has joined #opal
GitHub108 has joined #opal
<GitHub108> opal/master 95ee0ab meh: Add Opal.coerce_to! helper
GitHub108 has left #opal [#opal]
<GitHub108> opal/master e3e2e70 meh: Make Enumerator#inspect compliant
<GitHub108> [opal] meh pushed 5 new commits to master: http://git.io/_-wEKw
<GitHub108> opal/master 865cde5 meh: Implement Enumerator::Lazy#collect_concat
travis-ci has joined #opal
<travis-ci> [travis-ci] Build details : http://travis-ci.org/opal/opal/builds/13768653
<travis-ci> [travis-ci] opal/opal#1388 (master - da897df : meh): The build passed.
travis-ci has left #opal [#opal]
[spoiler] has joined #opal
[spoiler] has quit [Quit: Leaving]
elia has joined #opal
elia has quit [Quit: Computer has gone to sleep.]
elia has joined #opal
adambeynon has joined #opal
elia has quit [Quit: Computer has gone to sleep.]
<meh`> adambeynon, ping
<adambeynon> yo yo
<meh`> adambeynon, I need something
<meh`> adambeynon, can we have a way to output the name of the currently running spec every time one is ran?
<meh`> I'm getting infinite loops in some enumerable stuff and it's impossible to debug
<meh`> without knowing the specific spec that's getting into it
<adambeynon> meh`: I dont think mspec offers a hook for that
<meh`> snab
<meh`> brixen, ping
<meh`> adambeynon, can we set ourselves as 2.0 please? I keep getting into slight inconsistencies
<adambeynon> meh`: we are way behind on hitting a load of 1.9 stuff
<meh`> adambeynon, I know, but it's going to make things easier
<meh`> the things that would break in 1.9 would also break in 2.0
<meh`> and we're 1.9 even if we don't implement those yet
<meh`> all the specs pass so far changing to 2.0
<meh`> I don't think it will have any effects on the general usage
<meh`> and by general usage I mean on libraries
<meh`> adambeynon, isn't arity checking enabled to run the specs?
<meh`> 2. Enumerable#cycle passed a number n as an argument raises an ArgumentError if more arguments are passed
<meh`> Expected ArgumentError but no exception was raised (undefined was returned)
<meh`> def cycle(n = nil, &block)
<meh`> this is the signature
<meh`> lambda{ enum.cycle(1, 2) {} }.should raise_error(ArgumentError)
<meh`> this is the call
<adambeynon> meh`: looks like a bug in the arity checking
<adambeynon> its not working for opt args
<adambeynon> which is odd
<adambeynon> Im sure it was fine before
<meh`> same
<meh`> it would fail everywhere else
<meh`> want me to mark it as failing and push?
<adambeynon> is it a new spec?
<meh`> yes
<adambeynon> yeah, mark as failing for now then
<adambeynon> I will need to fix arity checks
<meh`> I just saw we have a lot of specs marked as failing
<meh`> gotta fix it
<brixen> meh`: yo
<adambeynon> indeed
<meh`> brixen, is there a way to get the name of the specs that are being ran as they're ran?
<brixen> yep
<brixen> meh`: check out the reporters
<brixen> or actions
<brixen> sorry, reporter == formatter
<brixen> meh`: you can have custom stuff in mspec too, just add to your project
<meh`> brixen, thanks
<meh`> adambeynon, can you take a look at that?
<adambeynon> meh`: you need to register for whatever action it is
<meh`> I see
<adambeynon> but only for debugging, we dont want it commited
<meh`> adambeynon, anyway, we have 10 missing methods from Enumerable
<adambeynon> sounds about right, about 6 from array and 4 from hash, too
<meh`> adambeynon, roger, I'll work on that
<meh`> first cleanup the filters for enumerable
<meh`> I think most of that stuff works
<meh`> then String#split
<meh`> adambeynon, do you have any news from rubyconf?
<meh`> has fkchang given the talk yet?
<brixen> pretty sure it was this morning
<brixen> bummed I missed it
<brixen> but they are recording
<brixen> adambeynon: would be awesome to meet up and chat
<brixen> watching the sleeping munchkin right now but then heading to the pool
<brixen> oof, she just woke up :)
<brixen> bbl...
<meh`> have fun :P
<meh`> adambeynon,
<meh`> >> a = []; Enumerator.new { |x| x << 3 << 2 << 1 << :go }.drop_while { |x| (a << x).size < 3 }
<meh`> a is not defined
<meh`> what is going on here?
fkchang has joined #opal
<adambeynon> meh`: is a nil or undefined?
<adambeynon> brixen: absolutely
<adambeynon> fkchang: hi!
<adambeynon> how did it go?
<adambeynon> I wanst able to watch the stream :(
<meh`> fkchang, yo
<adambeynon> wasn't*
<fkchang> went well. Last tech talk just wrapped up
<fkchang> It'll be on confreaks whenever. Hope it turns out well. The gazillion hours I spent on presntation seemed to pay off
<fkchang> I think we can get some contributions, we need to figure out how to best funnel the interest
<adambeynon> fkchang: cant wait. looked really good in the preview video you sent a few weeks back
<adambeynon> yeah, need to get people active now opal is still fresh from the presentation
fkchang has quit [Ping timeout: 248 seconds]
<meh`> adambeynon, our parser doesn't support unicode?
<meh`> well, unicode identifier
<meh`> s
elia has joined #opal
<adambeynon> meh`: ummmmmm, dont know
<meh`> well, opal-repl doesn't
<meh`> @æ explodes
<adambeynon> we cant really compile down unicode identifiers
<adambeynon> unless we mangle them
<meh`> why not?
<adambeynon> pretty sure not all js engines support it
<meh`> we can do what we do with the rest of #== and friends
<meh`> oh right
<meh`> variables
<meh`> mmh
<adambeynon> yeah, method names we can detect unicode and use ['$foobar'] style
<adambeynon> but yeah, variable names would need mangling
<meh`> meh, good as is
<meh`> but maybe a nicer error would be, well, nice
<adambeynon> whats the current error?
<adambeynon> parsing error?
<meh`> Unexpected content in parsing stream `æ` :(file):1 /home/meh/projects/opal/opal/lib/opal/parser/lexer.rb:1074:in `yylex' /home/meh/projects/opal/opal/lib/opal/parser/lexer.rb:79:in `next_token' /home/meh/projects/opal/opal/lib/opal/parser.rb:28:in `next_token'
<meh`> that's for @a
<meh`> @æ
<adambeynon> yeah, should be able to fix that to produce a nicer error
GitHub189 has joined #opal
<GitHub189> opal/master c9526f3 meh: Move some Enumerator filters to better places
<GitHub189> opal/master 77e8cce meh: Make String#end_with? compliant
<GitHub189> [opal] meh pushed 7 new commits to master: http://git.io/ISIC_A
GitHub189 has left #opal [#opal]
<GitHub189> opal/master 03272d5 meh: Make String#start_with? compliant
<adambeynon> we are missing a lot of the standard parsing error messages already
<adambeynon> I want to try and make them more compliant
<adambeynon> and the warnings, too
<meh`> that would be rad
<meh`> damn, I repushed the old date
GitHub179 has joined #opal
GitHub179 has left #opal [#opal]
<GitHub179> opal/master a2a2d11 meh: Fix RUBY_RELEASE_DATE
<GitHub179> [opal] meh pushed 1 new commit to master: http://git.io/nGYaKw
travis-ci has joined #opal
<travis-ci> [travis-ci] Build details : http://travis-ci.org/opal/opal/builds/13776306
<travis-ci> [travis-ci] opal/opal#1389 (master - 63f0cf3 : meh): The build passed.
travis-ci has left #opal [#opal]
travis-ci has joined #opal
<travis-ci> [travis-ci] Build details : http://travis-ci.org/opal/opal/builds/13776368
<travis-ci> [travis-ci] opal/opal#1390 (master - a2a2d11 : meh): The build passed.
travis-ci has left #opal [#opal]
<meh`> adambeynon, there it is again
<meh`> NoMethodError: undefined method `body' for #<Opal::Nodes::ScopeNode:18037>
<meh`> I think I know this time tho
<meh`> or not
<adambeynon> is that coming from the specs or from opal-browser?
<meh`> from opal itself
<meh`> but it doesn't happen every time
<meh`> adambeynon, http://sprunge.us/OdgT
<meh`> change the code in enumerable.rb
<meh`> with that
<meh`> as in, just the each_with_index implementation
<meh`> you'll see the bug
<meh`> adambeynon, oh wait, yes it's coming from the specs
<meh`> as in running them makes it fail with that exception
<adambeynon> I dont get how that is happening
<adambeynon> give me 2 mins to finish what im doing
<adambeynon> then I'll look into it
elia has quit [Quit: Computer has gone to sleep.]
<meh`> this bug is irritating
adambeynon has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
elia has joined #opal
adambeynon has joined #opal
<meh`> adambeynon, the problem is only with #each_with_index
<meh`> it's not a parser error onto itself
<meh`> and the problem is self.$each.apply(null, args)
<adambeynon> shouldnt it be $slice.call(arguments) ?
<meh`> adambeynon, args, not arguments
<meh`> it's *args
<adambeynon> so, commenting out `self.$each.apply(null, arguments)` makes it work again?
<meh`> self.$each/*.apply*/(/*null, args*/);
<meh`> this works
<meh`> self.$each() works
<adambeynon> wait
<adambeynon> it needs to be
<adambeynon> self.$each.apply(self, args)
<adambeynon> still need to set the `this` value ;)
<meh`> oh fug
<meh`> yeah
<meh`> right
<meh`> thanks
<adambeynon> :D
pickdenis has joined #opal
<pickdenis> what is 'this' bridged to during a jquery event block?
ryanstout has joined #opal
<pickdenis> I'm trying to do this: http://pastebin.com/aWFHiXL1
<pickdenis> but there seems to be no equivalent for 'this'
<meh`> elia, adambeynon ^
<adambeynon> pickdenis: best way is to use the current_target on the event
<elia> pickdenis, event.current_target
<elia> :)
<pickdenis> Thanks
<meh`> well, this took a while to fix
GitHub186 has joined #opal
<GitHub186> [opal] meh pushed 3 new commits to master: http://git.io/0wng0A
<GitHub186> opal/master 9b6be50 meh: Make Enumerable#each_slice compliant
<GitHub186> opal/master d894a81 meh: Make Enumerable#each_with_index compliant
<GitHub186> opal/master 19a2e5a meh: Add and mark some specs as passing
GitHub186 has left #opal [#opal]
<meh`> pickdenis, or you could always use opal-browser ◔ ◡ ◔
elia has quit [Quit: Computer has gone to sleep.]
<pickdenis> a browser that uses ruby instead of js?
<pickdenis> oh I see
travis-ci has joined #opal
<travis-ci> [travis-ci] opal/opal#1391 (master - 19a2e5a : meh): The build passed.
travis-ci has left #opal [#opal]
<travis-ci> [travis-ci] Build details : http://travis-ci.org/opal/opal/builds/13780424
GitHub76 has joined #opal
<GitHub76> opal/master c2e533b meh: Make Enumerable#entries compliant
GitHub76 has left #opal [#opal]
<GitHub76> [opal] meh pushed 1 new commit to master: http://git.io/9XCbug
travis-ci has joined #opal
<travis-ci> [travis-ci] opal/opal#1392 (master - c2e533b : meh): The build was broken.
<travis-ci> [travis-ci] Build details : http://travis-ci.org/opal/opal/builds/13781287
travis-ci has left #opal [#opal]
<meh`> fug
<meh`> oh, just 1.8
<meh`> adambeynon, when are you we going to drop that old fart?
ryanstout has quit [Quit: ryanstout]
adambeynon has quit [Quit: Textual IRC Client: www.textualapp.com]