functions_framework 0.2.0 → 0.2.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: d3591e5ab03b6e29d0a7f9b9c16d4d470138fbf0ddebec875e80f5f1df8a9767
4
- data.tar.gz: 50ed98f079c42638fcb3328bab3d1388e323613ea310842bcd3d887b1a96fdfb
3
+ metadata.gz: 921150d16d50802b1fa0e5f4f6fb5d3c71aee1dd87e8242ce2e0b63dc8c6320b
4
+ data.tar.gz: 9b2fd4967811fc1225319102a6aadb56497d90241f6678933843a88299ea926c
5
5
  SHA512:
6
- metadata.gz: 87a9631c32f05b5e5831f50e9dd7235351fd6556fb22474d655a916ceacf1d57e1d25a60369c31aa3790a9667cafec02dafad2ccf9c98499a681badf2516d13e
7
- data.tar.gz: 755d890b0684d2af126306c3b7f7f2e5d3b1392b0fb88e325b45eba6c85d9d6cc28e320e20a8a9d716244e52e63fee839ab02ec56014873c62dd77f3fe4ea37c
6
+ metadata.gz: 90ea5d1622b446eb02a84a79717c92b47fadc6b5420f153acd48d0b01716a44dd6dc6cbea6851f446fde70e5a53522569b95cde61c5807563dee5b0bc4a6b50c
7
+ data.tar.gz: 0dd19692bfaa5566c4da5151d78c9d233b9241089d186d5461ef13e83529ca9de7f04e8736fbae70fd361a1fc2b605c03947d23867d28c2c9f80995d9cf60d06
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ### v0.2.1 / 2020-06-25
4
+
5
+ * The `--signature-type` check recognizes the legacy `event` type.
6
+
3
7
  ### v0.2.0 / 2020-06-24
4
8
 
5
9
  Significant changes:
@@ -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
- @signature_type == "cloudevent" && function.type == :cloud_event
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|
@@ -17,5 +17,5 @@ module FunctionsFramework
17
17
  # Version of the Ruby Functions Framework
18
18
  # @return [String]
19
19
  #
20
- VERSION = "0.2.0".freeze
20
+ VERSION = "0.2.1".freeze
21
21
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: functions_framework
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Azuma