the_garage 2.8.1 → 2.8.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +9 -7
- data/app/assets/stylesheets/garage/{colorbox.scss → colorbox.css} +4 -8
- data/app/assets/stylesheets/garage/style.css +51 -0
- data/lib/garage/docs/engine.rb +0 -1
- data/lib/garage/tracer.rb +1 -1
- data/lib/garage/utils.rb +1 -1
- data/lib/garage/version.rb +1 -1
- metadata +5 -19
- data/app/assets/stylesheets/garage/style.scss +0 -59
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 87e84567628627fee3bffdaeefd236ffdf56006ee409bab69113c119d839b552
|
4
|
+
data.tar.gz: f8ae0df461e8fd8fa757ca678a65e1d35ebe39e7c756177050c1c8583bc2cdb7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a88ab893ae65a6ccbfaeba765f043543bcc7cca342c9809438b0a14c0f4b048383ebcee9d13f559814bacae2a1e91b72a687b8c94f29c6e13cc9b22da8462f16
|
7
|
+
data.tar.gz: bb5c3f9e6d070bd2eab8daa35c4b92809dcef6bfa21fc0c95cf0a1c698651b3d9eec72649d4f82c4c033bb67948d6adeae2b8453445a205b0f4474639bc40243
|
data/README.md
CHANGED
@@ -113,13 +113,15 @@ In `config/initializers/garage.rb`:
|
|
113
113
|
Garage.configure {}
|
114
114
|
|
115
115
|
# Optional
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
116
|
+
Rails.application.config.to_prepare do
|
117
|
+
Garage::TokenScope.configure do
|
118
|
+
register :public, desc: "accessing publicly available data" do
|
119
|
+
access :read, Recipe
|
120
|
+
end
|
121
|
+
|
122
|
+
register :read_post, desc: "reading blog post" do
|
123
|
+
access :read, Post
|
124
|
+
end
|
123
125
|
end
|
124
126
|
end
|
125
127
|
|
@@ -48,15 +48,11 @@
|
|
48
48
|
background: #000;
|
49
49
|
}
|
50
50
|
|
51
|
-
@mixin border-radius($size) {
|
52
|
-
-moz-border-radius: $size;
|
53
|
-
-webkit-border-radius: $size;
|
54
|
-
-o-border-radius: $size;
|
55
|
-
border-radius: $size;
|
56
|
-
}
|
57
|
-
|
58
51
|
#cboxLoadedContent {
|
59
|
-
|
52
|
+
-moz-border-radius: 10px;
|
53
|
+
-webkit-border-radius: 10px;
|
54
|
+
-o-border-radius: 10px;
|
55
|
+
border-radius: 10px;
|
60
56
|
border: 10px solid #fff;
|
61
57
|
background: #fff;
|
62
58
|
}
|
@@ -0,0 +1,51 @@
|
|
1
|
+
body {
|
2
|
+
padding-bottom: 100px;
|
3
|
+
}
|
4
|
+
|
5
|
+
.resources_controller.index_action h2,
|
6
|
+
.resources_controller.index_action h3,
|
7
|
+
.resources_controller.index_action h4 {
|
8
|
+
margin-top: 1.5em;
|
9
|
+
}
|
10
|
+
|
11
|
+
.resources_controller.show_action h2 {
|
12
|
+
font-size: 20px;
|
13
|
+
}
|
14
|
+
|
15
|
+
.resources_controller.show_action h3 {
|
16
|
+
font-size: 16px;
|
17
|
+
}
|
18
|
+
|
19
|
+
.resources_controller.show_action .document h2 {
|
20
|
+
margin-top: 4em;
|
21
|
+
padding-bottom: .5em;
|
22
|
+
border-bottom: solid 1px #eee;
|
23
|
+
}
|
24
|
+
|
25
|
+
.resources_controller.show_action .toc ul ul {
|
26
|
+
display: none;
|
27
|
+
}
|
28
|
+
|
29
|
+
.resources_controller.show_action .main h1 {
|
30
|
+
padding-bottom: .5em;
|
31
|
+
border-bottom: solid 1px #eee;
|
32
|
+
}
|
33
|
+
|
34
|
+
.resources_controller.console_action .main #oauth-dialog {
|
35
|
+
display: none;
|
36
|
+
}
|
37
|
+
|
38
|
+
.resources_controller.console_action .response {
|
39
|
+
margin-top: 4em;
|
40
|
+
}
|
41
|
+
|
42
|
+
.resources_controller .sidebar-nav > .nav > li > a {
|
43
|
+
padding-top: 2px;
|
44
|
+
padding-bottom: 2px;
|
45
|
+
}
|
46
|
+
|
47
|
+
.resources_controller code {
|
48
|
+
overflow: auto;
|
49
|
+
white-space: pre-wrap;
|
50
|
+
word-wrap: break-word;
|
51
|
+
}
|
data/lib/garage/docs/engine.rb
CHANGED
data/lib/garage/tracer.rb
CHANGED
@@ -16,7 +16,7 @@ module Garage
|
|
16
16
|
# Any tracers must have `.start` to start tracing context and:
|
17
17
|
# - `#inject_trace_context` to add tracing context to the given request header.
|
18
18
|
# - `#record_http_request` to record http request in tracer.
|
19
|
-
# - `#record_http_response` to
|
19
|
+
# - `#record_http_response` to record http response in tracer.
|
20
20
|
class NullTracer
|
21
21
|
def self.start(&block)
|
22
22
|
yield new
|
data/lib/garage/utils.rb
CHANGED
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.8.
|
4
|
+
version: 2.8.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tatsuhiko Miyagawa
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-11-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -122,20 +122,6 @@ dependencies:
|
|
122
122
|
- - ">="
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '0'
|
125
|
-
- !ruby/object:Gem::Dependency
|
126
|
-
name: sassc-rails
|
127
|
-
requirement: !ruby/object:Gem::Requirement
|
128
|
-
requirements:
|
129
|
-
- - ">="
|
130
|
-
- !ruby/object:Gem::Version
|
131
|
-
version: '0'
|
132
|
-
type: :runtime
|
133
|
-
prerelease: false
|
134
|
-
version_requirements: !ruby/object:Gem::Requirement
|
135
|
-
requirements:
|
136
|
-
- - ">="
|
137
|
-
- !ruby/object:Gem::Version
|
138
|
-
version: '0'
|
139
125
|
- !ruby/object:Gem::Dependency
|
140
126
|
name: http_accept_language
|
141
127
|
requirement: !ruby/object:Gem::Requirement
|
@@ -164,8 +150,8 @@ files:
|
|
164
150
|
- app/assets/javascripts/garage/docs/console.js
|
165
151
|
- app/assets/javascripts/garage/docs/jquery.colorbox.js
|
166
152
|
- app/assets/stylesheets/garage/application.css
|
167
|
-
- app/assets/stylesheets/garage/colorbox.
|
168
|
-
- app/assets/stylesheets/garage/style.
|
153
|
+
- app/assets/stylesheets/garage/colorbox.css
|
154
|
+
- app/assets/stylesheets/garage/style.css
|
169
155
|
- app/assets/stylesheets/vendor/bootstrap.min.css
|
170
156
|
- app/controllers/garage/application_controller.rb
|
171
157
|
- app/controllers/garage/docs/resources_controller.rb
|
@@ -242,7 +228,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
242
228
|
- !ruby/object:Gem::Version
|
243
229
|
version: '0'
|
244
230
|
requirements: []
|
245
|
-
rubygems_version: 3.
|
231
|
+
rubygems_version: 3.3.7
|
246
232
|
signing_key:
|
247
233
|
specification_version: 4
|
248
234
|
summary: Garage Platform Engine
|
@@ -1,59 +0,0 @@
|
|
1
|
-
body {
|
2
|
-
padding-bottom: 100px;
|
3
|
-
}
|
4
|
-
|
5
|
-
.resources_controller.index_action {
|
6
|
-
h2,
|
7
|
-
h3,
|
8
|
-
h4 {
|
9
|
-
margin-top: 1.5em;
|
10
|
-
}
|
11
|
-
}
|
12
|
-
|
13
|
-
.resources_controller.show_action {
|
14
|
-
h2 {
|
15
|
-
font-size: 20px;
|
16
|
-
}
|
17
|
-
|
18
|
-
h3 {
|
19
|
-
font-size: 16px;
|
20
|
-
}
|
21
|
-
|
22
|
-
.document h2 {
|
23
|
-
margin-top: 4em;
|
24
|
-
padding-bottom: .5em;
|
25
|
-
border-bottom: solid 1px #eee;
|
26
|
-
}
|
27
|
-
|
28
|
-
.toc ul ul {
|
29
|
-
display: none;
|
30
|
-
}
|
31
|
-
|
32
|
-
.main h1 {
|
33
|
-
padding-bottom: .5em;
|
34
|
-
border-bottom: solid 1px #eee;
|
35
|
-
}
|
36
|
-
}
|
37
|
-
|
38
|
-
.resources_controller.console_action {
|
39
|
-
.main #oauth-dialog {
|
40
|
-
display: none;
|
41
|
-
}
|
42
|
-
|
43
|
-
.response {
|
44
|
-
margin-top: 4em;
|
45
|
-
}
|
46
|
-
}
|
47
|
-
|
48
|
-
.resources_controller {
|
49
|
-
.sidebar-nav > .nav > li > a {
|
50
|
-
padding-top: 2px;
|
51
|
-
padding-bottom: 2px;
|
52
|
-
}
|
53
|
-
|
54
|
-
code {
|
55
|
-
overflow: auto;
|
56
|
-
white-space: pre-wrap;
|
57
|
-
word-wrap: break-word;
|
58
|
-
}
|
59
|
-
}
|