sinatra-routing-helpers 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/sinatra/routing-helpers/version.rb +1 -1
- data/lib/sinatra/routing-helpers.rb +6 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZGJkM2E4Yzg3N2Y2ZDE2NmZhYjEyYzI2NjcxMGVkNWRmOTFmZDBmMw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MmQzNmQ5MjQxNGYyYWNkNjBmNmFlZjU2ZGFlODIyMDBiN2RhYTM1ZQ==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NzZkOWEwNzgwZjM2NWNmYjExNDk2Y2Y3Yzc4MTc0ZTBkNzdjN2E5ZWRjYmIz
|
10
|
+
M2E5YjBkMTIwNDBhYzM4MGQ4YjYwMzFmZGE0NDU2Y2E4ZGRlYWZiZDJkZDBk
|
11
|
+
ZDgyNDc5NGZmZDgxYjA3NGFmODJhNDJlNGUyYzNiZTZjYmMyOWU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MGY5NDQ3YzYzMzIyNzliZGY4Y2RjMmVjYjI3ZGJmZmFlMDE1MDU2MDUzNzA5
|
14
|
+
Y2E3OTgwZWU0YjI1ZTdhOWZiYjMzNWEwODBlOGY2YjUyYTE4Y2VmMzBjODll
|
15
|
+
MDdlZTM2YjQ4ZDljYTQ4NTc5NmNlNmY4ZGY0ZTRkMTYyOWFhYjA=
|
@@ -1,3 +1,5 @@
|
|
1
|
+
require 'securerandom'
|
2
|
+
require 'uri'
|
1
3
|
require 'sinatra/base'
|
2
4
|
require 'sinatra/routing-helpers/version'
|
3
5
|
|
@@ -40,7 +42,7 @@ module Sinatra
|
|
40
42
|
end
|
41
43
|
|
42
44
|
def busted_url(headed_to)
|
43
|
-
url_with_params(headed_to, ensure:
|
45
|
+
url_with_params(headed_to, ensure: SecureRandom.hex(16))
|
44
46
|
end
|
45
47
|
|
46
48
|
# Returns the url of the referer along with the params posted to that page
|
@@ -72,7 +74,9 @@ module Sinatra
|
|
72
74
|
app.helpers HelperMethods
|
73
75
|
|
74
76
|
# block some things from the URL
|
75
|
-
app.set :params_blacklist, [
|
77
|
+
app.set :params_blacklist, [
|
78
|
+
:password, :_csrf, :ip
|
79
|
+
]
|
76
80
|
end
|
77
81
|
end
|
78
82
|
|
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.3
|
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-05-
|
11
|
+
date: 2013-05-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|