Permalink
Browse files

Why was there ever a sleep(5) in a Sinatra route?

  • Loading branch information...
1 parent 41dfaf0 commit 8ddcbb09f164bfe49803a173a57018a6ec432e99 Nathan Duran committed Apr 10, 2011
Showing with 2 additions and 3 deletions.
  1. +1 −1 README.md
  2. +1 −2 example/sinatra/app.rb
View
@@ -6,7 +6,7 @@ The rack-mongrel2 gem was supposed to be "the only Mongrel2 Rack handler you'll
1. I don't care about any of that Ruby hippie FFI shit. I use the standard-issue hand-compiled zmq gem and I like it. If you can't build it on your OS, you probably shouldn't be serving web pages from it.
-2. I don't ever supply any default ØMQ connection specs since there is virtually NO chance that you will ever setup your Mongrel2 instance the same way I setup mine. Especially not if you're running more than one of them and can't keep recycling the same ports for every app you intend to boot. This does make the setup code look more like actual code than magic unicorn farts, so seeing it will probably drive some angry Rails teen to lock himself in a Peet's bathroom for a week to sob uncontrollably while chanting "D.R.Y." and jerking off to the Kid Robot catalog he carries around in the $300 hardshell backpack his mom bought him to protect his MacBook Pro and Hario ceramic burr grinder from the mean streets of SoMa. I consider this my fork's greatest feature.
+2. I don't ever supply any default ØMQ connection specs since there is virtually NO chance that you will ever setup your Mongrel2 instance the same way I setup mine. Especially not if you're running more than one of them and can't keep recycling the same ports for every app you intend to boot. This does make the setup code look more like actual code than magic unicorn farts, so seeing it will probably drive some angry Rails teen to sperg out in a Peet's bathroom for a week while chanting "D.R.Y." and jerking off to the Kid Robot catalog he carries around in the $300 hardshell backpack his mom bought him to protect his Hario ceramic burr grinder from the mean streets of SoMa. I consider this my fork's greatest feature.
3. I fixed a really stupid longstanding crasher that's been unaddressed for months which was hindering my team's progress.
View
@@ -1,7 +1,6 @@
require 'sinatra'
-require 'yajl/json_gem'
+require 'json'
get '*' do
- sleep(5)
request.env.to_json
end

0 comments on commit 8ddcbb0

Please sign in to comment.