{"id":13879388,"url":"https://github.com/umbrellio/sequel_pretty_print","last_synced_at":"2025-06-25T19:35:03.424Z","repository":{"id":56895041,"uuid":"118340056","full_name":"umbrellio/sequel_pretty_print","owner":"umbrellio","description":"PrettyPrint support for Sequel models.","archived":false,"fork":false,"pushed_at":"2023-03-16T11:33:20.000Z","size":14,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-09T14:06:29.714Z","etag":null,"topics":["pretty-print","sequel"],"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/umbrellio.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}},"created_at":"2018-01-21T14:03:59.000Z","updated_at":"2024-04-14T15:06:20.000Z","dependencies_parsed_at":"2023-07-15T15:29:07.029Z","dependency_job_id":null,"html_url":"https://github.com/umbrellio/sequel_pretty_print","commit_stats":null,"previous_names":["tycooon/sequel_pretty_print"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umbrellio%2Fsequel_pretty_print","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umbrellio%2Fsequel_pretty_print/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umbrellio%2Fsequel_pretty_print/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umbrellio%2Fsequel_pretty_print/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/umbrellio","download_url":"https://codeload.github.com/umbrellio/sequel_pretty_print/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249638250,"owners_count":21304305,"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":["pretty-print","sequel"],"created_at":"2024-08-06T08:02:19.339Z","updated_at":"2025-04-19T07:33:28.238Z","avatar_url":"https://github.com/umbrellio.png","language":"Ruby","funding_links":[],"categories":["Ruby"],"sub_categories":[],"readme":"# sequel_pretty_print   [![Gem Version](https://badge.fury.io/rb/sequel_pretty_print.svg)](https://badge.fury.io/rb/sequel_pretty_print) ![Build Status](https://github.com/umbrellio/sequel_pretty_print/actions/workflows/ci.yml/badge.svg) [![Coverage Status](https://coveralls.io/repos/github/umbrellio/sequel_pretty_print/badge.svg?branch=master)](https://coveralls.io/github/umbrellio/sequel_pretty_print?branch=master)\n\n## Installation\nJust add `gem \"sequel_pretty_print\"` to your Gemfile.\n\n## Usage\n\n```ruby\n# Make all model subclasses use pretty_print (called before loading subclasses)\nSequel::Model.plugin :pretty_print\n\n# Make the Artist class use pretty_print\nArtist.plugin :pretty_print\n```\n\nThe pretty_print plugin provides models with a `pretty_print` implementation (see [Ruby PrettyPrint module](http://ruby-doc.org/stdlib/libdoc/prettyprint/rdoc/PrettyPrint.html)) that can be used by tools like Pry. Assuming that we have class `Album` with columns `id` and `name` this provides the following functionality in Pry:\n\n```ruby\n# Before:\nArtist.new\n# =\u003e #\u003cArtist @values={}\u003e\n\n# After:\nArtist.new\n# =\u003e #\u003cArtist:0x00007f8d1967f8b0 id: nil, name: nil\u003e\nArtist.new(name: \"Elvis\")\n# =\u003e #\u003cArtist:0x00007f8d1b413ef8 id: nil, name: \"Elvis\"\u003e\n```\n\nFor unsaved model instances, all column values are rendered. For retrieved instances, only the ones that were selected are shown. If there are some extra values (that are not represented in model columns) they are rendered after column values.\n\nThe display format is borrowed from ActiveRecord because I find it convenient.\n\n## License\nReleased under MIT License.\n\n## Authors\nCreated by Yuri Smirnov.\n\n\u003ca href=\"https://github.com/umbrellio/\"\u003e\n\u003cimg style=\"float: left;\" src=\"https://umbrellio.github.io/Umbrellio/supported_by_umbrellio.svg\" alt=\"Supported by Umbrellio\" width=\"439\" height=\"72\"\u003e\n\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fumbrellio%2Fsequel_pretty_print","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fumbrellio%2Fsequel_pretty_print","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fumbrellio%2Fsequel_pretty_print/lists"}