funky 0.2.23 → 0.2.24
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 +6 -0
- data/lib/funky/page.rb +5 -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: 1fccf2ed58806903a1dacc0e533b2c502f5c51e5
|
|
4
|
+
data.tar.gz: 0b92742b5b3ce652f1e61adc1bb4a9ab07b19871
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2c57cf3a237bec4b10ca873a493ec2efc3d9370508c984e21ea98549db3543900c1a51aacc987a60c144c8ec8591fad4172a6c7923ee1b4e9ced03c999965511
|
|
7
|
+
data.tar.gz: 428875be6b1fa05babf65e9c46ac13ad7e2f52500cf6ca5b19ef43fa1b419146fa9cbad28cf4f7b49711b7e539275548810313cc690072d189db457ec573bcba
|
data/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,12 @@ 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.24 - 2017/05/10
|
|
10
|
+
|
|
11
|
+
* [BUGFIX] Raise Funky::ContentNotFound error when a page does not return
|
|
12
|
+
its name. This change will filter out cases a full url of website entered
|
|
13
|
+
as page_id argument of `Funky::Page#find`, instead of username.
|
|
14
|
+
|
|
9
15
|
## 0.2.23 - 2017/05/09
|
|
10
16
|
|
|
11
17
|
* [FEATURE] Print out logs for each pagination
|
data/lib/funky/page.rb
CHANGED
|
@@ -12,7 +12,11 @@ module Funky
|
|
|
12
12
|
# @return [Funky::Page] containing the data fetched by Facebook Graph API.
|
|
13
13
|
def self.find(page_id)
|
|
14
14
|
page = Funky::Connection::API.fetch("#{page_id}?fields=name,username,location,fan_count,featured_video")
|
|
15
|
-
|
|
15
|
+
if page[:name].nil?
|
|
16
|
+
raise ContentNotFound, "Page not found with ID #{page_id}"
|
|
17
|
+
else
|
|
18
|
+
new(page)
|
|
19
|
+
end
|
|
16
20
|
end
|
|
17
21
|
|
|
18
22
|
# Fetches data from Facebook Graph API and returns an array of Funky::Video
|
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.24
|
|
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-05-
|
|
11
|
+
date: 2017-05-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|