Socket
Book a DemoInstallSign in
Socket

rrssb-rails

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rrssb-rails

0.1.0
bundlerRubygems
Version published
Maintainers
1
Created
Source

rrssb-rails

This gem packages rrssb for the Rails 3.2+ asset pipeline.

Installation

Add this line to your application's Gemfile:

gem 'rrssb-rails'

And then execute:

$ bundle

Or install it yourself as:

$ gem install rrssb-rails

Usage

To start using the rrssb-rails plugin in your Rails application, enable it via the asset pipeline.

If your server is running, you will need to restart Rails before using the gem.

Add the following to your JavaScript manifest file (application.js):

//= require rrssb

Add the following to your style sheet file:

If you are using SCSS, modify your application.scss file:

@import 'rrssb';

If you are using LESS, modify your application.less file, If you're using plain CSS, modify your application.css file:

*= require rrssb

Helper

You can use the helper rrssb_tag to generate and customize your social share buttons inside your view.

rrssb_tag(url: 'http://my_url.com', buttons: %w{facebook twitter google_plus})
# => Generate 3 responsive social share buttons for facebook, twitter and google+ in this order

For more information, see the dummy rails application available in /test.

Tests

Run:

$ rake test

Contributing

  • Fork it ( https://github.com/dam/rrssb-rails/fork )
  • Create your feature branch (git checkout -b my-new-feature)
  • Commit your changes (git commit -am 'Add some feature')
  • Push to the branch (git push origin my-new-feature)
  • Create a new Pull Request

FAQs

Package last updated on 06 Oct 2015

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.