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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2e3bbd08c2801e8b98ab2a0ed065ec4833c1c76aa9557b80e789518b7536ebe9
4
- data.tar.gz: aaad97f4e9a0ce65fca6ca275b65566cc080bfa71c727c3c801b95b7254518b4
3
+ metadata.gz: '0491fbc459d51c74d767ce5f609632608f1ac5531b157786542b7c94c347ff38'
4
+ data.tar.gz: 56b0f7f6224ee75819764cbd8e9c6d1f37c16735dc0db8c251484625d93d2ccc
5
5
  SHA512:
6
- metadata.gz: 044ec13b6a88dd96f261a669171fbc9e86c7fbe414b76c32b01580387709c3b5b0ec18c0dfc242114207a61c401c0403c205da4c8d243cff11f6a073a254f0e2
7
- data.tar.gz: 876ddbff791b328e57985b1147caa5e1c4fca063e2ef89d60f7d71595f1c209086e37109caee4ed3bfeb41a3e6aca830de8b6aa1449abbe6d8a00bc838848396
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
@@ -20,6 +20,7 @@ module FDK
20
20
  # Function represents a function function or lambda
21
21
  class Function
22
22
  attr_reader :format, :function
23
+
23
24
  def initialize(function:, format:)
24
25
  raise "'#{format}' not supported in Ruby FDK." unless format == "http-stream"
25
26
 
data/lib/fdk/listener.rb CHANGED
@@ -89,7 +89,7 @@ module FDK
89
89
  end
90
90
 
91
91
  def private_socket_path
92
- socket_path + ".private"
92
+ "#{socket_path}.private"
93
93
  end
94
94
 
95
95
  def log_frame_header(headers)
data/lib/fdk/version.rb CHANGED
@@ -17,5 +17,5 @@
17
17
  #
18
18
 
19
19
  module FDK
20
- VERSION = "0.0.25"
20
+ VERSION = "0.0.29"
21
21
  end
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.25
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-08-20 00:00:00.000000000 Z
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.1'
21
+ version: '2.5'
22
22
  - - ">="
23
23
  - !ruby/object:Gem::Version
24
- version: 2.1.0
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.1'
31
+ version: '2.5'
32
32
  - - ">="
33
33
  - !ruby/object:Gem::Version
34
- version: 2.1.0
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.4'
41
+ version: '1.7'
42
42
  - - ">="
43
43
  - !ruby/object:Gem::Version
44
- version: 1.4.2
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.4'
51
+ version: '1.7'
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: 1.4.2
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.1
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.1
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: '0.60'
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: '0.60'
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