From 08fc29d15e2bbd5488feb74b86c9cf7eadcba3f2 Mon Sep 17 00:00:00 2001 From: James Hu Date: Fri, 5 Jun 2015 03:08:32 +0000 Subject: [PATCH] Rebundle and rename --- Gemfile | 8 +- Gemfile.lock | 77 +++++++++++++++++++ lib/reverse-proxy.rb | 2 - lib/reverse_proxy.rb | 5 ++ .../client.rb | 0 .../controller.rb | 0 6 files changed, 87 insertions(+), 5 deletions(-) delete mode 100644 lib/reverse-proxy.rb create mode 100644 lib/reverse_proxy.rb rename lib/{reverse-proxy => reverse_proxy}/client.rb (100%) rename lib/{reverse-proxy => reverse_proxy}/controller.rb (100%) diff --git a/Gemfile b/Gemfile index 0741c8e..b618d4d 100644 --- a/Gemfile +++ b/Gemfile @@ -1,7 +1,9 @@ source "http://rubygems.org" -# Add dependencies required to use your gem here. -# Example: -# gem "activesupport", ">= 2.3.5" + +gem 'rails' +gem 'rack' +gem 'rack-proxy' +gem 'addressable' # Add dependencies to develop your gem here. # Include everything needed to run rake, tests, features, etc. diff --git a/Gemfile.lock b/Gemfile.lock index f73039e..9a6197b 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,6 +1,35 @@ GEM remote: http://rubygems.org/ specs: + actionmailer (4.2.1) + actionpack (= 4.2.1) + actionview (= 4.2.1) + activejob (= 4.2.1) + mail (~> 2.5, >= 2.5.4) + rails-dom-testing (~> 1.0, >= 1.0.5) + actionpack (4.2.1) + actionview (= 4.2.1) + activesupport (= 4.2.1) + rack (~> 1.6) + rack-test (~> 0.6.2) + rails-dom-testing (~> 1.0, >= 1.0.5) + rails-html-sanitizer (~> 1.0, >= 1.0.1) + actionview (4.2.1) + activesupport (= 4.2.1) + builder (~> 3.1) + erubis (~> 2.7.0) + rails-dom-testing (~> 1.0, >= 1.0.5) + rails-html-sanitizer (~> 1.0, >= 1.0.1) + activejob (4.2.1) + activesupport (= 4.2.1) + globalid (>= 0.3.0) + activemodel (4.2.1) + activesupport (= 4.2.1) + builder (~> 3.1) + activerecord (4.2.1) + activemodel (= 4.2.1) + activesupport (= 4.2.1) + arel (~> 6.0) activesupport (4.2.1) i18n (~> 0.7) json (~> 1.7, >= 1.7.7) @@ -8,10 +37,12 @@ GEM thread_safe (~> 0.3, >= 0.3.4) tzinfo (~> 1.1) addressable (2.3.8) + arel (6.0.0) builder (3.2.2) descendants_tracker (0.0.4) thread_safe (~> 0.3, >= 0.3.1) docile (1.1.5) + erubis (2.7.0) faraday (0.9.1) multipart-post (>= 1.2, < 3) git (1.2.9.1) @@ -23,6 +54,8 @@ GEM multi_json (>= 1.7.5, < 2.0) nokogiri (~> 1.6.3) oauth2 + globalid (0.3.5) + activesupport (>= 4.1.0) hashie (3.4.2) highline (1.7.2) i18n (0.7.0) @@ -37,6 +70,11 @@ GEM rdoc json (1.8.3) jwt (1.5.0) + loofah (2.0.2) + nokogiri (>= 1.5.9) + mail (2.6.3) + mime-types (>= 1.16, < 3) + mime-types (2.6.1) mini_portile (0.6.2) minitest (5.7.0) multi_json (1.11.0) @@ -51,6 +89,34 @@ GEM multi_xml (~> 0.5) rack (~> 1.2) rack (1.6.1) + rack-proxy (0.5.17) + rack + rack-test (0.6.3) + rack (>= 1.0) + rails (4.2.1) + actionmailer (= 4.2.1) + actionpack (= 4.2.1) + actionview (= 4.2.1) + activejob (= 4.2.1) + activemodel (= 4.2.1) + activerecord (= 4.2.1) + activesupport (= 4.2.1) + bundler (>= 1.3.0, < 2.0) + railties (= 4.2.1) + sprockets-rails + rails-deprecated_sanitizer (1.0.3) + activesupport (>= 4.2.0.alpha) + rails-dom-testing (1.0.6) + activesupport (>= 4.2.0.beta, < 5.0) + nokogiri (~> 1.6.0) + rails-deprecated_sanitizer (>= 1.0.1) + rails-html-sanitizer (1.0.2) + loofah (~> 2.0) + railties (4.2.1) + actionpack (= 4.2.1) + activesupport (= 4.2.1) + rake (>= 0.8.7) + thor (>= 0.18.1, < 2.0) rake (10.4.2) rdoc (3.12.2) json (~> 1.4) @@ -65,6 +131,13 @@ GEM json (~> 1.8) simplecov-html (~> 0.10.0) simplecov-html (0.10.0) + sprockets (3.2.0) + rack (~> 1.0) + sprockets-rails (2.3.1) + actionpack (>= 3.0) + activesupport (>= 3.0) + sprockets (>= 2.8, < 4.0) + thor (0.19.1) thread_safe (0.3.5) tzinfo (1.2.2) thread_safe (~> 0.1) @@ -73,8 +146,12 @@ PLATFORMS ruby DEPENDENCIES + addressable bundler (~> 1.0) jeweler (~> 2.0.1) + rack + rack-proxy + rails rdoc (~> 3.12) shoulda simplecov diff --git a/lib/reverse-proxy.rb b/lib/reverse-proxy.rb deleted file mode 100644 index 2bcd356..0000000 --- a/lib/reverse-proxy.rb +++ /dev/null @@ -1,2 +0,0 @@ -module ReverseProxy -end \ No newline at end of file diff --git a/lib/reverse_proxy.rb b/lib/reverse_proxy.rb new file mode 100644 index 0000000..9ed96b5 --- /dev/null +++ b/lib/reverse_proxy.rb @@ -0,0 +1,5 @@ +require 'reverse_proxy/client' +require 'reverse_proxy/controller' + +module ReverseProxy +end \ No newline at end of file diff --git a/lib/reverse-proxy/client.rb b/lib/reverse_proxy/client.rb similarity index 100% rename from lib/reverse-proxy/client.rb rename to lib/reverse_proxy/client.rb diff --git a/lib/reverse-proxy/controller.rb b/lib/reverse_proxy/controller.rb similarity index 100% rename from lib/reverse-proxy/controller.rb rename to lib/reverse_proxy/controller.rb