funky 0.2.25 → 0.2.26
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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/funky/connections/api.rb +2 -0
- 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: 6618fd948f7280d1bf793d525590afb44b529ead
|
|
4
|
+
data.tar.gz: 1ff6bbb1625e63d0a25f889633675a23d5273425
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 05172aae956d99ab29ecce0f6dcc97569dadcabccdbc4a4bc4757d4c008aa88be1a04a8c1529491bb08571c5792b00c36a0cf787e4c6f3128ab744c68d8f66ba
|
|
7
|
+
data.tar.gz: f06312f0e76ef993727295c86375b6516bac19f2edc80d1811a3e2783e5e95e2b6ea0afbe3f6e1f3306cbc2335018f4297957fe080f2bd717f51b2749961081a
|
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.26 - 2017/06/06
|
|
10
|
+
|
|
11
|
+
* [ENHANCEMENT] Raise ContentNotFound if Page#find is called with an invalid URI
|
|
12
|
+
|
|
9
13
|
## 0.2.25 - 2017/05/16
|
|
10
14
|
|
|
11
15
|
* [FEATURE] Retry up to 5 times if Facebook responds with error
|
|
@@ -26,6 +26,8 @@ module Funky
|
|
|
26
26
|
def self.fetch(path_query, is_array: false)
|
|
27
27
|
uri = URI "https://#{host}/v2.8/#{path_query}&limit=100&access_token=#{app_id}%7C#{app_secret}"
|
|
28
28
|
is_array ? fetch_multiple_pages(uri).uniq : json_for(uri)
|
|
29
|
+
rescue URI::InvalidURIError
|
|
30
|
+
raise Funky::ContentNotFound, "Invalid URL"
|
|
29
31
|
end
|
|
30
32
|
|
|
31
33
|
def self.fetch_multiple_pages(uri)
|
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.26
|
|
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-
|
|
11
|
+
date: 2017-06-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|