forest_admin_rpc_agent 1.23.0 → 1.23.1
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 +4 -4
- data/lib/forest_admin_rpc_agent/routes/schema.rb +7 -22
- data/lib/forest_admin_rpc_agent/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d841358efdebca724970e354de2654890fa827a83fc8b678b5928d7663d0abdb
|
|
4
|
+
data.tar.gz: b14dc4aba5ee7a936bd3846d9c6d7e2c4713163d3cad151c4a0c57a1bb9c6edc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 591826aaba5b2e1c8dfc038ccedbcf252a3dc331077f04e8e73b23707eec1fc3118fc95057ae15bac050b41f8b3be9d0101381cf1f22fda6f4fb9e0e5d7c91b4
|
|
7
|
+
data.tar.gz: 8b68310281aca918ec0db5e1106b7ea6c59bd00c4852c677451c50a184055dd5fafc6f39323913225dd90b2af721727b4056d37c2d8ad40bccd1a9ddd3179e1f
|
|
@@ -23,7 +23,7 @@ module ForestAdminRpcAgent
|
|
|
23
23
|
'ETag matches, returning 304 Not Modified'
|
|
24
24
|
)
|
|
25
25
|
return { status: HTTP_NOT_MODIFIED, content: nil,
|
|
26
|
-
headers: { 'ETag' =>
|
|
26
|
+
headers: { 'ETag' => agent.cached_schema_hash } }
|
|
27
27
|
end
|
|
28
28
|
|
|
29
29
|
# Get schema from cache (or build from datasource if not cached)
|
|
@@ -34,7 +34,7 @@ module ForestAdminRpcAgent
|
|
|
34
34
|
{
|
|
35
35
|
status: HTTP_OK,
|
|
36
36
|
content: schema,
|
|
37
|
-
headers: { 'ETag' =>
|
|
37
|
+
headers: { 'ETag' => etag }
|
|
38
38
|
}
|
|
39
39
|
end
|
|
40
40
|
|
|
@@ -45,26 +45,11 @@ module ForestAdminRpcAgent
|
|
|
45
45
|
return nil unless request
|
|
46
46
|
|
|
47
47
|
# Get If-None-Match header (works for both Rails and Sinatra)
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
# Strip quotes from ETag value if present
|
|
55
|
-
unquote_etag(etag)
|
|
56
|
-
end
|
|
57
|
-
|
|
58
|
-
def quote_etag(etag)
|
|
59
|
-
return nil unless etag
|
|
60
|
-
|
|
61
|
-
%("#{etag}")
|
|
62
|
-
end
|
|
63
|
-
|
|
64
|
-
def unquote_etag(etag)
|
|
65
|
-
return nil unless etag
|
|
66
|
-
|
|
67
|
-
etag.gsub(/\A"?|"?\z/, '')
|
|
48
|
+
if request.respond_to?(:get_header)
|
|
49
|
+
request.get_header('HTTP_IF_NONE_MATCH')
|
|
50
|
+
elsif request.respond_to?(:env)
|
|
51
|
+
request.env['HTTP_IF_NONE_MATCH']
|
|
52
|
+
end
|
|
68
53
|
end
|
|
69
54
|
end
|
|
70
55
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: forest_admin_rpc_agent
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.23.
|
|
4
|
+
version: 1.23.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Matthieu
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2026-01-
|
|
12
|
+
date: 2026-01-28 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: base64
|