angellist_api 1.0.4 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,9 @@
1
1
  ## Master
2
2
 
3
+ ## 1.0.5 - 27 March, 2013
4
+
5
+ - Fix inability to pass direction param for startup_roles ([Ches Martin])
6
+
3
7
  ## 1.0.4 - 25 March, 2013
4
8
 
5
9
  - Add new user roles and startup roles endpoints; document and test the new "v1"
@@ -76,7 +76,7 @@ module AngellistApi
76
76
  # @example Get
77
77
  # AngellistApi.startup_roles(1234)
78
78
  def startup_roles(id, options={})
79
- get("1/startups/#{id}/roles")
79
+ get("1/startups/#{id}/roles", options)
80
80
  end
81
81
  end
82
82
  end
@@ -65,8 +65,8 @@ module AngellistApi
65
65
  #
66
66
  # @example Get a user's roles given an id.
67
67
  # AngellistApi.user_roles(1234)
68
- def user_roles(id)
69
- get("1/users/#{id}/roles")
68
+ def user_roles(id, options={})
69
+ get("1/users/#{id}/roles", options)
70
70
  end
71
71
  end
72
72
  end
@@ -1,4 +1,4 @@
1
1
  module AngellistApi
2
- VERSION = '1.0.4'
2
+ VERSION = '1.0.5'
3
3
  end
4
4
 
@@ -25,18 +25,18 @@ describe AngellistApi::Client::StartupRoles,
25
25
  let(:base_params) { { :v => 1 } }
26
26
 
27
27
  it "gets a startup's outgoing relationships" do
28
- params = { :startup_id => 1124 }.merge(base_params)
28
+ params = { :startup_id => 1124, :direction => 'outgoing' }.merge(base_params)
29
29
  roles = client.get_startup_roles(params)
30
30
  roles.startup_roles.each do |relationship|
31
31
  ROLES.should include relationship.role
32
32
  end
33
33
  roles.startup_roles.first.should have_key :tagged
34
34
  roles.startup_roles.first.tagged.should have_key :type
35
- roles.startup_roles.first.tagged.type.should eq "User"
35
+ roles.startup_roles.first.tagged.type.should eq 'Startup'
36
36
  end
37
37
 
38
38
  it "gets a startup's incoming relationships" do
39
- params = { :startup_id => 1124, :direction => 'incoming' }.merge(base_params)
39
+ params = { :startup_id => 1124 }.merge(base_params)
40
40
  roles = client.get_startup_roles(params)
41
41
  roles.startup_roles.each do |relationship|
42
42
  ROLES.should include relationship.role
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: angellist_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-03-25 00:00:00.000000000 Z
13
+ date: 2013-03-27 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: hashie
@@ -285,7 +285,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
285
285
  version: '0'
286
286
  segments:
287
287
  - 0
288
- hash: 3302315814162737561
288
+ hash: 704109515206394600
289
289
  required_rubygems_version: !ruby/object:Gem::Requirement
290
290
  none: false
291
291
  requirements:
@@ -294,7 +294,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
294
294
  version: '0'
295
295
  segments:
296
296
  - 0
297
- hash: 3302315814162737561
297
+ hash: 704109515206394600
298
298
  requirements: []
299
299
  rubyforge_project:
300
300
  rubygems_version: 1.8.25