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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NmViOWI0YzgwYzZmYjZiNjUyYmFmMzc0YjBmYmU4ZTllMmI1ZjJmZg==
4
+ ZGJkM2E4Yzg3N2Y2ZDE2NmZhYjEyYzI2NjcxMGVkNWRmOTFmZDBmMw==
5
5
  data.tar.gz: !binary |-
6
- NTVkNmVjMzY4YmI4OGJhY2IyMDcwOTRhOGJmOWMxZjUwYzFmMTFkNQ==
6
+ MmQzNmQ5MjQxNGYyYWNkNjBmNmFlZjU2ZGFlODIyMDBiN2RhYTM1ZQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- ODQyNTljM2UyZjgwMWQ3MTlkOGZhYzkxMTRkZDBiYjgzYWNlNjg4Mjg4MDRi
10
- OWMxMjA3MjA5MDY1ZDFkODFhMmI2MDhiNWFmYzRmMTYxZTE1YTM2ZmMyNTEz
11
- N2UzODQwZjRkYmQ0M2MyNGU1MWE2OGUwNTYwYmY1NjE5MDdiYTA=
9
+ NzZkOWEwNzgwZjM2NWNmYjExNDk2Y2Y3Yzc4MTc0ZTBkNzdjN2E5ZWRjYmIz
10
+ M2E5YjBkMTIwNDBhYzM4MGQ4YjYwMzFmZGE0NDU2Y2E4ZGRlYWZiZDJkZDBk
11
+ ZDgyNDc5NGZmZDgxYjA3NGFmODJhNDJlNGUyYzNiZTZjYmMyOWU=
12
12
  data.tar.gz: !binary |-
13
- NGE1YWI2YzhkODczOWRmZGE1MTM3MGQyYjdhZWY0NzNlMWYxMDZlYmFlY2E1
14
- MjJjNWZkYjg1ZDk3YTlmYjJiYzcyYzkxZDI2N2YwM2E2NjQ1Njk5Y2QzZWE4
15
- ZjhjYmViZjg0OGFiY2NhMTY5YjZkN2Q2NzI2N2NlYzQxOWI4N2U=
13
+ MGY5NDQ3YzYzMzIyNzliZGY4Y2RjMmVjYjI3ZGJmZmFlMDE1MDU2MDUzNzA5
14
+ Y2E3OTgwZWU0YjI1ZTdhOWZiYjMzNWEwODBlOGY2YjUyYTE4Y2VmMzBjODll
15
+ MDdlZTM2YjQ4ZDljYTQ4NTc5NmNlNmY4ZGY0ZTRkMTYyOWFhYjA=
@@ -1,5 +1,5 @@
1
1
  module Sinatra
2
2
  module RoutingHelpers
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
@@ -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: secure_random)
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, [:password, :_csrf, :ip]
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.2
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-06 00:00:00.000000000 Z
11
+ date: 2013-05-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack