mini_fb 1.1.5 → 1.1.6
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.
- data/lib/mini_fb.rb +2 -1
- data/test/test_mini_fb.rb +20 -1
- metadata +5 -5
data/lib/mini_fb.rb
CHANGED
@@ -154,7 +154,8 @@ module MiniFB
|
|
154
154
|
end
|
155
155
|
|
156
156
|
BAD_JSON_METHODS = ["users.getloggedinuser", "auth.promotesession", "users.hasapppermission",
|
157
|
-
"Auth.revokeExtendedPermission", "
|
157
|
+
"Auth.revokeExtendedPermission", "auth.revokeAuthorization",
|
158
|
+
"pages.isAdmin", "pages.isFan",
|
158
159
|
"stream.publish",
|
159
160
|
"dashboard.addNews", "dashboard.addGlobalNews", "dashboard.publishActivity",
|
160
161
|
"dashboard.incrementcount", "dashboard.setcount"
|
data/test/test_mini_fb.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'test/unit'
|
2
2
|
require 'uri'
|
3
3
|
require 'yaml'
|
4
|
-
require 'active_support'
|
4
|
+
require 'active_support/core_ext'
|
5
5
|
require '../lib/mini_fb'
|
6
6
|
|
7
7
|
class MiniFBTests < Test::Unit::TestCase
|
@@ -11,6 +11,8 @@ class MiniFBTests < Test::Unit::TestCase
|
|
11
11
|
@config = File.open(File.expand_path("~/.mini_fb_tests.yml")) { |yf| YAML::load(yf) }
|
12
12
|
puts @config.inspect
|
13
13
|
MiniFB.log_level = :debug
|
14
|
+
|
15
|
+
# MiniFB.oauth_url(@config["fb_api_key"], @config["fb_secret"])
|
14
16
|
end
|
15
17
|
|
16
18
|
def teardown
|
@@ -29,6 +31,23 @@ class MiniFBTests < Test::Unit::TestCase
|
|
29
31
|
|
30
32
|
end
|
31
33
|
|
34
|
+
def test_me_with_fields
|
35
|
+
fields = {
|
36
|
+
'interests' => [:name],
|
37
|
+
'activities'=> [:name],
|
38
|
+
'music' => [:name],
|
39
|
+
'videos' => [:name],
|
40
|
+
'television'=> [:name],
|
41
|
+
'movies' => [:name],
|
42
|
+
'likes' => [:name],
|
43
|
+
'work' => [:name],
|
44
|
+
'education' => [:name],
|
45
|
+
'books' => [:name]
|
46
|
+
}
|
47
|
+
|
48
|
+
snap = MiniFB.get(access_token, 'me', :fields =>fields.keys)
|
49
|
+
end
|
50
|
+
|
32
51
|
def test_basic_calls
|
33
52
|
|
34
53
|
end
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 1
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
version: 1.1.
|
8
|
+
- 6
|
9
|
+
version: 1.1.6
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Travis Reeder
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-11-
|
17
|
+
date: 2010-11-27 00:00:00 -08:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
@@ -60,8 +60,8 @@ homepage: http://github.com/appoxy/mini_fb
|
|
60
60
|
licenses: []
|
61
61
|
|
62
62
|
post_install_message:
|
63
|
-
rdoc_options:
|
64
|
-
|
63
|
+
rdoc_options: []
|
64
|
+
|
65
65
|
require_paths:
|
66
66
|
- lib
|
67
67
|
required_ruby_version: !ruby/object:Gem::Requirement
|