sinatra-named-routes-subdomains 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -30,7 +30,7 @@ module Sinatra
30
30
  domain = request.host
31
31
  end
32
32
 
33
- if !params.nil? && !params[:subdomain].nil?
33
+ if !params.nil? && params.is_a?( Hash ) && !params[:subdomain].nil?
34
34
  host << domain.gsub(/^([a-zA-Z-]+)\./, "#{params[:subdomain]}.")
35
35
  else
36
36
  host << domain
@@ -1,5 +1,5 @@
1
1
  module Sinatra
2
2
  module BlueRoutes
3
- VERSION = '0.1.6'
3
+ VERSION = '0.1.7'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sinatra-named-routes-subdomains
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-03-03 00:00:00.000000000 Z
12
+ date: 2013-06-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sinatra