May 08 00:05
kamalfariz joined #sinatra
May 08 00:10
May 08 00:27
tlrobinson joined #sinatra
May 08 01:20
May 08 01:58
May 08 02:20
May 08 02:31
jchris___ joined #sinatra
May 08 02:53
May 08 03:06
May 08 03:14
May 08 03:35
May 08 04:31
May 08 04:37
benlovell joined #sinatra
May 08 05:03
May 08 05:37
codebrulee joined #sinatra
May 08 05:49
May 08 06:12
May 08 06:54
sporkmonger joined #sinatra
May 08 07:00
sporkmonger_ joined #sinatra
heycarsten joined #sinatra
May 08 07:15
May 08 07:23
heycarsten joined #sinatra
May 08 07:29
sporkmonger joined #sinatra
May 08 07:49
djanowski_ joined #sinatra
May 08 07:58
namelessjon joined #sinatra
djanowski joined #sinatra
monsieurledan joined #sinatra
mikehodgson joined #sinatra
May 08 08:13
May 08 08:39
djanowski_ joined #sinatra
i'm trying to get a super-simple sinatra app running for prototyping purposes, but am having trouble with using it with DataMapper
somehow Datamapper isn't creating new records
May 08 08:47
May 08 08:53
nanodeath joined #sinatra
May 08 09:00
May 08 09:05
May 08 09:13
May 08 09:50
May 08 09:55
benlovell joined #sinatra
May 08 10:20
dbalatero joined #sinatra
blankslate joined #sinatra
May 08 10:27
May 08 10:32
sinatra is just too easy!
May 08 10:38
JackDanger joined #sinatra
May 08 10:54
benlovell joined #sinatra
May 08 11:13
sporkmonger_ joined #sinatra
Chrononaut joined #sinatra
May 08 11:23
djanowski joined #sinatra
May 08 11:46
benlovell joined #sinatra
May 08 11:55
sporkmonger joined #sinatra
May 08 12:01
tbyhlmann joined #sinatra
May 08 12:13
May 08 12:45
benlovell joined #sinatra
May 08 13:32
May 08 13:37
my layout is not included when i call "get" in a unit test. how can i change that ?
piglop, I can't think of any reason why it'd not. can yo gist your app/test ?
May 08 13:45
cloudhead joined #sinatra
benlovell joined #sinatra
May 08 13:53
when i check manually, the layout is used
piglop, which sinatra version?
is sinatra rack 1.0 and ruby 1.9 compatible?
cloudhead, sinatra-sinatra from github is
(ie, gem install sinatra-sinatra)
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
i want to find it again...
piglop, shouldn't Sinatra::Test be included into cuke's World or something like that?
btw, Sinatra::Test will be deprecated in the upcoming release, so you might want to use Rack::Test instead
May 08 14:05
i found the tweet everyone
even though it was grossly off-topic
May 08 14:11
piglop, you're missing Test::Unit::TestCase.send :include, Sinatra::Test
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
(i tried the Test::Unit inside World too)
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
tbyhlmann joined #sinatra
May 08 14:23
May 08 14:28
anyone knows where i could find simple docs for mime type handling?
i'm seeing :provides in the source for HTTP_ACCEPT ...
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
May 08 14:46
sr: app_file is wrong, so it looks for the layout in the wrong directory
and when you do `ruby app.rb`, sinatra can infers it from $0
should sinatra ignore polyglot.rb like custom_require ?
or should i specify the app_file somewhere ?
piglop, "set :views, 'path/to/views'" is probably the easiest option
May 08 14:52
set :app_file, __FILE__ is the easiest IMO
sinatra can then infers path to views and public folder from it
May 08 15:18
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
qrush, rack/test has built-in support for it
i was on the plane and without interwebs
May 08 15:28
qrush, what, you don't have GitHub mirrored locally? :)
I acutally have a script that I just need to point to a username, and it mirrors all his repos
May 08 15:33
ooh nice! I looked for his awesome git vizualisation for ages
w00t! sinatra/.git went from 20M to 2M
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
and git grew to over 1gb size during that time
I actually have an alias for `du -hc .git | tail -1 && git gc && du -hc .git | tail -1` :P
hm, I could add an "before - after" comparison to the gc task :)
what are "loose object" exactly btw?
if you create a commit, git generates a commit object
May 08 15:44
so each commit has one object
but git can also create packs of commits, which are more efficient
(both space- and speed-wise
ah, so loose objects are basically object that are already included into a pack?
no, loose objects are commits that aren't in a packfile yet
wow. amazing. I didn't follow book.git-scm
May 08 15:50
May 08 15:56
May 08 16:07
May 08 16:12
May 08 16:33
May 08 16:38
May 08 17:02
May 08 17:09
andyisnowskynet joined #sinatra
May 08 17:20
May 08 17:29
May 08 17:39
May 08 18:05
May 08 18:12
May 08 18:17
May 08 18:51
andy_h: that client is fucking NICE!
May 08 19:02
May 08 19:11
May 08 19:24
May 08 19:32
May 08 20:12
May 08 20:43
May 08 20:51
sporkmonger joined #sinatra
May 08 21:01
heycarsten joined #sinatra
sporkmonger joined #sinatra
May 08 21:16
blakemizerany joined #sinatra
May 08 21:22
May 08 21:35
andyisnowskynet left #sinatra
sporkmonger joined #sinatra
May 08 21:42
sporkmonger joined #sinatra
May 08 22:13
bmizeran_ joined #sinatra
May 08 22:43
nanodeath joined #sinatra
May 08 23:11
May 08 23:29
sporkmonger joined #sinatra
May 08 23:58