
Security News
Follow-up and Clarification on Recent Malicious Ruby Gems Campaign
A clarification on our recent research investigating 60 malicious Ruby gems.
RedisField is a simple Ruby gem that stores model-specific data to Redis just like normal ActiveRecord attributes.
Great for caches, API responses etc.
You will need ActiveRecord 3.2+ (oops, gotta test it).
Add this line to your application's Gemfile:
gem 'redis_field', github: 'konukhov/redis_field'
And then execute:
$ bundle
class User < ActiveRecord::Base
redis_field :some_data
# redis_fields is just an alias to redis_field
redis_fields :facebook_friend_ids, :last_logged_in
end
user = User.last
user.some_data = "Testing redis_field"
user.save
user.reload.some_data # -> "Testing redis_field"
user.update_attributes(last_logged_in: Time.now)
user.reload.last_logged_in # -> 2014-04-05 01:00:00 +0000
NB This library is not an ORM for Redis, so it simply marshalls data before storing to Redis. There's no types coercion or anything like that.
More docs and features soon. :heart:
Just run
$ rake spec
See Appraisal for testing against different ActiveRecord versions.
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that redis_field 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.