adambeynon 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 http://irclog.whitequark.org/opal
technoguyrob5 has quit [Quit: Page closed]
eventual1uddha has quit [Ping timeout: 260 seconds]
e_dub has quit [Ping timeout: 252 seconds]
elia has quit [Quit: Computer has gone to sleep.]
eventual1uddha has joined #opal
e_dub has joined #opal
eventual1uddha has quit [Ping timeout: 240 seconds]
eventual1uddha has joined #opal
eventual1uddha has quit [Ping timeout: 240 seconds]
omninonsense has joined #opal
eventual1uddha has joined #opal
[spoiler] has quit [Ping timeout: 272 seconds]
eventual1uddha has quit [Ping timeout: 252 seconds]
omninonsense is now known as [spoiker]
[spoiker] is now known as [spoiler]
fkchang has joined #opal
fkchang has quit [Ping timeout: 240 seconds]
GitHub186 has joined #opal
<GitHub186> opal-rspec/master 31045e5 Adam Beynon: Stop bundling mocks (for now)
GitHub186 has left #opal [#opal]
<GitHub186> [opal-rspec] adambeynon pushed 1 new commit to master: http://git.io/ud0PxA
aflatter_ has joined #opal
brixen has quit [*.net *.split]
aflatter has quit [*.net *.split]
aflatter_ is now known as aflatter
brixen has joined #opal
adambeynon has joined #opal
kludge` has quit [Ping timeout: 245 seconds]
meh` has joined #opal
kludge` has joined #opal
DouweM has quit [Ping timeout: 246 seconds]
17WAAHBIM has joined #opal
DouweM has joined #opal
GitHub149 has joined #opal
<GitHub149> [opal-jquery] adambeynon pushed 2 new commits to master: http://git.io/BtX3GA
GitHub149 has left #opal [#opal]
<GitHub149> opal-jquery/master d7b69ad Adam Beynon: Event is now a wrapper around native jquery event
<GitHub149> opal-jquery/master 44791f7 Adam Beynon: Wrap function passed into jQuery#on
<meh`> adambeynon, yo
<adambeynon> hi :D
<meh`> any news?
<adambeynon> meh`: how come in lissio you have gone for separate models and collections?
<meh`> adambeynon, because of adapters
elia has joined #opal
<adambeynon> in terms of, some models using local storage, and some using a rest backend?
<meh`> adambeynon, no, in terms of collections usually have an unrelated endpoint or way of storage/fetching than the models themselves
<meh`> how would you unify the two?
<adambeynon> well, in the simplest case you can merge them together
<adambeynon> With vienna I regret merging them
<adambeynon> which is why im interested in the collections approach with lissio
<meh`> yeah, I prefer them separate
<meh`> you can have a SearchWhatever
<meh`> and a LatestWhatever
<meh`> with different endpoints and the same model
<meh`> and it's clear what they're supposed to be
<adambeynon> so, say I make a model instance, `Payment.new`
<adambeynon> to save it, you assign an adapter on creation? or when saving? or..
<adambeynon> (im only reading lissio source for the first time now..)
<meh`> when you define a model
<meh`> you can assign an adapter to the model
<meh`> OR, create a subclass of the model with the adapter
<meh`> the adapter installs itself on the class
<adambeynon> ah, I see
<adambeynon> I will try and work out those date/time bugs too
<meh`> adambeynon, yeah, I added some stuff to the 0.5 milestone
GitHub92 has joined #opal
<GitHub92> [opal-jquery] adambeynon pushed 2 new commits to master: http://git.io/-sCA5g
<GitHub92> opal-jquery/master 69c58fe Adam Beynon: Support running specs for both jquery and zepto
<GitHub92> opal-jquery/master 3b61222 Adam Beynon: Slight cleanup of Element
GitHub92 has left #opal [#opal]
DouweM has quit [Quit: Leaving...]
GitHub134 has joined #opal
<GitHub134> opal-jquery/master 6cacc6f Adam Beynon: Put all spec fixtures under spec/fixtures
<GitHub134> [opal-jquery] adambeynon pushed 1 new commit to master: http://git.io/bnEl_Q
GitHub134 has left #opal [#opal]
GitHub199 has joined #opal
<GitHub199> opal-jquery/master 7bde6f1 Adam Beynon: Docs for running specs on Zepto
<GitHub199> [opal-jquery] adambeynon pushed 1 new commit to master: http://git.io/w2RitQ
GitHub199 has left #opal [#opal]
GitHub140 has joined #opal
<GitHub140> [opal-jquery] adambeynon created native-v2 (+1 new commit): http://git.io/IaUrkA
GitHub140 has left #opal [#opal]
<GitHub140> opal-jquery/native-v2 6237439 Adam Beynon: Initial v2 of native
elia has quit [Quit: Computer has gone to sleep.]
<adambeynon> meh`: playing with rspec now - async tests are going to be tricky as rspec runs everything in turn - it wont wait for async tests to come back
<adambeynon> so..
<adambeynon> do you think its acceptable to intercept all async tests, and run them manually?
<adambeynon> as in, after all the normal tests run, we then run the async tests
<meh`> yeah
<adambeynon> meh`: I dont think async specs are going to work in rspec
<meh`> well, that's a problem
<adambeynon> the only way I can see around it is to have 2 independant test runners. so it prints 2 lines at the end of your code
<adambeynon> well, even then it wont really work properly
<adambeynon> we wouldnt be able to use let() before() or after()
<adambeynon> which isnt great..
<meh`> I guess we'll have to keep opal-spec for browser testing
<adambeynon> :(
<meh`> well, it wasn't useless work
<meh`> it showed a bunch of bugs
<meh`> and it's a good way to say "dude, it just werks"
<meh`> but without async tests it's pointless in most browser things
<adambeynon> meh`: think I have found a way around it. If we subclass their Example#run method (just for our async tests), we might be able to get around it
<adambeynon> *might*
<adambeynon> we just have to keep an eye on that class incase they ever change how it works
<adambeynon> which seems to happen quite often looking at their logs
fkchang has joined #opal
eventual1uddha has joined #opal
<adambeynon> meh`: got it working
<adambeynon> its ugly
<adambeynon> but its working
eventual1uddha has quit [Ping timeout: 260 seconds]
<fkchang> adambeynon: I had an idea driving to work. We could do the lookup for lambda's by name if you can name the lambda's
<adambeynon> fkchang: for the comments?
<fkchang> i.e. l = lambda {|i| 2*i}; l.name # <Lambda: 1232>
<fkchang> and code. I want to be able to edit lambda's I type into opal-inspector as well as the normally defined methods in classes
<fkchang> so long as everything has a unique name, we can use a hash by name
<adambeynon> fkchang: would that be lambdas *just* typed into the opal-inspector panel?
<adambeynon> or all lambdas?
<adambeynon> as in, from anywhere in the code
<adambeynon> also, do you mean just lambdas, or also procs?
<fkchang> I think the same would work for either. For all the lambda's typed in to code, I store all things evaluated so that I would have easy access to them
<fkchang> are u doing lambda's and proc's differently in opal (i always have to read up to remember the differences)
<meh`> fkchang, the only different is #call
<meh`> *difference
<meh`> and #lambda?
<adambeynon> fkchang: problem with keepting all lambdas is that they will never be garbaged collected
<adambeynon> and in ruby, there are a lot of procs/lambdas
<adambeynon> however
<adambeynon> ones typed into opal-inspector should be easy
<fkchang> adambeynon: that's acceptable
GitHub57 has joined #opal
GitHub57 has left #opal [#opal]
<GitHub57> [opal-rspec] adambeynon pushed 1 new commit to master: http://git.io/W5w2eQ
<GitHub57> opal-rspec/master a95cd0b Adam Beynon: Initial commit for supporting async specs under rspec
<adambeynon> meh`: any thoughts/suggestions/improvements for the async api would be appreciated as well
<adambeynon> those changes use the same idea as opal-spec
<adambeynon> I did think about adding some `default_timeout` option
<adambeynon> to stop specs just breaking when we dont use `run_async` correctly
<meh`> adambeynon, I was fine with API of opal-spec for async specs
<meh`> what I didn't like is it didn't throw errors if something failed in the spec body
<meh`> so catch those errors
<meh`> and fail the spec if something bad happens
<meh`> I had to keep changing it from async to sync to find what was going wrong
<adambeynon> meh`: ah, didnt realise that was happening. I will double check to make sure it works
<meh`> thanks
<adambeynon> meh`: it is worth noting that we wont be able to capture anything that happens outside the block
<meh`> adambeynon, that is fine
<meh`> often I just fucked up the startup of the block
<meh`> and didn't see anything happening, at all
<adambeynon> meh`: just wondering actually if something like `window.onerror` works cross browser now - might make it all a bit easier to handle outside errors
<meh`> heavily doubt it
GitHub79 has joined #opal
<GitHub79> [opal-rspec] adambeynon pushed 1 new commit to master: http://git.io/DqKgEQ
<GitHub79> opal-rspec/master 03f5d2e Adam Beynon: Add spec to test async examples can fail before async block reached
GitHub79 has left #opal [#opal]
<adambeynon> ok, asynx examples can fail like any other example now
<meh`> good
<adambeynon> meh`: happy with that syntax for setting async timeouts: https://gist.github.com/adambeynon/7267251
<meh`> mh
<meh`> no
<meh`> yes
<meh`> no
<meh`> let me think about it
<meh`> lol
<adambeynon> lol, sure - Im not adding it yet, just need to think about it
<adambeynon> meh`: we can also do something before the example
<adambeynon> default_timeout(100); async "foo" do..end
GitHub34 has joined #opal
GitHub34 has left #opal [#opal]
<GitHub34> opal-rspec/master 8da8712 Adam Beynon: configuration.rb no longer causes a parse error, removing stub
<GitHub34> [opal-rspec] adambeynon pushed 1 new commit to master: http://git.io/omGJZw
<meh`> nah, I like it in the example
<meh`> but
<meh`> adambeynon, https://gist.github.com/meh/7267345 I'd it like this
<adambeynon> sure, that can work
<meh`> or even async "blah", timeout: 4 do end
GitHub63 has joined #opal
<GitHub63> [opal-rspec] adambeynon pushed 4 new commits to master: http://git.io/Hj6i9Q
<GitHub63> opal-rspec/master cac0a21 Adam Beynon: Remove stubbed file from README
GitHub63 has left #opal [#opal]
<GitHub63> opal-rspec/master 0b5ca3d Adam Beynon: Remove anothers stubbed file (opal supports heredocs)
<GitHub63> opal-rspec/master ac5aaf2 Adam Beynon: Opal can now handle heredocs, removing stub file from rspec
<adambeynon> meh`: yeah, as an option hash looks better
<meh`> agree
<adambeynon> meh`: what would you recommend as a default timeout for async specs?
<meh`> 5 seconds?
GitHub108 has joined #opal
<GitHub108> opal-rspec/master b0256f1 Adam Beynon: Add some extra specs for subject() and described_class()
GitHub108 has left #opal [#opal]
<GitHub108> [opal-rspec] adambeynon pushed 1 new commit to master: http://git.io/wy6kHw
GitHub88 has joined #opal
<GitHub88> [vienna] adambeynon pushed 1 new commit to rspec: http://git.io/5tK8dw
<GitHub88> vienna/rspec 10f580b Adam Beynon: Reset models before every rspec example
GitHub88 has left #opal [#opal]
<meh`> fkchang, did you play around with shekels yet?
<fkchang> a bit w/the front end, didn't look at the code (i'll have to fork it and reformat it)
<meh`> heh, yeah, sorry about that
<meh`> I just love my tabs and my WTFPL
GitHub61 has joined #opal
<GitHub61> opal-jquery/rspec 60de215 Adam Beynon: Update specs ready for rspec
GitHub61 has left #opal [#opal]
<GitHub61> [opal-jquery] adambeynon created rspec (+1 new commit): http://git.io/XbIfXw
<adambeynon> meh`: most of those changes are just to use nicer matchers from rspec
<adambeynon> most things should "just work"
eventual1uddha has joined #opal
elia has joined #opal
GitHub29 has joined #opal
<GitHub29> [opal-jquery] adambeynon pushed 1 new commit to rspec: http://git.io/7Q6R9g
GitHub29 has left #opal [#opal]
<GitHub29> opal-jquery/rspec 902940a Adam Beynon: fix config.ru to use correct runner
DrShoggoth has joined #opal
eventual1uddha has quit [Ping timeout: 241 seconds]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
eventual1uddha has joined #opal
eventual1uddha has quit [Ping timeout: 260 seconds]
elia has quit [Quit: Computer has gone to sleep.]
_whitelogger has joined #opal
elia has joined #opal
eventual1uddha has joined #opal
elia has quit [Quit: Computer has gone to sleep.]
DrShoggoth has quit [Quit: Leaving]
elia has joined #opal
fkchang has quit [Ping timeout: 246 seconds]
elia has quit [Quit: Computer has gone to sleep.]
eventual1uddha has quit [Ping timeout: 267 seconds]
elia has joined #opal
elia has quit [Quit: Computer has gone to sleep.]
elia has joined #opal
GitHub115 has joined #opal
GitHub115 has left #opal [#opal]
<GitHub115> opal/native-exposure 4ac27b8 Elia Schito: Expose classes, modules and methods to js
<GitHub115> [opal] elia force-pushed native-exposure from f1caa6b to 4ac27b8: http://git.io/8G4dOg
<elia> meh`, you working on time(.rb)?
<meh`> elia, nope
<elia> k, just found some dst bug
<meh`> have fun
<elia> no, no
<elia> fun ended almost immediately changing getHours into getUTCHours…
<meh`> lol
<elia> yeah, I think i'll push, we'll see how it ends, maybe we'll just need to change implementation a couple times a year, at dst changes…
elia has quit [Quit: Computer has gone to sleep.]
travis-ci has joined #opal
<travis-ci> [travis-ci] opal/opal#1351 (native-exposure - 4ac27b8 : Elia Schito): The build passed.
<travis-ci> [travis-ci] Build details : http://travis-ci.org/opal/opal/builds/13383418
travis-ci has left #opal [#opal]
fkchang has joined #opal
elia has joined #opal
elia has quit [Client Quit]
adambeynon has joined #opal
adambeynon has quit [Quit: Textual IRC Client: www.textualapp.com]