Skip to content
Browse files

@name is sometimes too long. test out sinatra.

  • Loading branch information...
1 parent c38e009 commit 4c533eecceef356830da791bccb78722b0f99bd1 Visnu Pitiyanuvath committed Mar 4, 2011
Showing with 38 additions and 1 deletion.
  1. +7 −0 Gemfile
  2. +29 −0 Gemfile.lock
  3. +1 −1 lib/rack-process-name.rb
  4. +1 −0 rack-process-name.gemspec
View
7 Gemfile
@@ -0,0 +1,7 @@
+source "http://rubygems.org"
+gemspec
+if RUBY_VERSION < "1.9"
+ gem "ruby-debug"
+else
+ gem "ruby-debug19"
+end
View
29 Gemfile.lock
@@ -0,0 +1,29 @@
+PATH
+ remote: .
+ specs:
+ rack-process-name (0.0.1)
+ rack (>= 0.9.0)
+
+GEM
+ remote: http://rubygems.org/
+ specs:
+ columnize (0.3.2)
+ linecache (0.43)
+ rack (1.2.1)
+ ruby-debug (0.10.4)
+ columnize (>= 0.1)
+ ruby-debug-base (~> 0.10.4.0)
+ ruby-debug-base (0.10.4)
+ linecache (>= 0.3)
+ sinatra (1.2.0)
+ rack (~> 1.1)
+ tilt (< 2.0, >= 1.2.2)
+ tilt (1.2.2)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ rack-process-name!
+ ruby-debug
+ sinatra
View
2 lib/rack-process-name.rb
@@ -19,7 +19,7 @@ def call(env)
end
def set(info, state = nil)
- $0 = "#{@name} #{state} #{info}"
+ $0 = "Rack: #{state} #{info}"
end
if defined?(Rails::Railtie)
View
1 rack-process-name.gemspec
@@ -14,6 +14,7 @@ Gem::Specification.new do |s|
]
s.add_dependency "rack", ">= 0.9.0"
+ s.add_development_dependency "sinatra"
s.extra_rdoc_files = %w[README.md]
s.require_paths = %w[lib]
end

0 comments on commit 4c533ee

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