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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 15590018373ea9e7105070720894c37d8438d4bb
4
- data.tar.gz: 651d33685e5e02764bcf5d2e5670f44581b0e7cb
3
+ metadata.gz: 2397e152de3f60c0a262460e52aa1d7b27335e8c
4
+ data.tar.gz: 26c4fd936b720a7de07465c8a5b48717824d9fe6
5
5
  SHA512:
6
- metadata.gz: f17d452777d4335a928ca82944ef21d5b5ff386a0540134476a6f2f47a3f93547ad0072a50e536e084b59d3b7e364f6717d0f8efd8bc398ac806693fc7875bda
7
- data.tar.gz: c8a404d60f44aace2b9a7b6236914e2810c24b051b3471a16abf679907c9dc2c7426595f478a412a132936c533698ee26ab67796e4292393e8f6dc42636fe4c2
6
+ metadata.gz: 98772a561547e85c7826e90fcd2a7108caeedc9cad442f9071dcc4946b28c7be466657753d07f6f5cdabd323c3fb3092c79ad573ce3f7d06f975f85d1b281470
7
+ data.tar.gz: c97add8c5c1bba07c683c0a31d219f15444cd248194565ac454a172ec936ee3e8bc346d25d9a7b3a57a5aa82ae1fe794e434f17f8168a641bc562af4d070fd9c
@@ -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.
@@ -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.
@@ -1,3 +1,3 @@
1
1
  module Funky
2
- VERSION = "0.2.20"
2
+ VERSION = "0.2.21"
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.20
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-04-20 00:00:00.000000000 Z
11
+ date: 2017-05-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler