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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d0cc82139ba77645ca8723e3aa7ca8ffd5fdb4e0
4
- data.tar.gz: 2dbead2613813de4aea2dd1ef1f067fd07482298
3
+ metadata.gz: 15590018373ea9e7105070720894c37d8438d4bb
4
+ data.tar.gz: 651d33685e5e02764bcf5d2e5670f44581b0e7cb
5
5
  SHA512:
6
- metadata.gz: 72c3b1d0fe5ca08a8eb6e4c0406ec715b8973f0e2fd9d3f7496fff1f01a8c63df5eb5e46cd8de3b969f113394612d9fc9abf7fd0bf5682c11d37809ec777c8d8
7
- data.tar.gz: 2e889e3efb8e57161daa8a6e384628b62d18bd44cf9b2ac7b5290115d01a7a543bff9a1e3f79f4a39f40081b70a219bdae511769127d859e4f777fedd0fc044d
6
+ metadata.gz: f17d452777d4335a928ca82944ef21d5b5ff386a0540134476a6f2f47a3f93547ad0072a50e536e084b59d3b7e364f6717d0f8efd8bc398ac806693fc7875bda
7
+ data.tar.gz: c8a404d60f44aace2b9a7b6236914e2810c24b051b3471a16abf679907c9dc2c7426595f478a412a132936c533698ee26ab67796e4292393e8f6dc42636fe4c2
@@ -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
- @try_count = 0
36
- @previous_timestamp = timestamp
37
- new_query = URI.decode_www_form(uri.query).to_h.merge('until' => timestamp)
38
- uri.query = URI.encode_www_form(new_query)
39
- json[:data] + fetch_multiple_pages(uri)
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
 
@@ -1,3 +1,3 @@
1
1
  module Funky
2
- VERSION = "0.2.19"
2
+ VERSION = "0.2.20"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: funky
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.19
4
+ version: 0.2.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Philip Nguyen