Skip to content

Commit

Permalink
Merge pull request #76 from architect/fixruby
Browse files Browse the repository at this point in the history
fixes ruby
  • Loading branch information
brianleroux authored Jul 11, 2024
2 parents 0a1f921 + 21f9c66 commit f65036a
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/write-functions/templates/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export async function handler (event: object) {
}`

let ruby = `# ${learn}
def handler(event)
def handler(event:, context:)
puts event
true
end`
Expand Down
2 changes: 1 addition & 1 deletion src/write-functions/templates/http.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ exports.handler = async function http (req) {${nodeBody(path)}}`,
}

let ruby = path => `# ${learn}
def handler(req, context)
def handler(event:, context:)
{
statusCode: 200,
headers: {
Expand Down
2 changes: 1 addition & 1 deletion src/write-functions/templates/queues.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export async function handler (event: object) {
}`

let ruby = `# ${learn}
def handler(event)
def handler(event:, context:)
puts event
true
end`
Expand Down
2 changes: 1 addition & 1 deletion src/write-functions/templates/scheduled.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export async function handler (event: object) {
}`

let ruby = `# ${learn}
def handler(event)
def handler(event:, context:)
puts event
true
end`
Expand Down
2 changes: 1 addition & 1 deletion src/write-functions/templates/tables-streams.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export async function handler (event: object) {
}`

let ruby = `# ${learn}
def handler(event)
def handler(event:, context:)
puts event
true
end`
Expand Down
2 changes: 1 addition & 1 deletion src/write-functions/templates/ws.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export async function handler (event: object) {
}`

let ruby = `# ${learn}
def handler(event)
def handler(event:, context:)
puts event
{statusCode: 200}
end`
Expand Down

0 comments on commit f65036a

Please sign in to comment.