These are chat archives for opal/opal

22nd
Aug 2015
Adam Jahn
@ajjahn
Aug 22 2015 03:37
@meh opal/opal-browser#39
meh.
@meh
Aug 22 2015 03:38
ajjahn, doesn't sound right
ajjahn, this way you're only forwarding those
my intention was to add to @callbacks only the internal stuff
namely the stuff in STATES
and whatever else is handled
the code number should be Integer
so it should just be
STATES.include?(what) || Integer === what
also :success and :failure
Adam Jahn
@ajjahn
Aug 22 2015 03:39
That still won't work because you would need 'success' and 'failure'
meh.
@meh
Aug 22 2015 03:39
so yeah
STATES.include?(what) || %w[success failure].include?(what) || Integer === :what
erm
STATES.include?(what) || %w[success failure].include?(what) || Integer === what
there
Adam Jahn
@ajjahn
Aug 22 2015 03:41
Okay, I'll give that a go. Just a sec.
Adam Jahn
@ajjahn
Aug 22 2015 03:47
Done.
meh.
@meh
Aug 22 2015 03:55
ajjahn, do you confirm it works?
Adam Jahn
@ajjahn
Aug 22 2015 04:01
Yeah, every thing is back to normal in my code + progress events. I can look into adding some legitimate specs sometime this weekend.
meh.
@meh
Aug 22 2015 04:01
ajjahn, nah don't worry about it
the spec running is completely broken
has been for a long time
browserstack must have removed our account or something
and rspec needs updating
Adam Jahn
@ajjahn
Aug 22 2015 04:05
Gotcha. Well I feel good about it.
meh.
@meh
Aug 22 2015 04:05
thanks for looking into it
Elia Schito
@elia
Aug 22 2015 12:59
@catmando you can totally require js files but it's probably better to do that without the .js suffix
Elia Schito
@elia
Aug 22 2015 13:08
@meh will be on vacation for a couple of weeks, don't yet know if that means more Opal or not :D in the meantime can you open an issue for the opal-rspec update so I don't forget?
Mitch VanDuyn
@catmando
Aug 22 2015 13:55
@elia yeah I got it. The problem is that I want to require opaljquery but only on the client, not during prerendering. Jquery breaks Ruby racer in weird ways. Just had to move the requires out of the gem and into document ation
Qqwy / Wiebe-Marten
@Qqwy
Aug 22 2015 22:29
I am wondering how to make Opal work with http://nwjs.io/ (which enables you to build computer applications using Node, HTML, CSS and JS running in a Webkit browser shim.)
When exactly is the opal runtime neccesary? Only when I want to compile .rb code on-the-fly, or also after precompiling code to javascript?
Elia Schito
@elia
Aug 22 2015 22:36
You need the runtime when you precompile too
meh.
@meh
Aug 22 2015 22:49
Qqwy, you always need the runtime/corelib to run Opal code, you only need opal-parser if you also want #eval
Torsten RĂ¼ger
@rubydesign
Aug 22 2015 22:54
@Qqwy good direction, can you make a post or something if you get that going
George Plymale II
@ylluminarious
Aug 22 2015 23:22
@Qqwy there's currently an empty opal project for nw here
contributions are welcome