
Research
/Security News
60 Malicious Ruby Gems Used in Targeted Credential Theft Campaign
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
This gem provides helper methods for appending directories and gems to the SASS_PATH
environment variable. This enables you to load
projects that do not themselves register with SASS.
Add this line to your application's Gemfile:
gem 'sass_paths'
And then execute:
$ bundle
Or install it yourself as:
$ gem install sass_paths
To append a directory, simply call append
with your list of directories that
you'd like appended.
SassPaths.append('/my/first/sass/path', '/my/second/sass/path', ...)
In order to append a gem, call append_gem_path
with the name of the gem as
well as the directory within the gem that contains the Sass files.
SassPaths.append_gem_path(gem_name, directory)
Sometimes it can be fun to change the Sass paths for the duration of a block. For example, this would swap out using Neat versions.
replacements = {
"/gems/neat-1.8.0/app/assets/stylesheets" => "/gems/neat-2.0.0/core"
}
SassPaths.with_replacements(replacements) do
options = { load_paths: Sass.load_paths }
Sass::Engine.new(template, options).render
end
The with_replacements
takes no responsiblity for knowing about the paths passed in as being valid or not.
Create an initializer and utilize the above methods.
Use the above methods in some part of your application's boot process.
bundle install
to install development dependencies.rake test
to run all tests.FAQs
Unknown package
We found that sass_paths demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.
Research
/Security News
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.