funky 0.2.20 → 0.2.21
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/page.rb +6 -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: 2397e152de3f60c0a262460e52aa1d7b27335e8c
|
|
4
|
+
data.tar.gz: 26c4fd936b720a7de07465c8a5b48717824d9fe6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 98772a561547e85c7826e90fcd2a7108caeedc9cad442f9071dcc4946b28c7be466657753d07f6f5cdabd323c3fb3092c79ad573ce3f7d06f975f85d1b281470
|
|
7
|
+
data.tar.gz: c97add8c5c1bba07c683c0a31d219f15444cd248194565ac454a172ec936ee3e8bc346d25d9a7b3a57a5aa82ae1fe794e434f17f8168a641bc562af4d070fd9c
|
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.21 - 2017/05/03
|
|
10
|
+
|
|
11
|
+
* [FEATURE] Add `Funky::Page#fan_count`.
|
|
12
|
+
|
|
9
13
|
## 0.2.20 - 2017/04/20
|
|
10
14
|
|
|
11
15
|
* [BUGFIX] Fix `Funky::Page#videos` by adding condition for an edge case.
|
data/lib/funky/page.rb
CHANGED
|
@@ -11,7 +11,7 @@ module Funky
|
|
|
11
11
|
#
|
|
12
12
|
# @return [Funky::Page] containing the data fetched by Facebook Graph API.
|
|
13
13
|
def self.find(page_id)
|
|
14
|
-
page = Funky::Connection::API.fetch("#{page_id}?fields=name,username,location")
|
|
14
|
+
page = Funky::Connection::API.fetch("#{page_id}?fields=name,username,location,fan_count")
|
|
15
15
|
new(page)
|
|
16
16
|
end
|
|
17
17
|
|
|
@@ -49,6 +49,11 @@ module Funky
|
|
|
49
49
|
data[:name]
|
|
50
50
|
end
|
|
51
51
|
|
|
52
|
+
# @return [Integer] the number of people who likes the Facebook page.
|
|
53
|
+
def fan_count
|
|
54
|
+
data[:fan_count]
|
|
55
|
+
end
|
|
56
|
+
|
|
52
57
|
# @note
|
|
53
58
|
# location is a Hash that contains more specific properties such as city,
|
|
54
59
|
# state, zip, etc.
|
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.21
|
|
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-05-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|