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
marcandre has joined #opal
mojavelinux has joined #opal
mojavelinux has quit [Ping timeout: 272 seconds]
elia has quit [Quit: Computer has gone to sleep.]
elia has joined #opal
meh` has quit [Ping timeout: 272 seconds]
Liothen has quit [Remote host closed the connection]
ryanstout has quit [Quit: ryanstout]
Liothen has joined #opal
aantix has joined #opal
RomAbptTHN has joined #opal
RomAbptTHN has left #opal [#opal]
ryanstout has joined #opal
marcandre has quit [Remote host closed the connection]
ryanstout has quit [Quit: ryanstout]
zIWYIiWPIS has joined #opal
zIWYIiWPIS has left #opal [#opal]
dragonkh has joined #opal
dragonnkh has quit [Ping timeout: 276 seconds]
AndrzejK1zywda has joined #opal
AndrzejKrzywda has quit [Ping timeout: 264 seconds]
<adambeynon> hi elia
<adambeynon> r.e. the duplicates in compiler.requires
<adambeynon> I suppose it could
<adambeynon> we could change it from an array to a set
aantix has quit [Quit: aantix]
elia has quit [Quit: Computer has gone to sleep.]
e_dub has quit [Ping timeout: 272 seconds]
elia has joined #opal
e_dub has joined #opal
mojavelinux has joined #opal
kings has joined #opal
kings has quit [Quit: Leaving...]
kludge` has quit [Ping timeout: 252 seconds]
kings has joined #opal
kludge` has joined #opal
GitHub22 has joined #opal
<GitHub22> opal/real-requires e8d5966 Elia Schito: Mark loaded files
<GitHub22> opal/real-requires 637c893 Elia Schito: Preparing method calls for dyn requires
<GitHub22> [opal] elia force-pushed real-requires from dbd2ef2 to d6e7b86: http://git.io/Q_pLJg
<GitHub22> opal/real-requires 3220ab2 Elia Schito: Allow compiled files to be requireable
GitHub22 has left #opal [#opal]
<elia> hey adambeynon, pushed some wip and opening a discussion-PR
kings has quit [Quit: Leaving...]
travis-ci has joined #opal
<travis-ci> [travis-ci] Build details : http://travis-ci.org/opal/opal/builds/17216424
<travis-ci> [travis-ci] opal/opal#1694 (real-requires - e8d5966 : Elia Schito): The build is still failing.
travis-ci has left #opal [#opal]
DouweM has joined #opal
DouweM has quit [Ping timeout: 252 seconds]
DouweM has joined #opal
AndrzejK1zywda is now known as AndrzejKrzywda
elia has quit [Quit: Computer has gone to sleep.]
wmnnd has joined #opal
<wmnnd> Hey there, I have just upgraded to the most recent master branch of opal-jquery but I'm still having problems with reading the status of a checkbox.
<wmnnd> But maybe the issue could be related to the fact that it's not quite clear what is the corresponding thing for the "this" object in an event block.
<wmnnd> Because it's clearly not "self".
<wmnnd> So I guess the question really is: How do I access the event sender in a on(:something) block?
meh` has joined #opal
elia has joined #opal
<adambeynon> wmnnd: event.current_target
<adambeynon> or event.target
<meh`> this is going to be hell
<meh`> adambeynon, any idea how to tell travis to work on a specific branch?
<adambeynon> meh`: it should work on all branches unless you blacklist them in travis.yml
<meh`> adambeynon, the problem is, I only have the travis.yml in one branch that isn't master
<meh`> because I'm testing
<meh`> I guess I'll dirty up the main branch and force push
<meh`> don't want to add a thousand "trying again" commits
<adambeynon> hmm, not sure then. why not commit an empty(ish) travis.yml file and cherry-pick it into the other branch as well
<meh`> lol
<meh`> that didn't go well at all
<meh`> oh right
travis-ci has joined #opal
<travis-ci> [travis-ci] opal/opal-browser#2 (master - b8ee4f1 : meh): The build is still failing.
travis-ci has left #opal [#opal]
<travis-ci> [travis-ci] Build details : http://travis-ci.org/opal/opal-browser/builds/17229143
<meh`> yes yes, shut up
<meh`> WHOOHOO
<meh`> good
<meh`> the setup works :D
<wmnnd> adambeynon: I've tried event.target, but that gives me TypeError: strs[i] is undefined when I try to puts it.
<meh`> adambeynon, do you know if there's a way to run the travis matrix one at a time instead of asynchronously?
aantix has joined #opal
elia has quit [Quit: Computer has gone to sleep.]
marcandre has joined #opal
wmnnd has quit [Ping timeout: 272 seconds]
wmnnd has joined #opal
elia has joined #opal
e_dub has quit [Quit: It's a hard knock life]
wmnnd has quit [Ping timeout: 260 seconds]
aantix has quit [Quit: aantix]
<meh`> adambeynon, ping
<adambeynon> meh`: yo yo
<meh`> I'm getting a weird issue
<meh`> see the output html?
<meh`> is it missing everything or is it me?
<meh`> no wait
<meh`> I get it
<meh`> --debug is useless in specs
<meh`> the runner is bundled together either way
<meh`> :(
<meh`> no
<meh`> that isn't the case locally
<meh`> wth
<meh`> adambeynon, any clue?
<adambeynon> meh`: Im not sure how the browserstack stuff works
<adambeynon> the html page seems mixed
<meh`> adambeynon, it ain't relevant
<meh`> it's just what the browser sees
<meh`> if I fetch the page locally
<meh`> I get the same missing things
<adambeynon> <html xmlns="http://www.w3.org/1999/xhtml"><head>
<adambeynon> <title>Opal Server</title>
<meh`> I'll show you
<meh`> the stuff before the --- is a Net::HTTP.get(localhost)
<meh`> and all the browser stuff hasn't been required
<meh`> the second is an in-browser thing
<meh`> and you can see it has 0 examples and 0 failures
<adambeynon> meh`: "ruby spec/runner.rb"
<adambeynon> what file is that?
<meh`> it's the actual runner
<meh`> for the browserstack stuff
<meh`> should I give it another name?
<adambeynon> no, its fine, was just wondering if it was a custom runner
<meh`> no, it's separate
<meh`> it just does the fetching
<adambeynon> meh`: the spec_runner isnt finding any spec files to run
<meh`> mh
<meh`> it works locally
<meh`> mh
<meh`> got an idea
<meh`> adambeynon, no ok, the pwd is correct
<meh`> and spec is present
<meh`> anything else I could check?
<meh`> it works locally from a fresh clone
Liothen has quit [Quit: I Sleep!]
<adambeynon> meh`: I dont know - its finding the assets in the other directories fine...
<meh`> :(
<meh`> adambeynon, even trying to run the rackup in the script instead of before_script yields the same result
<meh`> did a find spec and all the files are there
<meh`> what's the latest release gem of opal-rspec?
<adambeynon> meh`: umm, 0.3.0.beta2
<adambeynon> but you must run it from the gem
<adambeynon> not from git
<meh`> yes
<meh`> I'm on that gem
<meh`> I don't know, I'm out of ideas
<meh`> see anything wrong in the config.ru?
Liothen has joined #opal
<adambeynon> meh`: no. the spec_runner.erb is very simple, it just globs inside the spec/ dir. there must be something, somewhere, changing directory
<adambeynon> the file is being run, as it shows up as the last script tag
<meh`> sounds like a feasable test
<adambeynon> meh`: try changing the main to a custom .erb file in spec/, and output the current dir, and do a manual glob() over the spec dir
<meh`> adambeynon, I'll just check the pwd in the config.ru
<meh`> adambeynon, nope, the pwd is correct
<meh`> adambeynon, anything else I can try?
<adambeynon> meh`: I was thinking of checking the dir inside the main file, incase the directory is being changed after the rack server starts
<adambeynon> i.e check what the directory is when the spec_runner is being evaluated
<meh`> adambeynon, how does the runner work?
<adambeynon> meh`: just make a custom opal/runner_test.erb file
ryanstout has joined #opal
<adambeynon> and change the setting in config.ru to `s.main = 'runner_test' `
e_dub has joined #opal
<meh`> adambeynon, ok, I'm confused, how does the runner work?
<meh`> oh ok
<meh`> now I see
mojavelinux has quit [Ping timeout: 260 seconds]
aantix has joined #opal
<meh`> adambeynon, how do I print things from within the erb runner?
<adambeynon> meh`: just use puts()
<meh`> I tried, it's not coming up through the rackup
<meh`> or where do I use puts?
<meh`> http://sprunge.us/CXIP this is what I have
<adambeynon> hmm, strange
<adambeynon> well
<adambeynon> instead, you could try passing it through to sprockets then
<adambeynon> console.log(<% Dit.getwd %>)
<adambeynon> no
<adambeynon> puts(<%= Dir.getwd %>)
<meh`> but I'm never going to get there
<meh`> isn't that stuff going to get ran by opal?
<adambeynon> oh, thats true
<adambeynon> erm
<adambeynon> meh`: try raising instead of puts
<adambeynon> <% raise(Dir.getwd) %>
<meh`> wait wait wait
<meh`> I know
<meh`> I hope
aantix has quit [Quit: aantix]
<meh`> nope
<meh`> I'll try with raise
<adambeynon> meh`: aslong as sprockets doesnt have some stupid begin..rescue block somewhere ;)
<meh`> adambeynon, nope
<meh`> doesn't work
<meh`> puts doesn't either
<adambeynon> meh`: last possibility, try requiring a relative path
<adambeynon> <% require_asset './foo/bar/baz' %>
<adambeynon> sprockets might tell you the directory when it cant find that file
<meh`> adambeynon, nada, it's like it's not picking it up at all
<meh`> adambeynon, wait
<meh`> lol
<meh`> I have to require the thing
<meh`> obviously
<meh`> but I can't
<meh`> because I can't see the output of the rack
<adambeynon> meh`: stroke of genius
<adambeynon> <% require_relative "./#{Dir.getwd}/this/does/not/exist" %>
<meh`> same problem, I have to make a request for it to raise
<meh`> and I can't see the output because I have demonized it
<adambeynon> meh`: it shows in the travis logs ^^^^
<meh`> ah yeah, I replaced -D with & for that
<meh`> guess I fix problems without thinking about it
aantix has joined #opal
mojavelinux has joined #opal
<meh`> ok
<meh`> wat
<meh`> adambeynon, the output is correct now
<meh`> with the local runner
<meh`> trying again without the puts Dir.pwd
aantix has quit [Client Quit]
<meh`> it's not the print
<meh`> I'm starting to suspect the issue is the rspec default runner
<adambeynon> meh`: what did you change to get it to find the assets?
<meh`> adambeynon, nothing
<meh`> just copypasted it
<meh`> testing with the standard one again
<meh`> the standard one may be looking in the wrong place
<meh`> or something
<meh`> nope, it works now
<meh`> I think I know
<meh`> I had s.main before s.append_path 'spec'
<meh`> that must be the problem
<meh`> somehow
<meh`> who knows
aantix has joined #opal
aantix has quit [Client Quit]
elia has quit [Quit: Computer has gone to sleep.]
<meh`> oh man
<meh`> I think I know
<meh`> it's the -D in rackup
<meh`> it does some weird things
<meh`> which I obviously couldn't see
<meh`> fucking heisenbugs
wdimaw has joined #opal
wdimaw has quit [Ping timeout: 272 seconds]
e_dub has quit [Ping timeout: 272 seconds]
e_dub has joined #opal
elia has joined #opal
barry has joined #opal
mojavelinux has quit [Ping timeout: 260 seconds]
mojavelinux has joined #opal
e_dub has quit [Ping timeout: 272 seconds]
e_dub has joined #opal
aantix has joined #opal
ryanstout has quit [Quit: ryanstout]
barry_ has joined #opal
barry has quit [Ping timeout: 248 seconds]