graftcode-context 0.0.4
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 +7 -0
- data/README.md +3 -0
- data/lib/graftcode/context/request_context.rb +27 -0
- data/lib/graftcode/context/version.rb +5 -0
- data/lib/graftcode/context.rb +2 -0
- metadata +49 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 98183235177d52c91daef3cfe77d3f11212b7005f24ba8ae79a3690eb959585d
|
|
4
|
+
data.tar.gz: a582a3ae27743309093dc0a808f873253d9fba22dfa5e88414ed75f625d4bca1
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 29817b2e3bb1b862ddbc007197233add3b5db219c2943a393c3c0a356dd931af37d4bcff85e34a3c04b7c538096c304f0968bff7755ffae24edc47a63e4d600f
|
|
7
|
+
data.tar.gz: d804dd9f26b985ddfda9d902a834500586cf9c1faed355b9fe35a94839ec6b7e2b0a8c0815d40151ed00e9025080b09ed312d2d16c1b4e69038eb4b95c28e33e
|
data/README.md
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
module Graftcode
|
|
2
|
+
module Context
|
|
3
|
+
class RequestContext
|
|
4
|
+
@current = nil
|
|
5
|
+
|
|
6
|
+
class << self
|
|
7
|
+
def current
|
|
8
|
+
@current ||= RequestContext.new
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
attr_reader :headers
|
|
13
|
+
|
|
14
|
+
def initialize
|
|
15
|
+
@headers = {}
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
def get_headers
|
|
19
|
+
@headers
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
def set_headers(headers)
|
|
23
|
+
@headers = headers.to_h
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: graftcode-context
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.0.4
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- GRAFTCODE S.A.
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: exe
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2026-06-03 00:00:00.000000000 Z
|
|
12
|
+
dependencies: []
|
|
13
|
+
description: This package provides context for Graftcode invocations
|
|
14
|
+
email:
|
|
15
|
+
- support@graftcode.com
|
|
16
|
+
executables: []
|
|
17
|
+
extensions: []
|
|
18
|
+
extra_rdoc_files: []
|
|
19
|
+
files:
|
|
20
|
+
- README.md
|
|
21
|
+
- lib/graftcode/context.rb
|
|
22
|
+
- lib/graftcode/context/request_context.rb
|
|
23
|
+
- lib/graftcode/context/version.rb
|
|
24
|
+
homepage: https://www.graftcode.com/
|
|
25
|
+
licenses:
|
|
26
|
+
- MIT
|
|
27
|
+
metadata:
|
|
28
|
+
homepage_uri: https://www.graftcode.com/
|
|
29
|
+
package_tags: Graftcode
|
|
30
|
+
post_install_message:
|
|
31
|
+
rdoc_options: []
|
|
32
|
+
require_paths:
|
|
33
|
+
- lib
|
|
34
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
35
|
+
requirements:
|
|
36
|
+
- - ">="
|
|
37
|
+
- !ruby/object:Gem::Version
|
|
38
|
+
version: 3.1.0
|
|
39
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
40
|
+
requirements:
|
|
41
|
+
- - ">="
|
|
42
|
+
- !ruby/object:Gem::Version
|
|
43
|
+
version: '0'
|
|
44
|
+
requirements: []
|
|
45
|
+
rubygems_version: 3.4.19
|
|
46
|
+
signing_key:
|
|
47
|
+
specification_version: 4
|
|
48
|
+
summary: This package provides context for Graftcode invocations
|
|
49
|
+
test_files: []
|