angellist_api 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,137 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.angel.co/1/press?startup_id=6702
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - application/json
12
+ User-Agent:
13
+ - AngellistApi Ruby Gem 1.0.2
14
+ response:
15
+ status:
16
+ code: 200
17
+ message:
18
+ headers:
19
+ cache-control:
20
+ - !binary |-
21
+ cHJpdmF0ZSwgbWF4LWFnZT0wLCBtdXN0LXJldmFsaWRhdGU=
22
+ content-type:
23
+ - !binary |-
24
+ YXBwbGljYXRpb24vanNvbjsgY2hhcnNldD11dGYtOA==
25
+ date:
26
+ - !binary |-
27
+ U3VuLCAwNyBPY3QgMjAxMiAyMDoxNjo1MyBHTVQ=
28
+ etag:
29
+ - !binary |-
30
+ IjY1YWMyZjQ2NTIzY2M3Zjc3OTIyNTAxYzE5NzJhZjdjIg==
31
+ server:
32
+ - !binary |-
33
+ bmdpbng=
34
+ status:
35
+ - !binary |-
36
+ MjAwIE9L
37
+ vary:
38
+ - !binary |-
39
+ QWNjZXB0LUVuY29kaW5n
40
+ x-ratelimit-limit:
41
+ - !binary |-
42
+ MTAwMA==
43
+ x-ratelimit-remaining:
44
+ - !binary |-
45
+ OTk1
46
+ x-runtime:
47
+ - !binary |-
48
+ MTE=
49
+ !binary "Y29udGVudC1sZW5ndGg=":
50
+ - !binary |-
51
+ MTQ1Ng==
52
+ connection:
53
+ - !binary |-
54
+ Q2xvc2U=
55
+ body:
56
+ encoding: ASCII-8BIT
57
+ string: !binary |-
58
+ eyJwcmVzcyI6W3siY3JlYXRlZF9hdCI6IjIwMTItMDgtMDhUMjE6NTI6NDNa
59
+ IiwiaWQiOjEzOTgwLCJvd25lcl9pZCI6NjcwMiwib3duZXJfdHlwZSI6IlN0
60
+ YXJ0dXAiLCJwb3N0ZWRfYXQiOiIyMDEyL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bm5vdW5jZSBBbmdlbExpc3QsIGEgY3VyYXRlZCBsaXN0IG9mIHN1cGVy
126
+ IGhpZ2gtcXVhbGl0eSBhbmdlbCBpbnZlc3RvcnMuIEFuZCBob3cgdG8gcmVh
127
+ Y2ggdGhlbS5cbkludmVzdG9ycyBsaWtlIEplZmYgQ2xhdmllciwgRGF2ZSBN
128
+ Y0NsdXJlLCBSb2IgSGF5ZXMsIEFhcm9uIFBhdHplciwgQnJhZCBGZWxkLCBh
129
+ bmQgNTAgb3RoZXIgaW52ZXN0b3JzIGhhdmUgYWxyZWFkeSBqb2luZWQuIEkg
130
+ d2FudCB0by4uLiIsInRpdGxlIjoiTGF1bmNoOiBBbmdlbExpc3QsIGEgY3Vy
131
+ YXRlZCBsaXN0IG9mIGFuZ2VsIGludmVzdG9ycyIsInVwZGF0ZWRfYXQiOiIy
132
+ MDEyLTA1LTA3VDIxOjMyOjM5WiIsInVybCI6Imh0dHA6Ly92ZW50dXJlaGFj
133
+ a3MuY29tL2FydGljbGVzL2FuZ2VsbGlzdCJ9XSwidG90YWwiOjcsInBlcl9w
134
+ YWdlIjo1MCwicGFnZSI6MSwibGFzdF9wYWdlIjoxfQ==
135
+ http_version:
136
+ recorded_at: Sun, 07 Oct 2012 20:16:53 GMT
137
+ recorded_with: VCR 2.2.4
@@ -1,7 +1,7 @@
1
1
  require 'spec_helper'
2
2
 
