fb_page_api 0.0.8 → 0.0.9

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: 6e1524d8303c408b2609140c5f8130f23087879d
4
- data.tar.gz: a72a7c660851c8ea0a774c0344c321e029547431
3
+ metadata.gz: 6deed4a862663ce802371a72d6d3cd5e2dabb66f
4
+ data.tar.gz: 6bf12082605f3a33ceb5a337367d4a62442ddeae
5
5
  SHA512:
6
- metadata.gz: 441738c715c070dd83236b95981dbe908d12baad00447f945d3e50e993bf79a41d483d3f123ef26d02dfa4a84b983b81e20a268f7b7628a7dc9799c0966166a2
7
- data.tar.gz: e785fd5b19a152827e1ed683814b995c8534304dad9765ff02e1035402eac191960270a8761a72ebc7dc9edf8c6505b8defee0c752952447f912b5ba906dc371
6
+ metadata.gz: 7c11be69cff08835e65c24ce2d10f837c59d7c3fdd93dfab2325f03c87626875a796b5c0280b108652f94e8d45820d081b84211294b7289aa436dd24f522d7df
7
+ data.tar.gz: 2c4a74803d11134d772e395e140bc0ffd02877b75c26bb5922c387ad5aeca3cd7b3c67ebc787d9d2095e1e895f3434ba02d8b2beee0276a1c4b8967263304d06
@@ -1,11 +1,12 @@
1
1
  module FbPageApi
2
2
  module Edge
3
3
  class Base
4
- attr_accessor :parent_id, :page_after, :page_before, :next_url, :page_id, :page_access_token
4
+ attr_accessor :parent_id, :page_after, :page_before, :next_url, :page_id, :page_access_token, :custom_request_fields
5
5
 
6
6
  def initialize(options = { parent_id: Config.page_id, page_access_token: Config.page_access_token })
7
7
  self.page_access_token = options[:page_access_token]
8
8
  self.parent_id = options[:parent_id]
9
+ self.custom_request_fields = options[:custom_request_fields] || []
9
10
  end
10
11
 
11
12
  def collection(*args)
@@ -83,7 +84,7 @@ module FbPageApi
83
84
 
84
85
  def field_params
85
86
  {
86
- fields: request_fields.join(',')
87
+ fields: (request_fields | custom_request_fields).join(',')
87
88
  }
88
89
  end
89
90
 
@@ -1,3 +1,3 @@
1
1
  module FbPageApi
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fb_page_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tuan Mai
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-07-09 00:00:00.000000000 Z
11
+ date: 2017-08-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -133,4 +133,3 @@ signing_key:
133
133
  specification_version: 4
134
134
  summary: Ruby library for facebook graph api with page.
135
135
  test_files: []
136
- has_rdoc: