{"id":18658363,"url":"https://github.com/shime/sinatrify","last_synced_at":"2025-04-11T19:32:19.013Z","repository":{"id":5399288,"uuid":"6588819","full_name":"shime/sinatrify","owner":"shime","description":"Make Rails controller actions look like Sinatra routes","archived":false,"fork":false,"pushed_at":"2013-05-31T16:53:06.000Z","size":143,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-25T17:47:48.454Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/shime.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"MIT-LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-11-08T00:21:42.000Z","updated_at":"2024-09-14T18:38:32.000Z","dependencies_parsed_at":"2022-07-06T15:34:26.036Z","dependency_job_id":null,"html_url":"https://github.com/shime/sinatrify","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/shime%2Fsinatrify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shime%2Fsinatrify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shime%2Fsinatrify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shime%2Fsinatrify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shime","download_url":"https://codeload.github.com/shime/sinatrify/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248467050,"owners_count":21108587,"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":[],"created_at":"2024-11-07T07:32:40.350Z","updated_at":"2025-04-11T19:32:18.633Z","avatar_url":"https://github.com/shime.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sinatrify\n\nMake Rails controllers look like Sinatra.\n\nHeavily inspired by Carl Lerche's \"[Astaire](https://github.com/carllerche/astaire)\".\n\nThe lambda inside Rails routes was taken from Jose Valim's [gist](https://gist.github.com/josevalim/3717973).\n\n```ruby\nclass ShowoffController \u003c ApplicationController\n    \n  include Sinatrify::DSL\n   \n  get \"/greet\" do\n    render :text =\u003e \"Hello!\"\n  end\nend\n```\n\n\n## Features\n\n* Dress your Rails controller in a classy Sinatra suit\n* High test coverage\n* Integration tests for every major Rails release\n\n## Installation\n\nAdd it to the Gemfile\n```ruby\n  gem \"sinatrify\"\n```\nBundle it with `bundle`.\n\nSinatrify doesn't include its DSL into controllers automatically.\nYou should do so manually for each controller, like in the above example.\n\nMount your sinatrified controller somewhere\n```ruby \n# in config/routes.rb\nmount lambda { |env| ShowoffController.call(env) } =\u003e \"/api\"\n```\n\n`lambda` is used here so your code gets reloaded in development.\n\nWorks on Rails \u003e3.0 only.\n\n## Examples\n\nCheck out the *example_app* folder.\n\n## Testing\n\nRun `rake test` for specs and `rake appraise` for features. \n\n## Contributing\n\nPull requests welcome!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshime%2Fsinatrify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshime%2Fsinatrify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshime%2Fsinatrify/lists"}