cachafla-yard-sinatra 0.6.1 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/yard/sinatra.rb +1 -1
- data/spec/example_extension.rb +7 -0
- metadata +4 -4
data/lib/yard/sinatra.rb
CHANGED
@@ -118,7 +118,7 @@ module YARD
|
|
118
118
|
class RouteHandler < Ruby::Legacy::Base
|
119
119
|
VERBS = %w[get head post put delete not_found]
|
120
120
|
include AbstractRouteHandler
|
121
|
-
handles /\A(.*\.){0,1}(get|post|put|delete|head|not_found)[\s\(]
|
121
|
+
handles /\A(.*\.){0,1}(get|post|put|delete|head|not_found)[\s\(].*(do|\{)/m
|
122
122
|
|
123
123
|
def http_verb
|
124
124
|
method_call_string = ''
|
data/spec/example_extension.rb
CHANGED
@@ -3,6 +3,13 @@ require 'sinatra/base'
|
|
3
3
|
module Sinatra
|
4
4
|
module SessionAuth
|
5
5
|
|
6
|
+
# Deletes session for the client
|
7
|
+
#
|
8
|
+
# @param user_id
|
9
|
+
def delete(user_id)
|
10
|
+
delete(user_id)
|
11
|
+
end
|
12
|
+
|
6
13
|
def self.registered(app)
|
7
14
|
app.set :username, 'frank'
|
8
15
|
app.set :password, 'changeme'
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cachafla-yard-sinatra
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 3
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 6
|
9
|
-
-
|
10
|
-
version: 0.6.
|
9
|
+
- 2
|
10
|
+
version: 0.6.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Konstantin Haase
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2011-02-
|
19
|
+
date: 2011-02-17 00:00:00 -08:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|