goncalossilva-subdomain_routes 0.3.3 → 0.3.3.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  ---
2
2
  :major: 0
3
3
  :minor: 3
4
- :build:
4
+ :build: 1
5
5
  :patch: 3
@@ -9,7 +9,7 @@ module SubdomainRoutes
9
9
  raise HostNotSupplied, "No host supplied!" if host.blank?
10
10
  raise HostNotSupplied, "Can't set subdomain for an IP address!" if host =~ /\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/
11
11
 
12
- static_domain = Config.static_domains.find { |static_domain| host.include?(static_domain) }
12
+ static_domain = Config.static_domains.find { |static_domain| host.include?(static_domain) } if Config.static_domains
13
13
 
14
14
  if static_domain
15
15
  split_host_by_static_domain(host, static_domain)
@@ -44,4 +44,4 @@ module SubdomainRoutes
44
44
  split_host(host).first
45
45
  end
46
46
  end
47
- end
47
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: goncalossilva-subdomain_routes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.3.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -16,7 +16,7 @@ default_executable:
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: actionpack
19
- requirement: &2160838520 !ruby/object:Gem::Requirement
19
+ requirement: &86303800 !ruby/object:Gem::Requirement
20
20
  none: false
21
21
  requirements:
22
22
  - - ~>
@@ -24,7 +24,7 @@ dependencies:
24
24
  version: 2.3.9
25
25
  type: :runtime
26
26
  prerelease: false
27
- version_requirements: *2160838520
27
+ version_requirements: *86303800
28
28
  description: ! " SubdomainRoutes add subdomain conditions to the Rails routing
29
29
  system. Routes may be restricted to\n one or many specified subdomains. An
30
30
  URL will be recognised only if the host subdomain matches the\n subdomain specified