j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
elia has quit [Quit: Computer has gone to sleep.]
elia has joined #opal
elia has quit [Ping timeout: 272 seconds]
elia has joined #opal
GitHub51 has joined #opal
GitHub51 has left #opal [#opal]
<GitHub51>
opalrb.org/master 24e5843 Elia Schito: Add docs for sourcemaps
<GitHub51>
[opalrb.org] elia pushed 1 new commit to master: http://git.io/sDcoTA
GitHub151 has joined #opal
<GitHub151>
opalrb.org/gh-pages 938a579 Elia Schito: Site updated to 24e5843
GitHub151 has left #opal [#opal]
<GitHub151>
[opalrb.org] elia pushed 1 new commit to gh-pages: http://git.io/LCtdjg
GitHub145 has joined #opal
<GitHub145>
[opalrb.org] elia force-pushed master from 24e5843 to 1c7f02e: http://git.io/I7bNwQ
<GitHub145>
opalrb.org/master 1c7f02e Elia Schito: Add docs for sourcemaps
GitHub145 has left #opal [#opal]
GitHub21 has joined #opal
GitHub21 has left #opal [#opal]
<GitHub21>
[opalrb.org] elia pushed 1 new commit to gh-pages: http://git.io/dD1GdQ
<GitHub21>
opalrb.org/gh-pages f7c82c7 Elia Schito: Site updated to 1c7f02e
wmnnd has joined #opal
<wmnnd>
elia: Hey elia, thanks for your response.
<wmnnd>
wmnnd: However, i still haven't figured out how to get the source maps working with the 0.6 branch. I am using Sinatra, so I have mapped an Opal Environment to /assets/js. But how do I get the sourcemaps in /__opal_source_maps__, where they are supposed to be?
<wmnnd>
elia: I tried mapping that path to Opal::Server.new.source_maps but to no avail.
<wmnnd>
This works with the sinatra example, however, I'm not quite sure how to do a pull request for an older version.
<wmnnd>
Alas, while everything *appears* to be working now, however, all Exceptions seem to be mapped to the line with Document.ready? regardless where they occur.
elia has joined #opal
elia has quit [Quit: Computer has gone to sleep.]
<wmnnd>
The problem seems to be that blocks are not mapped correctly.
<wmnnd>
Exceptions are always displayed at the beginning of the block that contains them.
<wmnnd>
However, when using opal-jquery, exceptions are always located at Document.ready? which makes the whole thing pretty much useless: http://i.imgur.com/1krA6kQ.png
elia has joined #opal
<elia>
wmnnd, you can adjust the target branch of the PR while creating it
<elia>
wmnnd, or just target master and I'll backport the fix by cherry-pick
<fkchang>
I think the web components as ruby is really nice, using lissio on an internal tool, and it's the most fun front end I've had in I can't remember.
<fkchang>
that being said, I think lissio's bundling behavior, markup and css in one, all in Ruby is better than React. I like the DOM diffing for performance and the Flux unidirectional architecture from React
<fkchang>
I wished I had filed the OCRuby talk that I built/refactored an agile cardwall app from scratch in lissio in about an hour. All Ruby and OO all the way down, a really nice mindset that is quite freeing
<fkchang>
The other thing is server rendered stuff that react can "connect to", is something I'd like to see in lissio, so I could prerender on lissio and have the lissio components "attach" to the markup instead of having to render it themselves
<fkchang>
making search friendly apps w/quick startup
<elia>
adambeynon, no, I didn't try react yet, was waiting for the reactive stuff of voltrb to be extracted
<meh`>
adambeynon, can you fixup opal-rspec plox?
<fkchang>
meh`: how much work would it be to make it so something like super in the css part of a lissio component would run the parent's css?
<meh`>
fkchang, how do you mean?
<meh`>
fkchang, unless you're doing something weird, the component should inherit the class of the parent
<fkchang>
so I'd love to subclass a lissio component in the css do something like
<fkchang>
css do
<fkchang>
super
<meh`>
so all the css applied by the parent css will be applied to the child
<fkchang>
# the things I wnt to change
<fkchang>
end
<meh`>
and it chains however deep you want
<fkchang>
oh, then I get it already, and don't need to implement it?
<elia>
fkchang, shouldn't be too difficult to run opal-rails specs in phantomjs
<meh`>
fkchang, yep
<fkchang>
meh`: nice
<elia>
adambeynon, 2day/w awesome I'd really like to ship 0.7 :)
<fkchang>
I've thinking of how to apply std oo to Lissio stuff, and css inheritance I think was one thing that would be easy, html inheritance not so much, but I could refactor out html as methods and do something like template method
<fkchang>
meh`: other question was, what do u think it would take to "attach" a lissio component to prerendered html
<fkchang>
instead of rendering itself
<meh`>
fkchang, you can do that already
<meh`>
element 'selector' instead of html/render/text/whatever
<fkchang>
meh`: awesome
<fkchang>
meh`: now just need to figure out how to render lissio on the backend
<fkchang>
meh`: how would I attach multiple of the same components to multiple elements, i.e. lets say I had 2 dom elements prerendered, and they are both the same component, or would I have to subclass and change the element selector
<meh`>
fkchang, you could make a Wrapper < Lissio::Component
<meh`>
Wrapper.new('selector')
<fkchang>
meh`: the overwolf is stats on the upper right?
<meh`>
and it def element; $document[@selector]; end
<meh`>
fkchang, the thing on the right that changes across screenshots
<meh`>
World Boss, Crafting etc
<fkchang>
meh`: cool, I'll have to try it at some point
elia has quit [Quit: Computer has gone to sleep.]
elia has joined #opal
<fkchang>
elia: adambeynon meh` the other thing is I have opal-irb embedded in my rails app, pretty handy, will be adding features and tweaks http://imgur.com/jy9Agt2
seamon has quit [Quit: Zzzzzzz]
<elia>
fkchang, I'm eager to add it (as opt-in) to opal-rails
seamon has joined #opal
e_dub has joined #opal
<fkchang>
meh`: I put instructions on the readme, I'll probably want to clean up some of the dependencies, vendoring some stuff, but giving options in case the app provides it's own