{"id":22041924,"url":"https://github.com/eagerelk/ditty","last_synced_at":"2025-05-08T00:52:31.984Z","repository":{"id":62557247,"uuid":"98512745","full_name":"EagerELK/ditty","owner":"EagerELK","description":"Sinatra Based Web Application Framework","archived":false,"fork":false,"pushed_at":"2024-06-09T11:08:09.000Z","size":621,"stargazers_count":8,"open_issues_count":8,"forks_count":7,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-08T00:52:24.184Z","etag":null,"topics":["framework","opensource","ruby","sinatra"],"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/EagerELK.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":"License.txt","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":"2017-07-27T08:31:52.000Z","updated_at":"2024-06-09T11:08:12.000Z","dependencies_parsed_at":"2024-01-18T00:31:11.217Z","dependency_job_id":"6511c09b-44a8-43e1-bffe-e58823e09d29","html_url":"https://github.com/EagerELK/ditty","commit_stats":{"total_commits":504,"total_committers":6,"mean_commits":84.0,"dds":"0.26388888888888884","last_synced_commit":"4444060309af797c6b64a86990729085c693a32e"},"previous_names":[],"tags_count":25,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EagerELK%2Fditty","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EagerELK%2Fditty/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EagerELK%2Fditty/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EagerELK%2Fditty/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EagerELK","download_url":"https://codeload.github.com/EagerELK/ditty/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252978724,"owners_count":21834914,"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":["framework","opensource","ruby","sinatra"],"created_at":"2024-11-30T12:10:30.327Z","updated_at":"2025-05-08T00:52:31.946Z","avatar_url":"https://github.com/EagerELK.png","language":"Ruby","readme":"[![Build Status](https://app.travis-ci.com/EagerELK/ditty.svg?branch=master)](https://app.travis-ci.com/github/EagerELK/ditty)\n[![Code Climate](https://codeclimate.com/github/EagerELK/ditty/badges/gpa.svg)](https://codeclimate.com/github/EagerELK/ditty)\n[![Test Coverage](https://codeclimate.com/github/EagerELK/ditty/badges/coverage.svg)](https://codeclimate.com/github/EagerELK/ditty/coverage)\n[![Inline docs](http://inch-ci.org/github/EagerELK/ditty.svg?branch=master)](http://inch-ci.org/github/EagerELK/ditty)\n\n# Ditty\n\nDitty provides an extra layer of functionality on top of [Sinatra](http://sinatrarb.com/) to give structure and basic tools to an already great framework. You can get a new application, with user authentication and basic CRUD / REST interfaces, up and running in minutes.\n\n## Installation\n\nAdd these lines to your application's Gemfile:\n\n```ruby\ngem 'ditty'\ngem 'sqlite3'\n```\n\nYou can replace `sqlite3` with a DB adapter of your choice.\n\nAnd then execute:\n\n```bash\nbundle install\n```\n\nOr install it yourself as:\n\n```bash\ngem install ditty\n```\n\n## Usage\n\n1. Add the components to your rack config file. See the included [`config.ru`](https://github.com/EagerELK/ditty/blob/master/config.ru) file for an example setup\n2. Set the DB connection as the `DATABASE_URL` ENV variable: `DATABASE_URL=sqlite://development.db`\n3. Prepare the Ditty folder: `bundle exec ditty prep`\n3. Run the Ditty migrations: `bundle exec ditty migrate`\n4. Run the Ditty server: `bundle exec ditty server`\n\n### Components\n\nThe application can now be further extended by creating [components](https://github.com/EagerELK/ditty/wiki/Creating-a-Component).\n\n### Rubocop Cops\n\nDitty provides a number of [Rubocop](https://github.com/rubocop-hq/rubocop) cops\nto ensure that the Ditty framework is used correctly. Enable this by adding the\nfollowing to your `.rubocop.yml` file:\n\n```yaml\nrequire: ditty/rubocop\n```\n\nYou can run Ditty specific cops as follows:\n\n```bash\nbundle exec rubocop --only Ditty\n```\n\nAdding the `-a` flag to the invocation will automatically fix some of the issues\nfor you, but, as always, ensure you have a working copy of your code before\nrunning this.\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/EagerELK/ditty.\n\n## License\n\nThe Ditty gem is an Open Source project licensed under the terms of\nthe MIT license.  Please see [MIT license](License.txt)\nfor license text.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feagerelk%2Fditty","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feagerelk%2Fditty","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feagerelk%2Fditty/lists"}