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/
meh` has quit [Ping timeout: 264 seconds]
alexst has quit [Ping timeout: 245 seconds]
alexst has joined #opal
alexst has quit [Ping timeout: 240 seconds]
alexst has joined #opal
alexst has quit [Ping timeout: 256 seconds]
alexst has joined #opal
alexst has quit [Ping timeout: 264 seconds]
ryanstout has quit [Quit: ryanstout]
ryanstout has joined #opal
e_dub has joined #opal
alexst has joined #opal
alexst has quit [Ping timeout: 240 seconds]
alexst has joined #opal
ryanstout has quit [Quit: ryanstout]
Lexun has joined #opal
dimaursu16 has joined #opal
Lexun has quit [Quit: Manjaro-KDE user leaving!]
dimaursu16 has quit [Ping timeout: 256 seconds]
dimaursu16 has joined #opal
dimaursu16 has quit [Ping timeout: 240 seconds]
alexst has quit [Ping timeout: 240 seconds]
elia has joined #opal
alexst has joined #opal
dimaursu16 has joined #opal
dimaursu16 has quit [Ping timeout: 255 seconds]
dimaursu16 has joined #opal
_whitelogger has joined #opal
alexst has quit [Ping timeout: 240 seconds]
dimaursu16 has quit [Ping timeout: 240 seconds]
alexst has joined #opal
dimaursu16 has joined #opal
alexst has quit [Ping timeout: 240 seconds]
alexst has joined #opal
alexst has quit [Ping timeout: 248 seconds]
dimaursu16 has quit [Quit: Leaving]
alexst has joined #opal
alexst has quit [Ping timeout: 240 seconds]
alexst has joined #opal
meh` has joined #opal
alexst has quit [Ping timeout: 248 seconds]
e_dub has quit [Ping timeout: 255 seconds]
e_dub has joined #opal
alexst has joined #opal
alexst has quit [Ping timeout: 248 seconds]
lectrick has quit [Changing host]
lectrick has joined #opal
ylluminate_ has joined #opal
Kilo`byte has joined #opal
ylluminate has quit [*.net *.split]
andredieb has quit [*.net *.split]
Kilobyte|StupidC has quit [*.net *.split]
andredieb has joined #opal
e_dub has quit [Quit: ZZZzzz…]
ylluminate_ has quit [Quit: Lingo - http://www.lingoirc.com]
ylluminate has joined #opal
e_dub has joined #opal
Lexun has joined #opal
Lexun has quit [Ping timeout: 272 seconds]
elia has quit [Quit: Computer has gone to sleep.]
e_dub has quit [Quit: ZZZzzz…]
<ylluminate> 404: http://opalrb.org/jquery
<ylluminate> referenced at https://github.com/opal/opal-jquery
alexst has joined #opal
alexst has quit [Ping timeout: 256 seconds]
e_dub has joined #opal
elia has joined #opal
<ylluminate> elia so i was thinking about adding jquery and browser to cdn. how would i go about doing that properly with the modifications you've made to building these out from src?
ylluminarious has joined #opal
elia has quit [Quit: Computer has gone to sleep.]
e_dub has quit [Read error: Connection reset by peer]
e_dub has joined #opal
grios has joined #opal
e_dub has quit [Read error: Connection reset by peer]
e_dub has joined #opal
e_dub has quit [Read error: Connection reset by peer]
e_dub has joined #opal
Lexun has joined #opal
DrShoggoth has joined #opal
ylluminarious is now known as ylluminarious|aw
Lexun has quit [Ping timeout: 264 seconds]
ryanstout has joined #opal
<ylluminate> included `http://cdn.opalrb.org/opal/master/opal-parser.js` and when i attempt to `require './some_class'` or various iterations of that i get
<ylluminate> Uncaught LoadError: cannot load such file
dimaursu16 has joined #opal
dimaursu16 has quit [Ping timeout: 240 seconds]
dimaursu16 has joined #opal
alexst has joined #opal
elia has joined #opal
<elia> ylluminate, not sure how to tackle it
<elia> currently I have a checkout of the cdn repo inside opal, and use `rake dist DIR=...` to update it
DrShoggoth has quit [Quit: Leaving]
<ylluminate> elia: well we'll tackle it here soon: https://gitter.im/opal/opal
<ylluminate> i figure that might be a better place to post such a thing than here
<ylluminate> re: require. i thought you'd implemented that in master such that we can require other .rb files within .rb scripts
<elia> ylluminate, replying on gitter ;)
<ylluminate> :P
alexst_ has joined #opal
alexst has quit [Ping timeout: 245 seconds]
e_dub has quit [Quit: ZZZzzz…]
e_dub has joined #opal
ylluminate has quit [Read error: Connection reset by peer]
ylluminate has joined #opal
<ylluminarious|aw> elia: is it true that to use something like document.getElementById, you have to wrap it in `` ?
<elia> yep
<ylluminarious|aw> ok
<elia> I'd probably use native to wrap document first
<elia> $document = Native(`document`)
<elia> and then $document.getElementById('my-id')
<elia> or $document[:location][:href] (for accessing properties
<ylluminarious|aw> alright
<elia> to get back the native js object un need to use #to_n (e.g. $document.to_n)
<ylluminarious|aw> so, like, when i write something with `` or wrap it with native, i'm writing pure javascript, right?
e_dub has quit [Quit: ZZZzzz…]
<ylluminarious|aw> elia: i am trying to access ruby variables within some javascript like here: https://gist.github.com/43d039bc875c118f2a38 . am i doing this the right way? it feels awkward and i am of course getting an error (Unexpected token ILLEGAL) on the @ symbols on the draw method js calls
<elia> remember that inside `` you're in js land
<elia> and in js @ makes no sense
<elia> if you want to grab the instance vars from opal you need to interpolate ``
<elia> e.g. `document.getElementById("playing_field").getContext("2d").fillRect(#{@x}, #{@y}, 40, 40)`
<ylluminarious|aw> oh, alright. that makes sense.
<ylluminarious|aw> yeah, i guess i forgot that `` means that i'm using js, not ruby
<elia> :)
<ylluminarious|aw> does that make sense though? it seems that there should be a better way to access the window, document, and so forth rather than using js directly
<ylluminarious|aw> btw, thanks for the help, elia
<elia> np
<elia> IIRC requiring native already prepares those global variables
<elia> it prepares $global / $$ which in a browser is equivalent to window
<elia> hence $document = $$[:document]
<ylluminarious|aw> ok
<ylluminarious|aw> could you please give me an example of `document.getElementById("playing_field").getContext("2d").fillStyle = "white"` using $$ instead?