funky 0.2.26 → 0.2.27

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,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6618fd948f7280d1bf793d525590afb44b529ead
4
- data.tar.gz: 1ff6bbb1625e63d0a25f889633675a23d5273425
3
+ metadata.gz: efc2445492ec5eb3d1a0d183342d991e4c3d13d8
4
+ data.tar.gz: b48084ac4af2a32ab52799a9685e6aaa54a14723
5
5
  SHA512:
6
- metadata.gz: 05172aae956d99ab29ecce0f6dcc97569dadcabccdbc4a4bc4757d4c008aa88be1a04a8c1529491bb08571c5792b00c36a0cf787e4c6f3128ab744c68d8f66ba
7
- data.tar.gz: f06312f0e76ef993727295c86375b6516bac19f2edc80d1811a3e2783e5e95e2b6ea0afbe3f6e1f3306cbc2335018f4297957fe080f2bd717f51b2749961081a
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
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Funky
2
- VERSION = "0.2.26"
2
+ VERSION = "0.2.27"
3
3
  end
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.26
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-06-06 00:00:00.000000000 Z
11
+ date: 2017-08-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler