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/
skofo has quit [Ping timeout: 252 seconds]
skofo has joined #opal
skofo has quit [Ping timeout: 272 seconds]
dleedev has joined #opal
dleedev has quit [Quit: dleedev]
RoxasShadowRS has quit [Read error: Connection reset by peer]
GitHub36 has joined #opal
<GitHub36> opal-browser/master 1177fd0 meh: console: remove a bunch of useless return self
<GitHub36> [opal-browser] meh pushed 4 new commits to master: http://git.io/zg2IlQ
<GitHub36> opal-browser/master 0c8cbe4 meh: dom/event: improve .currentTarget and .type polyfills
GitHub36 has left #opal [#opal]
<GitHub36> opal-browser/master 04a3587 meh: dom/element: improve #size, #width and #height
fkchang has quit [Ping timeout: 245 seconds]
travis-ci has joined #opal
<travis-ci> [travis-ci] Build details : http://travis-ci.org/opal/opal-browser/builds/17739683
<travis-ci> [travis-ci] opal/opal-browser#118 (master - e54c8bb : meh): The build has errored.
travis-ci has left #opal [#opal]
GitHub40 has joined #opal
<GitHub40> [opal-browser] meh pushed 2 new commits to master: http://git.io/D6cjMQ
GitHub40 has left #opal [#opal]
<GitHub40> opal-browser/master 5c1d44b meh: spec: wait for the title to be set
<GitHub40> opal-browser/master 1652ead meh: spec: use #async instead of #run_async
<meh`> adambeynon, we need a reliable way to run opal-rspec from git
travis-ci has joined #opal
<travis-ci> [travis-ci] opal/opal-browser#119 (master - 1652ead : meh): The build failed.
<travis-ci> [travis-ci] Build details : http://travis-ci.org/opal/opal-browser/builds/17740185
travis-ci has left #opal [#opal]
meh` has quit [Quit: I don't want to live on this planet anymore.]
e_dub has joined #opal
e_dub has quit [Quit: e_dub]
e_dub has joined #opal
ryanstout has quit [Quit: ryanstout]
e_dub has quit [Quit: e_dub]
e_dub has joined #opal
e_dub has quit [Quit: e_dub]
e_dub has joined #opal
e_dub has quit [Quit: e_dub]
dleedev has joined #opal
dleedev has quit [Quit: dleedev]
dimaursu16 has quit [Read error: Operation timed out]
dimaursu16 has joined #opal
dfranciosi has joined #opal
elia has joined #opal
kings has joined #opal
RoxasShadowRS has joined #opal
kings has quit [Quit: Leaving...]
DouweM has quit [Ping timeout: 240 seconds]
DouweM has joined #opal
kludge` has quit [Ping timeout: 245 seconds]
kludge` has joined #opal
GitHub43 has joined #opal
<GitHub43> [opal-todos] elia pushed 1 new commit to master: http://git.io/-sCpXQ
<GitHub43> opal-todos/master cc0b451 Elia Schito: Fix index
GitHub43 has left #opal [#opal]
GitHub82 has joined #opal
<GitHub82> opal-todos/master ed20ab5 Elia Schito: Fix index...
<GitHub82> [opal-todos] elia force-pushed master from cc0b451 to ed20ab5: http://git.io/L4Xoqw
GitHub82 has left #opal [#opal]
e_dub has joined #opal
e_dub has quit [Quit: e_dub]
e_dub has joined #opal
e_dub has quit [Quit: e_dub]
e_dub has joined #opal
DouweM has quit [Ping timeout: 252 seconds]
DouweM has joined #opal
e_dub has quit [Quit: e_dub]
e_dub has joined #opal
meh` has joined #opal
e_dub has quit [Quit: e_dub]
barry_ has joined #opal
<barry_> hi all. first off like to say great project. i've had success with the rail integration. this time around i am creating a simple rack/sinatra app but none of the examples are working for me. The todoMVC and also the examples/rack example arent working. When i start them all i see is a blank page with 'Opal Server' in the title of the page. is this a known problem?
<royvandermeij> barry_: I have the same problem
<royvandermeij> I ended up building the application shown in metacasts.tv
<royvandermeij> with a rails backend
<barry_> yea backend for what i am working on is going to be scala so ideally i just want the rack app for now. and then i need to figure out how to compile assets in scala.
<elia> barry_, royvandermeij probably due to a (recent?) change: https://github.com/opal/opal-todos/issues/8#ref-commit-ed20ab5
<elia> there the fix was simple enough: added index_path= to opal server
<royvandermeij> barry_: the backend only consists of one controller which handles the json, so it's really easy to recreate it in rack/sinatra
<royvandermeij> elia: ah :)
<royvandermeij> elia: a simple git pull with that latest commit did the trick
<barry_> elia: great. that looks like its it. i guess all the other example apps need to be updated too.
<elia> barry_, seems there are some low hanging PRs… :)
<meh`> I don't understand why adam made it like that
RelayChatInfo has joined #opal
RelayChatInfo has left #opal [#opal]
<barry_> elia: true. i'll do that.
<elia> meh`, what the index part?
<meh`> elia, yeah
<elia> started as "handy" and evolved in what it is now
<elia> my guess
<elia> meh`, I have no brain resources right now to come up with a better sol
<elia> but if you have one im ready to help
<meh`> adambeynon, I can reproduce the continue_async error consistently
<meh`> adambeynon, but for some reason I can't get the debugger to break on the exception
<meh`> adambeynon, found where it's happening
barry_ has quit []
e_dub has joined #opal
e_dub has quit [Client Quit]
<meh`> found it
<meh`> adambeynon, it's a bug in my specs, not in rspec
<meh`> more like a bug in IE11
<meh`> but yeah
<adambeynon> meh`: ahh, good to know.
<adambeynon> what was the issue?
<meh`> adambeynon, an async actuator is getting called twice
<adambeynon> meh`: do you think its worth having some guard against it?
<meh`> adambeynon, yes
<meh`> or at least raise a comprehensible exception
<meh`> "you called the async twice"
GitHub147 has joined #opal
<GitHub147> [opal-browser] meh pushed 2 new commits to master: http://git.io/7S_xPw
<GitHub147> opal-browser/master 50bd6b6 meh: spec/runner: only rescue selenium exceptions
GitHub147 has left #opal [#opal]
<GitHub147> opal-browser/master d610d61 meh: spec: off the event as soon as possible
<meh`> adambeynon, by the way, I think it was happening randomly in other browsers because of speed issues
<meh`> if the VM was slow enough it wouldn't happen
travis-ci has joined #opal
<travis-ci> [travis-ci] Build details : http://travis-ci.org/opal/opal-browser/builds/17772892
travis-ci has left #opal [#opal]
<travis-ci> [travis-ci] opal/opal-browser#120 (master - 50bd6b6 : meh): The build was fixed.
barry_ has joined #opal
fkchang has joined #opal
<meh`> fkchang, https://travis-ci.org/opal/opal-browser if you didn't already see it :D
<adambeynon> meh`: Im writing a new opal + vienna app from scratch, and the promises are making a huge difference to code cleanliness
<adambeynon> going to add them into opal/vienna sometime
<meh`> :)
GitHub114 has joined #opal
<GitHub114> [opal-todos] StephenOTT opened pull request #9: Added note about Safari Dropped Connections Issue. (master...patch-1) http://git.io/TgXuNg
GitHub114 has left #opal [#opal]
ryanstout has joined #opal
<adambeynon> meh`: out of interest, do you use #fail() for the reject parts?
<meh`> adambeynon, I use #rescue
<fkchang> meh`: I didn't see it before, u must be happy
<meh`> I lost 10 years of life expectation because of IE
<fkchang> IE is known to do that
dleedev has joined #opal
dleedev has quit [Client Quit]
<fkchang> meh`: is there a way to get the Application object in lissio?
<meh`> fkchang, how do you mean?
<meh`> when you inherit from Lissio::Application
<meh`> the class becomes a singleton
elia has quit [Ping timeout: 248 seconds]
<fkchang> I want to put "globals" as attrs on the Application that is running so others can all app.blah
<fkchang> so if I'm in a component or any other opal code I can do something like app = get_app; puts app.blah
<meh`> fkchang, the way would be to use the class of the application
<meh`> let's say you have class Frontend < Application
<meh`> you can use expose in the class definition
<meh`> to expose methods/attrs
<meh`> then you just Application.language
barry_ has quit [Remote host closed the connection]
<meh`> fkchang, if Application is too long you can always alias it to A or something
<meh`> but the way is to use the Application singleton as the central thing
<fkchang> meh`: I'll work with that
dleedev has joined #opal
<dleedev> hi, will method_added be supported in opal?
<dleedev> I remember asking on this channel and hearing that it will, but I also see that method_added is under the unsupported directory
<meh`> dleedev, yes
<meh`> dleedev, yeah, I wanted to move it under bugs, but adambeynon refused
<meh`> but I confirm, it will be supported before 1.0
<dleedev> ok, cool
<dleedev> do you have a timeline of when that would be?
<meh`> probably after 0.6
<dleedev> ok, hopefully by 0.7?
<meh`> yeah
<dleedev> cool, thanks
<dleedev> how do I install opal-irb?
<dleedev> it's not in rubygems
<meh`> fkchang, ^
<fkchang> dleedev: you have to do it via git, though it's running against a pretty old version of opal.
<fkchang> dleedev: I need to update it, but when I do you can do: gem 'opal-irb', :git => "git@github.com:fkchang/opal-irb.git"
<fkchang>
<fkchang> in your Gemfile
<fkchang> or if you want to run against the version of opal I have opal-irb synched to (0.4.4), you could
<dleedev> what about a binstub for opal-irb?
<dleedev> so I can just run opal-irb in the terminal?
<fkchang> dleedev: there's an opal-repl with opal if you want to run in the terminal, if you want to run in the browser u can use http://fkchang.github.io/opal-irb/index-embeddable.html
<fkchang> that link will update when I update (it's long due for one)
<dleedev> how can I install opal-repl?
<meh`> dleedev, it's already available
<meh`> dleedev, just clone the opal repo
<meh`> bundle install
<fkchang> I also thought elia did some update of opal-node
<meh`> and bundle exec bin/opal-repl
<fkchang> which u used to be able to rvm install, but last I checked, that wasn't working
dimaursu16 has quit [Ping timeout: 240 seconds]
GitHub58 has joined #opal
<GitHub58> opal-browser/master 875862f meh: location: move #location in document to the right place
GitHub58 has left #opal [#opal]
<GitHub58> opal-browser/master 64d067f meh: README: add badges
<GitHub58> opal-browser/master 26a67cb meh: cookies: cleanup code and add documentation
<GitHub58> [opal-browser] meh pushed 3 new commits to master: http://git.io/WPP4KQ
travis-ci has joined #opal
<travis-ci> [travis-ci] opal/opal-browser#121 (master - 64d067f : meh): The build was broken.
<travis-ci> [travis-ci] Build details : http://travis-ci.org/opal/opal-browser/builds/17786976
travis-ci has left #opal [#opal]
<meh`> wat
GitHub185 has joined #opal
GitHub185 has left #opal [#opal]
<GitHub185> [opal-browser] meh pushed 1 new commit to master: http://git.io/3lPwKA
<GitHub185> opal-browser/master a1a36c9 meh: location: fix superclass
barry has joined #opal
kings has joined #opal
kings has quit [Read error: Connection reset by peer]
kings_ has joined #opal
barry has quit [Remote host closed the connection]
barry has joined #opal
barry has quit [Ping timeout: 264 seconds]
kings_ has quit [Quit: Leaving...]
GitHub123 has joined #opal
<GitHub123> opal-browser/master 00484fd meh: gem: update version and cleanup the gem specification
<GitHub123> [opal-browser] meh pushed 1 new commit to master: http://git.io/3EExYg
GitHub123 has left #opal [#opal]
kings has joined #opal
travis-ci has joined #opal
<travis-ci> [travis-ci] opal/opal-browser#123 (master - 00484fd : meh): The build has errored.
<travis-ci> [travis-ci] Build details : http://travis-ci.org/opal/opal-browser/builds/17789590
travis-ci has left #opal [#opal]
travis-ci has joined #opal
travis-ci has left #opal [#opal]
<travis-ci> [travis-ci] Build details : http://travis-ci.org/opal/opal-browser/builds/17789590
<travis-ci> [travis-ci] opal/opal-browser#123 (master - 00484fd : meh): The build passed.
kings has quit [Ping timeout: 252 seconds]
barry has joined #opal
barry has quit [Ping timeout: 252 seconds]
barry has joined #opal
barry has quit [Remote host closed the connection]
barry has joined #opal
barry has quit [Remote host closed the connection]
barry has joined #opal
barry has quit [Remote host closed the connection]
barry has joined #opal
<ryanstout> fyi: https://github.com/opal/opal/issues/486 not sure if anyone's seen this issue before
<ryanstout> actually, one sec, let me update one thing
<ryanstout> ok, never mind actually, I think I know why that was happening, deleting the issue
barry has quit [Ping timeout: 272 seconds]
kings has joined #opal
barry has joined #opal
<ryanstout> ^so I that issue on my end was because I had redefined == On mri, it must do index comparisons without using ==
<meh`> ryanstout, it probably uses #hash
<meh`> we don't have a working #hash yet
<ryanstout> ok
<ryanstout> I had an issue with my comparator anyway
kings has quit [Ping timeout: 264 seconds]
kings has joined #opal
<fkchang> meh`: seems like browser/delay is not working, browser/immediate works. I have the below and only "immediate 2" gets printed out
<fkchang> proc {
<fkchang> puts "after 1"
<fkchang> }.after 1
<fkchang>
<fkchang> proc {
<fkchang> puts "immediate 2"
<fkchang> }.defer
<meh`> fkchang, yes, it's a known bug
<fkchang>
<meh`> it's an opal bug, one of those that are impossible to track down so far
<meh`> fkchang, remember the bug where blocks wouldn't get passed sometimes?
dimaursu16 has joined #opal
<meh`> fkchang, you can use Kernel#after in the meantime
<meh`> which for some reason, works
<meh`> I think it's something with &self
<meh`> fkchang, if you need it to work like that I can put it on the top of the todo list
<meh`> but I'd rather finish up with the documentation first
DrShoggoth has joined #opal
kings has quit [Ping timeout: 248 seconds]
<fkchang> meh`: I can use Kernel #after for now
elia has joined #opal
Liothen is now known as kyote
kyote has quit [Quit: System of a down……]
Liothen has joined #opal
<fkchang> meh`: how do I pass through the data in function(data){} to a block in an x-string. This isn't quite right
<fkchang> `#{@event_bus}.registerHandler(#{channel}, function(data){
<fkchang> #{block}.call(data);
<fkchang> });`
<fkchang>
barry has quit [Ping timeout: 272 seconds]
barry has joined #opal
<adambeynon> #{block}(data)
<adambeynon> or #{block.call `data`}
<adambeynon> fkchang: ^^
<meh`> fkchang, why can't you pass the block directly to registerHandler?
<fkchang> meh`: I can pass it directly? I was only able to figure out the block.call type of calls ala
<fkchang> def register_handler(channel, &block)
<fkchang> `#{@event_bus}.registerHandler(#{channel}, function(data){
<fkchang> });`
<fkchang> #{block}.call(data);
<fkchang>
<fkchang> end
<fkchang>
<meh`> fkchang, block are just functions in the end
<meh`> so yes, you can
<fkchang> meh`: that simplifies things, was this always the case?
<meh`> fkchang, yep
fkchang has quit [Ping timeout: 252 seconds]
kings has joined #opal