funky 0.2.19 → 0.2.20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/funky/connections/api.rb +9 -5
- data/lib/funky/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 15590018373ea9e7105070720894c37d8438d4bb
|
4
|
+
data.tar.gz: 651d33685e5e02764bcf5d2e5670f44581b0e7cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f17d452777d4335a928ca82944ef21d5b5ff386a0540134476a6f2f47a3f93547ad0072a50e536e084b59d3b7e364f6717d0f8efd8bc398ac806693fc7875bda
|
7
|
+
data.tar.gz: c8a404d60f44aace2b9a7b6236914e2810c24b051b3471a16abf679907c9dc2c7426595f478a412a132936c533698ee26ab67796e4292393e8f6dc42636fe4c2
|
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.20 - 2017/04/20
|
10
|
+
|
11
|
+
* [BUGFIX] Fix `Funky::Page#videos` by adding condition for an edge case.
|
12
|
+
|
9
13
|
## 0.2.19 - 2017/04/20
|
10
14
|
|
11
15
|
* [IMPROVEMENT] Retry 3 times after a server error or a socket error, to fetch
|
@@ -32,11 +32,15 @@ module Funky
|
|
32
32
|
else
|
33
33
|
Time.parse(json[:data][-1][:created_time]).to_i
|
34
34
|
end
|
35
|
-
@
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
35
|
+
if @previous_timestamp == timestamp
|
36
|
+
[]
|
37
|
+
else
|
38
|
+
@try_count = 0
|
39
|
+
@previous_timestamp = timestamp
|
40
|
+
new_query = URI.decode_www_form(uri.query).to_h.merge('until' => timestamp)
|
41
|
+
uri.query = URI.encode_www_form(new_query)
|
42
|
+
json[:data] + fetch_multiple_pages(uri)
|
43
|
+
end
|
40
44
|
end
|
41
45
|
end
|
42
46
|
|
data/lib/funky/version.rb
CHANGED