3
- describe AngellistApi::Client::ActivityFeeds do
4
- use_vcr_cassette 'activity_feeds'
3
+ describe AngellistApi::Client::ActivityFeeds,
4
+ :vcr => { :cassette_name => 'activity_feeds' } do
5
5
 
6
6
  let(:client) { AngellistApi::Client.new }
7
7
  let(:valid_types) do
@@ -1,7 +1,7 @@
1
1
  require 'spec_helper'
2
2
 
3
- describe AngellistApi::Client::Follows do
4
- use_vcr_cassette 'follows'
3
+ describe AngellistApi::Client::Follows,
4
+ :vcr => { :cassette_name => 'follows' } do
5
5
 
6
6
  let(:client) { AngellistApi::Client.new }
7
7
 
@@ -1,7 +1,7 @@
1
1
  require 'spec_helper'
2
2
 
3
- describe AngellistApi::Client::Startups do
4
- use_vcr_cassette 'jobs'
3
+ describe AngellistApi::Client::Jobs,
4
+ :vcr => { :cassette_name => 'jobs' } do
5
5
 
6
6
  let(:client) { AngellistApi::Client.new }
7
7
 
@@ -0,0 +1,19 @@
1
+ require 'spec_helper'
2
+
3
+ describe AngellistApi::Client::Messages, :authenticated,
4
+ # Personal for authenticated account, manually maintained fixture
5
+ :vcr => { :cassette_name => 'messages', :record => :none } do
6
+
7
+ let(:client) { AngellistApi::Client.new }
8
+
9
+ it 'gets all messages for a user' do
10
+ messages = client.get_messages
11
+ messages.should have_key :messages # Blergh.
12
+
13
+ thread = messages.messages.first
14
+ [:last_message, :thread_id, :users].each do |field|
15
+ thread.should have_key field
16
+ end
17
+ end
18
+ end
19
+
@@ -0,0 +1,31 @@
1
+ require 'spec_helper'
2
+
3
+ describe AngellistApi::Client::Paths, :authenticated,
4
+ # Personal for authenticated account, manually maintained fixture
5
+ :vcr => { :cassette_name => 'paths', :record => :none } do
6
+
7
+ let(:client) { AngellistApi::Client.new }
8
+
9
+ context 'when requesting by user IDs' do
10
+ let(:paths) { client.get_paths(:user_ids => [1274]) }
11
+
12
+ it 'gets paths between authenticated user and given user IDs' do
13
+ paths.should have_key '1274'
14
+ vertex = paths['1274'].first.first
15
+ vertex.should have_key :connector
16
+ vertex.should have_key :connection
17
+ end
18
+ end
19
+
20
+ context 'when requesting by startup IDs' do
21
+ let(:paths) { client.get_paths(:startup_ids => [76155]) }
22
+
23
+ it 'gets paths between authenticated user and given startup IDs' do
24
+ paths.should have_key '76155'
25
+ vertex = paths['76155'].first.first
26
+ vertex.should have_key :connector
27
+ vertex.should have_key :connection
28
+ end
29
+ end
30
+ end
31
+
@@ -0,0 +1,15 @@
1
+ require 'spec_helper'
2
+
3
+ describe AngellistApi::Client::Press,
4
+ :vcr => { :cassette_name => 'press' } do
5
+
6
+ let(:client) { AngellistApi::Client.new }
7
+
8
+ it 'gets press for a given startup' do
9
+ options = { startup_id: 6702 }
10
+ press = client.get_press(options).press
11
+ press.first.should have_key :title
12
+ press.first.should have_key :url
13
+ end
14
+ end
15
+
@@ -1,7 +1,7 @@
1
1
  require 'spec_helper'
2
2
 
3
- describe AngellistApi::Client::Reviews do
4
- use_vcr_cassette 'reviews'
3
+ describe AngellistApi::Client::Reviews,
4
+ :vcr => { :cassette_name => 'reviews' } do
5
5
 
6
6
  let(:client) { AngellistApi::Client.new }
7
7
 
@@ -1,7 +1,7 @@
1
1
  require 'spec_helper'
2
2
 
3
- describe AngellistApi::Client::Search do
4
- use_vcr_cassette 'search'
3
+ describe AngellistApi::Client::Search,
4
+ :vcr => { :cassette_name => 'search' } do
5
5
 
