fb_graph2 0.4.0 → 0.4.1
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/VERSION +1 -1
- data/lib/fb_graph2/attribute_assigner.rb +0 -1
- data/lib/fb_graph2/domain.rb +2 -0
- data/lib/fb_graph2/edge/insights.rb +12 -0
- data/lib/fb_graph2/insight.rb +13 -0
- data/lib/fb_graph2/node.rb +1 -0
- data/lib/fb_graph2/page.rb +1 -0
- data/lib/fb_graph2/post.rb +1 -0
- data/lib/fb_graph2/token_metadata.rb +3 -3
- data/lib/fb_graph2.rb +2 -1
- data/spec/fb_graph2/node_spec.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6036910e798a2dc8d32f03de1fec4d99bcd197eb
|
4
|
+
data.tar.gz: 3cc301a00712616e7165541d2fd5fecd9b27fa7c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ed9daa2f3139f01b5611797a49fe172609c9981431409e5f95567597bdf4f4bfd877df9a55d1e765ff27ea462cfe07787e180260d12f4e372075fa7a53cc3c24
|
7
|
+
data.tar.gz: 6fe6cdf6b25d1b88c0efcf20fdceed25ba59c52a5592bb644948f04c0c91e0ad4cb26914cde97d665cf5bf72bb47bc09d81a724a000c5a7dac11922d2601f0f5
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.1
|
data/lib/fb_graph2/domain.rb
CHANGED
@@ -0,0 +1,13 @@
|
|
1
|
+
module FbGraph2
|
2
|
+
class Insight < Node
|
3
|
+
register_attributes(
|
4
|
+
raw: [:name, :description, :title, :period],
|
5
|
+
custom: [:values]
|
6
|
+
)
|
7
|
+
|
8
|
+
def initialize(id, attributes = {})
|
9
|
+
super
|
10
|
+
self.values = attributes[:values].collect(&:with_indifferent_access)
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
data/lib/fb_graph2/node.rb
CHANGED
data/lib/fb_graph2/page.rb
CHANGED
data/lib/fb_graph2/post.rb
CHANGED
@@ -11,13 +11,13 @@ module FbGraph2
|
|
11
11
|
def initialize(attributes = {})
|
12
12
|
super :debug_token, attributes
|
13
13
|
if app_id
|
14
|
-
|
14
|
+
self.app = App.new app_id
|
15
15
|
end
|
16
16
|
if user_id
|
17
|
-
|
17
|
+
self.user = User.new user_id
|
18
18
|
end
|
19
19
|
if profile_id
|
20
|
-
|
20
|
+
self.page = Page.new profile_id
|
21
21
|
end
|
22
22
|
end
|
23
23
|
|
data/lib/fb_graph2.rb
CHANGED
data/spec/fb_graph2/node_spec.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fb_graph2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- nov matake
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-12-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httpclient
|
@@ -192,6 +192,7 @@ files:
|
|
192
192
|
- lib/fb_graph2/edge/groups.rb
|
193
193
|
- lib/fb_graph2/edge/home.rb
|
194
194
|
- lib/fb_graph2/edge/inbox.rb
|
195
|
+
- lib/fb_graph2/edge/insights.rb
|
195
196
|
- lib/fb_graph2/edge/interests.rb
|
196
197
|
- lib/fb_graph2/edge/invitable_friends.rb
|
197
198
|
- lib/fb_graph2/edge/invited.rb
|
@@ -235,6 +236,7 @@ files:
|
|
235
236
|
- lib/fb_graph2/friend_list.rb
|
236
237
|
- lib/fb_graph2/group.rb
|
237
238
|
- lib/fb_graph2/group_doc.rb
|
239
|
+
- lib/fb_graph2/insight.rb
|
238
240
|
- lib/fb_graph2/message.rb
|
239
241
|
- lib/fb_graph2/milestone.rb
|
240
242
|
- lib/fb_graph2/node.rb
|