totter 0.4.4 → 0.4.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -11,6 +11,15 @@ module Totter
11
11
  def find_connection_friends(token)
12
12
  post("connections/#{token}/find_friends").body
13
13
  end
14
+
15
+ # Returns connections for the authenticating user
16
+ #
17
+ # @return [Array]
18
+ # @example
19
+ # Totter.connections
20
+ def connections
21
+ get("connections").body
22
+ end
14
23
  end
15
24
  end
16
25
  end
@@ -1,4 +1,4 @@
1
1
  module Totter
2
2
  # Verion of the Totter gem
3
- VERSION = '0.4.4'
3
+ VERSION = '0.4.5'
4
4
  end
@@ -5,4 +5,9 @@ class ConnectionsTest < Totter::TestCase
5
5
  stub_request(:post, 'http://localhost:5000/v1/connections/1234/find_friends').to_return(:status => 200, :body => "{}")
6
6
  assert_equal Hashie::Mash.new, local_client.find_connection_friends('1234')
7
7
  end
8
+
9
+ def test_connections
10
+ stub_request(:get, 'http://localhost:5000/v1/connections').to_return(:status => 200, :body => "{}")
11
+ assert_equal Hashie::Mash.new, local_client.connections
12
+ end
8
13
  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
4
+ version: 0.4.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2013-05-09 00:00:00.000000000 Z
14
+ date: 2013-05-10 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: multi_json
@@ -162,7 +162,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
162
162
  version: '0'
163
163
  segments:
164
164
  - 0
165
- hash: -3762032386541266324
165
+ hash: -1376375412800486990
166
166
  requirements: []
167
167
  rubyforge_project:
168
168
  rubygems_version: 1.8.23