6
6
  let(:client) { AngellistApi::Client.new }
7
7
  let(:valid_types) { %w[User Startup MarketTag LocationTag].freeze }
@@ -1,7 +1,7 @@
1
1
  require 'spec_helper'
2
2
 
3
- describe AngellistApi::Client::StartupRoles do
4
- use_vcr_cassette 'startup_roles'
3
+ describe AngellistApi::Client::StartupRoles,
4
+ :vcr => { :cassette_name => 'startup_roles' } do
5
5
 
6
6
  ROLES = %w[founder employee past_investor advisor incubator referrer]
7
7
  let(:client) { AngellistApi::Client.new }
@@ -1,7 +1,7 @@
1
1
  require 'spec_helper'
2
2
 
3
- describe AngellistApi::Client::Startups do
4
- use_vcr_cassette 'startups'
3
+ describe AngellistApi::Client::Startups,
4
+ :vcr => { :cassette_name => 'startups' } do
5
5
 
6
6
  let(:client) { AngellistApi::Client.new }
7
7
 
@@ -1,7 +1,7 @@
1
1
  require 'spec_helper'
2
2
 
3
- describe AngellistApi::Client::StatusUpdates do
4
- use_vcr_cassette 'status_updates'
3
+ describe AngellistApi::Client::StatusUpdates,
4
+ :vcr => { :cassette_name => 'status_updates' } do
5
5
 
6
6
  let(:client) { AngellistApi::Client.new }
7
7
 
@@ -1,7 +1,7 @@
1
1
  require 'spec_helper'
2
2
 
3
- describe AngellistApi::Client::Tags do
4
- use_vcr_cassette 'tags'
3
+ describe AngellistApi::Client::Tags,
4
+ :vcr => { :cassette_name => 'tags' } do
5
5
 
6
6
  let(:client) { AngellistApi::Client.new }
7
7
 
@@ -1,7 +1,7 @@
1
1
  require 'spec_helper'
2
2
 
3
- describe AngellistApi::Client::Users do
4
- use_vcr_cassette 'users'
3
+ describe AngellistApi::Client::Users,
4
+ :vcr => { :cassette_name => 'users' } do
5
5
 
6
6
  let(:client) { AngellistApi::Client.new }
7
7
 
@@ -5,13 +5,14 @@ require 'rspec'
5
5
  require 'angellist_api'
6
6
  require 'timecop'
7
7
 
8
- Dir['./spec/support/**/*.rb'].each { |f| require f }
9
-
10
8
  RSpec.configure do |config|
11
9
  config.mock_with :rspec
12
10
 
13
11
  config.filter_run :focus => true
14
12
  config.run_all_when_everything_filtered = true
15
13
  config.color_enabled = true
14
+ config.treat_symbols_as_metadata_keys_with_true_values = true
16
15
  end
17
16
 
17
+ Dir['./spec/support/**/*.rb'].each { |f| require f }
18
+
@@ -0,0 +1,19 @@
1
+ RSpec.configure do |config|
2
+ # Foreman-style .env key-value file support
3
+ project_root = Pathname.new(__FILE__).dirname.parent.parent.realpath
4
+ dotenv = project_root.join('.env')
5
+
6
+ if dotenv.exist?
7
+ dotenv.each_line do |line|
8
+ key, value = line.split('=')
9
+ ENV[key] = value unless value.nil?
10
+ end
11
+ end
12
+
13
+ config.before(:each, :authenticated) do
14
+ AngellistApi.configure do |al|
15
+ al.access_token = ENV['ANGELLIST_ACCESS_TOKEN']
16
+ end
17
+ end
18
+ end
19
+
@@ -3,10 +3,17 @@ require 'vcr'
3
3
  VCR.configure do |c|
4
4
  c.cassette_library_dir = 'spec/fixtures/cassettes'
5
5
  c.hook_into :faraday
6
+ c.configure_rspec_metadata!
6
7
  c.default_cassette_options = { :record => :once }
7
- end
8
8
 
