These are chat archives for opal/opal

1st
Jul 2015
Forrest Chang
@fkchang
Jul 01 2015 00:20
ok, I've updated http://fkchang.github.io/opal-playground - added help, show compile error, show compiled js, embedded opal-irb, some other tweaks
John Rizzo
@johnrizzo1
Jul 01 2015 00:22
any good examples I can use to learn how to use components… the documentation only tells you the purpose and how they fit in but not how to create new ones...
oops
:)
wrong chat
Mitch VanDuyn
@catmando
Jul 01 2015 00:51
@fkchang do u want to do a show and tell and 7:00 eastern tomorrow?
Mitch VanDuyn
@catmando
Jul 01 2015 00:58
And anybody else interested in react opal
Forrest Chang
@fkchang
Jul 01 2015 01:18
@catmando I think I can do that
Andrzej Krzywda
@andrzejkrzywda
Jul 01 2015 11:44
Hey all, as Arkency we launched React.js koans 2 days ago. To our surprise it gathered over 1500 GitHub stars and it's now a trending repo - https://github.com/arkency/reactjs_koans The original version uses ES6, but the main goal was to teach React.js not ES6 (not that much). Long story short - it would be great to put the Opal version as well. This may be a good promotion for Opal as React.js is nowe getting more and more popular. Someone already created an issue for that: arkency/reactjs_koans#22 Just a full disclosure here - this repository has a book ad in the README - thanks to the people buying the book, we can spend more time/money on doing open source like this. If this is not a problem, then your help in doing the Opal version would be more than welcome. Even just porting the first exercise would be of much value - as then it would be easier for others to jump in and help with the next exercises.
Elia Schito
@elia
Jul 01 2015 11:45
:eyeglasses: watched
Vais Salikhov
@vais
Jul 01 2015 13:11
@andrzejkrzywda one of those 1500 stars is mine for what it's worth :)
Andrzej Krzywda
@andrzejkrzywda
Jul 01 2015 13:12
@vais thanks :)
Vais Salikhov
@vais
Jul 01 2015 13:15
@zetachang authored https://github.com/zetachang/react.rb which is an Opal wrapper around react.js
@zetachang authored https://github.com/zetachang/react.rb which is an Opal wrapper around react.js
CJ Lazell
@cj
Jul 01 2015 15:56
@elia morning. I’m trying to get the source maps working using that code you gave me. I intergrated like this https://gist.github.com/a8c42015f28f66f35afb. When debug is true and it goes directly through sprockets i get file not found. via opal server it finds the file just fine. Am I missing something?
CJ Lazell
@cj
Jul 01 2015 16:49
how is this code supposed to work? https://github.com/opal/opal/blob/master/lib/opal/sprockets/source_map_server.rb#L85 what is self? it’s never actually getting in there when path_info == wedge.map
changing the regex to %r{^(.*)(.self|.map)$} makes it work
gitter removed the backslashes
CJ Lazell
@cj
Jul 01 2015 17:05
created a ticket opal/opal#968
Elia Schito
@elia
Jul 01 2015 20:46
@cj .self comes from sprockets 3 and it's a "pipeline" intended to serve just the file you're requesting
the main problem is that the whole thing is a huge hack on sprockets which won't support sourcemaps until v4
Mitch VanDuyn
@catmando
Jul 01 2015 21:18
@fkchang Hey I don't think I can do this react-opal thing tonight, unless a bunch of people are going to e very dissappointed... I just have a bunch of stuff that I need to do. I think we can schedule it for next week. Okay?
Forrest Chang
@fkchang
Jul 01 2015 22:12
@catmando next week is fine