{"id":22769721,"url":"https://github.com/bfontaine/silent","last_synced_at":"2025-03-30T11:29:30.983Z","repository":{"id":16375006,"uuid":"19125383","full_name":"bfontaine/silent","owner":"bfontaine","description":":ear: Silently execute a piece of code","archived":false,"fork":false,"pushed_at":"2015-08-09T21:21:42.000Z","size":140,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-23T23:43:41.826Z","etag":null,"topics":["library","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/bfontaine.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-04-24T21:51:08.000Z","updated_at":"2017-06-30T15:41:03.000Z","dependencies_parsed_at":"2022-09-13T11:10:58.849Z","dependency_job_id":null,"html_url":"https://github.com/bfontaine/silent","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/bfontaine%2Fsilent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bfontaine%2Fsilent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bfontaine%2Fsilent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bfontaine%2Fsilent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bfontaine","download_url":"https://codeload.github.com/bfontaine/silent/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246313046,"owners_count":20757419,"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":["library","ruby"],"created_at":"2024-12-11T15:14:46.427Z","updated_at":"2025-03-30T11:29:30.942Z","avatar_url":"https://github.com/bfontaine.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# silent\n\n[![Build Status](https://travis-ci.org/bfontaine/silent.svg?branch=master)](https://travis-ci.org/bfontaine/silent)\n[![Gem Version](https://img.shields.io/gem/v/silent.png)](http://badge.fury.io/rb/silent)\n[![Coverage Status](https://img.shields.io/coveralls/bfontaine/silent.svg)](https://coveralls.io/r/bfontaine/silent)\n[![Inline docs](http://inch-ci.org/github/bfontaine/silent.svg)](http://inch-ci.org/github/bfontaine/silent)\n\n**silent** is a Ruby gem to silently execute a piece of code, that is, without\nany visible output.\n\n## Install\n\n```\ngem install silent\n```\n\n## Usage\n\n```rb\nrequire 'silent'\n\nsilent(:stdout) do\n  puts \"this will never be displayed\"\nend\n\nsilent(:stderr) do\n  # do bad things without apparent warnings\n  ARGV = 42\nend\n\nsilent(:stdout, :stderr) do\n  puts \"Everything is silent here\"\n  $stderr.write \"is anyone listening to me?\"\nend\n```\n\n## Tests\n\n```\n$ git clone https://github.com/bfontaine/silent.git\n$ cd silent\n$ bundle install\n$ bundle exec rake test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbfontaine%2Fsilent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbfontaine%2Fsilent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbfontaine%2Fsilent/lists"}