Skip to content
Browse files

Install the global ShamRack::Registry in a more obvious place.

  • Loading branch information...
1 parent 830403d commit 7668202f01af25f10af8d391f01919aa7624fe35 @mdub committed May 1, 2012
Showing with 7 additions and 7 deletions.
  1. +7 −5 lib/sham_rack.rb
  2. +0 −2 lib/sham_rack/registry.rb
View
12 lib/sham_rack.rb
@@ -1,9 +1,11 @@
+require "sham_rack/net_http"
+require "sham_rack/registry"
+require "sham_rack/version"
+
# ShamRack allows access to Rack applications using Net::Http, but without network traffic.
#
# For more detail, see http://github.com/mdub/sham_rack
#
-module ShamRack; end
-
-require "sham_rack/net_http"
-require "sham_rack/registry"
-require "sham_rack/version"
+module ShamRack
+ extend ShamRack::Registry
+end
View
2 lib/sham_rack/registry.rb
@@ -41,8 +41,6 @@ def registry
end
- extend Registry
-
class Registrar
def initialize(address, port = nil)

0 comments on commit 7668202

Please sign in to comment.
Something went wrong with that request. Please try again.