
Security News
Follow-up and Clarification on Recent Malicious Ruby Gems Campaign
A clarification on our recent research investigating 60 malicious Ruby gems.
Class helper for example files. Usually it's the alternative
to environment variables (and .env
files).
You can have git-controlled example files and git-ignored real files. For example, configuration, especially with sensitive data.
Add this line to your application's Gemfile:
gem 'example_file'
And then execute:
bundle install
Or install it yourself as:
gem install example_file
require 'example_file'
ExampleFile.new('some_file.example.conf').actualize_regular_file
For some_file.example.conf
example file there is some_file.conf
regular file.
Editor below is $EDITOR
environment variable.
You should set it to your preferred editor, console or GUI
(console is more comfortable usually for such scenarios).
Otherwise the whole program will be aborted with a message about this.
It'll act in these ways:
You should add example files to git control:
git add some_file.example.conf
And ignore regular ones in .gitignore
:
some_file.conf
Recursively it'd be like:
config/**/*
!config/**/*.example*
After checking out the repo, run bundle install
to install dependencies.
Then, run toys rspec
to run the tests.
To install this gem onto your local machine, run toys gem install
.
To release a new version, run toys gem release %version%
.
See how it works here.
Bug reports and pull requests are welcome on GitHub.
The gem is available as open source under the terms of the MIT License.
FAQs
Unknown package
We found that example_file 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
A clarification on our recent research investigating 60 malicious Ruby gems.
Security News
ESLint now supports parallel linting with a new --concurrency flag, delivering major speed gains and closing a 10-year-old feature request.
Research
/Security News
A malicious Go module posing as an SSH brute forcer exfiltrates stolen credentials to a Telegram bot controlled by a Russian-speaking threat actor.