redirect-rails 0.2.0 → 0.2.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: c66620968de2d42cd6e33412b00efb687f4923aaaffd900228ac985bdb333f3e
4
- data.tar.gz: 104b84668431748b12106c7b2e9c21adbc003da3d835e98d5071ed7fa8c96156
3
+ metadata.gz: f46377411074f4d5f0324f7bff7da2916112df9993b508d81955803b2c940716
4
+ data.tar.gz: 31c05112cde8119377775e03e71215111c95392969c83f9cc2e70e9b2e34a047
5
5
  SHA512:
6
- metadata.gz: 75e6682ea244c26e8a2f49e8b62205291ee38943ef05abc960a77bc8c3158edc581f01840ecd25a4637a06b0c0c1ada8cef868daf2a5a3d7b191f7e0270779ae
7
- data.tar.gz: 18800ad819165a411eaf99bef5508e23e1cda4b6f097b6de49f127317d41ae89d4efbba2f8c4afad083a0204177f0870db8dfeb81e6edc001215991216c95f08
6
+ metadata.gz: 23cca88b54bc5c1af86553e0ec161cd7d8a2d53c97132152d6865dff418b1967fd64956cf9f7dcc1b87d2f526219414d71c7642b379137e92e5f86cb8ef2e249
7
+ data.tar.gz: 3245137b076b61c97321d3ce20383196ae2c51794d352a4c52eb9fe0c167c3dc4c676bf6e560a45a15b498fbfb26f274fd1e62cb731dbec62dc2c75331571c2f
@@ -16,7 +16,7 @@ module Redirect
16
16
  end
17
17
 
18
18
  def match?(request_path)
19
- return if Redirect::Rails.paths
19
+ return unless Redirect::Rails.paths
20
20
 
21
21
  Redirect::Rails.paths.map do |path, redirect_path|
22
22
  return redirect_to(ERB.new(redirect_path).result(binding)) if Regexp.new(path).match(request_path)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Redirect
4
4
  module Rails
5
- VERSION = "0.2.0"
5
+ VERSION = "0.2.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.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yusuke