{"id":20414478,"url":"https://github.com/codecov/ruby-standard-2","last_synced_at":"2025-04-12T16:45:14.664Z","repository":{"id":35981980,"uuid":"198187206","full_name":"codecov/ruby-standard-2","owner":"codecov","description":"Codecov coverage standard for Ruby using Codecov's Bash uploader","archived":false,"fork":false,"pushed_at":"2025-01-06T15:03:20.000Z","size":461,"stargazers_count":3,"open_issues_count":0,"forks_count":7,"subscribers_count":9,"default_branch":"main","last_synced_at":"2025-04-11T15:10:25.701Z","etag":null,"topics":["codecov","coverage-reports","rails","ruby"],"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/codecov.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2019-07-22T09:06:36.000Z","updated_at":"2025-01-06T15:03:23.000Z","dependencies_parsed_at":"2024-05-17T05:23:51.213Z","dependency_job_id":"4582d607-7e74-491e-a0c0-37fe6e1d0075","html_url":"https://github.com/codecov/ruby-standard-2","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/codecov%2Fruby-standard-2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codecov%2Fruby-standard-2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codecov%2Fruby-standard-2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codecov%2Fruby-standard-2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codecov","download_url":"https://codeload.github.com/codecov/ruby-standard-2/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248600541,"owners_count":21131505,"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":["codecov","coverage-reports","rails","ruby"],"created_at":"2024-11-15T06:10:17.176Z","updated_at":"2025-04-12T16:45:14.649Z","avatar_url":"https://github.com/codecov.png","language":"Ruby","readme":"# Ruby-Standard-2 (CLI Edition)\n\n[![Workflow for Ruby Standard 2 Action](https://github.com/codecov/ruby-standard-2/actions/workflows/ruby-standard-2.yml/badge.svg)](https://github.com/codecov/ruby-standard-2/actions/workflows/ruby-standard-2.yml) [![codecov](https://codecov.io/gh/codecov/Ruby-Standard-2/branch/master/graph/badge.svg)](https://codecov.io/gh/codecov/Ruby-Standard-2)\n[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fcodecov%2Fruby-standard-2.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2Fcodecov%2Fruby-standard-2?ref=badge_shield)\n\n### Last Updated: 09/14/23 00:12:46\n\n## What is this?\n\nThis is a **Ruby on Rails** application, with basic unit tests, for which coverage is uploaded to Codecov on a daily basis via the Codecov CLI. It can also serve as an example for how to integrate Codecov into your Ruby project. If the build is passing for this project, then Codecov's Ruby report processing is functional and correct on codecov.io.\n\n## What's the difference between `Ruby-Standard-1` and `Ruby-Standard-2`?\n\n[Ruby-Standard-1](https://github.com/codecov/Ruby-Standard-1) uses the Codecov gem to process coverage reports, while this repository, Ruby-Standard-2, uses Codecov's CLI to process reports. Otherwise, everything is the same between these two repos.\n\n## Configuration\n\nThis project is written in `Ruby 2.6.3` using `Rails 5.2.3`. Unit tests are written in the [RSpec Rails](https://github.com/rspec/rspec-rails) framework. Coverage reports are generated through the [SimpleCov](https://github.com/colszowka/simplecov) gem and formatted via the [SimpleCov-Cobertura](https://github.com/dashingrocket/simplecov-cobertura) gem which converts the SimpleCov report into a `coverage.xml` file that is easily consumed by Codecov.\n\nUnit tests: `spec/index_spec.rb` which tests `lib/index.rb`\n\nGemfile configuration:\n```ruby\ngem 'simplecov', require: false\ngem 'simplecov-cobertura'\n```\nRSpec configuration (top of `spec/spec_helper.rb`):\n```ruby\nrequire 'simplecov'\nrequire 'simplecov-cobertura'\nif ENV['CI']\n  SimpleCov.formatter = SimpleCov::Formatter::CoberturaFormatter\nend\nSimpleCov.start\n```\n\u003e `spec_helper.rb` is a file that contains settings specific to RSpec. If you're using another testing framework, you'll need to put this information in some other helper Ruby file. For example, if you're using Minitest, which is prepackaged with all Rails applications, you'll need to put the above lines of code inside `test/test_helper.rb`\n\n## Reporting Issues\n\nIf you've discovered an issue with this repository or with Ruby processing in general, it is recommended to email support@codecov.io rather than post an issue here. This repository will not be checked regularly for open issues.\n\n## Contributing\n\nContributions are welcome! If you'd like to contribute to this repository, feel free to open a pull request or flag an issue. If you would like to contribute a new lanaguage standard, [you can get more information here](https://github.com/codecov/standards-scripts/blob/master/README.md#contributing). \n\n\n## License\n[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fcodecov%2Fruby-standard-2.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Fcodecov%2Fruby-standard-2?ref=badge_large)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodecov%2Fruby-standard-2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodecov%2Fruby-standard-2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodecov%2Fruby-standard-2/lists"}