{"id":15032809,"url":"https://github.com/ruby/prettyprint","last_synced_at":"2025-03-17T14:12:21.041Z","repository":{"id":40367642,"uuid":"266090914","full_name":"ruby/prettyprint","owner":"ruby","description":"This class implements a pretty printing algorithm. ","archived":false,"fork":false,"pushed_at":"2024-05-05T23:19:44.000Z","size":63,"stargazers_count":13,"open_issues_count":5,"forks_count":7,"subscribers_count":30,"default_branch":"master","last_synced_at":"2025-02-25T15:49:01.852Z","etag":null,"topics":["ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ruby.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":"2020-05-22T11:11:21.000Z","updated_at":"2025-02-02T02:49:25.000Z","dependencies_parsed_at":"2024-06-19T01:55:08.155Z","dependency_job_id":"a6c2e5fd-832a-42df-a0c0-5ca79dd82110","html_url":"https://github.com/ruby/prettyprint","commit_stats":{"total_commits":44,"total_committers":10,"mean_commits":4.4,"dds":0.5227272727272727,"last_synced_commit":"3765248f13fd33c447e61ea13b49485ff1b9625e"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Fprettyprint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Fprettyprint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Fprettyprint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Fprettyprint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ruby","download_url":"https://codeload.github.com/ruby/prettyprint/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241960880,"owners_count":20049343,"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":["ruby"],"created_at":"2024-09-24T20:19:29.356Z","updated_at":"2025-03-05T04:14:06.831Z","avatar_url":"https://github.com/ruby.png","language":"Ruby","readme":"# PrettyPrint\n\nThis class implements a pretty printing algorithm. It finds line breaks and\nnice indentations for grouped structure.\n\nBy default, the class assumes that primitive elements are strings and each\nbyte in the strings have single column in width. But it can be used for\nother situations by giving suitable arguments for some methods:\n\n* newline object and space generation block for PrettyPrint.new\n* optional width argument for PrettyPrint#text\n* PrettyPrint#breakable\n\nThere are several candidate uses:\n\n* text formatting using proportional fonts\n* multibyte characters which has columns different to number of bytes\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'prettyprint'\n```\n\nAnd then execute:\n\n    $ bundle install\n\nOr install it yourself as:\n\n    $ gem install prettyprint\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` 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## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/ruby/prettyprint.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruby%2Fprettyprint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fruby%2Fprettyprint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruby%2Fprettyprint/lists"}