link_thumbnailer 2.3.1 → 2.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NDIyODBlNzExNDRkZDIyZDQxOTVmNjBlMzM2YjA5OTBjYTA1OGI2ZA==
4
+ NzIwYjViYTE2YzVlODZiNGM3OWFlMmM0ZjU5ODA5MTNhNGMxZjQzMA==
5
5
  data.tar.gz: !binary |-
6
- NTFhODI5Y2U1ZTcyM2EzMjE0MDQwNmRlMTkyZDUzZWY0ZDU0NzE0MA==
6
+ NmNmNWYwZTFlYjI4ZDkzNDhmNzZlYjQ1YjdhZjk0NzExZmE1NzAzMQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NDA1YjcyMmIwMDlhMTZkM2RhNTU4OWEyYTNjNDY0NzQxN2RlZGFjOWFhYmE0
10
- ZDk3ZGMwMjgyN2FmMzYyZTE0ODNmZjUzYTU0MjlkNTMxN2Y4NTYyYmNhMTY5
11
- ZWVhNGYxN2VlMTUxODZhNzM2MWExODQ2MDU0OTQxZDMwMDIyYjU=
9
+ MDFkNTM5YjA2OTM4YTU3N2VmNTllNTNkM2Y5ZWI5N2YyOTg5MjQwYWFiN2Y0
10
+ OGU2MWY0YmJkYTRjYjk3ZTk3ZjI1NDhlMzBiYjM5YmE2NTU4MDc3NjJmMGFk
11
+ MGQ3MGEzZDkwODQ1ZjEwYzMyYzJjZThiODM1ODUyZTNmNzUwZGE=
12
12
  data.tar.gz: !binary |-
13
- NmNkMzhmODdkMzEwMzhjNjI4NzQ1NDY2MmFiNTczNjQ2NTY4NzcxZTk5ZDY5
14
- OWVkNzJiMjIxZjc2NTZiNGY0ZTcyMDNjNmEzYmQxMjI2MDY1ZDliMjFlMWFk
15
- YWU1N2Q5MGM2NDNiNzg1Yzc4NTdjOTg4ZjQ1ZDhmOTFlNWQzNmE=
13
+ Yjc0YThkNDVlZGUyODY0Y2QzODBlNTM0MTUxOWYyODZlMmFjZjg4MmM5ZmZi
14
+ NzE3ZmVhMTBlNjdjNDQ4NWE4ZjM4OTlmOWIwYjA1MDhiN2UzNzUzODYwNjJl
15
+ ZThjYjZjZGMxMTQ0OTgxNWVkM2YzMjI5Y2E4OWM1ZWZhMzY1MGE=
@@ -1,3 +1,7 @@
1
+ # 2.3.2
2
+
3
+ - Fix an issue with vimeo opengraph urls. Fixes [#46](https://github.com/gottfrois/link_thumbnailer/pull/46)
4
+
1
5
  # 2.3.1
2
6
 
3
7
  - Fix an issue with the link density grader caused by links with image instead of text. Fixes [#45](https://github.com/gottfrois/link_thumbnailer/issues/45)
@@ -10,6 +10,18 @@ module LinkThumbnailer
10
10
  end
11
11
 
12
12
  private
13
+
14
+ def attribute
15
+ if website.url.host =~ /vimeo/
16
+ # Vimeo uses a SWF file for its og:video property which doesn't
17
+ # provide any metadata for the VideoInfo gem downstream. Using
18
+ # og:url means VideoInfo is passed a webpage URL with metadata
19
+ # it can parse:
20
+ 'og:url'
21
+ else
22
+ super
23
+ end
24
+ end
13
25
 
14
26
  def model
15
27
  nodes.map { |n| modelize(n, n.attributes['content'].to_s) }
@@ -1,3 +1,3 @@
1
1
  module LinkThumbnailer
2
- VERSION = '2.3.1'
2
+ VERSION = '2.3.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: link_thumbnailer
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.1
4
+ version: 2.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pierre-Louis Gottfrois
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-30 00:00:00.000000000 Z
11
+ date: 2014-11-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport