Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dependencies Updates #49

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions fdk.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ Gem::Specification.new do |s|
s.license = "Apache-2.0"
s.required_ruby_version = ">= 2.5"

s.add_runtime_dependency "json", "~> 2.1", ">= 2.1.0"
s.add_runtime_dependency "webrick", "~> 1.4", ">= 1.4.2"
s.add_development_dependency "net_http_unix", "~> 0.2", ">= 0.2.1"
s.add_development_dependency "rubocop", "~> 0.60"
s.add_runtime_dependency "json", "~> 2.5", ">= 2.5.1"
s.add_runtime_dependency "webrick", "~> 1.7", ">= 1.7.0"
s.add_development_dependency "net_http_unix", "~> 0.2", ">= 0.2.2"
s.add_development_dependency "rubocop", "~> 1.21"

s.files = Dir["Rakefile", "{bin,lib,man,test,spec}/**/*", "README*", "LICENSE*"] & `git ls-files -z`.split("\0")
end
6 changes: 2 additions & 4 deletions lib/fdk/context.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,7 @@ class Context
# Replace X with the upper cased name of the config variable you set.
# e.g. minio_secret=secret will be exposed via MINIO_SECRET env var.

attr_reader :headers
attr_reader :response_headers
attr_reader :headers, :response_headers

def initialize(headers_in, headers_out)
@headers = headers_in
Expand Down Expand Up @@ -123,8 +122,7 @@ def http_context
# Represents the context data (inbound && outbound)
# for the execution passed as HTTP headers
class HTTPContext
attr_reader :headers
attr_reader :response_headers
attr_reader :headers, :response_headers

def initialize(ctx)
fn_http_h_ = "fn-http-h-"
Expand Down
1 change: 1 addition & 0 deletions lib/fdk/function.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ module FDK
# Function represents a function function or lambda
class Function
attr_reader :format, :function

def initialize(function:, format:)
raise "'#{format}' not supported in Ruby FDK." unless format == "http-stream"

Expand Down
2 changes: 1 addition & 1 deletion lib/fdk/listener.rb
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def socket_path
end

def private_socket_path
socket_path + ".private"
"#{socket_path}.private"
end

def log_frame_header(headers)
Expand Down