9
- RSpec.configure do |config|
10
- config.extend VCR::RSpec::Macros
9
+ # In recorded cassettes, replace these environment variable values with a
10
+ # placeholder like <VARIABLE>
11
+ placeholders = %w[
12
+ ANGELLIST_ACCESS_TOKEN
13
+ ]
14
+
15
+ placeholders.each do |placeholder|
16
+ c.filter_sensitive_data("<#{placeholder}>") { ENV[placeholder] }
17
+ end
11
18
  end
12
19
 
@@ -0,0 +1,23 @@
1
+ require 'spec_helper'
2
+
3
+ describe AngellistApi::Client::Messages do
4
+ let(:client) { AngellistApi::Client.new }
5
+
6
+ describe "#get_messages" do
7
+ it "gets 1/messages" do
8
+ options = { :some => "options" }
9
+ client.should_receive(:get).with("1/messages", options).and_return("success")
10
+ client.get_messages(options).should == "success"
11
+ end
12
+ end
13
+
14
+ describe "#post_messages" do
15
+ it "posts to 1/messages" do
16
+ options = { :some => "options" }
17
+ client.should_receive(:post).with("1/messages", options).and_return("success")
18
+ client.post_messages(options).should == "success"
19
+ end
20
+ end
21
+
22
+ end
23
+
@@ -0,0 +1,26 @@
1
+ require 'spec_helper'
2
+
3
+ describe AngellistApi::Client::Paths do
4
+ let(:client) { AngellistApi::Client.new }
5
+
6
+ describe '#get_paths' do
7
+ it 'gets 1/messages' do
8
+ options = { :some => 'options' }
9
+ client.should_receive(:get).with('1/paths', options).and_return('success')
10
+ client.get_paths(options).should == 'success'
11
+ end
12
+
13
+ it 'accepts an Array of startup_ids' do
14
+ options = { :startup_ids => [1,2] }
15
+ client.should_receive(:get).with('1/paths', :startup_ids => '1,2')
16
+ client.get_paths(options)
17
+ end
18
+
19
+ it 'accepts an Array of user_ids' do
20
+ options = { :user_ids => [1,2] }
21
+ client.should_receive(:get).with('1/paths', :user_ids => '1,2')
22
+ client.get_paths(options)
23
+ end
24
+ end
25
+ end
26
+
@@ -0,0 +1,13 @@
1
+ require 'spec_helper'
2
+
3
+ describe AngellistApi::Client::Press do
4
+ let(:client) { AngellistApi::Client.new }
5
+
6
+ describe '#get_press' do
7
+ it 'gets 1/press' do
8
+ options = { startup_id: 6702 }
9
+ client.should_receive(:get).with("1/press", options).and_return("success")
10
+ client.get_press(options).should == 'success'
11
+ end
12
+ end
13
+ end
metadata CHANGED
@@ -1,19 +1,20 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: angellist_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
8
8
  - Paul Singh
9
+ - Ches Martin
9
10
  autorequire:
10
11
  bindir: bin
11
12
  cert_chain: []
12
- date: 2012-07-29 00:00:00.000000000Z
13
+ date: 2013-03-11 00:00:00.000000000 Z
13
14
  dependencies:
14
15
  - !ruby/object:Gem::Dependency
15
16
  name: hashie
16
- requirement: &2164428020 !ruby/object:Gem::Requirement
17
+ requirement: !ruby/object:Gem::Requirement
17
18
  none: false
18
19
  requirements:
19
20
  - - ! '>='
@@ -21,10 +22,15 @@ dependencies:
21
22
  version: 1.1.0
22
23
  type: :runtime
23
24
  prerelease: false
24
- version_requirements: *2164428020
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ none: false
27
+ requirements:
28
+ - - ! '>='
29
+ - !ruby/object:Gem::Version
30
+ version: 1.1.0
25
31
  - !ruby/object:Gem::Dependency
26
32
  name: faraday
27
- requirement: &2164426660 !ruby/object:Gem::Requirement
33
+ requirement: !ruby/object:Gem::Requirement
28
34
  none: false
29
35
  requirements:
30
36
  - - ~>
@@ -32,10 +38,15 @@ dependencies:
32
38
  version: '0.7'
