funky 0.2.12 → 0.2.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +13 -0
- data/lib/funky/connections/api.rb +2 -2
- data/lib/funky/html/page.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: 542904cd43b9e75e88011affb0c5a11b5c8a90c5
|
4
|
+
data.tar.gz: 4a473d2052b7004b63b179c59fc7ddb0ee0052a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bc3738d9fc5dfdf001a039dd419fb9b70231a7d4940a9320fc9f035202c89686f313265a2826df0fd13e42db60f2a1069444ec1ab7ba1e18fb1500402350e472
|
7
|
+
data.tar.gz: 07d3db9a3a46123dab571a28bfa444b2425fc5451db1ab9f202901ec19d9d585fdfc49ea8c9b774b0a23fa4ea8cb47ad2380e9afd61623ec5a410e14d21b070d
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,19 @@ 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.13 - 2017/01/25
|
10
|
+
|
11
|
+
* [BUGFIX] When Facebook responds with a 302 redirect, sometimes an URL
|
12
|
+
with a space is returned (e.g., "https://www.facebook.com/KinoToPrzygoda /videos/322742591438587/") that is not URI encoded. This causes URI#parse to raise an InvalidURIError unless the URL is URL encoded.
|
13
|
+
|
14
|
+
|
15
|
+
## 2017/01/24
|
16
|
+
|
17
|
+
* [ENHANCEMENT] Use 2.8 of Facebook Graph API (upgrade from 2.6).
|
18
|
+
- There were deprecations in v2.8 of the Facebook Graph API as well as
|
19
|
+
additions documented in [the changelog](https://developers.facebook.com/docs/apps/changelog).
|
20
|
+
- The current API of Funky is not affected.
|
21
|
+
|
9
22
|
## 0.2.12 - 2017/01/19
|
10
23
|
|
11
24
|
* [ENHANCEMENT] Parse new format of share & comment count in Facebook HTML
|
@@ -7,7 +7,7 @@ module Funky
|
|
7
7
|
class API < Base
|
8
8
|
def self.request(id:, fields:)
|
9
9
|
uri = URI::HTTPS.build host: host,
|
10
|
-
path: "/v2.
|
10
|
+
path: "/v2.8/#{id}",
|
11
11
|
query: "access_token=#{app_id}%7C#{app_secret}&fields=#{fields}"
|
12
12
|
response_for(get_http_request(uri), uri)
|
13
13
|
end
|
@@ -42,7 +42,7 @@ module Funky
|
|
42
42
|
|
43
43
|
def self.create_batch_for(ids, fields)
|
44
44
|
ids.map do |id|
|
45
|
-
{"method":"GET", "relative_url": "/v2.
|
45
|
+
{"method":"GET", "relative_url": "/v2.8/#{id}?fields=#{fields}"}
|
46
46
|
end
|
47
47
|
end
|
48
48
|
end
|
data/lib/funky/html/page.rb
CHANGED
@@ -20,7 +20,7 @@ module Funky
|
|
20
20
|
http.request request
|
21
21
|
end
|
22
22
|
if response.is_a? Net::HTTPRedirection
|
23
|
-
request = Net::HTTP::Get.new URI.parse(response.header['location'])
|
23
|
+
request = Net::HTTP::Get.new URI.parse(URI.encode(response.header['location']))
|
24
24
|
response = Net::HTTP.start(uri.host, 443, use_ssl: true) do |http|
|
25
25
|
http.request request
|
26
26
|
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.13
|
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-01-
|
11
|
+
date: 2017-01-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|