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`> fkchang, anyway, how was the reaction to lissio? anyone pointed out any warts I haven't found?
<fkchang> meh`: I'd say it went well, I think they were impressed w/how much I could accomplish in 45 min, and how little and clean the code was
<fkchang> I wished it was videoed, so I could use it a screen cast. U could tell me what I'm doing wrong
<fkchang> I wanted to basically make the screen cast, but didn't realize it'd take about a hour to do all the stuff I did
elia has joined #opal
DrShoggoth has quit [Quit: Leaving]
GitHub77 has joined #opal
GitHub77 has left #opal [#opal]
<GitHub77> opal/master 9e09029 meh: Remove Native::Object#to_ary...
<GitHub77> [opal] meh pushed 1 new commit to master: http://git.io/mXGZfw
travis-ci has joined #opal
<travis-ci> [travis-ci] opal/opal#1726 (master - 9e09029 : meh): The build passed.
<travis-ci> [travis-ci] Build details : http://travis-ci.org/opal/opal/builds/18014101
travis-ci has left #opal [#opal]
<meh`> adambeynon, enjoying the faster travis response? :D
<meh`> less than 3 minutes
travis-ci has joined #opal
<travis-ci> [travis-ci] Build details : http://travis-ci.org/opal/opal/builds/18014101
<travis-ci> [travis-ci] opal/opal#1726 (master - 9e09029 : meh): The build passed.
travis-ci has left #opal [#opal]
<fkchang> meh`: what does it take to load a normal ruby gem? I remember you discussing it
<meh`> fkchang, mostly luck :)
<fkchang> you can't just require it, right, you have to do some load path and hope the order is ok?
<meh`> fkchang, typically
<meh`> Opal.use_gem 'name'
<meh`> if it's a gem you're writing
<meh`> wait
<fkchang> It's cucumber actually. I figure if adambeynon can get rspec working on opal, cucumber should work
<fkchang> thx
<fkchang> I need to remember to use paggio on the server side
<fkchang> adambeynon: decided to finally update gems, Bundler could not find compatible versions for gem "opal":
<fkchang> In Gemfile:
<fkchang> opal (~> 0.5.0) ruby
<fkchang> opal-sprockets (>= 0) ruby depends on
<fkchang>
<fkchang> opal (0.6.0)
<fkchang> but my gemfile has all git
<fkchang> gem 'opal', :git => "git://github.com/opal/opal.git"
<fkchang> gem 'opal-sprockets', :git => "git://github.com/opal/opal-sprockets.git"
<fkchang> gem 'opal-jquery', :git => "git://github.com/opal/opal-jquery.git"
<fkchang> gem 'opal-browser', :git => "git://github.com/opal/opal-browser.git"
<fkchang> gem 'opal-rspec'
<meh`> fkchang, remove opal-sprockets
<fkchang>
<meh`> it's been merged into opal
<meh`> it will assplode everything
<fkchang> meh`:thx
GitHub119 has joined #opal
GitHub119 has left #opal [#opal]
<GitHub119> opal-browser/master afd43f6 meh: dom/node_set: cleanup code and logic
<GitHub119> [opal-browser] meh pushed 1 new commit to master: http://git.io/xMpq0w
oldfartdeveloper has joined #opal
<meh`> obviously IE6 had to be a dick
<oldfartdeveloper> Greetings, everyone. I'm working w/ fkchang to get Cucumber running under Opal; exciting stuff!
travis-ci has joined #opal
<travis-ci> [travis-ci] Build details : http://travis-ci.org/opal/opal-browser/builds/18015147
<travis-ci> [travis-ci] opal/opal-browser#136 (master - afd43f6 : meh): The build was broken.
travis-ci has left #opal [#opal]
<meh`> welcome
<oldfartdeveloper> meh`, thanks
<meh`> I hope you're ready to handle the rage of a thousand suns having to deal with IE6
<fkchang> meh`: can I add a $document.ready to a lissio app? If so, where, putting it at the bottom of app.rb doesn't work
<meh`> fkchang, you should actually overlode the #start method in the application
<meh`> *overload
<fkchang> do I need to call super?
<meh`> yes
<meh`> before after is kind of irrelevant
<meh`> you can also add a $document.ready if you want
<meh`> but it looks kind of dirty to me in this case
<meh`> also, you can add it whenever you want
<meh`> if the document is already ready it will just call the block
<fkchang> when I added it at the end I got some error, node can't be instantiated
<oldfartdeveloper> meh`: how would I include the Cucumber gem in your http://opalrb.org/docs/getting_started/ setup? Do I need to do this under opal-browser as well per your suggestion to fkchang https://github.com/opal/opal-browser/blob/master/lib/opal/browser.rb ?
<fkchang> Uncaught ArgumentError: cannot instantiate a non derived Node object
<meh`> oldfartdeveloper, in theory you can just do s.use_gem 'cucumber' in the Opal::Server config
<meh`> fkchang, that sounds weird
<oldfartdeveloper> Thanks, I'll try that
<fkchang> meh`: I'll use #start, I'm trying to hook opal irb into my lissio app
<fkchang> meh`: I can't require 'opal-jquery' (coz I use jquery plugins in opal-irb) in my lissio app, I get
<fkchang> Uncaught TypeError: Cannot set property '_p' of undefined app.js:21573
<fkchang> $opal.defs.TMP_1 app.js:21573
<fkchang> Opal.klass app.js:166
<fkchang> $b app.js:34012
<fkchang> (anonymous function) app.js:34071
<fkchang> (anonymous function)
<meh`> fkchang, looks like it's trying to call a method that doesn't exist, passing a block
<fkchang> it's this line
<fkchang> return ($a = ($b = $gvars["document"]).$ready, $a._p = (TMP_2 = function(){var self = TMP_2._s || this;
<fkchang>
<fkchang> like does opal-jquery's Docment.ready? conflict/override w/$document.ready
<meh`> it shouldn't
elia has quit [Quit: Computer has gone to sleep.]
<meh`> unless opal-jquery is overriding the $document gvar
<oldfartdeveloper> meh`: Here's a gist w/ my code that doesn't find the Cucumber gem: https://gist.github.com/oldfartdeveloper/8746819
<meh`> oldfartdeveloper, just a sec that if I stop being active on browserstack it kills everything
<fkchang> adambeynon: trying to update opal-irb to opal-rspec and I get the below error
<fkchang> Forrests-MacBook-Pro:opal-irb fkchang$ bundle exec rake
<fkchang> Error: Sprockets::FileNotFound: couldn't find file 'opal/rspec/rspec'
<fkchang> (in /Users/fkchang/.rvm/gems/ruby-2.0.0-p247/bundler/gems/opal-rspec-edb975ba0980/opal/opal/rspec.rb)
<meh`> fkchang, are you using the opal-rspec gem?
<meh`> you have to, sadly
<fkchang> My setup is the same as one I that runs on 0.5.0
<fkchang> meh`: trying to
<meh`> gem 'opal-rspec', '0.3.0.beta3'
<meh`> still same error?
<fkchang> let's see
<meh`> you need the beta
<fkchang> meh`: that did it, thx. I had it at head, since all my other gems are head
<meh`> fkchang, yeah, it's a problem with rspec, but it's not easily solved
<meh`> I mean, with opal-rspec
<oldfartdeveloper> meh`: if you see something obvious in my gist, please comment on it or here. I'll be back on in a half hour. Thanks for your help.
<meh`> oldfartdeveloper, you have to require cucumber as well
<meh`> oldfartdeveloper, the #use_gem calls just tells it to add the paths from the gem
<meh`> but keep in mind, if Cucumber is going to read files, that ain't gonna work
<meh`> we're in javascript land after all
fkchang has quit [Read error: Operation timed out]
RoxasShadowRS has quit [Read error: Connection reset by peer]
dleedev has quit [Quit: dleedev]
<oldfartdeveloper> meh`: Understood on files. Thanks for the require suggestion as well.
GitHub51 has joined #opal
<GitHub51> [opal-browser] meh pushed 1 new commit to master: http://git.io/mSw-LA
GitHub51 has left #opal [#opal]
<GitHub51> opal-browser/master 94492ff meh: dom/element: fix #css on IE6-7
<oldfartdeveloper> meh`: you're correct; the require fixed it.
travis-ci has joined #opal
travis-ci has left #opal [#opal]
<travis-ci> [travis-ci] Build details : http://travis-ci.org/opal/opal-browser/builds/18019082
<travis-ci> [travis-ci] opal/opal-browser#137 (master - 94492ff : meh): The build was fixed.
<oldfartdeveloper> It seems like yaml.rb is missing out of the opal stdlib. Is there anywhere else I can require it?
<meh`> oldfartdeveloper, nope, we don't have it
<meh`> yaml.rb in the stdlib is written in C
<oldfartdeveloper> hmm. So that needs to be ported over?
<meh`> yep
<oldfartdeveloper> I'll take a look, thanks
e_dub has joined #opal
Noldorin has quit []
meh` has quit [Ping timeout: 272 seconds]
femto has joined #opal
ryanstout has quit [Quit: ryanstout]
femto has quit [Ping timeout: 252 seconds]
femto has joined #opal
e_dub has quit [Quit: e_dub]
e_dub has joined #opal
femto has quit [Ping timeout: 240 seconds]
femto has joined #opal
skofo has joined #opal
skofo has quit [Quit: Leaving]
femto has quit [Ping timeout: 272 seconds]
femto has joined #opal
femto has quit []
<adambeynon> oldfartdeveloper: I have a yaml.rb polyfill which sits on top of a pure javascript implementation
<adambeynon> might be useful here
<adambeynon> I'll have a look to see If I have it on this machine
dleedev has joined #opal
e_dub has quit [Quit: e_dub]
e_dub has joined #opal
bongo_hide has joined #opal
bongo_hide has quit [Remote host closed the connection]
dleedev has quit [Quit: dleedev]
e_dub has quit [Quit: e_dub]
e_dub has joined #opal
RoxasShadowRS has joined #opal
kludge` has quit [Ping timeout: 252 seconds]
kludge` has joined #opal
e_dub has quit [Quit: e_dub]
DouweM has quit [Quit: Linkinus - http://linkinus.com]
Noldorin has joined #opal
DouweM has joined #opal
[o__o] has left #opal [#opal]
[o__o] has joined #opal
[o__o] has left #opal [#opal]
[o__o] has joined #opal
DouweM has quit [Ping timeout: 260 seconds]
elia has joined #opal
meh` has joined #opal
elia has quit [Quit: Computer has gone to sleep.]
elia has joined #opal
GitHub116 has joined #opal
<GitHub116> opal-browser/master 93985d6 meh: dom/node_set: improve #to_a and #to_ary
<GitHub116> [opal-browser] meh pushed 2 new commits to master: http://git.io/5XE6fg
GitHub116 has left #opal [#opal]
<GitHub116> opal-browser/master cdd3431 meh: README: use new #ready method
DouweM has joined #opal
dleedev has joined #opal
ryanstout has joined #opal
travis-ci has joined #opal
travis-ci has left #opal [#opal]
<travis-ci> [travis-ci] Build details : http://travis-ci.org/opal/opal-browser/builds/18041287
<travis-ci> [travis-ci] opal/opal-browser#138 (master - 93985d6 : meh): The build was broken.
dimaursu16 has joined #opal
travis-ci has joined #opal
<travis-ci> [travis-ci] opal/opal-browser#138 (master - 93985d6 : meh): The build passed.
<travis-ci> [travis-ci] Build details : http://travis-ci.org/opal/opal-browser/builds/18041287
travis-ci has left #opal [#opal]
<ryanstout> anyone have any ideas on what might be the issue with this code: https://github.com/opal/opal/issues/491 Also, does this cause an error for anyone else? Thanks
<meh`> ryanstout, I have no clue, but I verified it's a parser bug
<ryanstout> meh`: ok, thanks. Wanted to make sure it wasn't just me.
<meh`> tried to get a reduced testcase
<meh`> but couldn't get shorter than that
<ryanstout> yea, weird eh
<meh`> adambeynon, ping
GitHub39 has joined #opal
<GitHub39> [lissio] meh pushed 1 new commit to master: http://git.io/9-d1Gw
GitHub39 has left #opal [#opal]
<GitHub39> lissio/master 9f90b96 meh: lissio: add a builder
Noldorin has quit []
elia has quit [Quit: Computer has gone to sleep.]
DavidEGrayson has joined #opal
Noldorin has joined #opal
GitHub57 has joined #opal
<GitHub57> opal-browser/master 117e654 meh: window: improve message sending support
GitHub57 has left #opal [#opal]
<GitHub57> [opal-browser] meh pushed 1 new commit to master: http://git.io/ZT-OYQ
travis-ci has joined #opal
<travis-ci> [travis-ci] opal/opal-browser#139 (master - 117e654 : meh): The build passed.
travis-ci has left #opal [#opal]
<travis-ci> [travis-ci] Build details : http://travis-ci.org/opal/opal-browser/builds/18047069
ryanstout has quit [Ping timeout: 272 seconds]
ryanstout has joined #opal
<adambeynon> meh`: hiya
<meh`> adambeynon, disregard that, solved it
<adambeynon> ryanstewart: what is the odd behaviour you are getting with those hashes?
e_dub has joined #opal
<adambeynon> sorry
<adambeynon> ryanstout: ^^^^^^
<ryanstout> let me check again, one sec
<ryanstout> so its really weird
<ryanstout> when I have it in there, it causes a different part of my code to throw an error
<ryanstout> let me find the code thats getting generated
<adambeynon> ryanstout: a compiler error, or a runtime error?
<ryanstout> runtime
<ryanstout> actually, maybe not
<ryanstout> sorry, it is compile
<ryanstout> RuntimeError: parse error on value "," (tCOMMA) :(file):2
<ryanstout> the runtime error was that one file not compiling
<adambeynon> looks like a lexer bug
<adambeynon> the lexer cant cope without spaces around the " => "
<adambeynon> try adding a space either side of all the hash-rockets
<adambeynon> (verified on the website/try)
<ryanstout> RuntimeError: parse error on value "}" (tRCURLY) :(file):2
<ryanstout> does it need a space between the second hash?
<ryanstout> and the end
<ryanstout> actually, forgot one
<ryanstout> yea, that was it
<adambeynon> ryanstout: trying to fix the bug now
<ryanstout> adambeynon: thanks
DavidEGrayson1 has joined #opal
DavidEGrayson1 has quit [Client Quit]
DavidEGrayson1 has joined #opal
DavidEGrayson has quit [Ping timeout: 245 seconds]
DavidEGrayson1 has quit [Quit: Leaving.]
DavidEGrayson has joined #opal
e_dub has quit [Quit: e_dub]
dimaursu16 has quit [Ping timeout: 245 seconds]