Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use bundler for gem building

  • Loading branch information...
commit 5c720a9ba4422092e150895bc33dadf00edefd97 1 parent 158837b
Jacek Becela authored
4 .gitignore
View
@@ -1 +1,3 @@
-pkg
+pkg/*
+*.gem
+.bundle
4 Gemfile
View
@@ -0,0 +1,4 @@
+source "http://rubygems.org"
+
+# Specify your gem's dependencies in rack-proxy.gemspec
+gemspec
21 Rakefile
View
@@ -1,5 +1,7 @@
-require "rake/testtask"
+require 'bundler'
+Bundler::GemHelper.install_tasks
+require "rake/testtask"
task :test do
Rake::TestTask.new do |t|
t.libs << "test"
@@ -9,20 +11,3 @@ task :test do
end
task :default => :test
-
-begin
- require 'jeweler'
- Jeweler::Tasks.new do |gem|
- gem.name = "rack-proxy"
- gem.summary = "A request/response rewriting HTTP proxy. A Rack app."
- gem.description = "A Rack app that provides request/response rewriting proxy capabilities with streaming."
- gem.email = "jacek.becela@gmail.com"
- gem.homepage = "http://github.com/ncr/rack-proxy"
- gem.authors = ["Jacek Becela"]
- gem.add_dependency "rack"
- gem.add_development_dependency "rack-test"
- end
- Jeweler::GemcutterTasks.new
-rescue LoadError
- puts "Jeweler not available. Install it with: gem install jeweler"
-end
1  VERSION
View
@@ -1 +0,0 @@
-0.3.3
1  lib/rack-proxy.rb
View
@@ -0,0 +1 @@
+require "rack/proxy"
2  lib/rack/proxy.rb
View
@@ -5,6 +5,8 @@ module Rack
# Subclass and bring your own #rewrite_request and #rewrite_response
class Proxy
+ VERSION = "0.3.4"
+
def call(env)
rewrite_response(perform_request(rewrite_env(env)))
end
67 rack-proxy.gemspec
View
@@ -1,57 +1,24 @@
-# Generated by jeweler
-# DO NOT EDIT THIS FILE DIRECTLY
-# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
# -*- encoding: utf-8 -*-
+$:.push File.expand_path("../lib", __FILE__)
+require "rack-proxy"
Gem::Specification.new do |s|
- s.name = %q{rack-proxy}
- s.version = "0.3.3"
-
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
- s.authors = ["Jacek Becela"]
- s.date = %q{2010-01-22}
+ s.name = "rack-proxy"
+ s.version = Rack::Proxy::VERSION
+ s.platform = Gem::Platform::RUBY
+ s.authors = ["Jacek Becela"]
+ s.email = ["jacek.becela@gmail.com"]
+ s.homepage = "http://rubygems.org/gems/rack-proxy"
+ s.summary = %q{A request/response rewriting HTTP proxy. A Rack app.}
s.description = %q{A Rack app that provides request/response rewriting proxy capabilities with streaming.}
- s.email = %q{jacek.becela@gmail.com}
- s.files = [
- ".gitignore",
- "Rakefile",
- "Readme",
- "VERSION",
- "lib/net_http_hacked.rb",
- "lib/rack/http_streaming_response.rb",
- "lib/rack/proxy.rb",
- "rack-proxy.gemspec",
- "test/http_streaming_response_test.rb",
- "test/net_http_hacked_test.rb",
- "test/rack_proxy_test.rb",
- "test/test_helper.rb"
- ]
- s.homepage = %q{http://github.com/ncr/rack-proxy}
- s.rdoc_options = ["--charset=UTF-8"]
- s.require_paths = ["lib"]
- s.rubygems_version = %q{1.3.5}
- s.summary = %q{A request/response rewriting HTTP proxy. A Rack app.}
- s.test_files = [
- "test/http_streaming_response_test.rb",
- "test/net_http_hacked_test.rb",
- "test/rack_proxy_test.rb",
- "test/test_helper.rb"
- ]
- if s.respond_to? :specification_version then
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
- s.specification_version = 3
+ s.rubyforge_project = "rack-proxy"
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
- s.add_runtime_dependency(%q<rack>, [">= 0"])
- s.add_development_dependency(%q<rack-test>, [">= 0"])
- else
- s.add_dependency(%q<rack>, [">= 0"])
- s.add_dependency(%q<rack-test>, [">= 0"])
- end
- else
- s.add_dependency(%q<rack>, [">= 0"])
- s.add_dependency(%q<rack-test>, [">= 0"])
- end
-end
+ s.files = `git ls-files`.split("\n")
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
+ s.require_paths = ["lib"]
+ s.add_dependency("rack")
+ s.add_development_dependency("rack-test")
+end
Please sign in to comment.
Something went wrong with that request. Please try again.