New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

environment-temp

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

environment-temp

  • 1.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

environment-temp

Ruby module for temporarily changing ENV. Call ENV.temp and add a do block.

require 'environment-temp'

puts ENV['HOME'] # => /home/you (or whatever your home directory is)

ENV.temp do
  ENV['HOME'] = 'whatever'
  puts ENV['HOME'] # => whatever
end

puts ENV['HOME'] # => /home/you 

Installation

The usual:

sudo gem install environment-temp

Or however you like to install gems. It's just a single file.

Author

Mike O'Sullivan mike@idocs.com

History

versiondatenotes
1.0June 27, 2023Initial upload.

FAQs

Package last updated on 27 Jun 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc