{"id":18920058,"url":"https://github.com/gongo/turnip_formatter","last_synced_at":"2025-10-24T16:55:09.055Z","repository":{"id":8042556,"uuid":"9452879","full_name":"gongo/turnip_formatter","owner":"gongo","description":"A pretty formatter for Turnip","archived":false,"fork":false,"pushed_at":"2023-09-06T15:56:14.000Z","size":2012,"stargazers_count":35,"open_issues_count":4,"forks_count":25,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-09-19T15:56:54.733Z","etag":null,"topics":["rspec-formatter","turnip"],"latest_commit_sha":null,"homepage":"http://gongo.hatenablog.com/entry/2013/04/18/203426","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/gongo.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":"2013-04-15T16:18:46.000Z","updated_at":"2024-12-14T14:21:43.000Z","dependencies_parsed_at":"2024-06-18T21:35:31.595Z","dependency_job_id":"9a04ac33-4e7e-46ef-a3c4-a80c66930f28","html_url":"https://github.com/gongo/turnip_formatter","commit_stats":{"total_commits":290,"total_committers":9,"mean_commits":32.22222222222222,"dds":0.05862068965517242,"last_synced_commit":"1dbb9b8442ac59999ea6954629fdeb38eb5853a9"},"previous_names":[],"tags_count":41,"template":false,"template_full_name":null,"purl":"pkg:github/gongo/turnip_formatter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gongo%2Fturnip_formatter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gongo%2Fturnip_formatter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gongo%2Fturnip_formatter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gongo%2Fturnip_formatter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gongo","download_url":"https://codeload.github.com/gongo/turnip_formatter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gongo%2Fturnip_formatter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279002300,"owners_count":26083342,"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","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["rspec-formatter","turnip"],"created_at":"2024-11-08T10:42:19.782Z","updated_at":"2025-10-11T05:11:24.641Z","avatar_url":"https://github.com/gongo.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"RSpec::Core::Formatters::TurnipFormatter\n========================================\n\nTurnipFormatter is a pretty custom formatter for [Turnip](https://github.com/jnicklas/turnip).\n\n![CI status](https://github.com/gongo/turnip_formatter/actions/workflows/main.yml/badge.svg?branch=master)\n[![Coverage Status](https://coveralls.io/repos/gongo/turnip_formatter/badge.png?branch=master)](https://coveralls.io/r/gongo/turnip_formatter)\n[![Code Climate](https://codeclimate.com/github/gongo/turnip_formatter.png)](https://codeclimate.com/github/gongo/turnip_formatter)\n\nRequirements\n--------------------\n\n* Ruby\n    * `2.2.0` or later\n\nInstallation\n--------------------\n\n### RubyGems\n\n    $ gem install turnip_formatter\n\n### Bundler\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngroup :test do\n  gem 'turnip_formatter'\nend\n```\n\nAnd then execute:\n\n    $ bundle install\n\nUsage\n--------------------\n\nRun this command.\n\n    $ rspec -r turnip_formatter --format RSpecTurnipFormatter --out report.html\n\n\nExample\n--------------------\n\nSee:\n\n- Feature and Steps\n    - https://github.com/gongo/turnip_formatter/tree/master/example\n- Report\n    - http://gongo.github.io/turnip_formatter/examples/report.html\n\nConfiguration\n--------------------\n\n```ruby\nTurnipFormatter.configure do |config|\n  config.title = 'My Report'                                 # \u003ch1\u003eMy Report\u003c/h1\u003e\n  config.add_stylesheet File.dirname(__FILE__) + '/foo.css'  # \u003cstyle\u003e..\u003c/style\u003e\n  config.add_javascript File.dirname(__FILE__) + '/bar.js'   # \u003cscript\u003e..\u003c/script\u003e\n\n  config.add_stylesheet 'http://cdn.example.com/hoge.css'    # \u003clink rel=\"..\"\u003e\n  config.add_javascript '//cdn.example.com/fuga.js'          # \u003cscript src=\"..\"\u003e\nend\n```\n\nAdd-on\n--------------------\n\n* Gnawrnip\n    * Gnawrnip is a TurnipFormatter Add-on that provides put a screen shot to report use Capybara\n    * https://github.com/gongo/gnawrnip\n\nLicense\n--------------------\n\nsee LICENSE.txt\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgongo%2Fturnip_formatter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgongo%2Fturnip_formatter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgongo%2Fturnip_formatter/lists"}