meh` changed the topic of #opal to: http://opalrb.org - Ruby runtime and library on top of Javascript | 1.0.0 is near | This channel is logged at https://botbot.me/freenode/opal/
<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
<fkchang> meh`: liss.io -- nice name
barry_ has quit [Ping timeout: 265 seconds]
GitHub151 has joined #opal
<GitHub151> opal-browser/master 0dfd47b meh: support: add WebSQL check
GitHub151 has left #opal [#opal]
<GitHub151> [opal-browser] meh pushed 1 new commit to master: http://git.io/Klz9QA
GitHub102 has joined #opal
<GitHub102> opal-browser/master 1e07e0f meh: dom/element/attributes: some fixes for name polyfills
GitHub102 has left #opal [#opal]
<GitHub102> [opal-browser] meh pushed 1 new commit to master: http://git.io/ZVMQyQ
GitHub58 has joined #opal
GitHub58 has left #opal [#opal]
<GitHub58> [opal-browser] dlee opened pull request #12: Fix Element#[]= by fixing Attributes#set (master...fix_attributes_set) http://git.io/XOfyjw
RoxasShadowRS has quit [Quit: Leaving]
GitHub68 has joined #opal
GitHub68 has left #opal [#opal]
<GitHub68> opal-browser/master 91bdcf9 meh: spec/runner: make sure everything is enabled in the browser
<GitHub68> [opal-browser] meh pushed 1 new commit to master: http://git.io/w98f_Q
barry__ has quit [Ping timeout: 272 seconds]
barry_ has joined #opal
barry__ has joined #opal
GitHub13 has joined #opal
GitHub13 has left #opal [#opal]
<GitHub13> opal-browser/master 92cc712 David Lee: spec/dom/element: add #[] and #[]= specs
<GitHub13> [opal-browser] meh pushed 2 new commits to master: http://git.io/KvGNCA
<GitHub13> opal-browser/master 4dda792 David Lee: dom/element/attributes: fix #[]= aliases
GitHub123 has joined #opal
GitHub123 has left #opal [#opal]
<GitHub123> [opal-browser] meh closed pull request #12: Fix Element#[]= by fixing Attributes#set (master...fix_attributes_set) http://git.io/XOfyjw
barry_ has quit [Ping timeout: 252 seconds]
dleedev has joined #opal
<dleedev> is there a jsfiddle clone for opal?
<meh`> dleedev, not yet
<meh`> no wait
<meh`> no, not yet
<meh`> I don't know in what state opal-playground is
<fkchang> opal-playground works for simple stuff, no saving of data in the url yet
<meh`> man, why is none of this shit documented for fuck's sake
<fkchang> meh`: what if I don't want a parent div for a lissio component?
<meh`> fkchang, in what way?
<meh`> and it should work anyway, I guess I'll have to contact browserstack again
<fkchang> so the tabs thing, the li's are getting wrapped in divs, and I don't want those so I'd like be able to not have a parent div
<meh`> fkchang, right
<meh`> fkchang, yeah I might have done that one wrong ◕ ◡ ◔
<meh`> do a tag name: :li
<meh`> and
<meh`> mh
<meh`> I think I added something for that case
<meh`> give me a sec
<meh`> fkchang, for now
<meh`> `render do element << @name end` will do
<meh`> I'm adding a text helper like the html one
<meh`> there we go
GitHub156 has joined #opal
<GitHub156> lissio/master 3242451 meh: component: add .text helper
GitHub156 has left #opal [#opal]
<GitHub156> [lissio] meh pushed 1 new commit to master: http://git.io/INpw2w
fkchang has quit [Ping timeout: 265 seconds]
<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
<GitHub108> [opal-rails] elia closed pull request #21: Allow specs inside subdirectories of {app,lib}/assets/javascripts/spec/ (master...master) http://git.io/sXSVJA
dimaursu16 has quit [Ping timeout: 272 seconds]
kludge` has quit [Ping timeout: 246 seconds]
kludge` has joined #opal
dimaursu16 has joined #opal
GitHub180 has joined #opal
<GitHub180> opal-rails/master d9641a7 Elia Schito: Cleanup browser specs
<GitHub180> [opal-rails] elia pushed 4 new commits to master: http://git.io/ZQk6sw
GitHub180 has left #opal [#opal]
<GitHub180> opal-rails/master bbee0c4 Elia Schito: Accept the updated source map comments syntax
<GitHub180> opal-rails/master de2e1c9 Elia Schito: Update Gemfile requirements
travis-ci has joined #opal
<travis-ci> [travis-ci] opal/opal-rails#91 (master - aef7d43 : Elia Schito): The build is still failing.
travis-ci has left #opal [#opal]
<travis-ci> [travis-ci] Build details : http://travis-ci.org/opal/opal-rails/builds/18191898
GitHub0 has joined #opal
GitHub0 has left #opal [#opal]
<GitHub0> [opal-rails] elia created travis-oh-boy (+1 new commit): http://git.io/PbjFKQ
<GitHub0> opal-rails/travis-oh-boy efe167d Elia Schito: [snapshot]
GitHub33 has joined #opal
GitHub33 has left #opal [#opal]
<GitHub33> opal-rails/travis-oh-boy b94a868 Elia Schito: cache bundler on travis
<GitHub33> [opal-rails] elia pushed 1 new commit to travis-oh-boy: http://git.io/UIXArA
travis-ci has joined #opal
<travis-ci> [travis-ci] Change view : https://github.com/opal/opal-rails/commit/efe167ddf337
<travis-ci> [travis-ci] Build details : http://travis-ci.org/opal/opal-rails/builds/18192518
<travis-ci> [travis-ci] opal/opal-rails#92 (travis-oh-boy - efe167d : Elia Schito): The build failed.
travis-ci has left #opal [#opal]
<adambeynon> elia: looks like you're having fun with travis :)
<elia> adambeynon, and bundler too
<elia> and gems inevitably
<elia> and capybara
<elia> (should I stop?)
GitHub77 has joined #opal
GitHub77 has left #opal [#opal]
<GitHub77> opal-rails/travis-oh-boy 2a3200b Elia Schito: [snapshot]
<GitHub77> [opal-rails] elia pushed 1 new commit to travis-oh-boy: http://git.io/SYb87Q
travis-ci has joined #opal
travis-ci has left #opal [#opal]
<travis-ci> [travis-ci] opal/opal-rails#93 (travis-oh-boy - b94a868 : Elia Schito): The build failed.
<travis-ci> [travis-ci] Build details : http://travis-ci.org/opal/opal-rails/builds/18192675
travis-ci has joined #opal
<travis-ci> [travis-ci] Build details : http://travis-ci.org/opal/opal-rails/builds/18192880
<travis-ci> [travis-ci] opal/opal-rails#94 (travis-oh-boy - 2a3200b : Elia Schito): The build is still failing.
travis-ci has left #opal [#opal]
GitHub118 has joined #opal
<GitHub118> opal-rails/travis-oh-boy badfdc1 Elia Schito: [snapshot]
<GitHub118> [opal-rails] elia pushed 1 new commit to travis-oh-boy: http://git.io/ui77qg
GitHub118 has left #opal [#opal]
travis-ci has joined #opal
<travis-ci> [travis-ci] opal/opal-rails#95 (travis-oh-boy - badfdc1 : Elia Schito): The build is still failing.
travis-ci has left #opal [#opal]
<travis-ci> [travis-ci] Build details : http://travis-ci.org/opal/opal-rails/builds/18193269
DouweM has joined #opal
GitHub144 has joined #opal
<GitHub144> opal-rails/travis-oh-boy adc428e Elia Schito: [snapshot]
GitHub144 has left #opal [#opal]
<GitHub144> [opal-rails] elia force-pushed travis-oh-boy from badfdc1 to adc428e: http://git.io/4yTBbA
travis-ci has joined #opal
<travis-ci> [travis-ci] opal/opal-rails#96 (travis-oh-boy - adc428e : Elia Schito): The build was fixed.
<travis-ci> [travis-ci] Build details : http://travis-ci.org/opal/opal-rails/builds/18196084
travis-ci has left #opal [#opal]
dimaursu16 has quit [Ping timeout: 250 seconds]
dimaursu16 has joined #opal
<elia> phew
<adambeynon> \o/
meh` has joined #opal
GitHub99 has joined #opal
<GitHub99> [lissio] meh pushed 1 new commit to master: http://git.io/X_dBsg
GitHub99 has left #opal [#opal]
<GitHub99> lissio/master 24ec395 meh: component: allow a block in #text
GitHub87 has joined #opal
<GitHub87> [opal-browser] meh pushed 1 new commit to master: http://git.io/Q8lfLg
GitHub87 has left #opal [#opal]
<GitHub87> opal-browser/master 974e054 meh: README: add some examples
GitHub144 has joined #opal
<GitHub144> [opal-browser] meh force-pushed master from 974e054 to ad2e171: http://git.io/40KpUg
GitHub144 has left #opal [#opal]
<GitHub144> opal-browser/master ad2e171 meh: README: add some examples
travis-ci has joined #opal
<travis-ci> [travis-ci] opal/opal-browser#158 (master - 974e054 : meh): The build has errored.
<travis-ci> [travis-ci] Build details : http://travis-ci.org/opal/opal-browser/builds/18200206
travis-ci has left #opal [#opal]
travis-ci has joined #opal
<travis-ci> [travis-ci] opal/opal-browser#159 (master - ad2e171 : meh): The build failed.
travis-ci has left #opal [#opal]
<travis-ci> [travis-ci] Build details : http://travis-ci.org/opal/opal-browser/builds/18200236
travis-ci has joined #opal
<travis-ci> [travis-ci] opal/opal-browser#159 (master - ad2e171 : meh): The build failed.
travis-ci has left #opal [#opal]
<travis-ci> [travis-ci] Build details : http://travis-ci.org/opal/opal-browser/builds/18200236
GitHub186 has joined #opal
GitHub186 has left #opal [#opal]
<GitHub186> opal-browser/master a804f9a meh: spec/runner: use strings for capabilities
<GitHub186> [opal-browser] meh pushed 1 new commit to master: http://git.io/7iZn7Q
travis-ci has joined #opal
travis-ci has left #opal [#opal]
<travis-ci> [travis-ci] opal/opal-browser#160 (master - a804f9a : meh): The build has errored.
<travis-ci> [travis-ci] Build details : http://travis-ci.org/opal/opal-browser/builds/18201280
elia has quit [Ping timeout: 250 seconds]
<adambeynon> meh`: current status: https://gist.github.com/adambeynon/8804750
<meh`> nice
<adambeynon> meh`: I know you are going to favour 100% ruby, but opalscript is going to get damn close
GitHub11 has joined #opal
<GitHub11> opal-browser/master d5868f1 meh: spec/runner: go back to booleans
GitHub11 has left #opal [#opal]
<GitHub11> [opal-browser] meh pushed 1 new commit to master: http://git.io/x8HXFA
<meh`> adambeynon, anything good coming to opal from this experimentation?
travis-ci has joined #opal
<travis-ci> [travis-ci] opal/opal-browser#161 (master - d5868f1 : meh): The build failed.
travis-ci has left #opal [#opal]
<travis-ci> [travis-ci] Build details : http://travis-ci.org/opal/opal-browser/builds/18203073
<adambeynon> meh`: not sure about anything for opal, a lot of it is different ways to handle methods clashing on array.prototype
<adambeynon> meh`: I suppose we could use it, but it does create a slight indirection
<meh`> nah
<adambeynon> meh`: But I am writing it to use the same compiler, just a different runtime
<adambeynon> require 'opalscript'
<adambeynon> again, the name needs changing
<meh`> adambeynon, when do you think you'll be able to do the runtime cleanup? fix Numeric, fix Array/String inheritance and friends
<meh`> and release 0.6
<adambeynon> meh`: not sure. I need a couple of days to try and tackle that
<adambeynon> is that needed before 0.6?
<meh`> I think so
<meh`> changing the underlying attributes is kind of a breaking change
<meh`> fugg
<adambeynon> meh`: awesome. promises look nice there too
<adambeynon> (I assume they aren;t part of the native impl?)
<meh`> they aren't
dimaursu16 has quit [Ping timeout: 246 seconds]
<meh`> too bad firefox doesn't have public websql support
<adambeynon> really? that surprises me
<meh`> yeah, I'll have to implemente IndexedDB
fkchang has joined #opal
DrShoggoth has joined #opal
Noldorin has joined #opal
dimaursu16 has joined #opal
GitHub167 has joined #opal
GitHub167 has left #opal [#opal]
<GitHub167> [opal-browser] meh pushed 2 new commits to master: http://git.io/f4FLNQ
<GitHub167> opal-browser/master 8d50909 meh: support: minor cleanup
<GitHub167> opal-browser/master d9f5a6b meh: dom/element: cleanup and document offset/position/scroll/size
royvandermeij has quit [Read error: Operation timed out]
AndrzejKrzywda has quit [Read error: Operation timed out]
<fkchang> meh`: how do you add other gems to the path for lissio server?
AndrzejKrzywda has joined #opal
<meh`> depending on the kind of library
<meh`> fkchang, --use or --require
<meh`> if it's a gem, --use, if it's an "opal" gem --require
<meh`> fkchang, you can write a .lissio.yml
<meh`> that sets them up for you
<meh`> derp, lissio.yml
<meh`> color is a gem name in that example
<fkchang> thx
dimaursu16 has quit [Quit: Leaving]
royvandermeij has joined #opal
ryanstout has joined #opal
dleedev has joined #opal
dleedev has quit [Remote host closed the connection]
dleedev has joined #opal
<fkchang> meh`: does lissio server not automatically serve up js in the js dir?
<meh`> fkchang, it should
<meh`> it isn't?
<meh`> fkchang, are you starting it with `lissio start`?
<fkchang> doesn't seem like it, <script src="js/jqconsole.js"></script> gets a 404 but I have such a file in js, do I have to restart server
<fkchang>
<meh`> oh wait
<meh`> I'm a turd
<meh`> fkchang, yeah, it doesn't serve them, it adds the path by default
<meh`> option :path, type: :array, default: ['app', 'js', 'opal']
<meh`> option :static, aliases: '-s', type: :array, default: ['/css', '/fonts', '/img']
<fkchang> if it adds them, I could just require the file then?
<meh`> you have to set static: ['/css', '/fonts', '/img', '/js']
<meh`> in the lissio.yml
<meh`> fkchang, https://github.com/opal/opal-browser#database-sql did you see this?
DrShoggoth has quit [Remote host closed the connection]
dleedev has quit [Quit: dleedev]
<fkchang> meh`: I did see it, very cool
<fkchang> So I have integrated the embeddable opal-irb into a test lissio app
<meh`> nice
<fkchang> Now I want to make it easier. The code is easy:
<fkchang> def start
<fkchang> super
<fkchang> element << DOM do
<fkchang> button.show_irb! "Show Irb"
<fkchang> end
<fkchang> OpalIrbJqconsole.create_bottom_panel
<fkchang> OpalIrbJqconsole.add_open_panel_behavior("show_irb")
<fkchang> end
<fkchang>
<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> meh`: I don't follow
<meh`> fkchang, http://sprunge.us/DWXA
<fkchang> got it
<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__
<adambeynon> my_js_object.__send__ "$do_something", 1, 2, 3
<adambeynon> == my_js_object.$do_something(1, 2, 3)
<ryanstout> adambeynon: I think I was thinking more if instance vars were prefixed with $, would it conflict
<adambeynon> ryanstout: yes, but instance variables would only really be used inside ruby classes/modules
<fkchang> adambeynon: I have both opal-jquery and opal-browser in the same app by virtue of adding opal-irb to a lissio app.
<adambeynon> if you are inside a normal js object, then self.foo or `self.foo = ` is the way to go
<meh`> dleedev, yeah, I know, IndexedDB is the next I'm wrapping
<adambeynon> fkchang: you might get some conflicts with $document and $window variables
<fkchang> adambeynon: I need to find a way to split up opal-irb to work w/either exclusively, but the first round of all that was done w/opal-jquery
<fkchang> adambeynon: I did seem to see some conflicts when I tried to add opal-jquery to another lissio project
<fkchang> ultimately jqconsole is dependent on jquery-ui, so to split it out, I'd have to get my homebrew console up to par w/that
<meh`> fkchang, I have to iron out Kernel#require_external in opal-browser
<fkchang> ryanstout: how did you get src maps working w/volt? I think I'm hitting the same "opal complied to 1 js file" thing that hit a while back
<ryanstout> I just have an environment variable to enable source maps, which splits it out into multiple includes
<ryanstout> fkchang: sprockets has this, which would let it merge all of them into one and track source maps through: https://github.com/sstephenson/sprockets/pull/311
<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
<GitHub74> opal-rails/master c983020 Elia Schito: Update travis: cache + ruby 2.1
GitHub74 has left #opal [#opal]
<GitHub74> opal-rails/master 1d70938 Elia Schito: Force type: :request for integration specs
<GitHub74> opal-rails/master c7a2469 Elia Schito: Use capybara-webkit for all rubies / envs
meh` has quit [Ping timeout: 246 seconds]