{"id":20906143,"url":"https://github.com/distributedlife/snap-ci-artefact-grabber","last_synced_at":"2026-04-23T15:35:49.442Z","repository":{"id":30751230,"uuid":"34307722","full_name":"distributedlife/snap-ci-artefact-grabber","owner":"distributedlife","description":"A little gem that makes it a touch easier extracting artefacts from Snap-CI using ruby","archived":false,"fork":false,"pushed_at":"2015-05-07T06:38:12.000Z","size":156,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-03-08T02:25:52.377Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/distributedlife.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-04-21T06:04:07.000Z","updated_at":"2020-11-25T11:04:51.000Z","dependencies_parsed_at":"2022-08-20T17:10:29.153Z","dependency_job_id":null,"html_url":"https://github.com/distributedlife/snap-ci-artefact-grabber","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/distributedlife/snap-ci-artefact-grabber","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/distributedlife%2Fsnap-ci-artefact-grabber","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/distributedlife%2Fsnap-ci-artefact-grabber/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/distributedlife%2Fsnap-ci-artefact-grabber/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/distributedlife%2Fsnap-ci-artefact-grabber/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/distributedlife","download_url":"https://codeload.github.com/distributedlife/snap-ci-artefact-grabber/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/distributedlife%2Fsnap-ci-artefact-grabber/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32187396,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-23T15:28:30.493Z","status":"ssl_error","status_checked_at":"2026-04-23T15:28:29.972Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-11-18T13:29:13.581Z","updated_at":"2026-04-23T15:35:49.424Z","avatar_url":"https://github.com/distributedlife.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Snap::Ci::Artefact::Grabber\n\nA simple gem that lets you get artefacts of [Snap CI](https://snap-ci.com). It handles most circumstances. PR's welcome to let it handle more exotic scenarios.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'snap-ci-artefact-grabber'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install snap-ci-artefact-grabber\n\n## Usage\n\nTwo environment variables, `SNAP_USER` and `SNAP_APIKEY` store the credentials. Set these before you use this library.\n\nHere is an example:\n\n```shell\nSNAP_USER=distributedlife SNAP_APIKEY=derpderp bundle exec dashing start\n```\n\nUsing the gem:\n\nAn `ArtefactGrabber` requires four parameters: the `owner`, the `repo`, the `branch` and the pipeline name. This is usually `defaultPipeline`.\n\nTo get an artefact supply the `stage` and the `filename` that you have  told [Snap CI](https://snap-ci.com) to archive.\n\nAll values are case sensitive.\n\n```ruby\nsnap = SnapCI::ArtefactGrabber.new(\n  \"distributedlife\",\n  \"snap-ci-artefact-grabber\",\n  \"master\",\n  \"defaultPipeline\"\n)\n\nfile_contents = snap.get_artefact_url_for_stage(\n  \"build\",\n  \"coverage/coverage-summary.json\"\n)\n\njson = JSON.parse(file_contents)\n```\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, 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` to 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\n1. Fork it ( https://github.com/[my-github-username]/snap-ci-artefact-grabber/fork )\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create a new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdistributedlife%2Fsnap-ci-artefact-grabber","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdistributedlife%2Fsnap-ci-artefact-grabber","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdistributedlife%2Fsnap-ci-artefact-grabber/lists"}