sinatra-routing-helpers 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sinatra/routing-helpers/version.rb +1 -1
- data/lib/sinatra/routing-helpers.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8a0521881bcc5df3252574c3836ea89b624fb3d9
|
4
|
+
data.tar.gz: e467ca4d923c209f535b9bae83ba2250cacc9a05
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2f89b2bc16912160173f3e7099e2057eca0a0f7117baecd7abb65d1359fa9e061288f3003b2db768ed29594f9866a7092627b7a42cb0968128767ebce0b0ed6
|
7
|
+
data.tar.gz: d00a48a670e49859fe35f336f6a37710cbb58ac7a453f58fed5ec4876825abbda29dc83fc9dde883cee84c3d9025e31da3aee2f2d38871121c6c4c8b761ee887
|
@@ -71,7 +71,7 @@ module Sinatra
|
|
71
71
|
|
72
72
|
# handles a non-working cancel button
|
73
73
|
def back_or(new_path)
|
74
|
-
if back.nil? ||
|
74
|
+
if back.nil? || [request.path_info, uri(request.path_info), '/', ''].include?(back)
|
75
75
|
new_path
|
76
76
|
else
|
77
77
|
back
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sinatra-routing-helpers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Evan Lecklider
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-07-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|