fbrails 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/fbrails/graph.rb +10 -3
- data/lib/fbrails/version.rb +1 -1
- metadata +4 -4
data/lib/fbrails/graph.rb
CHANGED
@@ -8,8 +8,7 @@ module Fbrails
|
|
8
8
|
end
|
9
9
|
|
10
10
|
|
11
|
-
|
12
|
-
def friends
|
11
|
+
def friends(ids=false)
|
13
12
|
result = []
|
14
13
|
friends = Fbrails.get(URL+"me"+"/"+"friends"+access_token)
|
15
14
|
loop do
|
@@ -21,7 +20,15 @@ module Fbrails
|
|
21
20
|
end
|
22
21
|
end
|
23
22
|
else
|
24
|
-
|
23
|
+
if ids
|
24
|
+
coll = []
|
25
|
+
result.each do |fr|
|
26
|
+
coll << fr["id"]
|
27
|
+
end
|
28
|
+
return coll
|
29
|
+
else
|
30
|
+
return result
|
31
|
+
end
|
25
32
|
end
|
26
33
|
friends = Fbrails.get(friends["paging"]["next"])
|
27
34
|
end
|
data/lib/fbrails/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fbrails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -11,11 +11,11 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2011-10-
|
14
|
+
date: 2011-10-27 00:00:00.000000000Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: httpclient
|
18
|
-
requirement: &
|
18
|
+
requirement: &18340400 !ruby/object:Gem::Requirement
|
19
19
|
none: false
|
20
20
|
requirements:
|
21
21
|
- - ~>
|
@@ -23,7 +23,7 @@ dependencies:
|
|
23
23
|
version: 2.2.2
|
24
24
|
type: :runtime
|
25
25
|
prerelease: false
|
26
|
-
version_requirements: *
|
26
|
+
version_requirements: *18340400
|
27
27
|
description: Small gem for auth & getting info from facebook
|
28
28
|
email:
|
29
29
|
- donotsendhere@gmail.com
|