33
39
  type: :runtime
34
40
  prerelease: false
35
- version_requirements: *2164426660
41
+ version_requirements: !ruby/object:Gem::Requirement
42
+ none: false
43
+ requirements:
44
+ - - ~>
45
+ - !ruby/object:Gem::Version
46
+ version: '0.7'
36
47
  - !ruby/object:Gem::Dependency
37
48
  name: faraday_middleware
38
- requirement: &2164425160 !ruby/object:Gem::Requirement
49
+ requirement: !ruby/object:Gem::Requirement
39
50
  none: false
40
51
  requirements:
41
52
  - - ~>
@@ -43,10 +54,15 @@ dependencies:
43
54
  version: '0.7'
44
55
  type: :runtime
45
56
  prerelease: false
46
- version_requirements: *2164425160
57
+ version_requirements: !ruby/object:Gem::Requirement
58
+ none: false
59
+ requirements:
60
+ - - ~>
61
+ - !ruby/object:Gem::Version
62
+ version: '0.7'
47
63
  - !ruby/object:Gem::Dependency
48
64
  name: multi_json
49
- requirement: &2164423080 !ruby/object:Gem::Requirement
65
+ requirement: !ruby/object:Gem::Requirement
50
66
  none: false
51
67
  requirements:
52
68
  - - ~>
@@ -54,78 +70,114 @@ dependencies:
54
70
  version: '1.0'
55
71
  type: :runtime
56
72
  prerelease: false
57
- version_requirements: *2164423080
73
+ version_requirements: !ruby/object:Gem::Requirement
74
+ none: false
75
+ requirements:
76
+ - - ~>
77
+ - !ruby/object:Gem::Version
78
+ version: '1.0'
58
79
  - !ruby/object:Gem::Dependency
59
80
  name: rdiscount
60
- requirement: &2164420720 !ruby/object:Gem::Requirement
81
+ requirement: !ruby/object:Gem::Requirement
61
82
  none: false
62
83
  requirements:
63
84
  - - ~>
64
85
  - !ruby/object:Gem::Version
65
- version: 1.6.8
86
+ version: '2.0'
66
87
  type: :development
67
88
  prerelease: false
68
- version_requirements: *2164420720
89
+ version_requirements: !ruby/object:Gem::Requirement
90
+ none: false
91
+ requirements:
92
+ - - ~>
93
+ - !ruby/object:Gem::Version
94
+ version: '2.0'
69
95
  - !ruby/object:Gem::Dependency
70
96
  name: rspec
71
- requirement: &2164418660 !ruby/object:Gem::Requirement
97
+ requirement: !ruby/object:Gem::Requirement
72
98
  none: false
73
99
  requirements:
74
100
  - - ~>
75
101
  - !ruby/object:Gem::Version
76
- version: 2.7.0
102
+ version: '2.7'
77
103
  type: :development
78
104
  prerelease: false
79
- version_requirements: *2164418660
105
+ version_requirements: !ruby/object:Gem::Requirement
106
+ none: false
107
+ requirements:
108
+ - - ~>
109
+ - !ruby/object:Gem::Version
110
+ version: '2.7'
80
111
  - !ruby/object:Gem::Dependency
81
112
  name: simplecov
82
- requirement: &2164416340 !ruby/object:Gem::Requirement
113
+ requirement: !ruby/object:Gem::Requirement
83
114
  none: false
84
115
  requirements:
85
116
  - - ~>
86
117
  - !ruby/object:Gem::Version
87
- version: 0.6.4
118
+ version: '0.7'
88
119
  type: :development
89
120
  prerelease: false
90
- version_requirements: *2164416340
121
+ version_requirements: !ruby/object:Gem::Requirement
122
+ none: false
123
+ requirements:
124
+ - - ~>
125
+ - !ruby/object:Gem::Version
126
+ version: '0.7'
91
127
  - !ruby/object:Gem::Dependency
92
128
  name: timecop
93
- requirement: &2164407240 !ruby/object:Gem::Requirement
129
+ requirement: !ruby/object:Gem::Requirement
94
130
  none: false
95
131
  requirements:
96
132
  - - ~>
