fb-core 1.0.0.beta2 → 1.0.0.beta3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/fb/core/version.rb +1 -1
- data/lib/fb/page.rb +1 -1
- data/lib/fb/post.rb +5 -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: be4280ee1403156598600751f314cd45cc5db0ac
|
4
|
+
data.tar.gz: f9a2b017df66583e09c77d50c8b976dcce8b34cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d8ae8810c7687e7e1ff82a80ac49d430872aa6fcea0bbeb317dd27c12668ebdad4ba19ee0b92d621e433a12d703ed8b900a88bf9b06e7f56a1f9aace40b0f12d
|
7
|
+
data.tar.gz: 5b00b91a0c702fc6c3fd2d7fd391a13ccf2fa948740a655c2781b9ef7df857759c3749ebd3f00d6477e509b2002f844e45d6808d0b8a1c9d49bd875b9ce9e29a
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,9 @@ 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
|
+
## 1.0.0.beta3 - 2018/03/14
|
10
|
+
|
11
|
+
* [FEATURE] Add `video_avg_time_watched` to `Fb::Post` for length of average time watched.
|
9
12
|
|
10
13
|
## 1.0.0.beta2 - 2018/03/06
|
11
14
|
|
data/lib/fb/core/version.rb
CHANGED
data/lib/fb/page.rb
CHANGED
@@ -142,7 +142,7 @@ module Fb
|
|
142
142
|
# https://developers.facebook.com/docs/graph-api/reference/v2.10/insights
|
143
143
|
def post_metrics
|
144
144
|
%i(post_engaged_users post_video_views_organic post_video_views_paid post_video_views post_video_view_time
|
145
|
-
post_impressions)
|
145
|
+
post_impressions post_video_avg_time_watched)
|
146
146
|
end
|
147
147
|
|
148
148
|
def videos_with_metrics_from(data)
|
data/lib/fb/post.rb
CHANGED
@@ -43,6 +43,10 @@ module Fb
|
|
43
43
|
# @option [Integer] The number of times your Page's post entered a person's screen.
|
44
44
|
attr_reader :impressions
|
45
45
|
|
46
|
+
# @option [Integer] The average length of time people spent viewing
|
47
|
+
# your video, in milliseconds.
|
48
|
+
attr_reader :video_avg_time_watched
|
49
|
+
|
46
50
|
# @return [Integer] the number of comments of the post.
|
47
51
|
attr_reader :comment_count
|
48
52
|
|
@@ -82,6 +86,7 @@ module Fb
|
|
82
86
|
@video_views_paid = options[:post_video_views_paid] if options[:post_video_views_paid]
|
83
87
|
@video_view_time = options[:post_video_view_time] if options[:post_video_view_time]
|
84
88
|
@impressions = options[:post_impressions] if options[:post_impressions]
|
89
|
+
@video_avg_time_watched = options[:post_video_avg_time_watched] if options[:post_video_avg_time_watched]
|
85
90
|
|
86
91
|
@share_count = options[:shares] ? options[:shares]["count"] : 0
|
87
92
|
@comment_count = options[:comments]['summary']['total_count'] if options[:comments]
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fb-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.
|
4
|
+
version: 1.0.0.beta3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Claudio Baccigalupo
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2018-03-
|
12
|
+
date: 2018-03-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: fb-support
|