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