mosaic-facebook 0.9.0 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/lib/mosaic/facebook/graph.rb +1 -0
- data/lib/mosaic/facebook/graph/application.rb +11 -0
- data/lib/mosaic/facebook/graph/like.rb +20 -0
- data/lib/mosaic/facebook/graph/user.rb +5 -1
- data/lib/mosaic/facebook/version.rb +1 -1
- data/mosaic-facebook.gemspec +2 -0
- data/spec/api/notification_spec.rb +1 -1
- data/spec/facebook_config.yml.example +8 -3
- data/spec/fql/comment_spec.rb +1 -1
- data/spec/fql/post_spec.rb +1 -1
- data/spec/graph/account_spec.rb +1 -1
- data/spec/graph/application_spec.rb +11 -1
- data/spec/graph/comment_spec.rb +1 -1
- data/spec/graph/event_spec.rb +1 -1
- data/spec/graph/insights_spec.rb +1 -1
- data/spec/graph/like_spec.rb +25 -0
- data/spec/graph/page_spec.rb +1 -1
- data/spec/graph/post_spec.rb +7 -3
- data/spec/graph/subscription_spec.rb +1 -1
- data/spec/graph/user_spec.rb +7 -1
- data/spec/mosaic-facebook_spec.rb +1 -1
- data/spec/spec_helper.rb +5 -0
- data/spec/vcr/fixtures/cassettes/Mosaic_Facebook_Graph_Account/given_a_known_account/should_retrieve_the_insights.yml +48 -0
- data/spec/vcr/fixtures/cassettes/Mosaic_Facebook_Graph_Account/given_a_known_account/should_retrieve_the_posts.yml +48 -0
- data/spec/vcr/fixtures/cassettes/Mosaic_Facebook_Graph_Account/self_all/should_require_an_access_token.yml +48 -0
- data/spec/vcr/fixtures/cassettes/Mosaic_Facebook_Graph_Account/self_all/when_an_access_token_is_provided/should_return_the_current_user_s_apps_and_pages.yml +48 -0
- data/spec/vcr/fixtures/cassettes/Mosaic_Facebook_Graph_Account/self_find_by_name/should_find_an_account_for_a_named_page.yml +50 -0
- data/spec/vcr/fixtures/cassettes/Mosaic_Facebook_Graph_Application/given_an_application_and_a_client_secret_/should_authorize_a_user_and_set_up_a_new_user_correctly.yml +93 -0
- data/spec/vcr/fixtures/cassettes/Mosaic_Facebook_Graph_Application/given_an_application_and_a_client_secret_/should_retrieve_an_access_token.yml +46 -0
- data/spec/vcr/fixtures/cassettes/Mosaic_Facebook_Graph_Application/given_an_application_and_a_client_secret_/should_return_a_list_of_subscriptions.yml +48 -0
- data/spec/vcr/fixtures/cassettes/Mosaic_Facebook_Graph_Application/self_find_by_id/should_require_an_access_token.yml +48 -0
- data/spec/vcr/fixtures/cassettes/Mosaic_Facebook_Graph_Application/self_find_by_id/with_an_access_token/should_find_an_application.yml +48 -0
- data/spec/vcr/fixtures/cassettes/Mosaic_Facebook_Graph_Like/with_a_valid_access_token/should_be_able_to_find_if_a_page_is_liked.yml +48 -0
- data/spec/vcr/fixtures/cassettes/Mosaic_Facebook_Graph_Like/with_a_valid_access_token/should_be_able_to_find_if_a_page_is_not_liked.yml +48 -0
- data/spec/vcr/fixtures/cassettes/Mosaic_Facebook_Graph_Like/with_a_valid_access_token/should_fetch_all_likes.yml +48 -0
- data/spec/vcr/fixtures/cassettes/Mosaic_Facebook_Graph_Page/given_a_valid_page/with_a_valid_access_token/should_return_a_event_list.yml +48 -0
- data/spec/vcr/fixtures/cassettes/Mosaic_Facebook_Graph_Page/given_a_valid_page/with_a_valid_access_token/should_return_a_page_feed.yml +48 -0
- data/spec/vcr/fixtures/cassettes/Mosaic_Facebook_Graph_Post/given_a_page_with_posts/and_a_post_with_comments/should_get_post.yml +93 -0
- data/spec/vcr/fixtures/cassettes/Mosaic_Facebook_Graph_Post/given_a_page_with_posts/should_get_ten_comments.yml +48 -0
- data/spec/vcr/fixtures/cassettes/Mosaic_Facebook_Graph_Post/given_a_page_with_posts/should_retrieve_the_user_who_posted_it.yml +48 -0
- data/spec/vcr/fixtures/cassettes/Mosaic_Facebook_Graph_User/given_a_valid_user/_accounts/should_require_an_access_token.yml +48 -0
- data/spec/vcr/fixtures/cassettes/Mosaic_Facebook_Graph_User/given_a_valid_user/_accounts/when_a_valid_access_token_is_provided/should_return_the_user_s_apps_and_pages.yml +48 -0
- data/spec/vcr/fixtures/cassettes/Mosaic_Facebook_Graph_User/self_me/should_require_an_access_token.yml +48 -0
- data/spec/vcr/fixtures/cassettes/Mosaic_Facebook_Graph_User/self_me/when_an_access_token_is_provided/should_return_the_current_user.yml +50 -0
- data/spec/vcr/fixtures/cassettes/Mosaic_Facebook_Notification/when_a_valid_access_token_is_provided/should_send_a_notification.yml +49 -0
- data/spec/vcr/fixtures/cassettes/Mosaic_Facebook_Notification/when_no_or_invalid_token_is_passed/should_require_a_valid_access_token.yml +74 -0
- data/spec/vcr/fixtures/cassettes/Mosaic_Facebook_Notification/when_no_or_invalid_token_is_passed/should_require_an_access_token.yml +74 -0
- data/spec/vcr/vcr.rb +6 -0
- metadata +117 -25
@@ -0,0 +1,50 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://graph.facebook.com/me?access_token=access_token
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ""
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.8.7
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
+
Accept:
|
15
|
+
- "*/*"
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Access-Control-Allow-Origin:
|
22
|
+
- "*"
|
23
|
+
Cache-Control:
|
24
|
+
- private, no-cache, no-store, must-revalidate
|
25
|
+
Content-Type:
|
26
|
+
- application/json; charset=UTF-8
|
27
|
+
Etag:
|
28
|
+
- "\"8c1adf1e52523c2f2c9265fa7f1ae6d2e43e08b3\""
|
29
|
+
Expires:
|
30
|
+
- Sat, 01 Jan 2000 00:00:00 GMT
|
31
|
+
Last-Modified:
|
32
|
+
- 2013-05-10T14:45:03+0000
|
33
|
+
Pragma:
|
34
|
+
- no-cache
|
35
|
+
X-Fb-Rev:
|
36
|
+
- "837897"
|
37
|
+
X-Fb-Debug:
|
38
|
+
- TiA7JJYoc0FZTOeFWiAeFrJqIfdva34XRvRzTxQPDoo=
|
39
|
+
Date:
|
40
|
+
- Thu, 06 Jun 2013 18:17:18 GMT
|
41
|
+
Connection:
|
42
|
+
- keep-alive
|
43
|
+
Content-Length:
|
44
|
+
- "513"
|
45
|
+
body:
|
46
|
+
encoding: US-ASCII
|
47
|
+
string: "{\"id\":\"user_id\",\"name\":\"Billy Monk\",\"first_name\":\"Billy\",\"last_name\":\"Monk\",\"link\":\"http:\\/\\/www.facebook.com\\/billy.monk.92\",\"username\":\"billy.monk.92\",\"hometown\":{\"id\":\"111948542155151\",\"name\":\"San Jose, California\"},\"location\":{\"id\":\"111948542155151\",\"name\":\"San Jose, California\"},\"work\":[{\"employer\":{\"id\":\"27176049295\",\"name\":\"Zoocasa, Brokerage\"},\"start_date\":\"0000-00\",\"end_date\":\"0000-00\"}],\"gender\":\"male\",\"timezone\":-4,\"locale\":\"en_US\",\"verified\":true,\"updated_time\":\"2013-05-10T14:45:03+0000\"}"
|
48
|
+
http_version:
|
49
|
+
recorded_at: Thu, 06 Jun 2013 18:17:22 GMT
|
50
|
+
recorded_with: VCR 2.5.0
|
@@ -0,0 +1,49 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.facebook.com/method/notifications.sendEmail?access_token=access_token&recipients=user_id&subject=testing&text=ajit
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ""
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.8.7
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
+
Accept:
|
15
|
+
- "*/*"
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Access-Control-Allow-Origin:
|
22
|
+
- "*"
|
23
|
+
Cache-Control:
|
24
|
+
- private, no-cache, no-store, must-revalidate
|
25
|
+
Content-Type:
|
26
|
+
- text/xml;charset=utf-8
|
27
|
+
Expires:
|
28
|
+
- Sat, 01 Jan 2000 00:00:00 GMT
|
29
|
+
Pragma:
|
30
|
+
- no-cache
|
31
|
+
X-Fb-Rev:
|
32
|
+
- "837897"
|
33
|
+
X-Fb-Debug:
|
34
|
+
- FBotWKPotiCmABMAriUdpiwDqAI5mddEJTMawUX91II=
|
35
|
+
Date:
|
36
|
+
- Thu, 06 Jun 2013 18:17:13 GMT
|
37
|
+
Connection:
|
38
|
+
- keep-alive
|
39
|
+
Content-Length:
|
40
|
+
- "257"
|
41
|
+
body:
|
42
|
+
encoding: US-ASCII
|
43
|
+
string: |
|
44
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
45
|
+
<notifications_sendEmail_response xmlns="http://api.facebook.com/1.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://api.facebook.com/1.0/ http://api.facebook.com/1.0/facebook.xsd"/>
|
46
|
+
|
47
|
+
http_version:
|
48
|
+
recorded_at: Thu, 06 Jun 2013 18:17:16 GMT
|
49
|
+
recorded_with: VCR 2.5.0
|
@@ -0,0 +1,74 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.facebook.com/method/notifications.sendEmail?access_token=xxx&recipients=user_id&subject=testing&text=ajit
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ""
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.8.7
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
+
Accept:
|
15
|
+
- "*/*"
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Access-Control-Allow-Origin:
|
22
|
+
- "*"
|
23
|
+
Cache-Control:
|
24
|
+
- private, no-cache, no-store, must-revalidate
|
25
|
+
Content-Type:
|
26
|
+
- text/xml;charset=utf-8
|
27
|
+
Expires:
|
28
|
+
- Sat, 01 Jan 2000 00:00:00 GMT
|
29
|
+
Pragma:
|
30
|
+
- no-cache
|
31
|
+
X-Fb-Rev:
|
32
|
+
- "837897"
|
33
|
+
X-Fb-Debug:
|
34
|
+
- Aw34ENB7buTVhWwe5GavgpHhlsAuEF8Tp8TJdB6vEH4=
|
35
|
+
Date:
|
36
|
+
- Thu, 06 Jun 2013 18:17:13 GMT
|
37
|
+
Connection:
|
38
|
+
- keep-alive
|
39
|
+
Content-Length:
|
40
|
+
- "783"
|
41
|
+
body:
|
42
|
+
encoding: US-ASCII
|
43
|
+
string: |
|
44
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
45
|
+
<error_response xmlns="http://api.facebook.com/1.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://api.facebook.com/1.0/ http://api.facebook.com/1.0/facebook.xsd">
|
46
|
+
<error_code>190</error_code>
|
47
|
+
<error_msg>Invalid OAuth access token.</error_msg>
|
48
|
+
<request_args list="true">
|
49
|
+
<arg>
|
50
|
+
<key>method</key>
|
51
|
+
<value>notifications.sendEmail</value>
|
52
|
+
</arg>
|
53
|
+
<arg>
|
54
|
+
<key>access_token</key>
|
55
|
+
<value>xxx</value>
|
56
|
+
</arg>
|
57
|
+
<arg>
|
58
|
+
<key>recipients</key>
|
59
|
+
<value>user_id</value>
|
60
|
+
</arg>
|
61
|
+
<arg>
|
62
|
+
<key>subject</key>
|
63
|
+
<value>testing</value>
|
64
|
+
</arg>
|
65
|
+
<arg>
|
66
|
+
<key>text</key>
|
67
|
+
<value>ajit</value>
|
68
|
+
</arg>
|
69
|
+
</request_args>
|
70
|
+
</error_response>
|
71
|
+
|
72
|
+
http_version:
|
73
|
+
recorded_at: Thu, 06 Jun 2013 18:17:16 GMT
|
74
|
+
recorded_with: VCR 2.5.0
|
@@ -0,0 +1,74 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.facebook.com/method/notifications.sendEmail?access_token&recipients=000000000&subject=testing&text=ajit
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ""
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.8.7
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
+
Accept:
|
15
|
+
- "*/*"
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Access-Control-Allow-Origin:
|
22
|
+
- "*"
|
23
|
+
Cache-Control:
|
24
|
+
- private, no-cache, no-store, must-revalidate
|
25
|
+
Content-Type:
|
26
|
+
- text/xml;charset=utf-8
|
27
|
+
Expires:
|
28
|
+
- Sat, 01 Jan 2000 00:00:00 GMT
|
29
|
+
Pragma:
|
30
|
+
- no-cache
|
31
|
+
X-Fb-Rev:
|
32
|
+
- "837897"
|
33
|
+
X-Fb-Debug:
|
34
|
+
- Hg0+obJJfTns2BYAvFACc9NXPAXoIbh0tb2sckhGfVQ=
|
35
|
+
Date:
|
36
|
+
- Thu, 06 Jun 2013 18:17:12 GMT
|
37
|
+
Connection:
|
38
|
+
- keep-alive
|
39
|
+
Content-Length:
|
40
|
+
- "763"
|
41
|
+
body:
|
42
|
+
encoding: US-ASCII
|
43
|
+
string: |
|
44
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
45
|
+
<error_response xmlns="http://api.facebook.com/1.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://api.facebook.com/1.0/ http://api.facebook.com/1.0/facebook.xsd">
|
46
|
+
<error_code>101</error_code>
|
47
|
+
<error_msg>Invalid application ID.</error_msg>
|
48
|
+
<request_args list="true">
|
49
|
+
<arg>
|
50
|
+
<key>method</key>
|
51
|
+
<value>notifications.sendEmail</value>
|
52
|
+
</arg>
|
53
|
+
<arg>
|
54
|
+
<key>access_token</key>
|
55
|
+
<value/>
|
56
|
+
</arg>
|
57
|
+
<arg>
|
58
|
+
<key>recipients</key>
|
59
|
+
<value>000000000</value>
|
60
|
+
</arg>
|
61
|
+
<arg>
|
62
|
+
<key>subject</key>
|
63
|
+
<value>testing</value>
|
64
|
+
</arg>
|
65
|
+
<arg>
|
66
|
+
<key>text</key>
|
67
|
+
<value>ajit</value>
|
68
|
+
</arg>
|
69
|
+
</request_args>
|
70
|
+
</error_response>
|
71
|
+
|
72
|
+
http_version:
|
73
|
+
recorded_at: Thu, 06 Jun 2013 18:17:16 GMT
|
74
|
+
recorded_with: VCR 2.5.0
|
data/spec/vcr/vcr.rb
ADDED
metadata
CHANGED
@@ -1,20 +1,45 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mosaic-facebook
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
5
|
-
prerelease:
|
4
|
+
version: 1.3.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Ajit Singh
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
|
-
cert_chain:
|
12
|
-
|
10
|
+
cert_chain:
|
11
|
+
- !binary |-
|
12
|
+
LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURNakNDQWhxZ0F3SUJB
|
13
|
+
Z0lCQURBTkJna3Foa2lHOXcwQkFRVUZBREEvTVJBd0RnWURWUVFEREFkcWIy
|
14
|
+
VXUKY0hsdE1SWXdGQVlLQ1pJbWlaUHlMR1FCR1JZR2JXOXpZV2xqTVJNd0VR
|
15
|
+
WUtDWkltaVpQeUxHUUJHUllEWTI5dApNQjRYRFRFek1ETXdOVEU0TVRrME5G
|
16
|
+
b1hEVEUwTURNd05URTRNVGswTkZvd1B6RVFNQTRHQTFVRUF3d0hhbTlsCkxu
|
17
|
+
QjViVEVXTUJRR0NnbVNKb21UOGl4a0FSa1dCbTF2YzJGcFl6RVRNQkVHQ2dt
|
18
|
+
U0pvbVQ4aXhrQVJrV0EyTnYKYlRDQ0FTSXdEUVlKS29aSWh2Y05BUUVCQlFB
|
19
|
+
RGdnRVBBRENDQVFvQ2dnRUJBUGFYbEVtd2JGY0czRnRLSGZOUApXdHpoZ2lJ
|
20
|
+
U0d0S1JnNkFubVdHNkFKcXNSZkNDaDBBUjhlUDRWMURBMFRWM29DRGJoamtp
|
21
|
+
Tjg0QXp0SUMzd1Q2ClpUMGdNWkwra2NwZUdVejFCT21rSmFjcC8zUE9jQUlr
|
22
|
+
VGp1dEFjTXg0N1B0WW5FSkpvd3FUYkJiYTZJYStLZEwKclVEZCtRQ2IzdS9i
|
23
|
+
MGZ4N3o5MmR2ZkZuRFdKY2lMdXlvY0dTT3pUMDBaNWRDSlV6WmNRZzA2eWFH
|
24
|
+
QlVCWlRlUAo4OTRoWXNTT2pwajJOdlpPNnBoVGlxaVZ0cm1hM0VPVVZuVDdL
|
25
|
+
cW5pZWt4QVV5Tk1BeUdhNzBRV243VURkRTNuCnpqb2xvV3NxTmI4bU85NTVj
|
26
|
+
cFdMbWFicTlEOS9XODhkYzNzUVZHK1FlcWNVTHpTTnNBSEt4MDhIZ1ZkdG03
|
27
|
+
a00KNkw4Q0F3RUFBYU01TURjd0NRWURWUjBUQkFJd0FEQWRCZ05WSFE0RUZn
|
28
|
+
UVVKbnZNNFdNcThPT3p5Q2hoSTYwTwpDdWtxQWtNd0N3WURWUjBQQkFRREFn
|
29
|
+
U3dNQTBHQ1NxR1NJYjNEUUVCQlFVQUE0SUJBUUFNalNNVk1uSVV2VVRFClJF
|
30
|
+
RFRYUjAyaGh3ancrb1Zzcks5Tk1YVkJZZDV5VzZ6d1RVa2l2KzI2aHllbk1S
|
31
|
+
dDdVQW85ZGF1WXlEQ2ZSVWcKTDkyK2J0NXZoYzkwRzVPeWREUUFPSCtFWnBH
|
32
|
+
Mkdlc1Fzcy9ya0ZvbTdlY3N6WWV3ZlZXSVhpeVRURWhTeXFyZQp3MGZBN1FZ
|
33
|
+
UmVVSHBlMEpiS1dmRW9CcG5QazRyL2tidHZobXZESklYdnM1TmZ6eVJyU25u
|
34
|
+
S29jRHI1T29RK2lPCldoa2ZabTFyOTgyWTRLWmg4eVI5aVp4QURQSjBVMDJn
|
35
|
+
cWkwT1ZqMjAvRCsvcjJxRkNqV2cwVjAzdTdGNDg2UkwKbkVBa3lXL3NaTjRX
|
36
|
+
Q29RbmpoeDF3MmYrd2FnVURBTzY4L0E1U0kxaUdyZVlRb3VvN1lRS0xNWC9p
|
37
|
+
WlFKYng2QwpzTERtRXdUcgotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0tCg==
|
38
|
+
date: 2013-06-07 00:00:00.000000000 Z
|
13
39
|
dependencies:
|
14
40
|
- !ruby/object:Gem::Dependency
|
15
41
|
name: faraday
|
16
42
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
43
|
requirements:
|
19
44
|
- - ~>
|
20
45
|
- !ruby/object:Gem::Version
|
@@ -22,7 +47,6 @@ dependencies:
|
|
22
47
|
type: :runtime
|
23
48
|
prerelease: false
|
24
49
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
50
|
requirements:
|
27
51
|
- - ~>
|
28
52
|
- !ruby/object:Gem::Version
|
@@ -30,7 +54,6 @@ dependencies:
|
|
30
54
|
- !ruby/object:Gem::Dependency
|
31
55
|
name: faraday_middleware
|
32
56
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
57
|
requirements:
|
35
58
|
- - ~>
|
36
59
|
- !ruby/object:Gem::Version
|
@@ -38,7 +61,6 @@ dependencies:
|
|
38
61
|
type: :runtime
|
39
62
|
prerelease: false
|
40
63
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
64
|
requirements:
|
43
65
|
- - ~>
|
44
66
|
- !ruby/object:Gem::Version
|
@@ -46,7 +68,6 @@ dependencies:
|
|
46
68
|
- !ruby/object:Gem::Dependency
|
47
69
|
name: multi_xml
|
48
70
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
71
|
requirements:
|
51
72
|
- - ~>
|
52
73
|
- !ruby/object:Gem::Version
|
@@ -54,7 +75,6 @@ dependencies:
|
|
54
75
|
type: :runtime
|
55
76
|
prerelease: false
|
56
77
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
78
|
requirements:
|
59
79
|
- - ~>
|
60
80
|
- !ruby/object:Gem::Version
|
@@ -62,7 +82,6 @@ dependencies:
|
|
62
82
|
- !ruby/object:Gem::Dependency
|
63
83
|
name: activesupport
|
64
84
|
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
85
|
requirements:
|
67
86
|
- - ~>
|
68
87
|
- !ruby/object:Gem::Version
|
@@ -70,7 +89,6 @@ dependencies:
|
|
70
89
|
type: :runtime
|
71
90
|
prerelease: false
|
72
91
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
92
|
requirements:
|
75
93
|
- - ~>
|
76
94
|
- !ruby/object:Gem::Version
|
@@ -78,7 +96,6 @@ dependencies:
|
|
78
96
|
- !ruby/object:Gem::Dependency
|
79
97
|
name: debugger
|
80
98
|
requirement: !ruby/object:Gem::Requirement
|
81
|
-
none: false
|
82
99
|
requirements:
|
83
100
|
- - ! '>='
|
84
101
|
- !ruby/object:Gem::Version
|
@@ -86,7 +103,6 @@ dependencies:
|
|
86
103
|
type: :development
|
87
104
|
prerelease: false
|
88
105
|
version_requirements: !ruby/object:Gem::Requirement
|
89
|
-
none: false
|
90
106
|
requirements:
|
91
107
|
- - ! '>='
|
92
108
|
- !ruby/object:Gem::Version
|
@@ -94,7 +110,6 @@ dependencies:
|
|
94
110
|
- !ruby/object:Gem::Dependency
|
95
111
|
name: rspec
|
96
112
|
requirement: !ruby/object:Gem::Requirement
|
97
|
-
none: false
|
98
113
|
requirements:
|
99
114
|
- - ! '>='
|
100
115
|
- !ruby/object:Gem::Version
|
@@ -102,7 +117,6 @@ dependencies:
|
|
102
117
|
type: :development
|
103
118
|
prerelease: false
|
104
119
|
version_requirements: !ruby/object:Gem::Requirement
|
105
|
-
none: false
|
106
120
|
requirements:
|
107
121
|
- - ! '>='
|
108
122
|
- !ruby/object:Gem::Version
|
@@ -110,7 +124,6 @@ dependencies:
|
|
110
124
|
- !ruby/object:Gem::Dependency
|
111
125
|
name: rake
|
112
126
|
requirement: !ruby/object:Gem::Requirement
|
113
|
-
none: false
|
114
127
|
requirements:
|
115
128
|
- - ! '>='
|
116
129
|
- !ruby/object:Gem::Version
|
@@ -118,7 +131,34 @@ dependencies:
|
|
118
131
|
type: :development
|
119
132
|
prerelease: false
|
120
133
|
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
|
134
|
+
requirements:
|
135
|
+
- - ! '>='
|
136
|
+
- !ruby/object:Gem::Version
|
137
|
+
version: '0'
|
138
|
+
- !ruby/object:Gem::Dependency
|
139
|
+
name: vcr
|
140
|
+
requirement: !ruby/object:Gem::Requirement
|
141
|
+
requirements:
|
142
|
+
- - ! '>='
|
143
|
+
- !ruby/object:Gem::Version
|
144
|
+
version: '0'
|
145
|
+
type: :development
|
146
|
+
prerelease: false
|
147
|
+
version_requirements: !ruby/object:Gem::Requirement
|
148
|
+
requirements:
|
149
|
+
- - ! '>='
|
150
|
+
- !ruby/object:Gem::Version
|
151
|
+
version: '0'
|
152
|
+
- !ruby/object:Gem::Dependency
|
153
|
+
name: webmock
|
154
|
+
requirement: !ruby/object:Gem::Requirement
|
155
|
+
requirements:
|
156
|
+
- - ! '>='
|
157
|
+
- !ruby/object:Gem::Version
|
158
|
+
version: '0'
|
159
|
+
type: :development
|
160
|
+
prerelease: false
|
161
|
+
version_requirements: !ruby/object:Gem::Requirement
|
122
162
|
requirements:
|
123
163
|
- - ! '>='
|
124
164
|
- !ruby/object:Gem::Version
|
@@ -154,6 +194,7 @@ files:
|
|
154
194
|
- lib/mosaic/facebook/graph/event.rb
|
155
195
|
- lib/mosaic/facebook/graph/graph_object.rb
|
156
196
|
- lib/mosaic/facebook/graph/insights.rb
|
197
|
+
- lib/mosaic/facebook/graph/like.rb
|
157
198
|
- lib/mosaic/facebook/graph/page.rb
|
158
199
|
- lib/mosaic/facebook/graph/post.rb
|
159
200
|
- lib/mosaic/facebook/graph/subscription.rb
|
@@ -172,6 +213,7 @@ files:
|
|
172
213
|
- spec/graph/comment_spec.rb
|
173
214
|
- spec/graph/event_spec.rb
|
174
215
|
- spec/graph/insights_spec.rb
|
216
|
+
- spec/graph/like_spec.rb
|
175
217
|
- spec/graph/page_spec.rb
|
176
218
|
- spec/graph/post_spec.rb
|
177
219
|
- spec/graph/subscription_spec.rb
|
@@ -179,32 +221,54 @@ files:
|
|
179
221
|
- spec/mosaic-facebook_spec.rb
|
180
222
|
- spec/spec.opts
|
181
223
|
- spec/spec_helper.rb
|
224
|
+
- spec/vcr/fixtures/cassettes/Mosaic_Facebook_Graph_Account/given_a_known_account/should_retrieve_the_insights.yml
|
225
|
+
- spec/vcr/fixtures/cassettes/Mosaic_Facebook_Graph_Account/given_a_known_account/should_retrieve_the_posts.yml
|
226
|
+
- spec/vcr/fixtures/cassettes/Mosaic_Facebook_Graph_Account/self_all/should_require_an_access_token.yml
|
227
|
+
- spec/vcr/fixtures/cassettes/Mosaic_Facebook_Graph_Account/self_all/when_an_access_token_is_provided/should_return_the_current_user_s_apps_and_pages.yml
|
228
|
+
- spec/vcr/fixtures/cassettes/Mosaic_Facebook_Graph_Account/self_find_by_name/should_find_an_account_for_a_named_page.yml
|
229
|
+
- spec/vcr/fixtures/cassettes/Mosaic_Facebook_Graph_Application/given_an_application_and_a_client_secret_/should_authorize_a_user_and_set_up_a_new_user_correctly.yml
|
230
|
+
- spec/vcr/fixtures/cassettes/Mosaic_Facebook_Graph_Application/given_an_application_and_a_client_secret_/should_retrieve_an_access_token.yml
|
231
|
+
- spec/vcr/fixtures/cassettes/Mosaic_Facebook_Graph_Application/given_an_application_and_a_client_secret_/should_return_a_list_of_subscriptions.yml
|
232
|
+
- spec/vcr/fixtures/cassettes/Mosaic_Facebook_Graph_Application/self_find_by_id/should_require_an_access_token.yml
|
233
|
+
- spec/vcr/fixtures/cassettes/Mosaic_Facebook_Graph_Application/self_find_by_id/with_an_access_token/should_find_an_application.yml
|
234
|
+
- spec/vcr/fixtures/cassettes/Mosaic_Facebook_Graph_Like/with_a_valid_access_token/should_be_able_to_find_if_a_page_is_liked.yml
|
235
|
+
- spec/vcr/fixtures/cassettes/Mosaic_Facebook_Graph_Like/with_a_valid_access_token/should_be_able_to_find_if_a_page_is_not_liked.yml
|
236
|
+
- spec/vcr/fixtures/cassettes/Mosaic_Facebook_Graph_Like/with_a_valid_access_token/should_fetch_all_likes.yml
|
237
|
+
- spec/vcr/fixtures/cassettes/Mosaic_Facebook_Graph_Page/given_a_valid_page/with_a_valid_access_token/should_return_a_event_list.yml
|
238
|
+
- spec/vcr/fixtures/cassettes/Mosaic_Facebook_Graph_Page/given_a_valid_page/with_a_valid_access_token/should_return_a_page_feed.yml
|
239
|
+
- spec/vcr/fixtures/cassettes/Mosaic_Facebook_Graph_Post/given_a_page_with_posts/and_a_post_with_comments/should_get_post.yml
|
240
|
+
- spec/vcr/fixtures/cassettes/Mosaic_Facebook_Graph_Post/given_a_page_with_posts/should_get_ten_comments.yml
|
241
|
+
- spec/vcr/fixtures/cassettes/Mosaic_Facebook_Graph_Post/given_a_page_with_posts/should_retrieve_the_user_who_posted_it.yml
|
242
|
+
- spec/vcr/fixtures/cassettes/Mosaic_Facebook_Graph_User/given_a_valid_user/_accounts/should_require_an_access_token.yml
|
243
|
+
- spec/vcr/fixtures/cassettes/Mosaic_Facebook_Graph_User/given_a_valid_user/_accounts/when_a_valid_access_token_is_provided/should_return_the_user_s_apps_and_pages.yml
|
244
|
+
- spec/vcr/fixtures/cassettes/Mosaic_Facebook_Graph_User/self_me/should_require_an_access_token.yml
|
245
|
+
- spec/vcr/fixtures/cassettes/Mosaic_Facebook_Graph_User/self_me/when_an_access_token_is_provided/should_return_the_current_user.yml
|
246
|
+
- spec/vcr/fixtures/cassettes/Mosaic_Facebook_Notification/when_a_valid_access_token_is_provided/should_send_a_notification.yml
|
247
|
+
- spec/vcr/fixtures/cassettes/Mosaic_Facebook_Notification/when_no_or_invalid_token_is_passed/should_require_a_valid_access_token.yml
|
248
|
+
- spec/vcr/fixtures/cassettes/Mosaic_Facebook_Notification/when_no_or_invalid_token_is_passed/should_require_an_access_token.yml
|
249
|
+
- spec/vcr/vcr.rb
|
182
250
|
homepage: ''
|
183
251
|
licenses: []
|
252
|
+
metadata: {}
|
184
253
|
post_install_message:
|
185
254
|
rdoc_options: []
|
186
255
|
require_paths:
|
187
256
|
- lib
|
188
257
|
required_ruby_version: !ruby/object:Gem::Requirement
|
189
|
-
none: false
|
190
258
|
requirements:
|
191
259
|
- - ! '>='
|
192
260
|
- !ruby/object:Gem::Version
|
193
261
|
version: '0'
|
194
|
-
segments:
|
195
|
-
- 0
|
196
|
-
hash: 2014683090419711334
|
197
262
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
198
|
-
none: false
|
199
263
|
requirements:
|
200
264
|
- - ! '>='
|
201
265
|
- !ruby/object:Gem::Version
|
202
266
|
version: 1.3.4
|
203
267
|
requirements: []
|
204
268
|
rubyforge_project: mosaic_facebook
|
205
|
-
rubygems_version:
|
269
|
+
rubygems_version: 2.0.3
|
206
270
|
signing_key:
|
207
|
-
specification_version:
|
271
|
+
specification_version: 4
|
208
272
|
summary: gem/plugin to connect to facebook graph api
|
209
273
|
test_files:
|
210
274
|
- spec/api/notification_spec.rb
|
@@ -216,6 +280,7 @@ test_files:
|
|
216
280
|
- spec/graph/comment_spec.rb
|
217
281
|
- spec/graph/event_spec.rb
|
218
282
|
- spec/graph/insights_spec.rb
|
283
|
+
- spec/graph/like_spec.rb
|
219
284
|
- spec/graph/page_spec.rb
|
220
285
|
- spec/graph/post_spec.rb
|
221
286
|
- spec/graph/subscription_spec.rb
|
@@ -223,3 +288,30 @@ test_files:
|
|
223
288
|
- spec/mosaic-facebook_spec.rb
|
224
289
|
- spec/spec.opts
|
225
290
|
- spec/spec_helper.rb
|
291
|
+
- spec/vcr/fixtures/cassettes/Mosaic_Facebook_Graph_Account/given_a_known_account/should_retrieve_the_insights.yml
|
292
|
+
- spec/vcr/fixtures/cassettes/Mosaic_Facebook_Graph_Account/given_a_known_account/should_retrieve_the_posts.yml
|
293
|
+
- spec/vcr/fixtures/cassettes/Mosaic_Facebook_Graph_Account/self_all/should_require_an_access_token.yml
|
294
|
+
- spec/vcr/fixtures/cassettes/Mosaic_Facebook_Graph_Account/self_all/when_an_access_token_is_provided/should_return_the_current_user_s_apps_and_pages.yml
|
295
|
+
- spec/vcr/fixtures/cassettes/Mosaic_Facebook_Graph_Account/self_find_by_name/should_find_an_account_for_a_named_page.yml
|
296
|
+
- spec/vcr/fixtures/cassettes/Mosaic_Facebook_Graph_Application/given_an_application_and_a_client_secret_/should_authorize_a_user_and_set_up_a_new_user_correctly.yml
|
297
|
+
- spec/vcr/fixtures/cassettes/Mosaic_Facebook_Graph_Application/given_an_application_and_a_client_secret_/should_retrieve_an_access_token.yml
|
298
|
+
- spec/vcr/fixtures/cassettes/Mosaic_Facebook_Graph_Application/given_an_application_and_a_client_secret_/should_return_a_list_of_subscriptions.yml
|
299
|
+
- spec/vcr/fixtures/cassettes/Mosaic_Facebook_Graph_Application/self_find_by_id/should_require_an_access_token.yml
|
300
|
+
- spec/vcr/fixtures/cassettes/Mosaic_Facebook_Graph_Application/self_find_by_id/with_an_access_token/should_find_an_application.yml
|
301
|
+
- spec/vcr/fixtures/cassettes/Mosaic_Facebook_Graph_Like/with_a_valid_access_token/should_be_able_to_find_if_a_page_is_liked.yml
|
302
|
+
- spec/vcr/fixtures/cassettes/Mosaic_Facebook_Graph_Like/with_a_valid_access_token/should_be_able_to_find_if_a_page_is_not_liked.yml
|
303
|
+
- spec/vcr/fixtures/cassettes/Mosaic_Facebook_Graph_Like/with_a_valid_access_token/should_fetch_all_likes.yml
|
304
|
+
- spec/vcr/fixtures/cassettes/Mosaic_Facebook_Graph_Page/given_a_valid_page/with_a_valid_access_token/should_return_a_event_list.yml
|
305
|
+
- spec/vcr/fixtures/cassettes/Mosaic_Facebook_Graph_Page/given_a_valid_page/with_a_valid_access_token/should_return_a_page_feed.yml
|
306
|
+
- spec/vcr/fixtures/cassettes/Mosaic_Facebook_Graph_Post/given_a_page_with_posts/and_a_post_with_comments/should_get_post.yml
|
307
|
+
- spec/vcr/fixtures/cassettes/Mosaic_Facebook_Graph_Post/given_a_page_with_posts/should_get_ten_comments.yml
|
308
|
+
- spec/vcr/fixtures/cassettes/Mosaic_Facebook_Graph_Post/given_a_page_with_posts/should_retrieve_the_user_who_posted_it.yml
|
309
|
+
- spec/vcr/fixtures/cassettes/Mosaic_Facebook_Graph_User/given_a_valid_user/_accounts/should_require_an_access_token.yml
|
310
|
+
- spec/vcr/fixtures/cassettes/Mosaic_Facebook_Graph_User/given_a_valid_user/_accounts/when_a_valid_access_token_is_provided/should_return_the_user_s_apps_and_pages.yml
|
311
|
+
- spec/vcr/fixtures/cassettes/Mosaic_Facebook_Graph_User/self_me/should_require_an_access_token.yml
|
312
|
+
- spec/vcr/fixtures/cassettes/Mosaic_Facebook_Graph_User/self_me/when_an_access_token_is_provided/should_return_the_current_user.yml
|
313
|
+
- spec/vcr/fixtures/cassettes/Mosaic_Facebook_Notification/when_a_valid_access_token_is_provided/should_send_a_notification.yml
|
314
|
+
- spec/vcr/fixtures/cassettes/Mosaic_Facebook_Notification/when_no_or_invalid_token_is_passed/should_require_a_valid_access_token.yml
|
315
|
+
- spec/vcr/fixtures/cassettes/Mosaic_Facebook_Notification/when_no_or_invalid_token_is_passed/should_require_an_access_token.yml
|
316
|
+
- spec/vcr/vcr.rb
|
317
|
+
has_rdoc:
|