{"id":22769725,"url":"https://github.com/bfontaine/set_const","last_synced_at":"2025-03-30T11:29:31.806Z","repository":{"id":16400924,"uuid":"19151803","full_name":"bfontaine/set_const","owner":"bfontaine","description":"Change a constant's value without warnings in Ruby ","archived":false,"fork":false,"pushed_at":"2017-12-23T00:02:07.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-23T23:43:41.782Z","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-25T15:58:36.000Z","updated_at":"2017-06-30T15:41:01.000Z","dependencies_parsed_at":"2022-09-18T23:40:23.068Z","dependency_job_id":null,"html_url":"https://github.com/bfontaine/set_const","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%2Fset_const","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bfontaine%2Fset_const/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bfontaine%2Fset_const/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bfontaine%2Fset_const/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bfontaine","download_url":"https://codeload.github.com/bfontaine/set_const/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246313062,"owners_count":20757422,"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:48.320Z","updated_at":"2025-03-30T11:29:31.772Z","avatar_url":"https://github.com/bfontaine.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# set\\_const\n\n[![Build Status](https://img.shields.io/travis/bfontaine/set_const.svg)](https://travis-ci.org/bfontaine/set_const)\n[![Gem Version](https://img.shields.io/gem/v/set_const.png)](http://badge.fury.io/rb/set_const)\n[![Coverage Status](https://coveralls.io/repos/bfontaine/set_const/badge.png)](https://coveralls.io/r/bfontaine/set_const)\n[![Inline docs](https://inch-ci.org/github/bfontaine/set_const.png)](https://inch-ci.org/github/bfontaine/set_const)\n\n**set\\_const** is a (dangerous) gem that let you modify a constant’s value\nwithout any warning. It’s useful for testing purposes, for example when your\ncode rely on a constant like `ARGV` or `RUBY_PLATFORM`.\n\n## Install\n\n```\ngem install set_const\n```\n\n## Usage\n\n```rb\nrequire 'set_const'\n\nset_const('ARGV', %w[--foo bar])\nset_const('RUBY_PLATFORM', 'Foobar')\n```\n\n## Tests\n\n```\n$ git clone https://github.com/bfontaine/set_const.git\n$ cd set_const\n$ bundle install\n$ bundle exec rake test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbfontaine%2Fset_const","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbfontaine%2Fset_const","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbfontaine%2Fset_const/lists"}