These are chat archives for opal/opal

23rd
Jun 2015
Elia Schito
@elia
Jun 23 2015 07:07
@jaredcwhite I think the bug is in opal, best starting point is to add a spec example for require_tree "."
Elia Schito
@elia
Jun 23 2015 07:13
@cj Opal server is a rack app, so you can use all sorts of rack tricks
e. g. cascade is quite easy when you have multiple apps
it's basically an array of apps which get called in sequence
the first not returning 404 wins the request
Christian Käser
@dfyx
Jun 23 2015 10:47
@elia @meh @adambeynon any ETA on 0.8 stable?
Adam Beynon
@adambeynon
Jun 23 2015 13:13
@dfyx as soon as possible. Will try and push it through in the next day or so. Have you tried the beta or release candidate.
CJ Lazell
@cj
Jun 23 2015 14:09
@elia yee, I understand that part. so I just have to override the code where the opal-rspec server gets created… I was just hoping there was a way to do it from the opal server block
Elia Schito
@elia
Jun 23 2015 14:12
@cj it probably depends on what you need to override
Elia Schito
@elia
Jun 23 2015 14:16
@cj ok, if I understood correctly you want to use modify the rack app from within the opal-rspec rake task
that's correct?
CJ Lazell
@cj
Jun 23 2015 14:17
yee, I want to be able to pass it another rack app; so that in the tests if it does an ajax call it will hit that append app.
I already did it by editing that file, but it seems to me it would be nice to just do s.apps << my_rack_app or something inside opal server
Elia Schito
@elia
Jun 23 2015 14:21
@cj you're right, I think you need to copy/paste the whole thing, doesn't seem to be possible to modify the rack app from within the block
CJ Lazell
@cj
Jun 23 2015 14:23
@elia an Ideal syntax would probably be Opal::Server.new { |s| s.use some_middlware }
Adam Beynon
@adambeynon
Jun 23 2015 15:01
@elia , @cj perhaps we need to expose the raw sprockets/rack object so it can be modified. I think @meh did something like this for testing opal-browser and lissio apps with server responses
CJ Lazell
@cj
Jun 23 2015 15:51
ye, that would be a good idea and make things a lot more flexiable.
Forrest Chang
@fkchang
Jun 23 2015 19:43
@jaredcwhite opalist deadline ~ 10pm PT tonight right?
Rick Carlino
@RickCarlino
Jun 23 2015 19:43
Wooo!
Goes out tomorrow?
Chris Seaton
@chrisseaton
Jun 23 2015 19:43
What's opalist?
Rick Carlino
@RickCarlino
Jun 23 2015 19:43
I think
Yeah. that one. It's the community digest of Opal activity
Pretty awesome content. Comes out every other thursday iirc
Chris Seaton
@chrisseaton
Jun 23 2015 19:45
Wow didn't realise there was so much Opal activity
Rick Carlino
@RickCarlino
Jun 23 2015 19:45
it's a pretty active ecosystem.
Forrest Chang
@fkchang
Jun 23 2015 19:45
A small group of 'peppy' contributors
@RickCarlino is a screencast machine, BTW
It comes out every other Wednesday
the opalist that is, though @RickCarlino might exceed that output (stud!)
@chrisseaton on the side, if I'm ever speaking at a conference you're at, I'd love to have you do a guest 'voiceover'
Chris Seaton
@chrisseaton
Jun 23 2015 19:49
ha from my deoptimising talk?
Forrest Chang
@fkchang
Jun 23 2015 19:51
yeah, aside from marveling at the truffle performance, I was thinking, "I wish I sounded as smart as Chris"
Jared White
@jaredcwhite
Jun 23 2015 21:17
@fkchang @RickCarlino I usually schedule the Opalist newsletter to go out on Wednesday, but this week will probably go out Thursday as I am out sick today. So Forrest, you have a little more time :)
Rick Carlino
@RickCarlino
Jun 23 2015 21:26
Get well soon, @jaredcwhite . Thanks for keeping it going.