{"id":18841475,"url":"https://github.com/subvisual/permafrost","last_synced_at":"2026-01-30T11:30:16.328Z","repository":{"id":52313401,"uuid":"268936198","full_name":"subvisual/permafrost","owner":"subvisual","description":"Freeze the environment in a limited scope.","archived":false,"fork":false,"pushed_at":"2021-04-30T20:41:03.000Z","size":14,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-01-31T03:48:31.467Z","etag":null,"topics":["environment-variables","ruby","testing"],"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/subvisual.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-06-03T00:17:14.000Z","updated_at":"2020-06-04T11:59:10.000Z","dependencies_parsed_at":"2022-08-20T13:50:05.803Z","dependency_job_id":null,"html_url":"https://github.com/subvisual/permafrost","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subvisual%2Fpermafrost","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subvisual%2Fpermafrost/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subvisual%2Fpermafrost/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subvisual%2Fpermafrost/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/subvisual","download_url":"https://codeload.github.com/subvisual/permafrost/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239780122,"owners_count":19695734,"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":["environment-variables","ruby","testing"],"created_at":"2024-11-08T02:51:30.131Z","updated_at":"2026-01-30T11:30:16.289Z","avatar_url":"https://github.com/subvisual.png","language":"Ruby","readme":"Permafrost\n==========\n\nFreeze the environment (i.e. `ENV`) in a limited scope.\n\nInspired by [Timecop].\n\n\nInstallation\n------------\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem \"permafrost\", \"~\u003e 1.0\"\n```\n\nAnd then execute:\n\n    $ bundle install\n\nOr install it yourself as:\n\n    $ gem install permafrost\n\n\nUsage\n-----\n\nFreeze the environment, and change it at will inside a sandbox:\n\n```ruby\nENV # { \"RAILS_ENV\" =\u003e \"production\", ... }\n\nPermafrost.freeze do\n  ENV.clear # {}\nend\n\nENV # { \"RAILS_ENV\" =\u003e \"production\", ... }\n```\n\nOr, set the environment to use inside the sandbox:\n\n```ruby\nENV # { \"RAILS_ENV\" =\u003e \"production\", ... }\n\nPermafrost.freeze(\"foo\" =\u003e \"bar\") do\n  ENV # { \"foo\" =\u003e \"bar\" }\nend\n\nENV # { \"RAILS_ENV\" =\u003e \"production\", ... }\n```\n\nYou can also just change something in the environment, leaving the rest as it\nis:\n\n```ruby\nENV # { \"RAILS_ENV\" =\u003e \"production\", ... }\n\nPermafrost.merge(\"foo\" =\u003e \"bar\") do\n  ENV # { \"RAILS_ENV\" =\u003e \"production\", ..., \"foo\" =\u003e \"bar\" }\nend\n\nENV # { \"RAILS_ENV\" =\u003e \"production\", ... }\n```\n\n\nDevelopment\n-----------\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run\n`rake` to run the linter and tests. You can also run `bin/console` for an interactive\nprompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To\nrelease a new version, update the version number in `version.rb`, and then run\n`bundle exec rake release`, which will create a git tag for the version, push\ngit commits and tags, and push the `.gem` file to [rubygems.org].\n\n\nContributing\n------------\n\nBug reports and pull requests are welcome on GitHub at\nhttps://github.com/subvisual/permafrost.\n\n\nLicense\n-----\n\nPermafrost is copyright \u0026copy; 2020 Subvisual, Lda.\n\nIt is open-source, made available for free, and is subject to the terms in\nits [license].\n\n\nAbout\n-----\n\nPermafrost was created and is maintained with :heart: by\n[Subvisual][subvisual].\n\n[![Subvisual][subvisual-logo]][subvisual]\n\n\n[Timecop]: https://github.com/travisjeffery/timecop\n[license]: ./LICENSE.txt\n[rubygems.org]: https://rubygems.org\n[subvisual]: http://subvisual.com\n[subvisual-logo]: https://raw.githubusercontent.com/subvisual/guides/master/github/templates/logos/blue.png\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsubvisual%2Fpermafrost","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsubvisual%2Fpermafrost","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsubvisual%2Fpermafrost/lists"}