{"id":19865630,"url":"https://github.com/openfaas/ruby-http","last_synced_at":"2025-05-02T05:31:45.819Z","repository":{"id":55118939,"uuid":"150784092","full_name":"openfaas/ruby-http","owner":"openfaas","description":"A Ruby HTTP template for OpenFaaS","archived":false,"fork":false,"pushed_at":"2025-04-22T09:46:11.000Z","size":17,"stargazers_count":12,"open_issues_count":2,"forks_count":9,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-22T11:02:44.636Z","etag":null,"topics":["faas","k8s","openfaas","ruby","serverless"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/openfaas.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-09-28T19:08:24.000Z","updated_at":"2025-04-22T09:46:16.000Z","dependencies_parsed_at":"2025-04-23T05:01:02.619Z","dependency_job_id":null,"html_url":"https://github.com/openfaas/ruby-http","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openfaas%2Fruby-http","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openfaas%2Fruby-http/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openfaas%2Fruby-http/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openfaas%2Fruby-http/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/openfaas","download_url":"https://codeload.github.com/openfaas/ruby-http/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251992914,"owners_count":21677022,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["faas","k8s","openfaas","ruby","serverless"],"created_at":"2024-11-12T15:23:30.492Z","updated_at":"2025-05-02T05:31:40.810Z","avatar_url":"https://github.com/openfaas.png","language":"Shell","readme":"## ruby-http\n\n### Usage:\n\n```\nfaas template pull https://github.com/openfaas-incubator/ruby-http\nfaas new --lang ruby-http homepage\n```\n\n#### Example:\n\nEdit the `homepage/handler.rb` file to return some HTML:\n\n```ruby\nclass Handler\n  def run(body, headers)\n    status_code = 200 # Optional status code, defaults to 200\n    response_headers = {\"content-type\" =\u003e \"text/html\"}\n    body = \"\u003chtml\u003eHello world from the Ruby template\u003c/html\u003e\"\n\n    return body, response_headers, status_code\n  end\nend\n```\n\nAdd a gem to the `homepage/Gemfile` if you need additional dependencies.\n\nDeploy:\n\n```sh\nfaas-cli up -f homepage.yml\n```\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenfaas%2Fruby-http","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenfaas%2Fruby-http","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenfaas%2Fruby-http/lists"}