All Versions
51
Latest Version
Avg Release Cycle
110 days
Latest Release
-

Changelog History
Page 1

  • v3.4.0 Changes

    โž• Adds

    • Adds download_size_limit configuration to raise LinkThumbnailer::DownloadSizeLimit when the body of the request is too big. Defaults to 10 * 1024 * 1024 bytes.
    • โž• Adds favicon_size configuration to allow to choose which favison 0๏ธโƒฃ size the gem should prefer. Defaults to the first favicon found otherwise.

    ๐Ÿ›  Fixes

    • ๐Ÿ›  Fixes string encoding in previous versions of Ruby
    • ๐Ÿ›  Fixes favicon by providing the full path.
    • When HTML charset cannot be found in the HTML header, we now try to find it in the body.
    • Closes the HTTP connection upon completion

    ๐Ÿ”„ Changes

    • 401 HTTP errors now raise LinkThumbnailer::HTTPError
    • โฌ†๏ธ Upgrades ImageInfo gem
  • v3.3.2 Changes

    March 22, 2018
  • v3.3.1 Changes

    June 04, 2017

    ๐Ÿ”„ Changes

    • โฌ†๏ธ Gem upgrade (json)
  • v3.3.0 Changes

    August 27, 2016

    โž• Adds

    • ๐Ÿ‘ Allows to configure overrided http headers
    LinkThumbnailer.configure do |config|
      config.http_override_headers = { 'Accept-Encoding' => 'none', ... }
    end
    
  • v3.2.1 Changes

    June 16, 2016

    ๐Ÿ›  Fixes

    • ๐Ÿ›  Fixes #88
    • Override User-Agent header properly
    • Match xpath nodes if attribute content is present
    • ๐Ÿ“œ Avoid nil urls in image parser
  • v3.2.0 Changes

    May 15, 2016

    โž• Adds

    ๐Ÿ”ง Makes scrapers configurable by allowing to set the scraping strategy:

    LinkThumbnailer.configure do |config|
      config.scrapers = [:opengraph, :default]
    end
    

    opengraph use the Open Graph Protocol. 0๏ธโƒฃ default use a homemade algorithm

  • v3.1.2 Changes

    April 18, 2016

    โž• Adds

    ๐Ÿ‘ Allows to customize ideal description length

    Pass the :ideal_description_length option to the Graders::Length initializer to customize ๐Ÿš… the ideal description length of a website. In the rails initializer:

    LinkThumbnailer.configure do |config|
      config.graders = [
        ->(description) { ::LinkThumbnailer::Graders::Length.new(description, ideal_description_length: 500) },
        ->(description) { ::LinkThumbnailer::Graders::HtmlAttribute.new(description, :class) },
        ->(description) { ::LinkThumbnailer::Graders::HtmlAttribute.new(description, :id) },
        ->(description) { ::LinkThumbnailer::Graders::Position.new(description, weigth: 3) },
        ->(description) { ::LinkThumbnailer::Graders::LinkDensity.new(description) },
      ]
    end
    

    0๏ธโƒฃ Will default to 120 characters. More information about how the gem manage to find the best description can be found at http://www.codeids.com/2015/06/27/how-to-find-best-description-of-a-website-using-linkthumbnailer/

  • v3.1.1 Changes

    March 05, 2016

    ๐Ÿ›  Fixes

    ๐Ÿ”„ Changes

    • โฌ†๏ธ Upgrade video_info gem
  • v3.1.0 Changes

    September 13, 2015

    ๐Ÿ›  Fixes

    • ๐Ÿ›  Fix an issue when image sizes could not be retrieved.

    โž• Adds

    • Grapers now accepts an optional parameter to customize the weigth of the grader in the probablity computation.
    LinkThumbnailer::Graders::Position.new(description, weigth: 3)
    

    Will give a 3 times more weigth to the Position grader compare to other graders. 0๏ธโƒฃ By default all graders have a weigth of 1 except the above position grader since position should play a bigger role in order to find good description candidates.

  • v3.0.3 Changes

    August 23, 2015

    ๐Ÿ›  Fixes