redirect-rails 0.3.0 → 0.3.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
  SHA256:
3
- metadata.gz: 83fbf537ec5bec148fc7fb605932cc4514ce7cc2f66e7bedc1ab23be6fd2d350
4
- data.tar.gz: 55ccabcdf89064ee821d8ec0a00b9a7674d55294496c03b8b6433f382c276d72
3
+ metadata.gz: fd0f45248f4da1f4c59d5738a560c46911d19475734ed4f813afcc5489eb7f1c
4
+ data.tar.gz: 3468f49a9e12108d13c458990ad5073ef9b1ff52d7b5854b23af1191d5838862
5
5
  SHA512:
6
- metadata.gz: c99ff1039100db235d2202d2ae4c4f85414099fc7f25d0b4128f1fcbe9a68c4763aeaa7104ccfaf0bf5130069235325a322e8f85ff655725f4c26b4a99e3392b
7
- data.tar.gz: bfec9aac126a0c2e37fb2aaf94eed91c45f0eb47715f897afb077e3c57359882601963e14e80c8e00422089216dc264be97c83f274091cef27aadb28906b7497
6
+ metadata.gz: 034ad9b08df9ccf6648f718dc77b53dfeeb3272447a883a30c88b42a88888e2a84febb737360e8d642eb6921771c3d8d600b9a93b2f38a36d28fac5b1f784f84
7
+ data.tar.gz: c5997266f646d25d1e9900a446911faf0d85616b22c6870a5710956f1d440ff3add16ff053afb50da81a61e53ff4b4b96a5130a868cdb08ed3721c24e0f75a0a
@@ -29,7 +29,7 @@ module Redirect
29
29
  return unless Redirect::Rails.hosts
30
30
 
31
31
  Redirect::Rails.hosts.map do |host, redirect_url|
32
- return ERB.new(redirect_url).result(binding) if Regexp.new(host).match(request_url)
32
+ return ERB.new(redirect_url).result(binding) if Regexp.new(host).match(request_host)
33
33
  end.first
34
34
  end
35
35
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Redirect
4
4
  module Rails
5
- VERSION = "0.3.0"
5
+ VERSION = "0.3.1"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redirect-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yusuke