the_garage 2.4.2 → 2.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/views/layouts/garage/application.html.haml +1 -1
- data/lib/garage/docs/config.rb +12 -1
- data/lib/garage/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e1211670f82aab40b6acd9b1480b397483752a74
|
4
|
+
data.tar.gz: 48e3edd8a887e081a6ea9862e8d9a62e546a904a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 92c00a308d538ab61f4234b6a48653a4e6ab013272d698825fa5f31e77efed5cc68c8aa53276fa99185d5e4407837543c2bf09dddad64523b330caa1b8ea1388
|
7
|
+
data.tar.gz: 70065a82d6c445b6b7630a10d8dac6ec4be5e011e34675f9846f4ff3b1889551ee03a68277b6be1587ce9c21741c99d22980ecaddbd6d5c1d01ed0f72955ab0f
|
@@ -19,7 +19,7 @@
|
|
19
19
|
%li= link_to "Console", console_resources_path
|
20
20
|
%ul.nav.navbar-nav.navbar-right
|
21
21
|
- if _current_user
|
22
|
-
%li= link_to "Signout",
|
22
|
+
%li= link_to "Signout", Garage.configuration.docs.signout_path, method: Garage.configuration.docs.signout_request_method
|
23
23
|
|
24
24
|
.main
|
25
25
|
.container
|
data/lib/garage/docs/config.rb
CHANGED
@@ -3,7 +3,8 @@ module Garage
|
|
3
3
|
class Config
|
4
4
|
attr_accessor :document_root, :current_user_method, :authenticate,
|
5
5
|
:console_app_uid, :console_app_secret, :remote_server,
|
6
|
-
:docs_authorization_method, :docs_cache_enabled
|
6
|
+
:docs_authorization_method, :docs_cache_enabled,
|
7
|
+
:signout_path, :signout_request_method
|
7
8
|
|
8
9
|
def initialize
|
9
10
|
reset
|
@@ -17,6 +18,8 @@ module Garage
|
|
17
18
|
@remote_server = Proc.new {|request| "#{request.protocol}#{request.host_with_port}" }
|
18
19
|
@docs_authorization_method = nil
|
19
20
|
@docs_cache_enabled = true
|
21
|
+
@signout_path = '/signout'
|
22
|
+
@signout_request_method = :post
|
20
23
|
end
|
21
24
|
|
22
25
|
class Builder
|
@@ -55,6 +58,14 @@ module Garage
|
|
55
58
|
def docs_authorization_method(&block)
|
56
59
|
@config.docs_authorization_method = block
|
57
60
|
end
|
61
|
+
|
62
|
+
def signout_path=(value)
|
63
|
+
@config.signout_path = value
|
64
|
+
end
|
65
|
+
|
66
|
+
def signout_request_method=(value)
|
67
|
+
@config.signout_request_method = value.to_sym
|
68
|
+
end
|
58
69
|
end
|
59
70
|
end
|
60
71
|
end
|
data/lib/garage/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: the_garage
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.4.
|
4
|
+
version: 2.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tatsuhiko Miyagawa
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-09-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -271,7 +271,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
271
271
|
version: '0'
|
272
272
|
requirements: []
|
273
273
|
rubyforge_project:
|
274
|
-
rubygems_version: 2.
|
274
|
+
rubygems_version: 2.6.13
|
275
275
|
signing_key:
|
276
276
|
specification_version: 4
|
277
277
|
summary: Garage Platform Engine
|