funky 0.2.26 → 0.2.27
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/funky/html/parser.rb +1 -1
- data/lib/funky/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: efc2445492ec5eb3d1a0d183342d991e4c3d13d8
|
4
|
+
data.tar.gz: b48084ac4af2a32ab52799a9685e6aaa54a14723
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c5f690f47ebbae2ecd4a7edb399a8f7897a2597a907743e4bc33c5f4caef4034bf6f95cca2c407d820e70d4bdd5fe8f308b8824efd9ab45370082dc1ad2bd17e
|
7
|
+
data.tar.gz: 6214c4089cd6751abd8e2dd1abab8fca84f715f6ade266e14b31870d64f6fbf25899d6e298ddd2cd30817f9f5977c0504cef90643ad267d180dddaa5d7ca9806
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,10 @@ For more information about changelogs, check
|
|
6
6
|
[Keep a Changelog](http://keepachangelog.com) and
|
7
7
|
[Vandamme](http://tech-angels.github.io/vandamme).
|
8
8
|
|
9
|
+
## 0.2.27 - 2017/08/28
|
10
|
+
|
11
|
+
* [BUGFIX] Fetch the correct view count even for non-English pages
|
12
|
+
|
9
13
|
## 0.2.26 - 2017/06/06
|
10
14
|
|
11
15
|
* [ENHANCEMENT] Raise ContentNotFound if Page#find is called with an invalid URI
|
data/lib/funky/html/parser.rb
CHANGED
@@ -20,9 +20,9 @@ module Funky
|
|
20
20
|
|
21
21
|
def extract_views_from(html)
|
22
22
|
html.match(/<div><\/div><span class="fcg">\D*([\d,.]+)/)
|
23
|
+
html.match(/postViewCount:"([\d,.]*?)",/) if $1.nil?
|
23
24
|
html.match %r{([\d,.]*?) views from this post} if $1.nil?
|
24
25
|
html.match /<div class=\"_1vx9\"><span>([\d,.]*?) .*?<\/span><\/div>/ if $1.nil?
|
25
|
-
html.match(/postViewCount:"([\d,.]*?)",/) if $1.nil?
|
26
26
|
matched_count $1
|
27
27
|
end
|
28
28
|
|
data/lib/funky/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: funky
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.27
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Philip Nguyen
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-08-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|