<<2009-05-07 2009-05-09>>
    May 08 00:05
    kamalfariz joined #sinatra
    Aupajo joined #sinatra
    Aupajo left #sinatra
    May 08 00:10
    priidu joined #sinatra
    dan joined #sinatra
    mojombo joined #sinatra
    May 08 00:27
    tlrobinson joined #sinatra
    May 08 01:20
    dnyy_ joined #sinatra
    May 08 01:58
    naeu joined #sinatra
    May 08 02:20
    iv_s joined #sinatra
    May 08 02:31
    jchris___ joined #sinatra
    jchris joined #sinatra
    May 08 02:53
    manguy joined #sinatra
    May 08 03:06
    tooky_ joined #sinatra
    May 08 03:14
    dqminh joined #sinatra
    hassox_ joined #sinatra
    May 08 03:35
    mitkok joined #sinatra
    OnO joined #sinatra
    May 08 04:31
    d2dchat_ joined #sinatra
    May 08 04:37
    benlovell joined #sinatra
    May 08 05:03
    davelee_ joined #sinatra
    May 08 05:37
    codebrulee joined #sinatra
    May 08 05:49
    Booster joined #sinatra
    naeu joined #sinatra
    May 08 06:12
    aorist_ joined #sinatra
    ekidd joined #sinatra
    May 08 06:54
    sporkmonger joined #sinatra
    May 08 07:00
    sporkmonger_ joined #sinatra
    heycarsten joined #sinatra
    Lenary joined #sinatra
    May 08 07:15
    mjw2 joined #sinatra
    May 08 07:23
    deedubs joined #sinatra
    deedubs left #sinatra
    heycarsten joined #sinatra
    May 08 07:29
    thenduks joined #sinatra
    sporkmonger joined #sinatra
    May 08 07:49
    djanowski_ joined #sinatra
    May 08 07:58
    namelessjon joined #sinatra
    dnyy joined #sinatra
    djanowski joined #sinatra
    monsieurledan joined #sinatra
    mikehodgson joined #sinatra
    aorist_ left #sinatra
    mjw2 joined #sinatra
    May 08 08:13
    ekidd joined #sinatra
    May 08 08:39
    djanowski_ joined #sinatra
    naeu
    i'm trying to get a super-simple sinatra app running for prototyping purposes, but am having trouble with using it with DataMapper
    here's the source: http://gist.github.com/108801
    somehow Datamapper isn't creating new records
    May 08 08:47
    OnO joined #sinatra
    xymbol joined #sinatra
    harryv
    major heroku outage :(
    May 08 08:53
    Lenary
    harryv broke heroku!
    nanodeath joined #sinatra
    mitkok joined #sinatra
    Lenary
    :P
    May 08 09:00
    ekidd joined #sinatra
    May 08 09:05
    vjr joined #sinatra
    May 08 09:13
    Booster joined #sinatra
    iv_s joined #sinatra
    May 08 09:50
    xyz joined #sinatra
    May 08 09:55
    benlovell joined #sinatra
    hakunin joined #sinatra
    May 08 10:20
    dbalatero joined #sinatra
    blankslate joined #sinatra
    May 08 10:27
    quirkey joined #sinatra
    May 08 10:32
    vjr
    sinatra is just too easy!
    Lenary joined #sinatra
    May 08 10:38
    JackDanger joined #sinatra
    hassox joined #sinatra
    May 08 10:54
    atmos joined #sinatra
    benlovell joined #sinatra
    May 08 11:13
    sporkmonger_ joined #sinatra
    Chrononaut joined #sinatra
    May 08 11:23
    mitkok1 joined #sinatra
    djanowski joined #sinatra
    May 08 11:46
    benlovell joined #sinatra
    May 08 11:55
    quirkey joined #sinatra
    sporkmonger joined #sinatra
    May 08 12:01
    tbyhlmann joined #sinatra
    May 08 12:13
    melgray joined #sinatra
    dqminh joined #sinatra
    May 08 12:45
    benlovell joined #sinatra
    May 08 13:32
    Lenary joined #sinatra
    May 08 13:37
    piglop joined #sinatra
    piglop
    hello
    my layout is not included when i call "get" in a unit test. how can i change that ?
    sr
    piglop, I can't think of any reason why it'd not. can yo gist your app/test ?
    May 08 13:45
    piglop
    yes
    i'm using cucumber
    cloudhead joined #sinatra
    zapnap joined #sinatra
    benlovell joined #sinatra
    May 08 13:53
    tpiep joined #sinatra
    OnO joined #sinatra
    piglop
    when i check manually, the layout is used
    sr
    piglop, which sinatra version?
    cloudhead
    is sinatra rack 1.0 and ruby 1.9 compatible?
    sr
    cloudhead, sinatra-sinatra from github is
    piglop
    st: 0.9.1.1
    sr: 0.9.1.1
    sr
    (ie, gem install sinatra-sinatra)
    cloudhead
    sr: thanks
    Lenary
    man
    anyone remember that tweet by dhh about the gogaruco that was so funny
    it was a question that he answered in the stupidest way
    May 08 13:58
    Lenary
    i want to find it again...
    piglop
    sr: the full step file, if the requires or includes matter : http://gist.github.com/108977
    sr
    piglop, shouldn't Sinatra::Test be included into cuke's World or something like that?
    piglop
    hmm, maybe
    quirkey joined #sinatra
    sr
    btw, Sinatra::Test will be deprecated in the upcoming release, so you might want to use Rack::Test instead
    May 08 14:05
    piglop
    sr: same problem with World ( http://gist.github.com/108977 )
    Lenary
    i found the tweet everyone
    even though it was grossly off-topic
    May 08 14:11
    sr
    piglop, you're missing Test::Unit::TestCase.send :include, Sinatra::Test
    piglop
    sr: i switched to rack-test and added the Test::Unit line, but I still don't have the layout in the test
    May 08 14:16
    piglop
    (i tried the Test::Unit inside World too)
    sr
    hurm. I can't help you much I am afraid. I don't know enough about cucumber
    try to find an app that uses cuke or ask on their irc channel
    piglop
    ok, thank you
    tbyhlmann joined #sinatra
    May 08 14:23
    mitkok joined #sinatra
    nakajima joined #sinatra
    May 08 14:28
    mynyml joined #sinatra
    mynyml
    anyone knows where i could find simple docs for mime type handling?
    i'm seeing :provides in the source for HTTP_ACCEPT ...
    Lenary
    mynyml: look for stylesheets stuff
    there is a way of rendering sass in which you can specify the mime type
    i think you just add the thing onto the end
    * mynyml
    is looking into it
    May 08 14:46
    piglop
    sr: app_file is wrong, so it looks for the layout in the wrong directory
    sr
    aaaah, of course
    and when you do `ruby app.rb`, sinatra can infers it from $0
    makes sense
    ekidd joined #sinatra
    piglop
    here's the caller stack when sinatra initializes app_file inside cucumber : http://gist.github.com/109000
    should sinatra ignore polyglot.rb like custom_require ?
    or should i specify the app_file somewhere ?
    cypher23
    piglop, "set :views, 'path/to/views'" is probably the easiest option
    May 08 14:52
    sr
    set :app_file, __FILE__ is the easiest IMO
    sinatra can then infers path to views and public folder from it
    piglop
    it works. thank you !
    Booster joined #sinatra
    May 08 15:18
    qrush joined #sinatra
    qrush
    hey folks
    is there a classy way of doing TestUploadedFile in sinatra?
    I was looking around the tests and couldn't find a decent example
    May 08 15:23
    sr
    qrush, rack/test has built-in support for it
    qrush
    ah, i figured
    i was on the plane and without interwebs
    May 08 15:28
    nakajima joined #sinatra
    cypher23
    qrush, what, you don't have GitHub mirrored locally? :)
    qrush
    lol
    cypher23
    I acutally have a script that I just need to point to a username, and it mirrors all his repos
    (or updates them)
    quite useful
    sr
    cypher23, gist! :)
    Booster joined #sinatra
    qrush_ joined #sinatra
    May 08 15:33
    cypher23
    or if you just want to keep a bunch of git/hg/svn/bzr repos up to date, I have a thor file for that: http://gist.github.com/109022
    sr
    ooh nice! I looked for his awesome git vizualisation for ages
    thanks!
    <3 the gc task
    w00t! sinatra/.git went from 20M to 2M
    cypher23
    :)
    sr, though I'd be careful with the gc --aggressive with very large repos like webkit or postgresql
    they both took about an hour to repack
    May 08 15:39
    cypher23
    and git grew to over 1gb size during that time
    sr
    I actually have an alias for `du -hc .git | tail -1 && git gc && du -hc .git | tail -1` :P
    cypher23
    hm, I could add an "before - after" comparison to the gc task :)
    sr
    what are "loose object" exactly btw?
    cypher23
    if you create a commit, git generates a commit object
    under .git/objects
    May 08 15:44
    cypher23
    so each commit has one object
    but git can also create packs of commits, which are more efficient
    (both space- and speed-wise
    )
    sr
    ah, so loose objects are basically object that are already included into a pack?
    cypher23
    no, loose objects are commits that aren't in a packfile yet
    sr
    wow. amazing. I didn't follow book.git-scm
    May 08 15:50
    sr
    thanks, cypher23
    cypher23
    yw
    May 08 15:56
    Aupajo joined #sinatra
    Aupajo left #sinatra
    Booster joined #sinatra
    May 08 16:07
    Booster joined #sinatra
    May 08 16:12
    mitkok joined #sinatra
    May 08 16:33
    davelee_ joined #sinatra
    May 08 16:38
    Booster joined #sinatra
    TomV-415 joined #sinatra
    May 08 17:02
    mattly joined #sinatra
    May 08 17:09
    Booster joined #sinatra
    andyisnowskynet joined #sinatra
    May 08 17:20
    aorist joined #sinatra
    May 08 17:29
    nakajima joined #sinatra
    May 08 17:39
    kotrin joined #sinatra
    May 08 18:05
    zapnap joined #sinatra
    May 08 18:12
    hexreel joined #sinatra
    May 08 18:17
    ekidd joined #sinatra
    May 08 18:51
    syd_
    andy_h: that client is fucking NICE!
    qrush_ joined #sinatra
    May 08 19:02
    qrush_ joined #sinatra
    May 08 19:11
    qrush__ joined #sinatra
    May 08 19:24
    nakajima joined #sinatra
    May 08 19:32
    hobbsc joined #sinatra
    May 08 20:12
    qrush_ joined #sinatra
    May 08 20:43
    dnyy joined #sinatra
    May 08 20:51
    sporkmonger joined #sinatra
    May 08 21:01
    heycarsten joined #sinatra
    sporkmonger joined #sinatra
    May 08 21:16
    ekidd joined #sinatra
    blakemizerany joined #sinatra
    May 08 21:22
    aorist joined #sinatra
    May 08 21:35
    andyisnowskynet left #sinatra
    sporkmonger joined #sinatra
    May 08 21:42
    sporkmonger joined #sinatra
    hassox joined #sinatra
    kotrin joined #sinatra
    bct joined #sinatra
    May 08 22:13
    bmizeran_ joined #sinatra
    May 08 22:43
    nanodeath joined #sinatra
    May 08 23:11
    aorist_ joined #sinatra
    May 08 23:29
    sporkmonger joined #sinatra
    May 08 23:58
    aorist joined #sinatra