{"id":20481158,"url":"https://github.com/saantiaguilera/gem-api-codecov","last_synced_at":"2026-06-10T14:31:03.967Z","repository":{"id":56874621,"uuid":"110474668","full_name":"saantiaguilera/gem-api-codecov","owner":"saantiaguilera","description":"Run codecov from ruby for any platform","archived":false,"fork":false,"pushed_at":"2018-09-30T21:34:23.000Z","size":40,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-04-21T21:14:46.515Z","etag":null,"topics":["codecov","coverage","gem","ruby","ruby-gem"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/saantiaguilera.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-11-12T22:29:33.000Z","updated_at":"2018-09-30T21:34:24.000Z","dependencies_parsed_at":"2022-08-20T22:30:19.390Z","dependency_job_id":null,"html_url":"https://github.com/saantiaguilera/gem-api-codecov","commit_stats":null,"previous_names":["saantiaguilera/ruby-api-codecov"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/saantiaguilera/gem-api-codecov","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saantiaguilera%2Fgem-api-codecov","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saantiaguilera%2Fgem-api-codecov/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saantiaguilera%2Fgem-api-codecov/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saantiaguilera%2Fgem-api-codecov/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/saantiaguilera","download_url":"https://codeload.github.com/saantiaguilera/gem-api-codecov/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saantiaguilera%2Fgem-api-codecov/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34157453,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-10T02:00:07.152Z","response_time":89,"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":["codecov","coverage","gem","ruby","ruby-gem"],"created_at":"2024-11-15T16:07:04.454Z","updated_at":"2026-06-10T14:31:03.830Z","avatar_url":"https://github.com/saantiaguilera.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Codecov\n\n[![CircleCI](https://circleci.com/gh/saantiaguilera/gem-api-codecov/tree/master.svg?style=svg)](https://circleci.com/gh/saantiaguilera/gem-api-codecov/tree/master) [![codecov](https://codecov.io/gh/saantiaguilera/gem-api-codecov/branch/master/graph/badge.svg)](https://codecov.io/gh/saantiaguilera/gem-api-codecov) [![Gem Version](https://badge.fury.io/rb/global-codecov.svg)](https://badge.fury.io/rb/global-codecov) ![](https://ruby-gem-downloads-badge.herokuapp.com/global-codecov/1.0.0)\n\nThis gem is for running codecov for any language (apart from ruby itself, since [their bash script doesnt support it yet](https://github.com/codecov/codecov-ruby/issues/4#issuecomment-121964456)) from a ruby script. \n\nThe point of this nonsense is that a lot of frameworks for continuous integration (eg. fastlane) are written in ruby. This is a tool for running your coverage under those circumstances\n\nIf you were using bash, you would do a simple curl redirect into a shell (`bash \u003c(curl -s http://some.bash.script.com)`). But this cant be done from ruby since the redirect isnt available, this gem is here for providing exactly that behavior.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n    $ gem 'global-codecov'\n\nAnd then execute:\n\n    $ bundle install\n\nOr install it yourself as:\n\n    $ gem install global-codecov\n\n## Usage\n\n### Import\n\nRequire the module:\n```ruby\nrequire 'global-codecov'\n```\n\n### Setting destination of the script\n\nUse the provided setter\n```ruby\nCodecov.set_script_destination \"somewhere/over/the/rainbow/file.sh\"\n```\n\n_Note_: The module will only download the file once, so that the overhead of the api is as low as possible\n\n### Running\n\nFor running simply invoke                    \n```ruby\nCodecov.run\n```\nAnd thats it! It will be as running `bash \u003c(https://www.codecov.io/bash)`\n\n#### Arguments\n\nIf you wish to pass arguments to the bash script, pass them as a map of either `nil`, `String` or `Array`.\n\nEg.\n```ruby\nparams = {\n  'c' =\u003e nil,\n  'X' =\u003e [ 'glib', 'silent', 'test' ],\n  't' =\u003e 'access_token',\n  'root_dir' =\u003e '',\n  's' =\u003e nil,\n  'f' =\u003e [ 'file1.txt', 'file2.txt' ]\n}\nCodecov.run params\n```\nWill be: `bash \u003c(https://www.codecov.io/bash) -c -X glib -X silent -X test -t access_token -root_dir '' -s -f file1.txt -f file2.txt`\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` 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/saantiaguilera/ruby-api-codecov. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.\n\n## License\n\nThe gem is available as open source under the terms of the [BSD-3 License](https://opensource.org/licenses/BSD-3-Clause).\n\n## Code of Conduct\n\nEveryone interacting in the Codecov project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/saantiaguilera/ruby-api-codecov/blob/master/CODE_OF_CONDUCT.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaantiaguilera%2Fgem-api-codecov","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaantiaguilera%2Fgem-api-codecov","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaantiaguilera%2Fgem-api-codecov/lists"}