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/
ryanstout has quit [Quit: ryanstout]
ryanstout has joined #opal
ryanstout has quit [Client Quit]
ryanstout has joined #opal
Steve445 has quit [Quit: Steve445]
edub has joined #opal
ryanstout has quit [*.net *.split]
Liothen has quit [*.net *.split]
e_dub has quit [*.net *.split]
dimaursu16 has quit [*.net *.split]
kludge` has quit [*.net *.split]
ryanstewart2 has quit [*.net *.split]
ryanstout has joined #opal
ryanstewart2 has joined #opal
kludge` has joined #opal
dimaursu16 has joined #opal
lacrosse_ has quit [Ping timeout: 245 seconds]
Liothen has joined #opal
lectrick_ has quit [Ping timeout: 245 seconds]
lacrosse_ has joined #opal
lectrick_ has joined #opal
dimaursu16 has quit [Read error: Operation timed out]
ryanstout has quit [Quit: ryanstout]
Steve445 has joined #opal
Steve445 has quit [Client Quit]
GitHub194 has joined #opal
<GitHub194> opal-browser/master 15ed6cd meh: dom/element: fix specialization lookup
<GitHub194> [opal-browser] meh pushed 1 new commit to master: http://git.io/pL2OTw
GitHub194 has left #opal [#opal]
GitHub97 has joined #opal
<GitHub97> opal-browser/master aced0ab meh: dom/node_set: normalize various node searching methods
<GitHub97> [opal-browser] meh pushed 1 new commit to master: http://git.io/4vHF9w
GitHub97 has left #opal [#opal]
GitHub3 has joined #opal
<GitHub3> opal/master 8c56856 meh.: Merge pull request #510 from hayley/master...
<GitHub3> [opal] meh pushed 2 new commits to master: http://git.io/01F2Ew
GitHub3 has left #opal [#opal]
<GitHub3> opal/master deb5683 hayley: Fix typo
mneorr has joined #opal
mneorr has quit [Ping timeout: 246 seconds]
travis-ci has joined #opal
<travis-ci> [travis-ci] opal/opal-browser#182 (master - 15ed6cd : meh): The build has errored.
travis-ci has left #opal [#opal]
<travis-ci> [travis-ci] Build details : http://travis-ci.org/opal/opal-browser/builds/19472752
travis-ci has joined #opal
<travis-ci> [travis-ci] opal/opal#1746 (master - 8c56856 : meh.): The build passed.
<travis-ci> [travis-ci] Build details : http://travis-ci.org/opal/opal/builds/19472988
travis-ci has left #opal [#opal]
travis-ci has joined #opal
<travis-ci> [travis-ci] Build details : http://travis-ci.org/opal/opal/builds/19472988
<travis-ci> [travis-ci] opal/opal#1746 (master - 8c56856 : meh.): The build passed.
travis-ci has left #opal [#opal]
travis-ci has joined #opal
<travis-ci> [travis-ci] opal/opal#1746 (master - 8c56856 : meh.): The build passed.
<travis-ci> [travis-ci] Build details : http://travis-ci.org/opal/opal/builds/19472988
travis-ci has left #opal [#opal]
travis-ci has joined #opal
travis-ci has left #opal [#opal]
<travis-ci> [travis-ci] Build details : http://travis-ci.org/opal/opal/builds/19472988
<travis-ci> [travis-ci] opal/opal#1746 (master - 8c56856 : meh.): The build passed.
travis-ci has joined #opal
<travis-ci> [travis-ci] opal/opal-browser#183 (master - aced0ab : meh): The build has errored.
travis-ci has left #opal [#opal]
<travis-ci> [travis-ci] Build details : http://travis-ci.org/opal/opal-browser/builds/19472950
travis-ci has joined #opal
<travis-ci> [travis-ci] opal/opal-browser#183 (master - aced0ab : meh): The build passed.
<travis-ci> [travis-ci] Build details : http://travis-ci.org/opal/opal-browser/builds/19472950
travis-ci has left #opal [#opal]
meh`_ has quit [Quit: I don't want to live on this planet anymore.]
mneorr has joined #opal
mneorr has quit [Read error: Operation timed out]
ryanstewart has joined #opal
kludge` has quit [Disconnected by services]
kludge` has joined #opal
ryanstewart2 has quit [*.net *.split]
dragonkh has quit [Quit: Bye!]
dimaursu16 has joined #opal
elia has joined #opal
mneorr has joined #opal
mneorr has quit [Ping timeout: 245 seconds]
kludge` has quit [Ping timeout: 264 seconds]
kludge` has joined #opal
RoxasShadowRS has joined #opal
antonishen has quit [Ping timeout: 378 seconds]
antonishen has joined #opal
edub has quit [Ping timeout: 469 seconds]
e_dub has joined #opal
RoxasShadowRS has quit [Ping timeout: 254 seconds]
mneorr has joined #opal
mneorr has quit [Ping timeout: 240 seconds]
e_dub has quit [Read error: No route to host]
e_dub has joined #opal
e_dub is now known as edub
elia has quit [Quit: Computer has gone to sleep.]
mneorr has joined #opal
mneorr has quit [Ping timeout: 245 seconds]
meh` has joined #opal
RoxasShadowRS has joined #opal
Todd- has joined #opal
Todd has quit [*.net *.split]
[o__o] has quit [*.net *.split]
kartouch has quit [*.net *.split]
kartouch has joined #opal
[o__o] has joined #opal
mneorr has joined #opal
elia has joined #opal
mneorr has quit [Ping timeout: 241 seconds]
dimaursu16 has quit [Ping timeout: 265 seconds]
dimaursu16 has joined #opal
kings has joined #opal
<kings> hi
<kings> adambeynon hey
<kings> anyone around
<kings> ive managed to get my d3 wrapper working mostly
<adambeynon_> kings: hi
<kings> adambeynon i have 1 more question
<adambeynon_> Good that it's working. What's left to fix on it?
<kings> my main problem was that jquery was returning a function and d3 was returning an object
<kings> so now i have sorted out that
<kings> but im trying to get the auto expose working
<kings> so ive taken the expose methods from the jquery one
<kings> but in it this part i dont understand
<kings> there is a loop
<kings> and int he loop self._proto[method] =
<kings> this is used to assign the method to the ruby wrapper class
<kings> but in jquery i guess thats fine but it doesnt work for my implementation
<kings> so how do i dynamically append a method to my class
<kings> self[method] = doesnt work
<kings> i dont have any prototype on d3
<adambeynon_> kings: ok. never used d3 before, so let me read up on how it works
<kings> here is my selector implementation
<kings> but i dont want to have to hand code every single method
<kings> on my ipad again so excuse typos etc
<adambeynon_> kings: ok, so by assigning the @selected ivar, it looks like you are actually wrapping a d3 instance
<adambeynon_> is that the intention?
<adambeynon_> opal-jquery is a bridge, rather than a wrapper, in that Element instances are the same object as a jquery instance
<kings> well bridging didnt seem to work so thsts why wrapping the d3 instance
<kings> ideally bridging would be great - but looks like i dont have the skills for that!
<kings> d3 returns an object and d3.select returns a function
<kings> whereas jQUery returns a function
<kings> so trying to extend d3.select didnt work for me
<kings> as it looks like the jquery one is geared up to work with a function
gravityblast has joined #opal
gravityblast has quit [Client Quit]
<adambeynon_> kings: looking at the code, I think wrapping is the better idea
<adambeynon_> I will need to read up on d3 some more though
<adambeynon_> there must be a prototype exposed somewhere
<kings> yeah bridging looks hard
<kings> d3 is not object oriented its more functionl so i dont think there will be any prototypes
<kings> adambeynon - instead of doing the expose like the one in jquery
<kings> can i do something like define_method instead
<kings> define_method :html { '#{@selected}['html']} for example
kings has quit [Remote host closed the connection]
RoxasShadowRS has quit [Ping timeout: 240 seconds]
elia has quit [*.net *.split]
meh` has quit [*.net *.split]
antonishen has quit [*.net *.split]
kludge` has quit [*.net *.split]
lectrick_ has quit [*.net *.split]
lacrosse_ has quit [*.net *.split]
Liothen has quit [*.net *.split]
Todd- has quit [*.net *.split]
adambeynon_ has quit [*.net *.split]
oldfartdeveloper has quit [*.net *.split]
adambeynon_ has joined #opal
oldfartdeveloper has joined #opal
Todd- has joined #opal
meh` has joined #opal
kludge` has joined #opal
lacrosse_ has joined #opal
lectrick_ has joined #opal
antonishen has joined #opal
Liothen has joined #opal
elia has joined #opal
mneorr has joined #opal
elia has quit [Ping timeout: 240 seconds]
mneorr has quit [Read error: Connection reset by peer]
mneorr has joined #opal
Liothen has quit [Max SendQ exceeded]
Liothen has joined #opal
dragonkh has joined #opal
<dragonkh> hi
<dragonkh> adambeynon_: thanks for you help ealier looking at d3
<dragonkh> hi meh`
<meh`> dragonkh, hi
<dragonkh> meh`: quick question - when in javascript something takes a function
<dragonkh> how does it look in opal?
<dragonkh> e.g. circle.attr("cx", function() {
<dragonkh> return Math.random() * w;
<dragonkh> });
<dragonkh> attr takes a string and then a function
<meh`> Native(`circle`).attr("cx", -> { rand * w })
<meh`> or proc { rand * w }
<meh`> procs are normal js functions
<dragonkh> ah cool
<dragonkh> thanks
ryanstout has joined #opal
mneorr has quit [Remote host closed the connection]
mneorr has joined #opal
mneorr has quit [Ping timeout: 246 seconds]
mneorr has joined #opal
edub has quit [Ping timeout: 252 seconds]
e_dub has joined #opal
elia has joined #opal
e_dub has quit [Ping timeout: 264 seconds]
e_dub has joined #opal
e_dub has quit [Ping timeout: 244 seconds]
e_dub has joined #opal
e_dub has quit [Read error: Connection reset by peer]
e_dub has joined #opal
dleedev has joined #opal
<dragonkh> evening
<dragonkh> hey elia
<elia> hey dragonkh !
<dragonkh> hey adambeynon_
<ryanstout> hey
<meh`> evening
<dragonkh> hey meh` and ryanstewart
<dragonkh> ryanstout
<dragonkh> even
<elia> lol
<ryanstout> evening
<dragonkh> I've been trying to write an opal wrapper for d3
<dragonkh> it's been pretty painful because unlike the jquery one - it's not prototype based - so it's very hard to write a bridge
<elia> seems that ppl on the parley list are calling for an opal episode on ruby rogues
<elia> that would be awesome
<dragonkh> so I'm wrapping instead
<dragonkh> um elia - I didn't understand much of that
<dragonkh> what is the parley list - what is ruby rogues
<elia> http://rubyrogues.com is a famous Ruby podcast (feat. avdi grimm, josh susser, jegII, …)
<elia> parley list is their private forum that you can join by paing 10$/y
<dragonkh> dont know those guys
<dragonkh> what they do?
<dragonkh> oh I see
<elia> e.g. jegII wrote the csv lib for MRI 1.9.3
<dragonkh> fastercsv?
<elia> yep
<elia> and other stuff I think
<elia> big ruby player back in the days
<dragonkh> http://www.flickr.com/photos/raymanoz/2377712759/ <-- I'm on the far right - 6 years ago when I was really into it!
Liothen has quit [Quit: The Dogmatic Law of Shadowsong]
Liothen has joined #opal
mneorr has quit [Remote host closed the connection]
dimaursu16 has quit [Read error: Operation timed out]
mneorr has joined #opal