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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 91ed6a0f8dcfb0151fa71f14868c4d425e5a019a
4
- data.tar.gz: 07c51f5fea88d6531eb1a0bd4014d669f0bf937d
3
+ metadata.gz: f83cc31beb2d4f763c7bdff369041927e2822aeb
4
+ data.tar.gz: 9915aa803e3490db3a4b3b7a3deff9c6c039212a
5
5
  SHA512:
6
- metadata.gz: 5db9953985c58abd460029cd5e67fb077740852e6e803d514a47bd2d03721c64f3abf6c9e6e270b9be42ed40c7475fe8134d9d2f5aecb7e4a6fff5fcffb0d465
7
- data.tar.gz: 5f14f4360bb0b4072e010c425f6e7fa2f985bdc6d2c1444c74617f9db4fc1acad681c8362074a6a72aed28fb98def0e44a1b2e1fb79ef8ec9665fe0fc5c3f514
6
+ metadata.gz: 298e498780b60e5623769145554e8da42091095101a7751714b90221b900b8b63163cb7c5124507685af3fc9173d49d4b6b0f1742374545286141a68336bb882
7
+ data.tar.gz: 8632440749b48bdddc786bbb407fff5d7eb599f212b3d406cb89af0c25c9c7bfb94c63a0e09284148aa84105c3d0c80a0a9eeb653fa979a0db1511bd6f75062c
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rack-subdomain (0.4.0)
4
+ rack-subdomain (0.4.1)
5
5
  ipaddress (~> 0.8.0)
6
6
  rack (~> 1.2, < 2.0.0)
7
7
 
@@ -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/) or IPAddress.valid?(@env['SERVER_NAME'])
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)
@@ -1,5 +1,5 @@
1
1
  module Rack
2
2
  class Subdomain
3
- VERSION = '0.4.0'
3
+ VERSION = '0.4.1'
4
4
  end
5
5
  end
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.0
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: