fdk 0.0.25 → 0.0.29
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fdk/context.rb +4 -4
- data/lib/fdk/function.rb +1 -0
- data/lib/fdk/listener.rb +1 -1
- data/lib/fdk/version.rb +1 -1
- metadata +28 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '0491fbc459d51c74d767ce5f609632608f1ac5531b157786542b7c94c347ff38'
|
4
|
+
data.tar.gz: 56b0f7f6224ee75819764cbd8e9c6d1f37c16735dc0db8c251484625d93d2ccc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 76c187a96f21ee64b1c595bfb1055f442227fe4497a837d8188b80849b0e99f07929138a0d5b5df9f1ad0f806e34dbf604d14367fd3076cf883d326645623828
|
7
|
+
data.tar.gz: 5e3b7ab2d2b37b85f993ab008492c792672c5b40f700684ebd1141cdbd2199d624c076e0667d479b4baaeb101f4d80ed4eb5e9c0df355af81f5c13e82c0d5c22
|
data/lib/fdk/context.rb
CHANGED
@@ -51,6 +51,8 @@ module FDK
|
|
51
51
|
# Represents outbound HTTP headers
|
52
52
|
class OutHeaders < InHeaders
|
53
53
|
def initialize(headers, key_in_fn)
|
54
|
+
headers["Fn-Fdk-Version"] = ["fdk-ruby/#{FDK::VERSION}"]
|
55
|
+
headers["Fn-Fdk-Runtime"] = ["ruby/#{RUBY_VERSION}"]
|
54
56
|
super(headers, key_in_fn)
|
55
57
|
end
|
56
58
|
|
@@ -80,8 +82,7 @@ module FDK
|
|
80
82
|
# Replace X with the upper cased name of the config variable you set.
|
81
83
|
# e.g. minio_secret=secret will be exposed via MINIO_SECRET env var.
|
82
84
|
|
83
|
-
attr_reader :headers
|
84
|
-
attr_reader :response_headers
|
85
|
+
attr_reader :headers, :response_headers
|
85
86
|
|
86
87
|
def initialize(headers_in, headers_out)
|
87
88
|
@headers = headers_in
|
@@ -121,8 +122,7 @@ module FDK
|
|
121
122
|
# Represents the context data (inbound && outbound)
|
122
123
|
# for the execution passed as HTTP headers
|
123
124
|
class HTTPContext
|
124
|
-
attr_reader :headers
|
125
|
-
attr_reader :response_headers
|
125
|
+
attr_reader :headers, :response_headers
|
126
126
|
|
127
127
|
def initialize(ctx)
|
128
128
|
fn_http_h_ = "fn-http-h-"
|
data/lib/fdk/function.rb
CHANGED
data/lib/fdk/listener.rb
CHANGED
data/lib/fdk/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.29
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Travis Reeder
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2021-
|
13
|
+
date: 2021-10-26 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: json
|
@@ -18,40 +18,40 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - "~>"
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: '2.
|
21
|
+
version: '2.5'
|
22
22
|
- - ">="
|
23
23
|
- !ruby/object:Gem::Version
|
24
|
-
version: 2.1
|
24
|
+
version: 2.5.1
|
25
25
|
type: :runtime
|
26
26
|
prerelease: false
|
27
27
|
version_requirements: !ruby/object:Gem::Requirement
|
28
28
|
requirements:
|
29
29
|
- - "~>"
|
30
30
|
- !ruby/object:Gem::Version
|
31
|
-
version: '2.
|
31
|
+
version: '2.5'
|
32
32
|
- - ">="
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version: 2.1
|
34
|
+
version: 2.5.1
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: webrick
|
37
37
|
requirement: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
39
|
- - "~>"
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version: '1.
|
41
|
+
version: '1.7'
|
42
42
|
- - ">="
|
43
43
|
- !ruby/object:Gem::Version
|
44
|
-
version: 1.
|
44
|
+
version: 1.7.0
|
45
45
|
type: :runtime
|
46
46
|
prerelease: false
|
47
47
|
version_requirements: !ruby/object:Gem::Requirement
|
48
48
|
requirements:
|
49
49
|
- - "~>"
|
50
50
|
- !ruby/object:Gem::Version
|
51
|
-
version: '1.
|
51
|
+
version: '1.7'
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 1.
|
54
|
+
version: 1.7.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: net_http_unix
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -61,7 +61,7 @@ dependencies:
|
|
61
61
|
version: '0.2'
|
62
62
|
- - ">="
|
63
63
|
- !ruby/object:Gem::Version
|
64
|
-
version: 0.2.
|
64
|
+
version: 0.2.2
|
65
65
|
type: :development
|
66
66
|
prerelease: false
|
67
67
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -71,21 +71,35 @@ dependencies:
|
|
71
71
|
version: '0.2'
|
72
72
|
- - ">="
|
73
73
|
- !ruby/object:Gem::Version
|
74
|
-
version: 0.2.
|
74
|
+
version: 0.2.2
|
75
75
|
- !ruby/object:Gem::Dependency
|
76
76
|
name: rubocop
|
77
77
|
requirement: !ruby/object:Gem::Requirement
|
78
78
|
requirements:
|
79
79
|
- - "~>"
|
80
80
|
- !ruby/object:Gem::Version
|
81
|
-
version: '
|
81
|
+
version: '1.21'
|
82
82
|
type: :development
|
83
83
|
prerelease: false
|
84
84
|
version_requirements: !ruby/object:Gem::Requirement
|
85
85
|
requirements:
|
86
86
|
- - "~>"
|
87
87
|
- !ruby/object:Gem::Version
|
88
|
-
version: '
|
88
|
+
version: '1.21'
|
89
|
+
- !ruby/object:Gem::Dependency
|
90
|
+
name: test-unit
|
91
|
+
requirement: !ruby/object:Gem::Requirement
|
92
|
+
requirements:
|
93
|
+
- - "~>"
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
version: '2.0'
|
96
|
+
type: :development
|
97
|
+
prerelease: false
|
98
|
+
version_requirements: !ruby/object:Gem::Requirement
|
99
|
+
requirements:
|
100
|
+
- - "~>"
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: '2.0'
|
89
103
|
description: Ruby Function Developer Kit for Fn Project.
|
90
104
|
email:
|
91
105
|
- treeder@gmail.com
|