These are chat archives for opal/opal

4th
May 2016
Forrest Chang
@fkchang
May 04 2016 00:50
What versions of opal are people using? Wondering if it's worth the effort to add some features to opal-irb supporting 0.8
or just do 0.9?
Brady Wied
@wied03
May 04 2016 02:24
Since it moves so fast, I pretty much use the latest version
the version of opal-rspec that will come out when 0.10 does only supports 0.10
I think when it gets closer to a 1.0 release, slowing down and supporting lots of versions will probably get more important
as in lib maintainers slowing down
Elia Schito
@elia
May 04 2016 08:05
agree
Jared White
@jaredcwhite
May 04 2016 15:20
Hi all -- I've been playing around with adding some interactive elements to my personal Jekyll-based blog using Opal and my Polished-Knockout gem. Had a weird issue come up, this is with Opal 0.9.2. I got an error with my built code because the compiled JS was trying to call Opal.to_a and failed. I looked and saw that in the JS context there's an Opal.to_ary but no Opal.to_a. On a whim, I added a script tag and did Opal.to_a = Opal.to_ary. Then my stuff ran just fine. Is this some kind of compilation bug perhaps? Or do I need to do something different with how I'm building my Opal files. Thanks!
Elia Schito
@elia
May 04 2016 15:25
@jaredcwhite it's a bug, if you can find which code is producing the .to_a please file an issue and we'll fix it
of course if it's 3rd party stuff it's a matter of updating the 3rd party code :)
Jared White
@jaredcwhite
May 04 2016 15:33
@elia I think I pinpointed the problem. Issue filed: opal/opal#1466
Elia Schito
@elia
May 04 2016 15:37
:+1: thx
CJ Lazell
@cj
May 04 2016 17:33
I know opal has no public/private methods. but shouldn't #public_methods(false) work? or even #methods(false) ?
CJ Lazell
@cj
May 04 2016 17:58
dajvu opal/opal#909 :)
Elia Schito
@elia
May 04 2016 21:41
@cj the question is: given there's no public/private, what should public_methods and methods should return? all methods? no methods?