ShareWith Ruby gem

ShareWith is a Ruby library that provides a templating method to arrange sharing services, from social networks or similar, using a simple YAML file. It handles single services and collections, providing also a cache-in-memory mechanism to avoid recompiling from the YAML templates every time they are called.

It also provides a collection of services including Facebook, Twitter and Linkedin.

  • Name:
    ShareWith
  • Language:
    Ruby
  • Type:
    Ruby library
  • License:
    GPL v.3
  • Platform:
    Linux, Windows
  • Requirements:
    Ruby
  • First release:
    1.0.0 (January 26, 2024)
  • Current release:
    1.0.0 (January 26, 2024)
  • Links:

Main Features

  • Easily definition of a services and its templates using a YAML file and few keywords;
  • inheriting and extension mechanisms are defined to reuse existing code;
  • support for font icons or image fonts out of the box;
  • once loaded the template is translated in a Ruby object that can get the required parameters;
  • the loaded services can be grouped within collection and easily reset to receive new values;
  • collections work also as cache for the loaded services.

Installation

With Bundler

$ bundle add share_with

Changelog

Version 1.0.0 (January 26, 2024)

  • First public release.



Leave a Comment