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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5d90f1cd4ab552f74155ec43c7809856d24114f6
4
- data.tar.gz: 6e9265af4edf8e68bf61ed39d31c1ebd54c629c2
3
+ metadata.gz: 8a0521881bcc5df3252574c3836ea89b624fb3d9
4
+ data.tar.gz: e467ca4d923c209f535b9bae83ba2250cacc9a05
5
5
  SHA512:
6
- metadata.gz: f7df4aae16d0dc40b564c18593183aef55f8e946dc3044bc421d749c538704768bb6f717b4b65a072ec4f384116e8a43fe11ee02f1ad4ce831e80811317b3358
7
- data.tar.gz: 4e42ad784a9da6251046f6b0d8c8a5be8b442e003f3ef4e1deb40755ed6ecca4a2ea9c1ec2b6a9d36bdb1bd27ff078d8b63bf66128a07509cbbb208b961d56dc
6
+ metadata.gz: d2f89b2bc16912160173f3e7099e2057eca0a0f7117baecd7abb65d1359fa9e061288f3003b2db768ed29594f9866a7092627b7a42cb0968128767ebce0b0ed6
7
+ data.tar.gz: d00a48a670e49859fe35f336f6a37710cbb58ac7a453f58fed5ec4876825abbda29dc83fc9dde883cee84c3d9025e31da3aee2f2d38871121c6c4c8b761ee887
@@ -1,5 +1,5 @@
1
1
  module Sinatra
2
2
  module RoutingHelpers
3
- VERSION = "0.0.6"
3
+ VERSION = "0.0.7"
4
4
  end
5
5
  end
@@ -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? || back == '' || back == '/' || back == request.path_info
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.6
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-06-19 00:00:00.000000000 Z
11
+ date: 2014-07-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack