{"id":13715551,"url":"https://github.com/mattsears/nyan-cat-formatter","last_synced_at":"2025-05-07T04:30:52.911Z","repository":{"id":1852465,"uuid":"2777221","full_name":"mattsears/nyan-cat-formatter","owner":"mattsears","description":"Nyan Cat inspired RSpec formatter!","archived":false,"fork":false,"pushed_at":"2020-04-17T16:14:35.000Z","size":9549,"stargazers_count":737,"open_issues_count":11,"forks_count":79,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-05-03T06:44:49.723Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://mattsears.com/articles/2011/11/16/nyan-cat-rspec-formatter","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"ryanjon2040/RTS-Community-Project","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mattsears.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-11-15T02:41:06.000Z","updated_at":"2025-01-25T23:34:32.000Z","dependencies_parsed_at":"2022-09-08T14:11:14.656Z","dependency_job_id":null,"html_url":"https://github.com/mattsears/nyan-cat-formatter","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/mattsears%2Fnyan-cat-formatter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattsears%2Fnyan-cat-formatter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattsears%2Fnyan-cat-formatter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattsears%2Fnyan-cat-formatter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mattsears","download_url":"https://codeload.github.com/mattsears/nyan-cat-formatter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252305174,"owners_count":21726616,"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-08-03T00:01:00.415Z","updated_at":"2025-05-07T04:30:52.055Z","avatar_url":"https://github.com/mattsears.png","language":"Ruby","funding_links":[],"categories":["Ruby","Testing"],"sub_categories":[],"readme":"Nyan Cat RSpec Formatter [![Build Status](https://secure.travis-ci.org/mattsears/nyan-cat-formatter.png)](http://travis-ci.org/mattsears/nyan-cat-formatter)\n========\n\n![NYAN](nyan_example.gif)\n\nThis is my take on the Nyan Cat RSpec Formatter. It simply creates a rainbow trail of test results. It also counts the number of examples as they execute and highlights failed and pending specs.\n\nThe rainbow changes colors as it runs. See it in action [here](http://vimeo.com/32424001).\n\nWorks with RSpec 1.3, 2 and 3.\n\nUsing  Nyan Cat\n---------------\n\nYou can either specify the formatting when using the `rspec` command:\n\n    rspec --format NyanCatFormatter\n\nOr add `--format NyanCatFormatter` to a `.rspec` file placed in your project's root directory,\nso that you won't have to specify the `--format` option everytime you run the command.\n\n###Using with Bundler\n\nTo use Nyan Cat with a project that uses Bundler (Rails or Sinatra f.e.) you need to add Nyan Cat dependecy to your Gemfile:\n\n```ruby\ngroup :test do\n  gem \"nyan-cat-formatter\"\nend\n```\n\nAnd then run `bundle install`.\n\nInstalling it\n-------------\n\n```\n$ gem install nyan-cat-formatter\n```\n\nIf you want to use Nyan Cat as your default formatter, simply put the options in your .rspec file:\n\n```\n--format NyanCatFormatter\n```\n\nPlaying the Nyan Cat song\n-------------------------\n\nYou can then enjoy playback in two ways:\n\n**1. Play the song only when desired using a command line option:**\n\nUse the following command to run your specs:\n\n```\n$ rspec spec -f NyanCatMusicFormatter\n```\n\nAnd enjoy the site of Nyan Cat running across your terminal to the Nyan Cat song!\n\n**2. Play the song by default when you run your specs:**\n\nMake sure your .rspec file in your application's root directory contains the following:\n\n```\n--color\n--format NyanCatMusicFormatter\n```\n\nThen run `rspec spec` and enjoy Nyan Cat formatted text output accompanied by the Nyan Cat song by default!\n\n**This currently only works on Mac OS X or on Linux (if you have mpg321 or mpg123 installed).**\n\nUsing the Nyan Cat Wide Formatter\n---------------------------------\n\nThe classic Nyan Cat Formatter uses a terminal column per test. One\ntest, and single step that the cat goes ahead. The **Nyan Cat Wide\nFormatter**, instead, uses the whole terminal width, so the cat will\nalways end up reaching the end of the terminal.\n\nSimple use it by configuring it as the RSpec formatter:\n\n```\n--format NyanCatWideFormatter\n```\n\nContributing\n----------\n\nOnce you've made your great commits:\n\n1. Fork Nyan Cat\n2. Create a topic branch - git checkout -b my_branch\n3. Push to your branch - git push origin my_branch\n4. Create a Pull Request from your branch\n5. That's it!\n\nAuthor\n----------\n[Matt Sears](http://www.mattsears.com) :: @mattsears\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattsears%2Fnyan-cat-formatter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmattsears%2Fnyan-cat-formatter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattsears%2Fnyan-cat-formatter/lists"}