Changelog History
Page 1
-
v3.4.0 Changes
โ Adds
- Adds
download_size_limit
configuration to raiseLinkThumbnailer::DownloadSizeLimit
when the body of the request is too big. Defaults to10 * 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
- Adds
-
v3.3.2 Changes
March 22, 2018๐ Fixes
- Frozen strings https://github.com/gottfrois/link_thumbnailer/pull/125
-
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
- โฌ๏ธ Upgrade
-
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 of1
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
- ๐ Fix an issue when dealing with absolute urls. https://github.com/gottfrois/link_thumbnailer/issues/68
- ๐ Fix an issue with http redirection and location header not beeing present. https://github.com/gottfrois/link_thumbnailer/issues/70
- Rescue and raise custom LinkThumbnailer exceptions. https://github.com/gottfrois/link_thumbnailer/issues/71