sinatra-routing-helpers 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- ZDc1NmU2YTE1MWE2NTliNGY4ZmViNzhiNThmOGYxZTMzMjQxM2Y4YQ==
5
- data.tar.gz: !binary |-
6
- YWY1MGE2NWNhMzFhYjlkZGJhOTk1NWVkZGM0YTljNzZjNzQ3YzExYg==
7
- !binary "U0hBNTEy":
8
- metadata.gz: !binary |-
9
- ODA4YjIwMzYxMDMwY2RhYTMyNGM1YzVkN2E1MTY4YjhmM2QyYzk0NWE4YjM2
10
- MzZjNWMxMTU0ZDJiYzY1OTE1ZDViOTRlMTQyYThlNjU1ZjM4YjdiZjExODFm
11
- NWU0NmQ5MGFmYTRhNTM4MjgzYTU3MzNhZDJlM2YyYzg5NTc4MjM=
12
- data.tar.gz: !binary |-
13
- Mjc0MGFjNzVkMDI3NDE4MTU0NDE3YTk3YTI5OTM1ZWQ3MDMxOGExMDZkYzkx
14
- ZmI5MDE0NDVjNzc2NDY1MmUwNDBhMWViNTZiMzc4NGZkNGY1ODFiN2IwOWI1
15
- OTIyYmM5YjM2NjBlYzViMjI5Zjk5NzgxODNhZWIyYTNkMTIyMjQ=
2
+ SHA1:
3
+ metadata.gz: 5d90f1cd4ab552f74155ec43c7809856d24114f6
4
+ data.tar.gz: 6e9265af4edf8e68bf61ed39d31c1ebd54c629c2
5
+ SHA512:
6
+ metadata.gz: f7df4aae16d0dc40b564c18593183aef55f8e946dc3044bc421d749c538704768bb6f717b4b65a072ec4f384116e8a43fe11ee02f1ad4ce831e80811317b3358
7
+ data.tar.gz: 4e42ad784a9da6251046f6b0d8c8a5be8b442e003f3ef4e1deb40755ed6ecca4a2ea9c1ec2b6a9d36bdb1bd27ff078d8b63bf66128a07509cbbb208b961d56dc
@@ -1,5 +1,5 @@
1
1
  module Sinatra
2
2
  module RoutingHelpers
3
- VERSION = "0.0.5"
3
+ VERSION = "0.0.6"
4
4
  end
5
5
  end
@@ -28,9 +28,9 @@ module Sinatra
28
28
  if route.class == String
29
29
  route == path_info
30
30
  elsif route.class == Array
31
- route.map do |individual_route|
31
+ route.any? do |individual_route|
32
32
  path_info == individual_route
33
- end.include?(true)
33
+ end
34
34
  else
35
35
  false
36
36
  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 == '/' || back == request.path_info
74
+ if back.nil? || back == '' || back == '/' || back == request.path_info
75
75
  new_path
76
76
  else
77
77
  back
metadata CHANGED
@@ -1,27 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sinatra-routing-helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Evan Lecklider
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-19 00:00:00.000000000 Z
11
+ date: 2014-06-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ! '>='
17
+ - - '>='
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ! '>='
24
+ - - '>='
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
@@ -56,14 +56,14 @@ dependencies:
56
56
  name: rake
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ! '>='
59
+ - - '>='
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ! '>='
66
+ - - '>='
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  description: Some simple helpers for routing and redirection.
@@ -91,17 +91,17 @@ require_paths:
91
91
  - lib
92
92
  required_ruby_version: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ! '>='
94
+ - - '>='
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  required_rubygems_version: !ruby/object:Gem::Requirement
98
98
  requirements:
99
- - - ! '>='
99
+ - - '>='
100
100
  - !ruby/object:Gem::Version
101
101
  version: '0'
102
102
  requirements: []
103
103
  rubyforge_project:
104
- rubygems_version: 2.0.6
104
+ rubygems_version: 2.3.0
105
105
  signing_key:
106
106
  specification_version: 4
107
107
  summary: Some simple helpers for routing and redirection.