97
133
  - !ruby/object:Gem::Version
98
- version: 0.3.5
134
+ version: '0.6'
99
135
  type: :development
100
136
  prerelease: false
101
- version_requirements: *2164407240
137
+ version_requirements: !ruby/object:Gem::Requirement
138
+ none: false
139
+ requirements:
140
+ - - ~>
141
+ - !ruby/object:Gem::Version
142
+ version: '0.6'
102
143
  - !ruby/object:Gem::Dependency
103
144
  name: vcr
104
- requirement: &2164405080 !ruby/object:Gem::Requirement
145
+ requirement: !ruby/object:Gem::Requirement
105
146
  none: false
106
147
  requirements:
107
148
  - - ~>
108
149
  - !ruby/object:Gem::Version
109
- version: 2.1.0
150
+ version: '2.1'
110
151
  type: :development
111
152
  prerelease: false
112
- version_requirements: *2164405080
153
+ version_requirements: !ruby/object:Gem::Requirement
154
+ none: false
155
+ requirements:
156
+ - - ~>
157
+ - !ruby/object:Gem::Version
158
+ version: '2.1'
113
159
  - !ruby/object:Gem::Dependency
114
160
  name: yard
115
- requirement: &2164402380 !ruby/object:Gem::Requirement
161
+ requirement: !ruby/object:Gem::Requirement
116
162
  none: false
117
163
  requirements:
118
164
  - - ~>
119
165
  - !ruby/object:Gem::Version
120
- version: 0.7.3
166
+ version: '0.8'
121
167
  type: :development
122
168
  prerelease: false
123
- version_requirements: *2164402380
169
+ version_requirements: !ruby/object:Gem::Requirement
170
+ none: false
171
+ requirements:
172
+ - - ~>
173
+ - !ruby/object:Gem::Version
174
+ version: '0.8'
124
175
  description: Ruby wrapper for the Angellist API. The AngelList API provides developers
125
176
  with a RESTful interface to the AngelList data set. Some endpoints are public and
126
177
  require no authentication.
127
178
  email:
128
179
  - paul@resultsjunkies.com
180
+ - ches@whiskeyandgrits.net
129
181
  executables: []
130
182
  extensions: []
131
183
  extra_rdoc_files: []
@@ -135,6 +187,9 @@ files:
135
187
  - lib/angellist_api/client/activity_feeds.rb
136
188
  - lib/angellist_api/client/follows.rb
137
189
  - lib/angellist_api/client/jobs.rb
190
+ - lib/angellist_api/client/messages.rb
191
+ - lib/angellist_api/client/paths.rb
192
+ - lib/angellist_api/client/press.rb
138
193
  - lib/angellist_api/client/reviews.rb
139
194
  - lib/angellist_api/client/search.rb
140
195
  - lib/angellist_api/client/startup_roles.rb
@@ -171,6 +226,9 @@ files:
171
226
  - spec/fixtures/cassettes/activity_feeds.yml
172
227
  - spec/fixtures/cassettes/follows.yml
173
228
  - spec/fixtures/cassettes/jobs.yml
229
+ - spec/fixtures/cassettes/messages.yml
230
+ - spec/fixtures/cassettes/paths.yml
231
+ - spec/fixtures/cassettes/press.yml
174
232
  - spec/fixtures/cassettes/reviews.yml
175
233
  - spec/fixtures/cassettes/search.yml
176
234
  - spec/fixtures/cassettes/startup_roles.yml
@@ -181,6 +239,9 @@ files:
181
239
  - spec/integration/activity_feeds_spec.rb
182
240
  - spec/integration/follows_spec.rb
183
241
  - spec/integration/jobs_spec.rb
242
+ - spec/integration/messages_spec.rb
243
+ - spec/integration/paths_spec.rb
244
+ - spec/integration/press_spec.rb
184
245
  - spec/integration/reviews_spec.rb
185
246
  - spec/integration/search_spec.rb
186
247
  - spec/integration/startup_roles_spec.rb
@@ -189,12 +250,16 @@ files:
189
250
  - spec/integration/tags_spec.rb
190
251
  - spec/integration/users_spec.rb
