<ryanstout>
fkchang: I need to do a video explaining my component stuff. Not sure if its like lissio's component stuff
barry__ has joined #opal
<fkchang>
the "similar to how you already do it" is familiar, esp. for those who got their start w/the web. As an ex-gui programmer, it's jarring, but that is not the perspective most ppl have, though I imagine mobile programmers going to the web might feel similarly
<meh`>
dleedev, if you feel like contributing to opal-browser, writing specs would be a very good thing
GitHub62 has joined #opal
GitHub62 has left #opal [#opal]
<GitHub62>
opal-browser/master d62e010 meh: spec/dom/element: fix HTML for attribute specs
<GitHub62>
[opal-browser] meh pushed 1 new commit to master: http://git.io/840BXw
GitHub26 has joined #opal
<GitHub26>
opal-browser/master 5e0a28d meh: dom/element/attributes: make the best case faster
<GitHub26>
[opal-browser] meh pushed 1 new commit to master: http://git.io/zvZ0Wg
GitHub26 has left #opal [#opal]
barry_ has joined #opal
dimaursu16 has quit [Ping timeout: 272 seconds]
barry__ has quit [Ping timeout: 265 seconds]
barry___ has joined #opal
fkchang has joined #opal
barry_ has quit [Ping timeout: 265 seconds]
fkchang has quit [Ping timeout: 265 seconds]
barry___ has quit [Remote host closed the connection]
dleedev has quit [Quit: dleedev]
meh` has quit [Ping timeout: 252 seconds]
Noldorin has quit []
dleedev has joined #opal
ryanstout has quit [Quit: ryanstout]
edub has joined #opal
edub has quit [Ping timeout: 252 seconds]
<dleedev>
Hi, are there plans to support Fiber in Opal?
e_dub has joined #opal
e_dub has quit [Ping timeout: 252 seconds]
e_dub has joined #opal
e_dub has quit [Ping timeout: 252 seconds]
e_dub has joined #opal
e_dub has quit [Ping timeout: 252 seconds]
edub has joined #opal
edub has quit [Ping timeout: 252 seconds]
dleedev has quit [Quit: dleedev]
ryanstewart6 has joined #opal
kludge` has quit [Disconnected by services]
kludge` has joined #opal
ryanstewart5 has quit [*.net *.split]
dimaursu16 has joined #opal
kludge` has quit [Ping timeout: 265 seconds]
elia has joined #opal
RoxasShadowRS has joined #opal
kludge` has joined #opal
GitHub108 has joined #opal
GitHub108 has left #opal [#opal]
<GitHub55>
[opal-rails] elia pushed 4 new commits to master: http://git.io/ho-NtA
<GitHub55>
opal-rails/master 3dc4ff6 Andrius Chamentauskas: Fixed specs checking all opal specs run successfully, added spec to check running single spec file
<GitHub55>
opal-rails/master 75ff860 Andrius Chamentauskas: Allow specs inside subdirectories of {app,lib}/assets/javascripts/spec/
GitHub55 has joined #opal
GitHub55 has left #opal [#opal]
<GitHub55>
opal-rails/master f89283c Andrius Chamentauskas: Fixed specs failing because of wrong file order
<fkchang>
but I had to include all the js and css, can I include js in the gem into the app's load path. That would allow me to just require the js, not certain how I'll get the css into the project
<fkchang>
w/o having to tweak the markup, for lissio I could probalby make a component, btu I want to make it easy to add to any opal project
<meh`>
fkchang, few ways
<meh`>
use __END__ and append a style tag
<meh`>
no, not few ways, just this way comes to mind
<fkchang>
side question, how do I make an id with a dash in it in the DOM DSL
<meh`>
DUN DUN DUUUUN
<meh`>
not possible currently
<meh`>
div(id: 'my-id')
<meh`>
I have to add the dashing business I have with classes
DrShoggoth has joined #opal
<fkchang>
meh`: can I have a promise where the then happens after a script is loaded into the browser - I tried to insert script elements via the DOM dsl, I need to include jquery into the document before I can do a require 'opal-jquery' -- thoughts or alternate approach? Trying to get it so you just need to call code to include opal-irb
dleedev has joined #opal
<meh`>
fkchang, I'm not sure I follow
<fkchang>
meh`: So I'm trying to load all the js requirements programatically (vs having to insert stuff into the html) which I can do either through CDN's or the gem, and the way I tried to do such was make <script> elements, which works, except it's asynchronous. One snag I hit was that to require 'opal-jquery' you have have required jquery 1st, which at the time the code does that, the <script> hasn't loaded yet. Were I to continue this
<fkchang>
direction, it might be nice to do something like Promise.new { async javascript_load}.then { require 'opal-jquery'}
<fkchang>
Maybe I'll just do some kind of javascript_include_tag type helper instead, just hoping to add 2 lines of code to integrate
dleedev has quit [Quit: dleedev]
dleedev has joined #opal
<dleedev>
meh`: it seems like websql is being deprecated and indexeddb is taking over
<adambeynon>
fkchang: you are using both opal-jquery AND opal-browser in the same app?
<adambeynon>
ryanstout: I missed your message yesterday regarding methods using '$'. Native objects will be able to use #send and #__send__
<ryanstout>
but it hasn't been merged for some weird reason
<ryanstout>
fkchang: is that what you were asking bout?
<ryanstout>
^about
<fkchang>
I think so, I'm just trying to add src map support, and I see that it maps everything to a single file, which makes sense coz the opal is getting compiled to a single file. I guess I need to pass something to Opal::Environment to make it spit out multiple files/
<ryanstout>
yea, and you have to have ?body=1 on the individual files so sprockets doesn't follow the requires
<ryanstout>
the problem imho is that opal is so many files, it takes forever to load
<ryanstout>
just so many requests
<ryanstout>
so I've been doing most of my development with source map's off
<fkchang>
so do we just fork sprockets and merge in that PR instead?
<ryanstout>
I'm hoping sprockets will merge in that PR, so we could have it come out as 1 with source maps
<adambeynon>
ryanstout, fkchang: the number of files is my problem as well. I always run using 1 large file unless there is a really hard to find bug, which I then split up and use source maps to help debug
<adambeynon>
ryanstout: I think they were waiting for coffeescript to work well with it
<adambeynon>
as it would be the main usage I guess
<ryanstout>
adambeynon: it looks like there's nothing holding back that PR, seems like no one wants to merge it for some reason
<ryanstout>
maybe there's something I'm not aware of
<fkchang>
adambeynon: did you see my q to meh` about dynamically loading js?
<adambeynon>
fkchang: what is the "javascript" way of doing it cross browser?
<adambeynon>
load + wait for a script tag?
elia has joined #opal
<fkchang>
adambeynon: background, to put opal-irb into the lissio app I had to include like a 7 other js files, some of which point to cdn or internet hosted files, some I had to copy over to the project and server. I was hoping to not have to add script tags and do all the dependency loading programatically so the user could just add a few lines of code and it would load everything you need. I hit a snag coz I wanted to require "opal-jquery"
<fkchang>
but the script tag hadn't loaded yet and it failed
dimaursu16 has joined #opal
dimaursu16 has quit [Client Quit]
GitHub74 has joined #opal
<GitHub74>
[opal-rails] elia pushed 4 new commits to master: http://git.io/OTaqwA