
Security News
Nx npm Packages Compromised in Supply Chain Attack Weaponizing AI CLI Tools
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
Dotenv-mh is a simple gem inspired on the classic dotenv and adapted to Rails framework following figaro approach for initialization (Rails::Railtie). Basically, it allows to load environment variables from a .env file when running on development. Once this gem is installed, your Rails application will automatically load your environment variables using a custom Rails::Railtie, so there is no need to modify the "config/application.rb".
Install the gem and add to the application's Gemfile by executing:
$ bundle add dotenv-mh
If bundler is not being used to manage dependencies, install the gem by executing:
$ gem install dotenv-mh
Execute the following:
$ bundle exec dotenvInstaller
The installer will create a ".env" file and add it to your .gitignore.
This follows the classic .env file structure, where each line represents a tuple of key-value.
# .env file
Variable1=value1
Variable2=value2
.....
AnotherVariable=AnotherValue
Bug reports and pull requests are welcome on GitHub at https://github.com/herreramaxi/dotenv-mh.
FAQs
Unknown package
We found that dotenv-mh demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.