Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
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
Unknown package
We found that social_rails 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.