Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Use bundler for gem building

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

0 comments on commit 5c720a9

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