meh` 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 https://botbot.me/freenode/opal/
e_dub has joined #opal
meh` has quit [Ping timeout: 256 seconds]
supersym has quit [Ping timeout: 252 seconds]
supersym has joined #opal
e_dub has quit [Quit: e_dub]
e_dub has joined #opal
supersym has quit [Quit: WeeChat 1.0.1]
supersym has joined #opal
marioooo has joined #opal
<marioooo> Hey guys :) scratching my head over a 'undefined method `to_n' for {"render"=>#<Proc:undefined>}' issue.
<marioooo> Have tried to give as much context as possible here:
<marioooo> Looks like to_n is defined on Hash in stdlib/native.rb, but searching through source it doesn't seem to appear in opal.min.js or opal-parser.min.js so I'm a bit confused as to where in the process it should be ending up there...
<marioooo> I can see it within http://opalrb.org/javascripts/try.js so obviously I must be missing some sort of inclusion!
<marioooo> So, it appears the opal gem CLI doesn't do anything about the 'require' statements, and opal.min.js doesn't include the stdlib. Got things working by trying the static_applications.html.md guide...
elia has joined #opal
elia has quit [Quit: Computer has gone to sleep.]
supersym has quit [Ping timeout: 244 seconds]
supersym has joined #opal
shlee322 has joined #opal
shlee322 has quit [Client Quit]
shlee322 has joined #opal
<shlee322> ..
[spoiler] has joined #opal
shlee322 has quit [Quit: Page closed]
shlee322 has joined #opal
e_dub has quit [Quit: e_dub]
elia has joined #opal
elia has quit [Quit: Computer has gone to sleep.]
supersym has quit [Ping timeout: 240 seconds]
meh` has joined #opal
[spoiler] has quit [Quit: Leaving]
elia has joined #opal
cpup has quit [Ping timeout: 244 seconds]
cpup has joined #opal
elia has quit [Quit: Computer has gone to sleep.]
elia has joined #opal
elia has quit [Quit: Computer has gone to sleep.]
elia has joined #opal
elia has quit [Quit: Computer has gone to sleep.]
elia has joined #opal
elia has quit [Client Quit]
<marioooo> .win 4
<marioooo> Struggling a little with opal-browser, would anyone be able to point me in the right direction for getting it working through sprockets?
<marioooo> I'm using the static application build method. require 'opal/browser' seems to be correct for the Rakefile, but all name variants I can think of within the .rb being compiled are throwing:
<marioooo> Sprockets::FileNotFound: couldn't find file 'opal/browser' (for whichever require name I'm trying, i.e. 'browser', 'opal-browser', 'opal/browser')
<marioooo> (Static build method referring to: http://opalrb.org/docs/static_applications/)