Permalink
Browse files

Getting this to play nice with 'gem which'

  • Loading branch information...
1 parent e795fbe commit 6c166a9d924534c90dd5da25f41defbcbe6edad7 Nathan Duran committed Apr 10, 2011
Showing with 9 additions and 8 deletions.
  1. +3 −1 README.md
  2. +1 −1 Rakefile
  3. +3 −4 khi-rack-mongrel2.gemspec
  4. +1 −1 lib/{mongrel2.rb → khi-rack-mongrel2.rb}
  5. +1 −1 lib/mongrel2/request.rb
View
@@ -10,9 +10,11 @@ The rack-mongrel2 gem was supposed to be "the only Mongrel2 Rack handler you'll
3. I fixed a really stupid longstanding crasher that's been unaddressed for months which was hindering my team's progress.
+4. It can actually be found by `gem which`.
+
# Sounds Cool. Gimme.
-Add `http://gem.khiltd.com` to your gem sources--either via `gem source --add` or by throwing it in your Gemfile. Then just `gem install khi-rack-mongrel2` and get rid of any potentially conflicting versions you might have previously installed.
+Add `http://gem.khiltd.com` to your gem sources--either via `gem source --add` or by throwing it in your Gemfile. Then just `gem install khi-rack-mongrel2` or `bundle install` and get rid of any potentially conflicting versions you might have been using previously.
# You Sound Like A Real Jerk
View
@@ -13,7 +13,7 @@ def name
end
def version
- line = File.read("lib/mongrel2.rb")[/^\s*VERSION\s*=\s*.*/]
+ line = File.read("lib/khi-rack-mongrel2.rb")[/^\s*VERSION\s*=\s*.*/]
line.match(/.*VERSION\s*=\s*['"](.*)['"]/)[1]
end
@@ -13,13 +13,13 @@ Gem::Specification.new do |s|
## If your rubyforge_project name is different, then edit it and comment out
## the sub! line in the Rakefile
s.name = 'khi-rack-mongrel2'
- s.version = '1.0.0'
+ s.version = '1.0.1'
s.date = '2011-04-09'
s.rubyforge_project = 'khi-rack-mongrel2'
## Make sure your summary is short. The description may be as long
## as you like.
- s.summary = %Q{The only Mongrel2 Rack handler you'll ever need.}
+ s.summary = %Q{One of many Mongrel2 Rack handler you'll probably try.}
s.description = %Q{A Rack handler for the Mongrel2 web server, by Zed Shaw. http://mongrel2.org/}
## List the primary authors. If there are a bunch of authors, it's probably
@@ -57,13 +57,12 @@ Gem::Specification.new do |s|
LICENSE
README.md
Rakefile
- example/mongrel2.conf
example/sinatra/.gitignore
example/sinatra/app.rb
example/sinatra/config.ru
example/sinatra/mongrel2.conf
khi-rack-mongrel2.gemspec
- lib/mongrel2.rb
+ lib/khi-rack-mongrel2.rb
lib/mongrel2/connection.rb
lib/mongrel2/request.rb
lib/mongrel2/response.rb
@@ -10,5 +10,5 @@
module Mongrel2
JSON = Object.const_defined?('Yajl') ? ::Yajl::Parser : ::JSON
- VERSION = '1.0.0'
+ VERSION = '1.0.1'
end
@@ -1,4 +1,4 @@
-require 'mongrel2'
+require 'khi-rack-mongrel2'
module Mongrel2
class Request

0 comments on commit 6c166a9

Please sign in to comment.