funky 0.2.23 → 0.2.24

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: 9ffc5fe5b87b5624e032a5771737aadcffaf905e
4
- data.tar.gz: 4f5681d153e82541cb7b766cbffc727d0f3f90c4
3
+ metadata.gz: 1fccf2ed58806903a1dacc0e533b2c502f5c51e5
4
+ data.tar.gz: 0b92742b5b3ce652f1e61adc1bb4a9ab07b19871
5
5
  SHA512:
6
- metadata.gz: 76bbdb60f31e3c8f2d69b8eca1f086867918c56cc3735fa7dcc980177c3aa12d74110f19547adb215a435f4e99075192879a9fd83c7774e83eddac7cd95f0c99
7
- data.tar.gz: ce1b4bcbab475fc6364bfd6d9bb3998ccf3e36653f1faacf41c2bd9b930ef94c546db3cf0d9b2e6d56499cd23f74218558e3254f95648accbd4b436982e8d417
6
+ metadata.gz: 2c57cf3a237bec4b10ca873a493ec2efc3d9370508c984e21ea98549db3543900c1a51aacc987a60c144c8ec8591fad4172a6c7923ee1b4e9ced03c999965511
7
+ data.tar.gz: 428875be6b1fa05babf65e9c46ac13ad7e2f52500cf6ca5b19ef43fa1b419146fa9cbad28cf4f7b49711b7e539275548810313cc690072d189db457ec573bcba
@@ -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
@@ -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
- new(page)
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
@@ -1,3 +1,3 @@
1
1
  module Funky
2
- VERSION = "0.2.23"
2
+ VERSION = "0.2.24"
3
3
  end
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.23
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-09 00:00:00.000000000 Z
11
+ date: 2017-05-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler