functions_framework 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/docs/running-a-functions-server.md +1 -1
- data/lib/functions_framework/cli.rb +1 -1
- data/lib/functions_framework/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 921150d16d50802b1fa0e5f4f6fb5d3c71aee1dd87e8242ce2e0b63dc8c6320b
|
4
|
+
data.tar.gz: 9b2fd4967811fc1225319102a6aadb56497d90241f6678933843a88299ea926c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 90ea5d1622b446eb02a84a79717c92b47fadc6b5420f153acd48d0b01716a44dd6dc6cbea6851f446fde70e5a53522569b95cde61c5807563dee5b0bc4a6b50c
|
7
|
+
data.tar.gz: 0dd19692bfaa5566c4da5151d78c9d233b9241089d186d5461ef13e83529ca9de7f04e8736fbae70fd361a1fc2b605c03947d23867d28c2c9f80995d9cf60d06
|
data/CHANGELOG.md
CHANGED
@@ -101,7 +101,7 @@ Command-line flag | Environment variable | Description
|
|
101
101
|
`--port` | `PORT` | The port on which the Functions Framework listens for requests. Default: `8080`.
|
102
102
|
`--target` | `FUNCTION_TARGET` | The name of the exported function to be invoked in response to requests. Default: `function`.
|
103
103
|
`--source` | `FUNCTION_SOURCE` | The path to the file containing your function. Default: `app.rb` (in the current working directory).
|
104
|
-
`--signature-type` | `FUNCTION_SIGNATURE_TYPE` | Verifies that the function has the expected signature. Allowed values: `http` or `cloudevent`.
|
104
|
+
`--signature-type` | `FUNCTION_SIGNATURE_TYPE` | Verifies that the function has the expected signature. Allowed values: `http`, `event`, or `cloudevent`.
|
105
105
|
`--environment` | `RACK_ENV` | Sets the Rack environment.
|
106
106
|
`--bind` | `FUNCTION_BIND_ADDR` | Binds to the given address. Default: `0.0.0.0`.
|
107
107
|
`--min-threads` | `FUNCTION_MIN_THREADS` | Sets the minimum thread pool size, overriding Puma's default.
|
@@ -137,7 +137,7 @@ module FunctionsFramework
|
|
137
137
|
raise "Undefined function: #{@target.inspect}" if function.nil?
|
138
138
|
unless @signature_type.nil? ||
|
139
139
|
@signature_type == "http" && function.type == :http ||
|
140
|
-
|
140
|
+
["cloudevent", "event"].include?(@signature_type) && function.type == :cloud_event
|
141
141
|
raise "Function #{@target.inspect} does not match type #{@signature_type}"
|
142
142
|
end
|
143
143
|
::FunctionsFramework.start function do |config|
|