rack-vhost 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +10 -0
- data/rack-vhost.gemspec +2 -2
- metadata +49 -37
data/README.md
CHANGED
|
@@ -3,6 +3,15 @@ rack-vhost
|
|
|
3
3
|
|
|
4
4
|
Rack middleware to dispatch to an application via host header.
|
|
5
5
|
|
|
6
|
+
Install gem:
|
|
7
|
+
|
|
8
|
+
gem install rack-vhost
|
|
9
|
+
|
|
10
|
+
or in Gemfile:
|
|
11
|
+
|
|
12
|
+
source :rubygems
|
|
13
|
+
gem 'rack-vhost'
|
|
14
|
+
|
|
6
15
|
Example config.ru:
|
|
7
16
|
|
|
8
17
|
require 'rack/vhost'
|
|
@@ -25,6 +34,7 @@ Example config.ru:
|
|
|
25
34
|
end
|
|
26
35
|
end
|
|
27
36
|
|
|
37
|
+
# This should come after all other middleware since it passes directly to the app
|
|
28
38
|
use Rack::Vhost, :vhost => '^api', :app => APIApp.new
|
|
29
39
|
use Rack::Vhost, :vhost => 'www.philcolabs.com', :app => MainApp.new
|
|
30
40
|
run Router.new
|
data/rack-vhost.gemspec
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
Gem::Specification.new do |gem|
|
|
2
2
|
gem.name = 'rack-vhost'
|
|
3
|
-
gem.version = '0.1.
|
|
3
|
+
gem.version = '0.1.3'
|
|
4
4
|
gem.summary = 'Rack middleware to dispatch to an application via host header'
|
|
5
5
|
gem.description = 'Rack middleware to dispatch to an application via host header.'
|
|
6
6
|
gem.author = 'Philip Reichenberger'
|
|
7
7
|
gem.email = 'preichenberger@philcolabs.com'
|
|
8
|
-
gem.homepage = 'http://github.com/
|
|
8
|
+
gem.homepage = 'http://github.com/preichenberger/rack-vhost'
|
|
9
9
|
gem.has_rdoc = false
|
|
10
10
|
gem.require_path = 'lib'
|
|
11
11
|
gem.files = `git ls-files`.split($/)
|
metadata
CHANGED
|
@@ -1,65 +1,77 @@
|
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rack-vhost
|
|
3
|
-
version: !ruby/object:Gem::Version
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
prerelease: false
|
|
5
|
+
segments:
|
|
6
|
+
- 0
|
|
7
|
+
- 1
|
|
8
|
+
- 3
|
|
9
|
+
version: 0.1.3
|
|
6
10
|
platform: ruby
|
|
7
|
-
authors:
|
|
11
|
+
authors:
|
|
8
12
|
- Philip Reichenberger
|
|
9
13
|
autorequire:
|
|
10
14
|
bindir: bin
|
|
11
15
|
cert_chain: []
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
16
|
+
|
|
17
|
+
date: 2013-02-21 00:00:00 -05:00
|
|
18
|
+
default_executable:
|
|
19
|
+
dependencies:
|
|
20
|
+
- !ruby/object:Gem::Dependency
|
|
15
21
|
name: rack
|
|
16
|
-
requirement: !ruby/object:Gem::Requirement
|
|
17
|
-
none: false
|
|
18
|
-
requirements:
|
|
19
|
-
- - ! '>='
|
|
20
|
-
- !ruby/object:Gem::Version
|
|
21
|
-
version: '0'
|
|
22
|
-
type: :development
|
|
23
22
|
prerelease: false
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
|
24
|
+
requirements:
|
|
25
|
+
- - ">="
|
|
26
|
+
- !ruby/object:Gem::Version
|
|
27
|
+
segments:
|
|
28
|
+
- 0
|
|
29
|
+
version: "0"
|
|
30
|
+
type: :development
|
|
31
|
+
version_requirements: *id001
|
|
30
32
|
description: Rack middleware to dispatch to an application via host header.
|
|
31
33
|
email: preichenberger@philcolabs.com
|
|
32
34
|
executables: []
|
|
35
|
+
|
|
33
36
|
extensions: []
|
|
37
|
+
|
|
34
38
|
extra_rdoc_files: []
|
|
35
|
-
|
|
39
|
+
|
|
40
|
+
files:
|
|
36
41
|
- .gitignore
|
|
37
42
|
- README.md
|
|
38
43
|
- examples/config.ru
|
|
39
44
|
- lib/rack/vhost.rb
|
|
40
45
|
- rack-vhost.gemspec
|
|
41
|
-
|
|
46
|
+
has_rdoc: true
|
|
47
|
+
homepage: http://github.com/preichenberger/rack-vhost
|
|
42
48
|
licenses: []
|
|
49
|
+
|
|
43
50
|
post_install_message:
|
|
44
51
|
rdoc_options: []
|
|
45
|
-
|
|
52
|
+
|
|
53
|
+
require_paths:
|
|
46
54
|
- lib
|
|
47
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
requirements:
|
|
56
|
-
- -
|
|
57
|
-
- !ruby/object:Gem::Version
|
|
58
|
-
|
|
55
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
56
|
+
requirements:
|
|
57
|
+
- - ">="
|
|
58
|
+
- !ruby/object:Gem::Version
|
|
59
|
+
segments:
|
|
60
|
+
- 0
|
|
61
|
+
version: "0"
|
|
62
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
63
|
+
requirements:
|
|
64
|
+
- - ">="
|
|
65
|
+
- !ruby/object:Gem::Version
|
|
66
|
+
segments:
|
|
67
|
+
- 0
|
|
68
|
+
version: "0"
|
|
59
69
|
requirements: []
|
|
70
|
+
|
|
60
71
|
rubyforge_project:
|
|
61
|
-
rubygems_version: 1.
|
|
72
|
+
rubygems_version: 1.3.6
|
|
62
73
|
signing_key:
|
|
63
74
|
specification_version: 3
|
|
64
75
|
summary: Rack middleware to dispatch to an application via host header
|
|
65
76
|
test_files: []
|
|
77
|
+
|