{"id":20329093,"url":"https://github.com/affix/faas-ruby","last_synced_at":"2025-08-31T01:36:59.653Z","repository":{"id":141496002,"uuid":"133720341","full_name":"affix/faas-ruby","owner":"affix","description":"A Collection of @OpenFaaS functions written in ruby","archived":false,"fork":false,"pushed_at":"2018-05-17T21:16:37.000Z","size":8,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-14T14:59:41.457Z","etag":null,"topics":["openfaas","openfaas-function","ruby","serverless"],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/affix.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2018-05-16T20:36:31.000Z","updated_at":"2023-10-24T21:22:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"f382e890-540b-4f12-acec-cb585fd8b71b","html_url":"https://github.com/affix/faas-ruby","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/affix%2Ffaas-ruby","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/affix%2Ffaas-ruby/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/affix%2Ffaas-ruby/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/affix%2Ffaas-ruby/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/affix","download_url":"https://codeload.github.com/affix/faas-ruby/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241844286,"owners_count":20029611,"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":["openfaas","openfaas-function","ruby","serverless"],"created_at":"2024-11-14T20:09:19.946Z","updated_at":"2025-03-04T11:47:39.217Z","avatar_url":"https://github.com/affix.png","language":"Ruby","readme":"OpenFaaS Ruby Funcions\n=======================\n\n### fass-ruby-jwt\n\nA ruby based JWT Validation plugin, Will return a decoded JWT Token.\n\nplease set the public_key environment variable to match your public key. Failure\nto do so will result in failed JWT validation.\n\nthe public_key environment variable should be a base64 encoded representation of\nyour RSA public key.\n\n### faas-ruby-register\n\nThus function uses a pure ruby mySQL gem to register users to a database, The schema\nfor this function is located in microblog/schemas. To register a user send a json Payload\n\nExample Payload :\n\n```json\n{\n  \"username\": \"auser\",\n  \"password\": \"TestPassword\",\n  \"email\": \"auser@test.email\",\n  \"first_name\": \"Test\",\n  \"last_name\": \"User\"\n}\n```\n\n\n### faas-ruby-login\n\nA pure ruby based mysql login function. Will return a JWT Token. Built using pure\nruby based mysql gem. This means we can keep our function container small and make\nno modifications to the function template from [OpenFaas](https://github.com/openfaas/templates).\n\nAs we return a valid JWT Token feel free to test it on [jwt.io](https://jwt.io) or\nuse the faas-ruby-jwt function.\n\nAt the moment this is just an example and should not be used in a production environment\npasswords are only hashed with SHA2 and has no salting.\n\nThe schema for this function is located in miroblog/schemas\n\nLogin Payload:\n\n```json\n{\"username\": \"affix\", \"password\": \"***************\"}\n```\n\nExample decoded Token:\n\n```json\n{\n  \"nbf\": 1526456031,\n  \"iat\": 1526456031,\n  \"exp\": 1526470441,\n  \"user\": {\n    \"email\": \"hidden@hidden.test\",\n    \"first_name\": \"Keiran\",\n    \"last_name\": \"Smith\",\n    \"username\": \"affix\"\n  }\n}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faffix%2Ffaas-ruby","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faffix%2Ffaas-ruby","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faffix%2Ffaas-ruby/lists"}