funky 0.2.36 → 0.2.37

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 798436c801870af1fea4bf6c1f23f1587a38538d144a43591b71b697933c4911
4
- data.tar.gz: 3654e41cf3c6fc77a835942d794f7b32ecbec21a0e7c919691858aafe64b0f64
3
+ metadata.gz: 984e32f8d6cb12181eff221cde838017ff6fc15aaca57a69093df54c5af42c07
4
+ data.tar.gz: 96538bad213b30baa2842f0a8c9f893a18efc572dfd344b51c196acc1232b85d
5
5
  SHA512:
6
- metadata.gz: 2eee18ef3b90273753feeab023875f937ed0e428ed0816c399bf4fcfd0468b13eb3d3e201a787104976cc0b2000db1727b86ba3d5a8b4b2bf9cbebd499dce39e
7
- data.tar.gz: b1eb3df953faa477284e6887d30b07fa7ee12f082f5c8f9ecd9cbe86ecbdb0cb206e19cf966ead716cb6efe4e32feee6579657723825ec6c08877a88b224baff
6
+ metadata.gz: 9e7b049f92d06ddceb1e399b1330c7229a7e2e997e28e651cc6aa98d053b1addd7627e121ee9f8206dfc6c0a146fad9330ee792c6e29b3733ec9b27a12fb4d2a
7
+ data.tar.gz: f5b2bc113b36a586342baf0569ec54525ff2c535e52ff0ddb076ee7a93dbbd237c31004d02901f927de7ca5ad35db03f04f85a691426a1db3ab59fa2f91209cd
@@ -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.37 - 2019/07/23
10
+
11
+ * [BUGFIX] Allow funky to scrape view count for more videos
12
+
9
13
  ## 0.2.36 - 2019/03/05
10
14
 
11
15
  * [BUGFIX] Fetch comment count, share count, like count for Facebook
@@ -14,8 +18,8 @@ videos with different HTML.
14
18
  ## 0.2.35 - 2019/01/14
15
19
 
16
20
  * [ENHANCEMENT] Use 2.10 of Facebook Graph API (upgrade from 2.8).
17
- - There will be deprecations in v2.8 of the Facebook Graph API soon. Check out [the changelog](https://developers.facebook.com/docs/apps/changelog).
18
- - Funky API is not changed. (Test is still passing)
21
+ - There will be deprecations in v2.8 of the Facebook Graph API soon. Check out [the changelog](https://developers.facebook.com/docs/apps/changelog).
22
+ - Funky API is not changed. (The same test is still passing)
19
23
 
20
24
  ## 0.2.34 - 2018/10/19
21
25
 
@@ -23,6 +23,6 @@ Gem::Specification.new do |spec|
23
23
  spec.add_development_dependency "rake", "~> 10.0"
24
24
  spec.add_development_dependency "rspec", "~> 3.0"
25
25
  spec.add_development_dependency "simplecov", "0.11.2"
26
- spec.add_development_dependency "yard", "0.9.12"
26
+ spec.add_development_dependency "yard", "0.9.20"
27
27
  spec.add_development_dependency 'coveralls', "0.8.13"
28
28
  end
@@ -22,8 +22,10 @@ module Funky
22
22
  def extract_views_from(html)
23
23
  html.match(/<div><\/div><span class="fcg">\D*([\d,.]+)/)
24
24
  html.match(/postViewCount:"([\d,.]*?)",/) if $1.nil?
25
- html.match %r{([\d,.]*?) views from this post} if $1.nil?
26
25
  html.match /<div class=\"_1vx9\"><span>([\d,.]*?) .*?<\/span><\/div>/ if $1.nil?
26
+ html.match /id=\"u_0_w\">([\d,.]*?) .*?<\/span><\/div>/ if $1.nil?
27
+ html.match />([\d,.]*?) Views<\/span><\/div>/ if $1.nil?
28
+ html.match %r{([\d,.]*?) views from this post} if $1.nil?
27
29
  matched_count $1
28
30
  end
29
31
 
@@ -1,3 +1,3 @@
1
1
  module Funky
2
- VERSION = "0.2.36"
2
+ VERSION = "0.2.37"
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.36
4
+ version: 0.2.37
5
5
  platform: ruby
6
6
  authors:
7
7
  - Philip Nguyen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-03-05 00:00:00.000000000 Z
11
+ date: 2019-07-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - '='
74
74
  - !ruby/object:Gem::Version
75
- version: 0.9.12
75
+ version: 0.9.20
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - '='
81
81
  - !ruby/object:Gem::Version
82
- version: 0.9.12
82
+ version: 0.9.20
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: coveralls
85
85
  requirement: !ruby/object:Gem::Requirement
@@ -149,7 +149,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
149
149
  version: '0'
150
150
  requirements: []
151
151
  rubyforge_project:
152
- rubygems_version: 2.7.6
152
+ rubygems_version: 2.7.6.2
153
153
  signing_key:
154
154
  specification_version: 4
155
155
  summary: Funky is a Ruby library to fetch video data.