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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 281746bde0e28c1eeedba1e49b856eea8c708e08c1eb6c7f6e4ae3525b064798
4
- data.tar.gz: 7b0b539680aca45fd32e5e3b9ec2238fa46d074cb4f85eb13b10fdd36cc1440e
3
+ metadata.gz: d841358efdebca724970e354de2654890fa827a83fc8b678b5928d7663d0abdb
4
+ data.tar.gz: b14dc4aba5ee7a936bd3846d9c6d7e2c4713163d3cad151c4a0c57a1bb9c6edc
5
5
  SHA512:
6
- metadata.gz: 1bc9659f90752406775d2cb4501be57c5ec24b134d9dcbad1386d0ac3c07435a3e332f37ef1213ba4060dd3af85b2754d8bd8e57b9cd00dcdd9748162753e762
7
- data.tar.gz: ba50623fff5d14f03c4a4d43ff10def285eb9a73cabd4d1424f8495677bf5d6566a291aac3c124e4559d71013a7b88a801a66c56645018727dd51ab7f5a5c322
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' => quote_etag(agent.cached_schema_hash) } }
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' => quote_etag(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
- etag = 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
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
@@ -1,3 +1,3 @@
1
1
  module ForestAdminRpcAgent
2
- VERSION = "1.23.0"
2
+ VERSION = "1.23.1"
3
3
  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.0
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-26 00:00:00.000000000 Z
12
+ date: 2026-01-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: base64