funky 0.2.7 → 0.2.8

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: 32576d871d1cb5d959abde5a785e5c88128c5384
4
- data.tar.gz: d49deafb4f57e10601941c90ee09027da58fda53
3
+ metadata.gz: 8a45f6f9ca2ea16f6e55393ea12a96410798a6c8
4
+ data.tar.gz: 23c725525d25e34bedde18eedc3dfa98b281b7ac
5
5
  SHA512:
6
- metadata.gz: 53de099fde4630d452c4627c02fb0b0c1981406a87a58f6973ae8ac4e4980ca2667f52b00438a6e4d0efdd09bcabbce695978ce0281c582756624a99295e5fe6
7
- data.tar.gz: 31b2ddd5bef4732bf6269eb3287849c525cf0e5f8f65f132844c7b787b91f4d009aadd448141a58b4e1b892bea710d5f913a6a236a7d67c7c488929c2e3ad3d2
6
+ metadata.gz: 78655beeacf97bc69351b7e4ae1bc13fb7af49e015e8334e715e74ade08458b1d64c0bcbc094a5dc23ca43ae11f934028cc9040cd70c7d3898b9d792bb048391
7
+ data.tar.gz: 27175936eb000756f21ea5a3884bdb91d857da8ba94ed7442b248d4f06f09b7ac6d3d40a1e087f28c6d86f2a44f2b40f17c8046b402ec30eccd6e1b5ad48648f
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.8 - 2016/12/12
10
+
11
+ * [BUGFIX] Change the way that "like counts" are parsed now that Facebook has changed the structure of the HTML and can include multiple "likecounts" elements in the same page.
12
+
9
13
  ## 0.2.7 - 2016/08/18
10
14
 
11
15
  * [ENHANCEMENT] When Funky makes a request to an HTML page, Funky would now raise `Funky::ConnectionError` should the following errors occur:
@@ -23,7 +23,7 @@ module Funky
23
23
  end
24
24
 
25
25
  def extract_likes_from(html)
26
- html.match /"likecount":(.*?),/
26
+ html.match(/"likecount":(\d+),"likecountreduced"/)
27
27
  matched_count $1
28
28
  end
29
29
 
data/lib/funky/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Funky
2
- VERSION = "0.2.7"
2
+ VERSION = "0.2.8"
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.7
4
+ version: 0.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Philip Nguyen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-08-18 00:00:00.000000000 Z
11
+ date: 2016-12-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -146,7 +146,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
146
146
  version: '0'
147
147
  requirements: []
148
148
  rubyforge_project:
149
- rubygems_version: 2.5.1
149
+ rubygems_version: 2.6.6
150
150
  signing_key:
151
151
  specification_version: 4
152
152
  summary: Funky is a Ruby library to fetch video data.