These are chat archives for opal/opal

18th
Dec 2015
Adam
@adamcreekroad
Dec 18 2015 17:38
hey guys @catmando and i found this bizarre problem opal/opal#1252 regarding Hash.new(native_object)... The weird thing is the exact same expression when typed in the JS console (Opal.Hash.$new(native_object) works, but when sent through in backticks or as plain ruby code does not work. Details in the issue. We are working around the issue by converting json objects to strings, then using opals JSON module to convert back.
Adam Jahn
@ajjahn
Dec 18 2015 20:55
@elia I haven't had time to look deeper into it, but react.rb builds started failing due to release of sprockets-rails 3.0.0. Rails requires >= 2.0.0. Not sure what breaking changes are in the new release, but it seems like this will most likely effect opal-rails. Heads up just in case.
Elia Schito
@elia
Dec 18 2015 20:57
@ajjahn thanks! let me know if you find some kind of fix for it
Need to set a dep on ~> 2 until it's solved, from what I saw app.assets is now nil…
Adam Jahn
@ajjahn
Dec 18 2015 20:59
yeah, that's what I did in react.rb.
Adam Jahn
@ajjahn
Dec 18 2015 21:09
@elia opal/opal-rails#75. I believe the build was already failing.
Elia Schito
@elia
Dec 18 2015 21:12
@ajjahn ha! https://github.com/opal/opal-rails/tree/0-8-stable …but your version requirements looks better
Adam Jahn
@ajjahn
Dec 18 2015 21:15
How many programmers does it take to screw in a line of code?
Elia Schito
@elia
Dec 18 2015 21:15
yeeeeah
Elia Schito
@elia
Dec 18 2015 21:20
@ajjahn mergeg and corrected the version req on 0.8 as well
Also apparently the first beta of rails 5 is out YAY!
@ajjahn released opal-rails 0.8.1
Adam Jahn
@ajjahn
Dec 18 2015 21:22

@elia Nice, I'll point react.rb to 0.8.1. Thanks!

I'm going to have to take a look at that beta.

Elia Schito
@elia
Dec 18 2015 21:23
me too!