
Security News
CISA’s 2025 SBOM Guidance Adds Hashes, Licenses, Tool Metadata, and Context
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.
Ease the pain of integrating Facebook, Instagram and Twitter posts in a Rails app. Includes a configurable cache to keep your app from tipping over Facebook and Instagram api limits.
Gemfile
gem 'social_rails'
app/assets/javascripts/application.js
//= require social_rails/social-rails.js
config/routes.rb
mount SocialRails::Engine => '/social'
Run rails g social_rails:config
Edit [Your project]/config/initializers/social_rails.rb
Each media options can be configured individually using SocialRails::[Media].configure
method.
countdown #15.minutes by default
public: {
post_count: # 1 by default
max_characters: # 0 by default
refresh: # false by default
refresh_time: # 15.minutes.in_milliseconds by default
}
Pour utiliser la cache de Rails en developement:
- cd to your project installation
- run
touch tmp/caching-dev.txt
Use the view helper:
<%= socialrails(:facebook [, options={}]) %>
Options must be an Hash of theses available options:
post_count # 1 by default
max_characters # 0 by default
refresh # false by default
refresh_time # 900000 (15 minutes) in milliseconds
Use the following generator command to override views.
rails g social_rails:views
FAQs
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
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.
Security News
ESLint now supports parallel linting with a new --concurrency flag, delivering major speed gains and closing a 10-year-old feature request.