Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
= Versionable
Super fast and easy versioning for models and associations. Do cache lookups using this fast version number instead of managing complex cache expiry.
Versionable is intended for versioning of a model or an association and doesn't currently provide any means of caching version numbers for normal model instances.
== Examples
class User < ActiveRecord::Base versionable :cache => Rails.cache
after_save { new_version }
def self.cached_all
# reference version in cache keys
Rails.cache.fetch("User.cached_all:#{version}") { all }
end
end
User.cached_all # initial cache miss and cache fill User.cached_all # cache hit
User.new_version # => 1224985243 User.cached_all # new cache miss and cache fill
User.first.save # causing new_version to be called from after_save User.cached_all # new cache miss and cache fill
You can also use it on associations...
== Install
As a Rails plugin.
./script/plugin install git://github.com/jqr/versionable.git
Prefer gems? Add this to your environment.rb and run the following command.
config.gem 'jqr-versionable', :lib => 'versionable', :source => 'http://gems.github.com'
$ rake gems:install
Homepage:: http://github.com/jqr/versionable/tree/master
License:: Copyright (c) 2008 Elijah Miller mailto:elijah.miller@gmail.com, released under the MIT license.
FAQs
Unknown package
We found that jqr-versionable 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.