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/
fkchang has quit [Ping timeout: 264 seconds]
meh` has joined #opal
ylluminarious has quit [Quit: Leaving...]
ryanstout has quit [Quit: ryanstout]
e_dub has quit [Read error: Connection reset by peer]
e_dub has joined #opal
noomerikal has joined #opal
wulab has joined #opal
meh` has quit [Ping timeout: 272 seconds]
noomerikal has quit [Remote host closed the connection]
noomerikal has joined #opal
wmnnd has joined #opal
noomerikal has quit [Ping timeout: 265 seconds]
GitHub161 has joined #opal
<GitHub161> [opalrb.org] adambeynon pushed 1 new commit to master: http://git.io/iuG6fw
<GitHub161> opalrb.org/master ac5eb2c Adam Beynon: Use latest opal
GitHub161 has left #opal [#opal]
GitHub88 has joined #opal
<GitHub88> [opalrb.org] adambeynon pushed 1 new commit to gh-pages: http://git.io/xgB3Rg
GitHub88 has left #opal [#opal]
<GitHub88> opalrb.org/gh-pages fdba10a Adam Beynon: Site updated to ac5eb2c
GitHub102 has joined #opal
<GitHub102> [opal-rspec] adambeynon pushed 1 new commit to master: http://git.io/YPQq1g
<GitHub102> opal-rspec/master b4c31be Adam Beynon: Add built rspec (for now) ughh
GitHub102 has left #opal [#opal]
travis-ci has joined #opal
<travis-ci> opal/opal-rspec#13 (master - b4c31be : Adam Beynon): The build passed.
travis-ci has left #opal [#opal]
GitHub142 has joined #opal
<GitHub142> [opal-haml] adambeynon pushed 1 new commit to master: http://git.io/qgJxFw
<GitHub142> opal-haml/master b5b120b Adam Beynon: Use latest opal
GitHub142 has left #opal [#opal]
GitHub182 has joined #opal
<GitHub182> [opal-rspec] adambeynon pushed 1 new commit to master: http://git.io/b1PvFw
<GitHub182> opal-rspec/master 99f5fb7 Adam Beynon: Use vendor rspec
GitHub182 has left #opal [#opal]
travis-ci has joined #opal
<travis-ci> opal/opal-rspec#14 (master - 99f5fb7 : Adam Beynon): The build passed.
travis-ci has left #opal [#opal]
wulab has quit [Quit: Page closed]
GitHub165 has joined #opal
<GitHub165> [opal-rspec] adambeynon pushed 1 new commit to master: http://git.io/yRCVtw
<GitHub165> opal-rspec/master dbbb163 Adam Beynon: Fix and add specs for one-liner should and is_expected syntax
GitHub165 has left #opal [#opal]
GitHub67 has joined #opal
<GitHub67> [opal-rspec] adambeynon closed pull request #10: Add examples for one-liner syntax (master...one_liner_syntax) http://git.io/uczO_Q
GitHub67 has left #opal [#opal]
travis-ci has joined #opal
<travis-ci> opal/opal-rspec#15 (master - dbbb163 : Adam Beynon): The build passed.
travis-ci has left #opal [#opal]
GitHub145 has joined #opal
<GitHub145> [opal-rspec] adambeynon closed pull request #3: Fix rake tasks so it runs on linux CI server (master...master) http://git.io/uyhnew
GitHub145 has left #opal [#opal]
GitHub187 has joined #opal
<GitHub187> [opalrb.org] adambeynon pushed 1 new commit to master: http://git.io/O_iRNg
<GitHub187> opalrb.org/master 8516b69 Adam Beynon: Update dependencies
GitHub187 has left #opal [#opal]
GitHub64 has joined #opal
<GitHub64> [opalrb.org] adambeynon pushed 1 new commit to gh-pages: http://git.io/B6ZC9A
GitHub64 has left #opal [#opal]
<GitHub64> opalrb.org/gh-pages 66a7d64 Adam Beynon: Site updated to 8516b69
GitHub181 has joined #opal
<GitHub181> [opalrb.org] adambeynon pushed 1 new commit to master: http://git.io/tgfTKg
<GitHub181> opalrb.org/master 93fc509 Adam Beynon: Cleanup inline code blocks
GitHub181 has left #opal [#opal]
GitHub8 has joined #opal
<GitHub8> [opalrb.org] adambeynon pushed 1 new commit to gh-pages: http://git.io/pm0-HA
GitHub8 has left #opal [#opal]
<GitHub8> opalrb.org/gh-pages 34cb7fb Adam Beynon: Site updated to 93fc509
GitHub144 has joined #opal
<GitHub144> [opal] elia pushed 4 new commits to hash-string-map: http://git.io/w5Ir1Q
<GitHub144> opal/hash-string-map fd17f4e Elia Schito: Fix Hash#inspect with explicit try / finally
<GitHub144> opal/hash-string-map 1f27b57 Elia Schito: Use Hash@smap in JSON
GitHub144 has left #opal [#opal]
<GitHub144> opal/hash-string-map b96411d Elia Schito: Use Hash string map in Native
GitHub198 has joined #opal
<GitHub198> [opal] elia force-pushed hash-string-map from 001f028 to 69ecaec: http://git.io/DU9MCQ
<GitHub198> opal/hash-string-map 33b9b00 Elia Schito: WIP
<GitHub198> opal/hash-string-map 69096ed Elia Schito: [snapshot]
<GitHub198> opal/hash-string-map dfbd518 Elia Schito: [snapshot]
GitHub198 has left #opal [#opal]
travis-ci has joined #opal
<travis-ci> opal/opal#2090 (hash-string-map - 001f028 : Elia Schito): The build has errored.
travis-ci has left #opal [#opal]
travis-ci has joined #opal
<travis-ci> opal/opal#2092 (hash-string-map - 69ecaec : Elia Schito): The build passed.
travis-ci has left #opal [#opal]
travis-ci has joined #opal
<travis-ci> opal/opal#2092 (hash-string-map - 69ecaec : Elia Schito): The build passed.
travis-ci has left #opal [#opal]
GitHub91 has joined #opal
<GitHub91> [opal] elia force-pushed hash-string-map from 69ecaec to 038c97e: http://git.io/DU9MCQ
<GitHub91> opal/hash-string-map d064d18 Elia Schito: Add a Node doc formatter
<GitHub91> opal/hash-string-map 99dafb3 Elia Schito: Use the doc formatter for Node specs
<GitHub91> opal/hash-string-map efdadd5 Elia Schito: Print the error stack along with the error...
GitHub91 has left #opal [#opal]
travis-ci has joined #opal
<travis-ci> opal/opal#2093 (hash-string-map - 038c97e : Elia Schito): The build passed.
travis-ci has left #opal [#opal]
GitHub11 has joined #opal
<GitHub11> [opal-jquery] adambeynon pushed 1 new commit to master: http://git.io/-yVogQ
<GitHub11> opal-jquery/master 2b3dded Adam Beynon: Make Element#[] return nil for empty attributes #39
GitHub11 has left #opal [#opal]
Helios__ has joined #opal
<Helios__> hello everyone
<Helios__> I would like to know how to compile an entire Ruby Gem into javascript, is that possible ?
GitHub47 has joined #opal
<GitHub47> [opal-jquery] adambeynon closed pull request #35: Let Element#to_s behave the same as Element#inspect (master...master) http://git.io/2IevDg
GitHub47 has left #opal [#opal]
GitHub100 has joined #opal
<GitHub100> [opal-jquery] adambeynon pushed 5 new commits to master: http://git.io/wObpzA
<GitHub100> opal-jquery/master e2ea2e0 Roy van der Meij: Element#to_s gave an <Element: Undefined> while Element#inspect gave a better output like <Element: [div id="some_div"]>
<GitHub100> opal-jquery/master 45f0ee0 Roy van der Meij: don't check for document but check if tagName exists
<GitHub100> opal-jquery/master 9cac3cb Roy van der Meij: alias to_s to inspect as it does exactly the same
GitHub100 has left #opal [#opal]
GitHub58 has joined #opal
<GitHub58> [opal-jquery] adambeynon pushed 1 new commit to master: http://git.io/AixtBw
<GitHub58> opal-jquery/master 69364dc Adam Beynon: Update some spec styling
GitHub58 has left #opal [#opal]
e_dub has quit [Quit: ZZZzzz…]
e_dub has joined #opal
wmnnd has quit [Ping timeout: 272 seconds]
Helios__ has quit [Ping timeout: 246 seconds]
wmnnd has joined #opal
GitHub117 has joined #opal
<GitHub117> [opal-jquery] adambeynon pushed 2 new commits to master: http://git.io/OPpgHA
<GitHub117> opal-jquery/master 67034c4 Adam Beynon: Move rspec helpers into opal/ for other libs to use
<GitHub117> opal-jquery/master 95a9e84 Adam Beynon: Some spec tidying
GitHub117 has left #opal [#opal]
e_dub has quit [Quit: ZZZzzz…]
GitHub84 has joined #opal
<GitHub84> [opal] adambeynon pushed 1 new commit to master: http://git.io/sVZQUw
<GitHub84> opal/master f151e85 Adam Beynon: Fixes for Enumerator#with_index #550
GitHub84 has left #opal [#opal]
travis-ci has joined #opal
<travis-ci> opal/opal#2095 (master - f151e85 : Adam Beynon): The build passed.
travis-ci has left #opal [#opal]
GitHub135 has joined #opal
<GitHub135> [opalrb.org] adambeynon pushed 1 new commit to master: http://git.io/0KUS6A
<GitHub135> opalrb.org/master ae83c26 Adam Beynon: Initial unsupported_features document
GitHub135 has left #opal [#opal]
GitHub117 has joined #opal
<GitHub117> [opalrb.org] adambeynon pushed 1 new commit to gh-pages: http://git.io/4G3-jg
<GitHub117> opalrb.org/gh-pages e66b83d Adam Beynon: Site updated to ae83c26
GitHub117 has left #opal [#opal]
ryanstout has joined #opal
noomerikal has joined #opal
meh` has joined #opal
ylluminarious has joined #opal
<ryanstout> adambeynon: did you figure out the issue with promises?
<ryanstout> the one I was having before was just me missing the obvious (passing a block without calling .then)
<ryanstout> but now I’ve got one where it doesn’t run until I add a .fail (even though I’m resolving it)
ylluminarious has quit [Client Quit]
<ryanstout> it might be that I’m calling it on wrong thing though
<ryanstout> ok, looks like it has something to do with calling return in a then block
<ryanstout> (I should say I’m running promise.rb with opal and mri)
<adambeynon> ryanstout: I'll have a look. Promise was done by meh` so he might know a bit more about its quirks...
<ryanstout> meh`: you around?
<ryanstout> adambeynon: thanks, I’m digging through it at the moment.
<ryanstout> it’s weird a return would make a difference
<ryanstout> oh, sorry, I’m dumb
<ryanstout> it’s because it was getting chained on and returning doesn’t return the promise
<ryanstout> ok, sorry, nevermind
<ryanstout> my bad
<adambeynon> Agh, return inside a block?
<ryanstout> yea
<ryanstout> I was just missing the obvious
<ryanstout> actually, this might be a common issue with Promises
<ryanstout> (in that I probably won’t be the only one to make this mistake)
<ryanstout> maybe there should be a lambda wrapping the then block or something so returns don’t leak out
<ryanstout> since promises are all about chaining and return breaks the chain and causes them to never get run in some cases
<meh`> ryanstout, yes
<ryanstout> sorry, actually nevermind for now. Was having an issue, but it was on my end. Thanks
<wmnnd> I am getting a really strange exception, maybe one of you has an idea what could be the reason for it. I have a method with an each-loop that returns an element from an array if certain conditions are met. Neither Firefox nor Chromium complain (i.e. log exceptions).
<ryanstout> meh`: on promises, what’s the difference between resolve and resolve!
<meh`> ryanstout, you shouldn't call resolve!
<wmnnd> However, if I enable "pause on exceptions", Firefox does give me an error while Chromium doesn't. Unfortunately, the error has no error description, it is just an "error" that eventually makes the script stop at "throw Opal.returner"
<meh`> ryanstout, resolve! is internal
<ryanstout> ok, cool
<meh`> like all the << >> ^ plumbing
e_dub has joined #opal
<ryanstout> meh`: what does ‘always’ do? Haven’t seen that one before
<wmnnd> The line in which it fails is a simple "return" call. It doesn't matter if I return an Object or simply true or a number.
<meh`> ryanstout, it catches both resolves and rejects
<ryanstout> ok
<meh`> ryanstout, it's like an ensure
<ryanstout> cool
e_dub has quit [Quit: ZZZzzz…]
<wmnnd> Ah, I see. Opal uses exceptions for the return statement so that you will get stuck in debugging limbo if you don't tick "Ignore caught exceptions" ^_^
<ryanstout> meh`: if you have a minute, would you look at this: https://gist.github.com/ryanstout/094bc34853527a68169e
<ryanstout> if I return inside of test, it never runs the second then
wmnnd has quit [Ping timeout: 256 seconds]
e_dub has joined #opal
<meh`> ryanstout, why are you using return?
<meh`> it's a block, not a lambda
<ryanstout> yea, I get that
<ryanstout> it’s a fairly easy mistake to make though
<meh`> yeah but the same would happen in Ruby
<ryanstout> it kind of fails silently though
<meh`> as in, MRI
<meh`> you have to use next
<ryanstout> sorry, how would you use next here?
<meh`> ryanstout, to "return" from blocks, you use next, not return
<meh`> next 10
<ryanstout> humm, I’ve never seen that syntax
<ryanstout> is there any way to keep it from silently failing?
<meh`> nope
<ryanstout> ok, can you help me understand why the .then in second never gets called?
<meh`> ryanstout, http://sprunge.us/OaMZ try this code
<meh`> ryanstout, you're applying two #next to the same promise
<meh`> dderp
<meh`> I mean #then
<meh`> you can only have one #then per promise
<ryanstout> ok, so shouldn’t the 2nd one raise an error?
wmnnd has joined #opal
<meh`> maybe :D
<ryanstout> ok.
<meh`> let me check
<meh`> I think there were some limitations
<ryanstout> thanks
<meh`> because sometimes promises are tucked between two that are are already linked
<ryanstout> sorry, can you explain that a bit more
<meh`> ryanstout, promises are basically a double linked list
<meh`> each promise is a node in the list
<meh`> it knows the previous promise and the next promise
<meh`> when in a #then or #rescue you return a promise
<meh`> the promise you returned gets put between the next promise and the one you're returning from
<meh`> not raising on a #then on an already #then'd promise is just me being lazy
<ryanstout> because your using .then internally when a then returns?
<ryanstout> (to wait on a returned promise)
<meh`> yeah
<meh`> I'll fix it later
<ryanstout> ok, cool, thanks
e_dub has quit [Quit: ZZZzzz…]
noomerikal has quit [Remote host closed the connection]
noomerikal has joined #opal
noomerikal has quit [Ping timeout: 265 seconds]
ylluminarious has joined #opal
noomerikal has joined #opal
wmnnd has quit [Read error: Connection reset by peer]
wmnnd has joined #opal