angellist_api 1.0.6 → 1.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/CHANGELOG.md +9 -0
- data/lib/angellist_api/client/reviews.rb +12 -0
- data/lib/angellist_api/client/startups.rb +18 -5
- data/lib/angellist_api/client/users.rb +3 -3
- data/lib/angellist_api/version.rb +1 -1
- data/spec/fixtures/cassettes/reviews.yml +189 -45
- data/spec/fixtures/cassettes/startups.yml +5659 -765
- data/spec/integration/reviews_spec.rb +6 -0
- data/spec/integration/startups_spec.rb +9 -0
- data/spec/unit/lib/angellist_api/client/reviews_spec.rb +8 -0
- data/spec/unit/lib/angellist_api/client/startups_spec.rb +9 -0
- data/spec/unit/lib/angellist_api/client/users_spec.rb +1 -1
- metadata +5 -33
@@ -11,5 +11,11 @@ describe AngellistApi::Client::Reviews,
|
|
11
11
|
reviews.reviews.should be_an_instance_of Array
|
12
12
|
reviews.reviews.first.should have_key :rating
|
13
13
|
end
|
14
|
+
|
15
|
+
it 'gets a specific review' do
|
16
|
+
review = client.get_review(1098)
|
17
|
+
review.should have_key :note
|
18
|
+
review.rating.should eq 1
|
19
|
+
end
|
14
20
|
end
|
15
21
|
|
@@ -23,6 +23,15 @@ describe AngellistApi::Client::Startups,
|
|
23
23
|
startups.last.angellist_url.should eq 'http://angel.co/newco'
|
24
24
|
end
|
25
25
|
|
26
|
+
it 'gets fundraising startups' do
|
27
|
+
response = client.all_startups(:filter => :raising)
|
28
|
+
response.should be_an Hash
|
29
|
+
response.should have_key :startups
|
30
|
+
startups = response.startups
|
31
|
+
startups.should be_an Array
|
32
|
+
startups.first.should have_key :id
|
33
|
+
end
|
34
|
+
|
26
35
|
it 'gets information about a startup found by URL slug' do
|
27
36
|
startup = client.startup_search(:slug => '500-startups-fund')
|
28
37
|
startup.company_url.should eq 'http://500.co'
|
@@ -10,5 +10,13 @@ describe AngellistApi::Client::Reviews do
|
|
10
10
|
client.get_reviews(options).should == "success"
|
11
11
|
end
|
12
12
|
end
|
13
|
+
|
14
|
+
describe '#get_review' do
|
15
|
+
it 'gets 1/reviews/<id>' do
|
16
|
+
id = 1098
|
17
|
+
client.should_receive(:get).with("1/reviews/#{id}").and_return('success')
|
18
|
+
client.get_review(id).should == 'success'
|
19
|
+
end
|
20
|
+
end
|
13
21
|
end
|
14
22
|
|
@@ -29,6 +29,15 @@ describe AngellistApi::Client::Startups do
|
|
29
29
|
end
|
30
30
|
end
|
31
31
|
|
32
|
+
describe '#all_startups' do
|
33
|
+
it 'gets 1/startups' do
|
34
|
+
client.should_receive(:get).
|
35
|
+
with('1/startups', { :filter => :filter }).
|
36
|
+
and_return('success')
|
37
|
+
client.all_startups(:filter => :filter).should == 'success'
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
32
41
|
describe "#startup_search" do
|
33
42
|
it "gets 1/startups/search" do
|
34
43
|
options = { :some => "options" }
|
@@ -6,7 +6,7 @@ describe AngellistApi::Client::Users do
|
|
6
6
|
describe "#get_user" do
|
7
7
|
it "gets 1/users/<id>" do
|
8
8
|
id = "123"
|
9
|
-
client.should_receive(:get).with("1/users/#{id}").and_return("success")
|
9
|
+
client.should_receive(:get).with("1/users/#{id}", {}).and_return("success")
|
10
10
|
client.get_user(id).should == "success"
|
11
11
|
end
|
12
12
|
end
|
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: angellist_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
5
|
-
prerelease:
|
4
|
+
version: 1.0.7
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Paul Singh
|
@@ -10,12 +9,11 @@ authors:
|
|
10
9
|
autorequire:
|
11
10
|
bindir: bin
|
12
11
|
cert_chain: []
|
13
|
-
date: 2013-
|
12
|
+
date: 2013-10-18 00:00:00.000000000 Z
|
14
13
|
dependencies:
|
15
14
|
- !ruby/object:Gem::Dependency
|
16
15
|
name: hashie
|
17
16
|
requirement: !ruby/object:Gem::Requirement
|
18
|
-
none: false
|
19
17
|
requirements:
|
20
18
|
- - ! '>='
|
21
19
|
- !ruby/object:Gem::Version
|
@@ -23,7 +21,6 @@ dependencies:
|
|
23
21
|
type: :runtime
|
24
22
|
prerelease: false
|
25
23
|
version_requirements: !ruby/object:Gem::Requirement
|
26
|
-
none: false
|
27
24
|
requirements:
|
28
25
|
- - ! '>='
|
29
26
|
- !ruby/object:Gem::Version
|
@@ -31,7 +28,6 @@ dependencies:
|
|
31
28
|
- !ruby/object:Gem::Dependency
|
32
29
|
name: faraday
|
33
30
|
requirement: !ruby/object:Gem::Requirement
|
34
|
-
none: false
|
35
31
|
requirements:
|
36
32
|
- - ~>
|
37
33
|
- !ruby/object:Gem::Version
|
@@ -39,7 +35,6 @@ dependencies:
|
|
39
35
|
type: :runtime
|
40
36
|
prerelease: false
|
41
37
|
version_requirements: !ruby/object:Gem::Requirement
|
42
|
-
none: false
|
43
38
|
requirements:
|
44
39
|
- - ~>
|
45
40
|
- !ruby/object:Gem::Version
|
@@ -47,7 +42,6 @@ dependencies:
|
|
47
42
|
- !ruby/object:Gem::Dependency
|
48
43
|
name: faraday_middleware
|
49
44
|
requirement: !ruby/object:Gem::Requirement
|
50
|
-
none: false
|
51
45
|
requirements:
|
52
46
|
- - ~>
|
53
47
|
- !ruby/object:Gem::Version
|
@@ -55,7 +49,6 @@ dependencies:
|
|
55
49
|
type: :runtime
|
56
50
|
prerelease: false
|
57
51
|
version_requirements: !ruby/object:Gem::Requirement
|
58
|
-
none: false
|
59
52
|
requirements:
|
60
53
|
- - ~>
|
61
54
|
- !ruby/object:Gem::Version
|
@@ -63,7 +56,6 @@ dependencies:
|
|
63
56
|
- !ruby/object:Gem::Dependency
|
64
57
|
name: multi_json
|
65
58
|
requirement: !ruby/object:Gem::Requirement
|
66
|
-
none: false
|
67
59
|
requirements:
|
68
60
|
- - ~>
|
69
61
|
- !ruby/object:Gem::Version
|
@@ -71,7 +63,6 @@ dependencies:
|
|
71
63
|
type: :runtime
|
72
64
|
prerelease: false
|
73
65
|
version_requirements: !ruby/object:Gem::Requirement
|
74
|
-
none: false
|
75
66
|
requirements:
|
76
67
|
- - ~>
|
77
68
|
- !ruby/object:Gem::Version
|
@@ -79,7 +70,6 @@ dependencies:
|
|
79
70
|
- !ruby/object:Gem::Dependency
|
80
71
|
name: rdiscount
|
81
72
|
requirement: !ruby/object:Gem::Requirement
|
82
|
-
none: false
|
83
73
|
requirements:
|
84
74
|
- - ~>
|
85
75
|
- !ruby/object:Gem::Version
|
@@ -87,7 +77,6 @@ dependencies:
|
|
87
77
|
type: :development
|
88
78
|
prerelease: false
|
89
79
|
version_requirements: !ruby/object:Gem::Requirement
|
90
|
-
none: false
|
91
80
|
requirements:
|
92
81
|
- - ~>
|
93
82
|
- !ruby/object:Gem::Version
|
@@ -95,7 +84,6 @@ dependencies:
|
|
95
84
|
- !ruby/object:Gem::Dependency
|
96
85
|
name: rspec
|
97
86
|
requirement: !ruby/object:Gem::Requirement
|
98
|
-
none: false
|
99
87
|
requirements:
|
100
88
|
- - ~>
|
101
89
|
- !ruby/object:Gem::Version
|
@@ -103,7 +91,6 @@ dependencies:
|
|
103
91
|
type: :development
|
104
92
|
prerelease: false
|
105
93
|
version_requirements: !ruby/object:Gem::Requirement
|
106
|
-
none: false
|
107
94
|
requirements:
|
108
95
|
- - ~>
|
109
96
|
- !ruby/object:Gem::Version
|
@@ -111,7 +98,6 @@ dependencies:
|
|
111
98
|
- !ruby/object:Gem::Dependency
|
112
99
|
name: simplecov
|
113
100
|
requirement: !ruby/object:Gem::Requirement
|
114
|
-
none: false
|
115
101
|
requirements:
|
116
102
|
- - ~>
|
117
103
|
- !ruby/object:Gem::Version
|
@@ -119,7 +105,6 @@ dependencies:
|
|
119
105
|
type: :development
|
120
106
|
prerelease: false
|
121
107
|
version_requirements: !ruby/object:Gem::Requirement
|
122
|
-
none: false
|
123
108
|
requirements:
|
124
109
|
- - ~>
|
125
110
|
- !ruby/object:Gem::Version
|
@@ -127,7 +112,6 @@ dependencies:
|
|
127
112
|
- !ruby/object:Gem::Dependency
|
128
113
|
name: timecop
|
129
114
|
requirement: !ruby/object:Gem::Requirement
|
130
|
-
none: false
|
131
115
|
requirements:
|
132
116
|
- - ~>
|
133
117
|
- !ruby/object:Gem::Version
|
@@ -135,7 +119,6 @@ dependencies:
|
|
135
119
|
type: :development
|
136
120
|
prerelease: false
|
137
121
|
version_requirements: !ruby/object:Gem::Requirement
|
138
|
-
none: false
|
139
122
|
requirements:
|
140
123
|
- - ~>
|
141
124
|
- !ruby/object:Gem::Version
|
@@ -143,7 +126,6 @@ dependencies:
|
|
143
126
|
- !ruby/object:Gem::Dependency
|
144
127
|
name: vcr
|
145
128
|
requirement: !ruby/object:Gem::Requirement
|
146
|
-
none: false
|
147
129
|
requirements:
|
148
130
|
- - ~>
|
149
131
|
- !ruby/object:Gem::Version
|
@@ -151,7 +133,6 @@ dependencies:
|
|
151
133
|
type: :development
|
152
134
|
prerelease: false
|
153
135
|
version_requirements: !ruby/object:Gem::Requirement
|
154
|
-
none: false
|
155
136
|
requirements:
|
156
137
|
- - ~>
|
157
138
|
- !ruby/object:Gem::Version
|
@@ -159,7 +140,6 @@ dependencies:
|
|
159
140
|
- !ruby/object:Gem::Dependency
|
160
141
|
name: yard
|
161
142
|
requirement: !ruby/object:Gem::Requirement
|
162
|
-
none: false
|
163
143
|
requirements:
|
164
144
|
- - ~>
|
165
145
|
- !ruby/object:Gem::Version
|
@@ -167,7 +147,6 @@ dependencies:
|
|
167
147
|
type: :development
|
168
148
|
prerelease: false
|
169
149
|
version_requirements: !ruby/object:Gem::Requirement
|
170
|
-
none: false
|
171
150
|
requirements:
|
172
151
|
- - ~>
|
173
152
|
- !ruby/object:Gem::Version
|
@@ -277,33 +256,26 @@ files:
|
|
277
256
|
- spec/unit/lib/angellist_api_spec.rb
|
278
257
|
homepage: https://github.com/paulsingh/angellist-api
|
279
258
|
licenses: []
|
259
|
+
metadata: {}
|
280
260
|
post_install_message:
|
281
261
|
rdoc_options: []
|
282
262
|
require_paths:
|
283
263
|
- lib
|
284
264
|
required_ruby_version: !ruby/object:Gem::Requirement
|
285
|
-
none: false
|
286
265
|
requirements:
|
287
266
|
- - ! '>='
|
288
267
|
- !ruby/object:Gem::Version
|
289
268
|
version: '0'
|
290
|
-
segments:
|
291
|
-
- 0
|
292
|
-
hash: 74367016323838857
|
293
269
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
294
|
-
none: false
|
295
270
|
requirements:
|
296
271
|
- - ! '>='
|
297
272
|
- !ruby/object:Gem::Version
|
298
273
|
version: '0'
|
299
|
-
segments:
|
300
|
-
- 0
|
301
|
-
hash: 74367016323838857
|
302
274
|
requirements: []
|
303
275
|
rubyforge_project:
|
304
|
-
rubygems_version:
|
276
|
+
rubygems_version: 2.0.7
|
305
277
|
signing_key:
|
306
|
-
specification_version:
|
278
|
+
specification_version: 4
|
307
279
|
summary: Ruby wrapper for the Angellist API.
|
308
280
|
test_files:
|
309
281
|
- spec/fixtures/cassettes/activity_feeds.yml
|