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 +4 -4
- data/lib/fb_page_api/edge/base.rb +3 -2
- data/lib/fb_page_api/version.rb +1 -1
- metadata +2 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6deed4a862663ce802371a72d6d3cd5e2dabb66f
|
4
|
+
data.tar.gz: 6bf12082605f3a33ceb5a337367d4a62442ddeae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
|
data/lib/fb_page_api/version.rb
CHANGED
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.
|
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-
|
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:
|