Skip to content

Releases: hermango/shareable

1.1.4

27 Jul 21:39
Compare
Choose a tag to compare

Fix

Updated Facebook code to comply with Facebook's new API changes (see Facebook Platform Upgrade Guide). This fixes a problem in which clicking on the Like button would not display the Facebook pop-up/dialog and instead incorrectly replaced the Like button with a "confirm" link or text field with the caption "Say something...".

Important if you've copied and pasted the CSS from the README then please change your styling to the updated styling here. The old styling set a max-height for iframe and set overflow:hidden for divs which makes the Facebook pop-up fail to appear.

For more information on the reason behind this release see this issue. Thanks to James Huang @jamesy829 for finding this bug.

1.1.3

02 Jul 01:28
Compare
Choose a tag to compare

Version 1.1.3

Important: A critical change was made to the Tumblr button. If your app uses the Tumblr button with customized configuration option background, please see the Changes section below.

All javascript buttons (Facebook, Twitter, Linkedin, Pinterest and Reddit) should now work with Turbolinks. JQuery is required and the configuration option turbolinks must be set to true.

Fixes

  • Changed how Linkedin and Facebook buttons load based on whether JQuery.turbolinks gem is present. Fixes a problem in which these buttons didn't appear or loaded initializing javascript repeatedly when using jquery.turbolinks.
  • Reddit share button now works with Turbolinks. This fix renders the iframe that's actually supposed to be rendered by Reddit's javascript thus bypassing document.write. Note this fix doesn't work if using configuration option btnsrc which renders Reddit's "buttonlite" button. The bug was caused because Reddit uses document.write causing the button to fail with the error:
"Failed to execute 'write' on 'Document': It isn't possible to write into a document from an asynchronously-loaded external script unless it is explicitly opened."
  • Fixed issue with non-Turbolinks Facebook button to prevent warning:
"FB.getLoginStatus() called before calling FB.init()."

Changes

  • All buttons and links now use https protocol or relative protocol (Thanks to Stephan Nordnes Eriksen @stephan-nordnes-eriksen).
  • Tumblr button configuration option background now only accepts string values '1', '2', '3', '4', '1T', '2T', '3T', or '4T'. Previously, background expected the full filename of the Tumblr button image, eg: 'share1.png'. If you've changed the value of background options for your app, please use one of the above accepted strings instead. Otherwise the Tumblr button will not display.

Additions

  • Added more options to customize Pinterest button. New options are pin_shape, pin_height, and pin_color.
  • Added documentation to configuration options.

1.1.0

28 Jun 19:28
Compare
Choose a tag to compare

Version 1.1.0

Changes

  • Added fixes for Turbolinks to handle dynamic page loading. Fixes apply to Facebook, Twitter, Pinterest and Linkedin buttons. Set configuration option turbolinks to true to enable. Disabled by default. JQuery is required for fixes to work.
  • Added HTML class "tumblr-button" and styling "vertical-align:top" to Tumblr button. Corrects alignment issue in Safari browser. Class name "tumblr-button" allows Shareable users to style Tumblr button.

Shareable 1.0.0 Release

03 Jun 02:59
Compare
Choose a tag to compare

Major Release Version 1.0.0

Additions

  • New social buttons for Tumblr and StumbleUpon. These buttons are configured to be off by default.
  • Option to render static html-only links. Use configuration option static_link.
  • Option to render only button code and omit initializing javascript. Good for rolling your own scripts for customizing button behavior or fixing dynamic loading (from Turbolinks or pjax). Use option button_only.
  • Ability to wrap buttons or static links in html/erb. To apply your own wrapper: overwrite views _parent_wrapper and _button_wrapper in your local views/shareable/partials directory.
  • Facebook button now uses HTML 5 version of button (Thanks to Rick Fletcher @rfletcher).
  • Data-share option (Thanks to Kenny Chan Zhi Yao @zhiyao) and kid friendly site option added to Facebook button configuration.

Fixes

  • Update to control logging on rendering of a partial (Thanks to Trung Pham @trungpham).
  • Google+ configuration options can now be overridden when passed to the render_shareable method.
  • Various corrections to button code syntax: Thanks to Milan Kubin @milankubin and Big Thanks to Trung Pham @trungpham and Rick Fletcher @rfletcher.