rack-subdomain 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/rack/subdomain.rb +1 -1
- data/lib/rack/subdomain/version.rb +1 -1
- data/rack-subdomain-0.4.0.gem +0 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f83cc31beb2d4f763c7bdff369041927e2822aeb
|
4
|
+
data.tar.gz: 9915aa803e3490db3a4b3b7a3deff9c6c039212a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 298e498780b60e5623769145554e8da42091095101a7751714b90221b900b8b63163cb7c5124507685af3fc9173d49d4b6b0f1742374545286141a68336bb882
|
7
|
+
data.tar.gz: 8632440749b48bdddc786bbb407fff5d7eb599f212b3d406cb89af0c25c9c7bfb94c63a0e09284148aa84105c3d0c80a0a9eeb653fa979a0db1511bd6f75062c
|
data/Gemfile.lock
CHANGED
data/lib/rack/subdomain.rb
CHANGED
@@ -61,7 +61,7 @@ module Rack
|
|
61
61
|
end
|
62
62
|
|
63
63
|
def subdomain
|
64
|
-
@env['HTTP_HOST'].sub(/\.?#{domain}.*$/,'') unless @env['HTTP_HOST'].match(/^localhost/)
|
64
|
+
@env['HTTP_HOST'].sub(/\.?#{domain}.*$/,'') unless @env['HTTP_HOST'].nil? || @env['HTTP_HOST'].match(/^localhost/) || IPAddress.valid?(@env['SERVER_NAME'])
|
65
65
|
end
|
66
66
|
|
67
67
|
def remap_with_substituted_path!(path)
|
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack-subdomain
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mattt
|
@@ -116,6 +116,7 @@ files:
|
|
116
116
|
- "./lib/rack-subdomain.rb"
|
117
117
|
- "./lib/rack/subdomain.rb"
|
118
118
|
- "./lib/rack/subdomain/version.rb"
|
119
|
+
- "./rack-subdomain-0.4.0.gem"
|
119
120
|
- "./rack-subdomain.gemspec"
|
120
121
|
homepage: http://github.com/mattt/rack-subdomain
|
121
122
|
licenses:
|