funky 0.2.9 → 0.2.10

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: 5e52fc48ae3d4a4d712fe456071ef223b18926ce
4
- data.tar.gz: a17317615267e853f52b5ceb7c1d47b037838af1
3
+ metadata.gz: 63cac94890e722a693d619d7a181427084b99fb7
4
+ data.tar.gz: 18cc9630f9fc4923e33ab9d09f2fa166ab03a305
5
5
  SHA512:
6
- metadata.gz: 48e7df27906e165de15d24075baf76bc4398194f5ad67e463f9732213ed23c27b5e507b3469e8393d4aa95d471db2a88ca96b433b68b8b46b3cba388ca55228f
7
- data.tar.gz: ea95e3776cb2ce7e7cf08ef6d5dd4b32422ef9514b7f0d5b9fd8be4ddf94dc22378684de56d87bc81fcedd3dea6e1eaa84a4cc5dba525d8b7ace52a292d20452
6
+ metadata.gz: 33d60d7d8f88082f4b5063c241f9dcc09bb28a17075c1757effc2cd93a9c1e47014bf7f55e846546d953b01e7ce50adbd7578295822e6aed33ae21062e7d532f
7
+ data.tar.gz: 505d5ca3ff3a1aee9d9e173cdff1bb0d259213e94aeddb4b79a7b9cb3ee18086d6c708b23f7d1e2fc920ea8111bb3d990ea879b41417aa9d866b70897dd76406
@@ -6,6 +6,11 @@ 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.10 - 2016/12/20
10
+
11
+ * [ENHANCEMENT] Add a facebook page ID as a part of the Funky::Video API
12
+ * [ENHANCEMENT] Add a facebook page URL as a part of the Funky::Video API
13
+
9
14
  ## 0.2.9 - 2016/12/13
10
15
 
11
16
  * [BUGFIX] Allow a video ID to be parsed out of facebook video URLs with
@@ -1,3 +1,3 @@
1
1
  module Funky
2
- VERSION = "0.2.9"
2
+ VERSION = "0.2.10"
3
3
  end
@@ -45,6 +45,15 @@ module Funky
45
45
  data.fetch(:from)[:name]
46
46
  end
47
47
 
48
+ # @return [String] the id of Facebook page for the video.
49
+ def page_id
50
+ data.fetch(:from)[:id]
51
+ end
52
+
53
+ def page_url
54
+ "https://www.facebook.com/#{page_id}"
55
+ end
56
+
48
57
  # @return [Integer] the total number of likes for the video.
49
58
  def like_count
50
59
  data[:like_count]
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.9
4
+ version: 0.2.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Philip Nguyen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-12-14 00:00:00.000000000 Z
11
+ date: 2017-01-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler