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 +8 -8
- data/CHANGELOG.md +4 -0
- data/lib/link_thumbnailer/scrapers/opengraph/video.rb +12 -0
- data/lib/link_thumbnailer/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NzIwYjViYTE2YzVlODZiNGM3OWFlMmM0ZjU5ODA5MTNhNGMxZjQzMA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NmNmNWYwZTFlYjI4ZDkzNDhmNzZlYjQ1YjdhZjk0NzExZmE1NzAzMQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MDFkNTM5YjA2OTM4YTU3N2VmNTllNTNkM2Y5ZWI5N2YyOTg5MjQwYWFiN2Y0
|
10
|
+
OGU2MWY0YmJkYTRjYjk3ZTk3ZjI1NDhlMzBiYjM5YmE2NTU4MDc3NjJmMGFk
|
11
|
+
MGQ3MGEzZDkwODQ1ZjEwYzMyYzJjZThiODM1ODUyZTNmNzUwZGE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
Yjc0YThkNDVlZGUyODY0Y2QzODBlNTM0MTUxOWYyODZlMmFjZjg4MmM5ZmZi
|
14
|
+
NzE3ZmVhMTBlNjdjNDQ4NWE4ZjM4OTlmOWIwYjA1MDhiN2UzNzUzODYwNjJl
|
15
|
+
ZThjYjZjZGMxMTQ0OTgxNWVkM2YzMjI5Y2E4OWM1ZWZhMzY1MGE=
|
data/CHANGELOG.md
CHANGED
@@ -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) }
|
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.
|
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-
|
11
|
+
date: 2014-11-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|