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/
antonishen has quit [Ping timeout: 245 seconds]
antonishen has joined #opal
ryanstout has quit [Quit: ryanstout]
fkchang` has joined #opal
fkchang has quit [Ping timeout: 240 seconds]
ryanstout has joined #opal
<ryanstout> meh`: you around?
Liothen- has joined #opal
Liothen has quit [Ping timeout: 240 seconds]
fkchang` has quit [Ping timeout: 255 seconds]
<meh`> ryanstout, yes
<meh`> ryanstout, what's up?
<ryanstout> question about promises if you have a second
<ryanstout> is there a reason you have to pass an argument to resolve and reject?
<meh`> ryanstout, sure
<meh`> ha! good question
<ryanstout> it would be really nice if you could pass 0..inf
<meh`> I think it may default to nil
<ryanstout> (it looks really good though, so its not me complaining)
<meh`> let me fix that
<meh`> eh
<meh`> 0..inf would be hard
<meh`> because how do you apply the next promise?
<meh`> pass an array if it's more?
<meh`> mh
<meh`> I could act like Enumerable does
<meh`> it does make sense
<meh`> I'll go for a smoke and think about it
<ryanstout> thanks a bunch
<ryanstout> I guess the more important thing for me is not requiring passing an arg
<meh`> yeah, it can be done, we have the technology (cit)
<meh`> I'll do it after this dungeon run
<ryanstout> cool
<ryanstout> thanks a bunch
e_dub has joined #opal
Steve445 has joined #opal
ryanstout has quit [Quit: ryanstout]
Steve445 has quit [Quit: Steve445]
ryanstout has joined #opal
ryanstout has quit [Client Quit]
skofo has quit [Ping timeout: 255 seconds]
Liothen- is now known as Liothen
Liothen has quit [Changing host]
Liothen has joined #opal
dimaursu16 has joined #opal
dimaursu16 has quit [Ping timeout: 264 seconds]
dimaursu16 has joined #opal
elia has joined #opal
dimaursu16 has quit [Ping timeout: 240 seconds]
kludge` has quit [Ping timeout: 264 seconds]
elia has quit [Quit: Computer has gone to sleep.]
kludge` has joined #opal
dimaursu16 has joined #opal
dimaursu16 has quit [Read error: Operation timed out]
tils has joined #opal
dimaursu16 has joined #opal
elia has joined #opal
elia has quit [Client Quit]
meh` has quit [Ping timeout: 255 seconds]
dimaursu16 has quit [Ping timeout: 240 seconds]
elia has joined #opal
DouweM has quit [Quit: Leaving...]
DouweM has joined #opal
<e_dub> how does `#@native.method()` work? when I try, I get Cannot call blah of undefined
<adambeynon> hi e_dub
<adambeynon> what object is @native ?
<adambeynon> have you got a gist of your code ?
<e_dub> sure
<adambeynon> ok, and what object are you passing into it?
<adambeynon> the native object
<e_dub> ah, where do i pass something into it at? this is where i am messing up i think
elia has quit [Quit: Computer has gone to sleep.]
<e_dub> I'm trying to write a wrapper class for the global atom object for the atom editor, just haven't quite figured out how Native works
elia has joined #opal
<e_dub> adambeynon have to head into office now. hopefully I can catch you again in a little while
e_dub has quit [Quit: It's a hard knock life]
RoxasShadowRS has joined #opal
elia has quit [Ping timeout: 240 seconds]
elia has joined #opal
DrShoggoth has joined #opal
dimaursu16 has joined #opal
dimaursu16 has quit [Ping timeout: 240 seconds]
DouweM_ has joined #opal
DouweM has quit [Ping timeout: 240 seconds]
DouweM_ has quit [Ping timeout: 252 seconds]
e_dub has joined #opal
<e_dub> ok adambeynon sorry to bail earlier. so, could you tell me how to use that when you get a chance?
ryanstout has joined #opal
skofo has joined #opal
skofo has quit [Client Quit]
DrShoggoth has quit [Quit: Leaving]
<elia> e_dub, try setting @native inside #initialize
<elia> e.g.
<elia> def initialize; @native = `atom`; end
<e_dub> ah ok awesome.
elia has quit [Read error: Operation timed out]
<adambeynon> hi e_dub, sorry I missed the notification
<adambeynon> as elia says, the object you pass into new/initialize gets set as the @native
<e_dub> passed into new/initialize on my class or on Native?
grios has joined #opal
<grios> Hi guys I'm a bit lost here. I'm trying to write tests to my opal-rails code that interacts with some DOM, is there any reference code where I can look on how to approach this?
Kilo`byte has quit [Max SendQ exceeded]
Kilo`byte has joined #opal
fntzr has joined #opal
grios_ has joined #opal
grios has quit [Ping timeout: 240 seconds]
grios_ is now known as grios
meh` has joined #opal
GitHub173 has joined #opal
<GitHub173> [opalrb.org] marten opened pull request #7: Add barebones Rails documentation (master...patch-1) http://git.io/NHy3pw
GitHub173 has left #opal [#opal]
<meh`> ryanstout, ping
<ryanstout> meh`: hey
<meh`> ryanstout, adding 0..inf arity is going to make the code a lot more complex
<meh`> I'm going for 0..1
<ryanstout> ok, thats cool
<ryanstout> just curious why the complexity?
<meh`> because the resolve/reject parameter can be a promise as well
<meh`> and it makes the checks and the delay stuff more complex
<ryanstout> interesting, what does that do if you pass another promise?
<meh`> or I haven't figured a good way to deal with it
<meh`> if you pass another promise the promise you're rejecting/resolving is rejected/resolved with the result of the given promise
<ryanstout> ah
<ryanstout> thats cool
<adambeynon> meh`: is that an additon to the Promises/A+ spec, or a custom addition?
<ryanstout> I was going to ask the same question
<meh`> adambeynon, it's in the spec
<meh`> iirc
<meh`> it's what makes returning a promise from the #then body work
elia has joined #opal
<adambeynon> ok - although I use it a lot, I still havent read through your impl yet
<adambeynon> brb
elia has quit [Quit: Computer has gone to sleep.]
fntzr has quit [Quit: Leaving]
fkchang has joined #opal
dimaursu16 has joined #opal
Steve445 has joined #opal
[o__o] has left #opal [#opal]
[o__o] has joined #opal
[o__o] has left #opal [#opal]
Steve445 has quit [Quit: Steve445]
[o__o] has joined #opal
[o__o] has left #opal [#opal]
[o__o] has joined #opal
GitHub29 has joined #opal
<GitHub29> opal/master 8ae7056 meh: Allow parameter less promise realization
GitHub29 has left #opal [#opal]
<GitHub29> [opal] meh pushed 1 new commit to master: http://git.io/kneDpw
travis-ci has joined #opal
<travis-ci> [travis-ci] opal/opal#1754 (master - 8ae7056 : meh): The build passed.
<travis-ci> [travis-ci] Build details : http://travis-ci.org/opal/opal/builds/20793826
travis-ci has left #opal [#opal]
pebble` has joined #opal
pebble` has quit [Remote host closed the connection]
pebble` has joined #opal
dimaursu16 has quit [Ping timeout: 240 seconds]
meh` has quit [Ping timeout: 240 seconds]
tils has quit [Read error: Operation timed out]
grios has quit [Ping timeout: 240 seconds]
grios has joined #opal
RoxasShadow has joined #opal
RoxasShadowRS has quit [Ping timeout: 240 seconds]
elia has joined #opal
fkchang has quit [Ping timeout: 252 seconds]
<elia> grios, try looking at opal-jquery specs, they rely on per-example DOM that get thrown away at the end of the example
<grios> thanks elia
e_dub has quit [Quit: ZZZzzz…]
e_dub has joined #opal
GitHub164 has joined #opal
<GitHub164> [opalrb.org] elia closed pull request #7: Add barebones Rails documentation (master...patch-1) http://git.io/NHy3pw
GitHub164 has left #opal [#opal]
GitHub167 has joined #opal
<GitHub167> [opalrb.org] elia pushed 2 new commits to master: http://git.io/1ApKuw
<GitHub167> opalrb.org/master 6ddd5d8 Elia Schito: Merge pull request #7 from marten/patch-1...
GitHub167 has left #opal [#opal]
<GitHub167> opalrb.org/master 763b903 Marten Veldthuis: Add barebones Rails documentation...
<elia> adambeynon, updating opalrb with rails page
GitHub63 has joined #opal
GitHub63 has left #opal [#opal]
<GitHub63> opalrb.org/gh-pages 85c0383 Elia Schito: Site updated to 6ddd5d8
<GitHub63> [opalrb.org] elia pushed 1 new commit to gh-pages: http://git.io/GlQk6w
meh` has joined #opal
ryanstout has quit [Quit: ryanstout]
<grios> elia, i'm a bit confused here. by what I understood the "html <<-HTML" is the dom that will be used by my test, right? But when I add this to the code my test case just stop being detect
<elia> grios, probably the missing bit is the #html method in the spec_helper
<elia> e_dub, https://github.com/elia/atom-textmate cc adambeynon
<grios> tahnks again
pebble`_ has joined #opal
<elia> grios, going to sleep, good luck!
<elia> meh`, just one thing before shutting down, I need help in naming atom-textmate (I saw the wonderful work picking cesso for elixir csv…)
<elia> *re-naming
pebble` has quit [*.net *.split]
<elia> ok, leaving, now, meh` let me know if you come up with something (emal/twitter/whatever)
elia has quit [Quit: Computer has gone to sleep.]
e_dub has quit [Quit: It's a hard knock life]
lacrosse_ has quit [Ping timeout: 245 seconds]
pebble`_ has quit [Changing host]
pebble`_ has joined #opal
pebble`_ is now known as pebble`
lacrosse_ has joined #opal