These are chat archives for opal/opal

11th
May 2015
Rick Carlino
@RickCarlino
May 11 2015 16:27
Is opal-rails set to have source maps by default?
It says it does, but I'm not seeing them. It appears that I have source maps enabled in Chrome and have assets in debug mode
It maps to the_correct_file.rb in console, but when I open that file, it's compiled output, not Ruby
Elia Schito
@elia
May 11 2015 16:36
@RickCarlino I need to check how other projects set defaults for different environments
Rick Carlino
@RickCarlino
May 11 2015 16:37
Ah ok. So its a known issue with opal-rails?
Elia Schito
@elia
May 11 2015 16:37
no, it should work afaik, was just pointing out that current status is a bit fragile
Forrest Chang
@fkchang
May 11 2015 16:50
@RickCarlino which version of opal r u using? source maps are (were?) broken for the 0.7.* I've been using lately
on 0.6.* they worked out of the box for me
Elia Schito
@elia
May 11 2015 16:50
@fkchang thanks, that's the right question
Rick Carlino
@RickCarlino
May 11 2015 16:51
    opal (0.7.1)
      hike (~> 1.2)
      sourcemap (~> 0.1.0)
      sprockets (>= 2.2.3, < 4.0.0)
      tilt (~> 1.4)
    opal-activesupport (0.1.0)
      opal (>= 0.5.0, < 1.0.0)
    opal-jquery (0.3.0)
      opal (~> 0.7.0)
    opal-rails (0.7.0)
      jquery-rails
      opal (~> 0.7.0)
      opal-activesupport (>= 0.0.5)
      opal-jquery (~> 0.3.0.beta1)
      opal-rspec (~> 0.4.0)
      rails (>= 3.2, < 5.0)
    opal-rspec (0.4.2)
      opal (~> 0.7.0)
Yep. That's it. 0.7.*
Elia Schito
@elia
May 11 2015 16:52
@RickCarlino yeah, you can try with opal and opal-rails from master
Rick Carlino
@RickCarlino
May 11 2015 16:53
Ah ok
Forrest Chang
@fkchang
May 11 2015 18:07
@vais submitted an issue per your suggestion opal/opal#840
Brian Glusman
@bglusman
May 11 2015 20:01
Anyone around to talk through how to do some things with Opal React? specifically struggling with attaching key handler to top level dom element
there’s an example here for an input where the input doesn’t need to take a block, but I get warnings etc modifying afterwards and can’t make this work on parent div that’s meant to catch keypress anywhere in window
I’m also failing to get a background color property to be a dynamic inline style the way I’m trying, but that’s less pressing :-)
Jared White
@jaredcwhite
May 11 2015 20:05
@RickCarlino @elia @AstonJ @fkchang @adambeynon Got a new page up on Opalist where you can submit links directly for inclusion in the newsletter: http://www.opalist.co/submit-link (thanks Rick for the suggestion) -- reminder next issue's going out this Wednesday AM Pacific Time
Rick Carlino
@RickCarlino
May 11 2015 20:09
@jaredcwhite I will have an article published in the next 12 hours
Thanks for the heads up!
AstonJ
@AstonJ
May 11 2015 20:11
That’s brilliant, thanks @jaredcwhite :+1: Would be great if you could keep a running list that we could add to the Opal site too. Tho I imagine at some point that might have to be restricted to just featured items as I expect the list will get very big haha
Forrest Chang
@fkchang
May 11 2015 20:22
@jaredcwhite awesome, I'll submit as soon as I have something ready. What's the exact cut off hour?
Jared White
@jaredcwhite
May 11 2015 20:50
@AstonJ Yep, will add some stuff here opal/opalrb.org#19 @fkchang When I go to bed on Tuesday. :) Generally around 10:30pm
Rick Carlino
@RickCarlino
May 11 2015 22:05
Is try opal broke right now?
Elia Schito
@elia
May 11 2015 22:05
just pushed a new version of opalrb
Rick Carlino
@RickCarlino
May 11 2015 22:06
Ah- just temporary?
Elia Schito
@elia
May 11 2015 22:06
no, was supposedly ok, let me check, what's the error?
Rick Carlino
@RickCarlino
May 11 2015 22:06
http://opalrb.org/try/ <-- broke in chrome on linux
Elia Schito
@elia
May 11 2015 22:19
@RickCarlino should be fixed
let me know if you see any other broken stuff