funky 0.2.2 → 0.2.3
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/README.md +1 -0
- data/lib/funky/version.rb +1 -1
- data/lib/funky/video.rb +6 -0
- 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: c2c8d692ebb8d05da20e458db5f845fd7b323959
|
|
4
|
+
data.tar.gz: a145fb6b2acae26ec6c5bed374d89f9bdaf60990
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d7703e5fb6fc90cb0dd601cb158a1009a615df501d72bdfdc6d17d13f52eb62d5c40684acb178b0219711853ecd74f04d4e5b51655d1e33a4a3f39401b5f0a36
|
|
7
|
+
data.tar.gz: fa0630db3d930a4ee50cec0fba6df8fe7be443c98b735c9d73d39e884e1f6a9cc3adad59ec494196da79a228a4f14323cd36aad9c0852e13d240a0eb76f9b42a
|
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.3 - 2016/06/22
|
|
10
|
+
|
|
11
|
+
* [FEATURE] Add `page_name` of a video found by API call (which is `Funky::Video.where`)
|
|
12
|
+
|
|
9
13
|
## 0.2.2 - 2016/06/17
|
|
10
14
|
|
|
11
15
|
* [BUGFIX] Single video id passed to the `Funky::Video.where` clause will not
|
data/README.md
CHANGED
|
@@ -65,6 +65,7 @@ videos.first.created_time # => #<DateTime: 2015-12-17T06:29:48+00:00>
|
|
|
65
65
|
videos.first.description # => "Hugh Jackman coaches Great Britain's..."
|
|
66
66
|
videos.first.length # => 147.05
|
|
67
67
|
videos.first.picture # => "https://scontent.xx.fbcdn.net/v/..."
|
|
68
|
+
videos.first.page_name # => "Moviefone"
|
|
68
69
|
|
|
69
70
|
```
|
|
70
71
|
|
data/lib/funky/version.rb
CHANGED
data/lib/funky/video.rb
CHANGED
|
@@ -40,6 +40,11 @@ module Funky
|
|
|
40
40
|
data[:picture]
|
|
41
41
|
end
|
|
42
42
|
|
|
43
|
+
# @return [String] the name of Facebook page for the video.
|
|
44
|
+
def page_name
|
|
45
|
+
data.fetch(:from)[:name]
|
|
46
|
+
end
|
|
47
|
+
|
|
43
48
|
# @return [Integer] the total number of likes for the video.
|
|
44
49
|
def like_count
|
|
45
50
|
data[:like_count]
|
|
@@ -144,6 +149,7 @@ module Funky
|
|
|
144
149
|
'created_time',
|
|
145
150
|
'description',
|
|
146
151
|
'length',
|
|
152
|
+
'from',
|
|
147
153
|
'picture'
|
|
148
154
|
]
|
|
149
155
|
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.
|
|
4
|
+
version: 0.2.3
|
|
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-06-
|
|
11
|
+
date: 2016-06-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|