fb-core 1.0.0.beta9 → 1.0.0.beta10

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: 7f00d0e1f64f66e4dfda78e3a5b2aa4bcf580350
4
- data.tar.gz: a82b45e150d0685a374ebaee87ca22de6c6faa5b
3
+ metadata.gz: 42466ce3b3855146af568ed94374c219e8409731
4
+ data.tar.gz: 62a72bf0afd273c9fe122964ce92fed20649f799
5
5
  SHA512:
6
- metadata.gz: 1f674af5346aff70fdc7cb5f538c91c4ea340970c7fdedaa86c183f649b4842ceed01af20539c4209f50f429ef6b161d176d41f9654283c9fdfb6a4780d81a46
7
- data.tar.gz: b2769a3168557d34c7bb83dc55be643a5af4598201bb2a1e86d63cb6b232acd49d332b06f950943e7291bac970905dc79d1a602454f0f20852cf044411ec111c
6
+ metadata.gz: ba53c107a9c8b3cf0089c58949c3dc84014212ae285aabd0d52df38eed4ec0123c096b025df9f01ff67a76ac6e91d8b47ebb6376c8b2451e4d966dd0879bfce9
7
+ data.tar.gz: 33bdb5fcc8d469d2db6d37b7d3bc264386cccbb72c37029df766d79ab43b82c95a83d8c5b5315d2e213f58bcdb3ec7f0b30c58199c616a546bd178f1ce08c524
data/CHANGELOG.md CHANGED
@@ -6,9 +6,13 @@ 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.beta10 - 2018/05/01
10
+
11
+ * [FEATURE] Add `:since` and `:until` option to `Page#videos` method.
12
+
9
13
  ## 1.0.0.beta9 - 2018/04/25
10
14
 
11
- * [FEATURE] Add `:without_lifetime_metrics` option to `Page#videos` method .
15
+ * [FEATURE] Add `:without_lifetime_metrics` option to `Page#videos` method.
12
16
 
13
17
  ## 1.0.0.beta8 - 2018/04/20
14
18
 
@@ -3,6 +3,6 @@ module Fb
3
3
  class Core
4
4
  # @return [String] the SemVer-compatible gem version.
5
5
  # @see http://semver.org
6
- VERSION = '1.0.0.beta9'
6
+ VERSION = '1.0.0.beta10'
7
7
  end
8
8
  end
data/lib/fb/page.rb CHANGED
@@ -89,9 +89,14 @@ module Fb
89
89
  end
90
90
 
91
91
  # @return [Array<Fb::Video>] the uploaded videos for the page.
92
+ # @param [Hash] options the options
93
+ # @option [Time] :since only return videos ahead of this time.
94
+ # @option [Time] :until only return videos previous to this time.
95
+ # @option [Boolean] :without_lifetime_metrics whether to include insights for the videos.
92
96
  def videos(options = {})
93
97
  @videos ||= begin
94
- request = PaginatedRequest.new path: "/v2.9/#{@id}/videos", params: video_params
98
+ params = video_params.merge options
99
+ request = PaginatedRequest.new path: "/v2.9/#{@id}/videos", params: params
95
100
  data = request.run.body['data']
96
101
  options[:without_lifetime_metrics] ? videos_from(data) : videos_with_metrics_from(data)
97
102
  end
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.beta9
4
+ version: 1.0.0.beta10
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-04-25 00:00:00.000000000 Z
12
+ date: 2018-05-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: fb-support