funky 0.2.33 → 0.2.34
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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/funky/html/parser.rb +1 -0
- data/lib/funky/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5f5830bfe11cfc37703ba016ba069a5b006bc708cc3c720ad66cc2213567ebf8
|
|
4
|
+
data.tar.gz: 947951106b4a4db2c5bf288daeca139dfe3564400ee9869d1141153e9a35ae16
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dd1790214eb8a18cf2643a9e77cc6f048e448b1ecca38f30db993c201bb326b8424b67d1da0fad5f76160da8180d033ba510dc36fdf08ec1b136f9cec2114d5e
|
|
7
|
+
data.tar.gz: 0a8ba8cd79110a54bf4dcd4142cb3951ec19752dcd332c98dc0cc3ca103c4ff1d6dfa1498d74e526d3367b3b38066652eb482f82977a46941c974069d15ed102
|
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.34 - 2018/10/19
|
|
10
|
+
|
|
11
|
+
* [BUGFIX] Fetch the comment count, with more Facebook videos.
|
|
12
|
+
|
|
9
13
|
## 0.2.33 - 2018/10/03
|
|
10
14
|
|
|
11
15
|
* [FEATURE] Add ActiveSupport::Notification based instrumentation.
|
data/lib/funky/html/parser.rb
CHANGED
|
@@ -35,6 +35,7 @@ module Funky
|
|
|
35
35
|
def extract_comments_from(html, video_id)
|
|
36
36
|
html.match /"commentcount":(.*?),/
|
|
37
37
|
html.match(/commentcount:(\d+),commentcountreduced/) if $1.nil?
|
|
38
|
+
html.match /commentcount:(\d+),commentTotalCount/ if $1.nil?
|
|
38
39
|
html.match /commentcount:(\d+),.*commentstargetfbid:"#{video_id}"/ if $1.nil?
|
|
39
40
|
matched_count $1
|
|
40
41
|
end
|
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.34
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Philip Nguyen
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-10-
|
|
11
|
+
date: 2018-10-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|