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