191
252
  - spec/spec_helper.rb
253
+ - spec/support/authentication.rb
192
254
  - spec/support/vcr.rb
193
255
  - spec/unit/lib/angellist_api/api_spec.rb
194
256
  - spec/unit/lib/angellist_api/authentication_spec.rb
195
257
  - spec/unit/lib/angellist_api/client/activity_feeds_spec.rb
196
258
  - spec/unit/lib/angellist_api/client/follows_spec.rb
197
259
  - spec/unit/lib/angellist_api/client/jobs_spec.rb
260
+ - spec/unit/lib/angellist_api/client/messages_spec.rb
261
+ - spec/unit/lib/angellist_api/client/paths_spec.rb
262
+ - spec/unit/lib/angellist_api/client/press_spec.rb
198
263
  - spec/unit/lib/angellist_api/client/reviews_spec.rb
199
264
  - spec/unit/lib/angellist_api/client/search_spec.rb
200
265
  - spec/unit/lib/angellist_api/client/startup_roles_spec.rb
@@ -220,7 +285,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
220
285
  version: '0'
221
286
  segments:
222
287
  - 0
223
- hash: 1323234531531222948
288
+ hash: 2476115094270763289
224
289
  required_rubygems_version: !ruby/object:Gem::Requirement
225
290
  none: false
226
291
  requirements:
@@ -229,10 +294,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
229
294
  version: '0'
230
295
  segments:
231
296
  - 0
232
- hash: 1323234531531222948
297
+ hash: 2476115094270763289
233
298
  requirements: []
234
299
  rubyforge_project:
235
- rubygems_version: 1.8.10
300
+ rubygems_version: 1.8.25
236
301
  signing_key:
237
302
  specification_version: 3
238
303
  summary: Ruby wrapper for the Angellist API.
@@ -240,6 +305,9 @@ test_files:
240
305
  - spec/fixtures/cassettes/activity_feeds.yml
241
306
  - spec/fixtures/cassettes/follows.yml
242
307
  - spec/fixtures/cassettes/jobs.yml
308
+ - spec/fixtures/cassettes/messages.yml
309
+ - spec/fixtures/cassettes/paths.yml
310
+ - spec/fixtures/cassettes/press.yml
243
311
  - spec/fixtures/cassettes/reviews.yml
244
312
  - spec/fixtures/cassettes/search.yml
245
313
  - spec/fixtures/cassettes/startup_roles.yml
@@ -250,6 +318,9 @@ test_files:
250
318
  - spec/integration/activity_feeds_spec.rb
251
319
  - spec/integration/follows_spec.rb
252
320
  - spec/integration/jobs_spec.rb
321
+ - spec/integration/messages_spec.rb
322
+ - spec/integration/paths_spec.rb
323
+ - spec/integration/press_spec.rb
253
324
  - spec/integration/reviews_spec.rb
254
325
  - spec/integration/search_spec.rb
255
326
  - spec/integration/startup_roles_spec.rb
@@ -258,12 +329,16 @@ test_files:
258
329
  - spec/integration/tags_spec.rb
259
330
  - spec/integration/users_spec.rb
260
331
  - spec/spec_helper.rb
332
+ - spec/support/authentication.rb
261
333
  - spec/support/vcr.rb
262
334
  - spec/unit/lib/angellist_api/api_spec.rb
263
335
  - spec/unit/lib/angellist_api/authentication_spec.rb
264
336
  - spec/unit/lib/angellist_api/client/activity_feeds_spec.rb
265
337
  - spec/unit/lib/angellist_api/client/follows_spec.rb
266
338
  - spec/unit/lib/angellist_api/client/jobs_spec.rb
339
+ - spec/unit/lib/angellist_api/client/messages_spec.rb
340
+ - spec/unit/lib/angellist_api/client/paths_spec.rb
341
+ - spec/unit/lib/angellist_api/client/press_spec.rb
267
342
  - spec/unit/lib/angellist_api/client/reviews_spec.rb
268
343
  - spec/unit/lib/angellist_api/client/search_spec.rb
269
344
  - spec/unit/lib/angellist_api/client/startup_roles_spec.rb