the_garage 2.8.1 → 2.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b48c2510bfd1fe5926e9fdd4adac78374bb9ed83b46db0b9202e1b6028645974
4
- data.tar.gz: 1d92f344d618e25f1eef2d7e7778edaa4f3e2a0e1f236a19d476b19a893fc012
3
+ metadata.gz: 87e84567628627fee3bffdaeefd236ffdf56006ee409bab69113c119d839b552
4
+ data.tar.gz: f8ae0df461e8fd8fa757ca678a65e1d35ebe39e7c756177050c1c8583bc2cdb7
5
5
  SHA512:
6
- metadata.gz: 063d9f1cdf9744ec2fb4d18f6697e44f390bccc259a8c4ff36839992732e4578916ef1691949c8dc8f67872de161bd97e12c049dbd69b81fd5b5e599c8f4faae
7
- data.tar.gz: e76b35e33c9332afbe6ff7b16ec6b96c23e41c9bd85605e58e2532729e4389ca6090599a32ad67c9e45d8e6c03fade453d8d3e861f87445be45ae30c0b5f53cb
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
- Garage::TokenScope.configure do
117
- register :public, desc: "accessing publicly available data" do
118
- access :read, Recipe
119
- end
120
-
121
- register :read_post, desc: "reading blog post" do
122
- access :read, Post
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
- @include border-radius(10px);
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
+ }
@@ -1,6 +1,5 @@
1
1
  require "rails"
2
2
  require "haml"
3
- require "sassc-rails"
4
3
  require "redcarpet"
5
4
 
6
5
  require "garage/docs/anchor_building"
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 recrod http response in tracer.
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
@@ -16,7 +16,7 @@ module Garage
16
16
  end
17
17
 
18
18
  def fuzzy_parse(date)
19
- if date.is_a?(Numeric) || /^\d+$/ === date
19
+ if date.is_a?(Numeric) || /\A\d+\z/ === date
20
20
  Time.zone.at(date.to_i)
21
21
  else
22
22
  Time.zone.parse(date)
@@ -1,3 +1,3 @@
1
1
  module Garage
2
- VERSION = '2.8.1'
2
+ VERSION = '2.8.2'
3
3
  end
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.1
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-04-05 00:00:00.000000000 Z
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.scss
168
- - app/assets/stylesheets/garage/style.scss
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.1.4
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
- }