Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

adding rakefile; cleanup require's

  • Loading branch information...
commit 8e2fb962ef33f9c3bc255570362020531ac78fd4 1 parent ba93483
@igrigorik authored
View
31 Rakefile
@@ -0,0 +1,31 @@
+require 'rake'
+require 'spec/rake/spectask'
+
+begin
+ require 'jeweler'
+ Jeweler::Tasks.new do |gemspec|
+ gemspec.name = 'rack-speedtracer'
+ gemspec.summary = 'SpeedTracer middleware for server side debugging'
+ gemspec.description = gemspec.summary
+ gemspec.email = 'ilya@igvita.com'
+ gemspec.homepage = 'http://github.com/igrigorik/rack-speedtracer'
+ gemspec.authors = ['Ilya Grigorik']
+ gemspec.add_dependency('rack')
+ gemspec.add_dependency('uuid')
+ gemspec.add_dependency('yajl-ruby')
+ gemspec.rubyforge_project = 'rack-speedtracer'
+ end
+
+ Jeweler::GemcutterTasks.new
+rescue LoadError
+ puts 'Jeweler not available. Install it with: sudo gem install jeweler -s http://gemcutter.org'
+end
+
+task :default => :spec
+
+Spec::Rake::SpecTask.new do |t|
+ t.ruby_opts = ['-rtest/unit']
+ t.spec_files = FileList['spec/**/*_spec.rb']
+end
+
+
View
1  VERSION
@@ -0,0 +1 @@
+0.1.0
View
2  lib/rack/speedtracer.rb
@@ -1,4 +1,6 @@
require 'rack'
+require 'yajl'
+require 'uuid'
require 'rack/speedtracer/context'
require 'rack/speedtracer/tracer'
View
2  lib/rack/speedtracer/context.rb
@@ -1,5 +1,3 @@
-require 'uuid'
-
module Rack
module SpeedTracer
View
2  lib/rack/speedtracer/tracer.rb
@@ -1,5 +1,3 @@
-require 'yajl'
-
module Rack
module SpeedTracer
Please sign in to comment.
Something went wrong with that request. Please try again.