totter 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/totter/client/users.rb +11 -0
- data/lib/totter/version.rb +1 -1
- data/test/totter/client/users_test.rb +5 -0
- metadata +2 -2
data/lib/totter/client/users.rb
CHANGED
@@ -96,6 +96,17 @@ module Totter
|
|
96
96
|
get("users/#{user_id}/votes").body
|
97
97
|
end
|
98
98
|
|
99
|
+
# Find friends on social networks
|
100
|
+
#
|
101
|
+
# @return Array of [Hashie::Mash]
|
102
|
+
# @param user_id [String] ID of the user
|
103
|
+
# @example
|
104
|
+
# client.following('5')
|
105
|
+
def social_find_friends(user_id)
|
106
|
+
post("users/#{user_id}/social_find_friends").body
|
107
|
+
end
|
108
|
+
|
109
|
+
|
99
110
|
end
|
100
111
|
end
|
101
112
|
end
|
data/lib/totter/version.rb
CHANGED
@@ -77,4 +77,9 @@ class UsersTest < Totter::TestCase
|
|
77
77
|
end
|
78
78
|
end
|
79
79
|
end
|
80
|
+
|
81
|
+
def test_social_find_friends
|
82
|
+
stub_request(:post, 'http://localhost:5000/v1/users/1/social_find_friends').to_return(:status => 200, :body => "{}")
|
83
|
+
assert_equal Hashie::Mash.new, local_client.social_find_friends(1)
|
84
|
+
end
|
80
85
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: totter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -160,7 +160,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
160
160
|
version: '0'
|
161
161
|
segments:
|
162
162
|
- 0
|
163
|
-
hash:
|
163
|
+
hash: 3067976961979527316
|
164
164
|
requirements: []
|
165
165
|
rubyforge_project:
|
166
166
|
rubygems_version: 1.8.23
|