angellist_api 1.0.7 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +6 -14
- data/CHANGELOG.md +15 -0
- data/lib/angellist_api/client/activity_feeds.rb +0 -12
- data/lib/angellist_api/client/jobs.rb +4 -4
- data/lib/angellist_api/version.rb +1 -1
- data/spec/fixtures/cassettes/activity_feeds.yml +225 -253
- data/spec/fixtures/cassettes/follows.yml +990 -1569
- data/spec/fixtures/cassettes/jobs.yml +2458 -1984
- data/spec/fixtures/cassettes/press.yml +158 -119
- data/spec/fixtures/cassettes/reviews.yml +111 -202
- data/spec/fixtures/cassettes/search.yml +116 -136
- data/spec/fixtures/cassettes/startup_roles.yml +3036 -3684
- data/spec/fixtures/cassettes/startups.yml +2024 -5906
- data/spec/fixtures/cassettes/status_updates.yml +108 -78
- data/spec/fixtures/cassettes/tags.yml +557 -695
- data/spec/fixtures/cassettes/users.yml +748 -728
- data/spec/integration/activity_feeds_spec.rb +5 -9
- data/spec/integration/follows_spec.rb +9 -8
- data/spec/integration/jobs_spec.rb +5 -8
- data/spec/integration/reviews_spec.rb +5 -3
- data/spec/integration/search_spec.rb +1 -1
- data/spec/integration/startup_roles_spec.rb +7 -5
- data/spec/integration/startups_spec.rb +4 -4
- data/spec/integration/status_updates_spec.rb +4 -2
- data/spec/integration/tags_spec.rb +1 -1
- data/spec/integration/users_spec.rb +7 -6
- data/spec/spec_helper.rb +10 -4
- data/spec/support/vcr.rb +25 -2
- data/spec/unit/lib/angellist_api/authentication_spec.rb +5 -5
- data/spec/unit/lib/angellist_api/client/activity_feeds_spec.rb +0 -8
- data/spec/unit/lib/angellist_api_spec.rb +2 -2
- metadata +49 -35
@@ -4,8 +4,9 @@ describe AngellistApi::Client::ActivityFeeds,
|
|
4
4
|
:vcr => { :cassette_name => 'activity_feeds' } do
|
5
5
|
|
6
6
|
let(:client) { AngellistApi::Client.new }
|
7
|
-
let(:valid_types) do
|
8
|
-
%w[Comment Follow Review StartupIntro StartupPublish
|
7
|
+
let(:valid_types) do # NOTE: some are undocumented
|
8
|
+
%w[Answer Comment Follow Press Question Review StartupIntro StartupPublish
|
9
|
+
StartupRole StatusUpdate Update].freeze
|
9
10
|
end
|
10
11
|
|
11
12
|
it 'fetches Activity Feed entries' do
|
@@ -16,14 +17,9 @@ describe AngellistApi::Client::ActivityFeeds,
|
|
16
17
|
feed = client.get_feed[:feed]
|
17
18
|
feed.each do |activity|
|
18
19
|
valid_types.should include activity.item.type
|
20
|
+
activity.should have_key :actor
|
21
|
+
activity.should have_key :target
|
19
22
|
end
|
20
23
|
end
|
21
|
-
|
22
|
-
it 'gets a single Activity Feed entry' do
|
23
|
-
activity = client.feed_item('8fCC3')
|
24
|
-
activity.should have_key :item
|
25
|
-
activity.should have_key :actor
|
26
|
-
activity.should have_key :target
|
27
|
-
end
|
28
24
|
end
|
29
25
|
|
@@ -4,43 +4,44 @@ describe AngellistApi::Client::Follows,
|
|
4
4
|
:vcr => { :cassette_name => 'follows' } do
|
5
5
|
|
6
6
|
let(:client) { AngellistApi::Client.new }
|
7
|
+
let(:user_id) { 65956 }
|
7
8
|
|
8
9
|
it 'gets follows in batch' do
|
9
10
|
follows = client.get_follows([4067161, 4067147])
|
10
|
-
follows.last.follower.angellist_url.should eq '
|
11
|
-
follows.last.followed.angellist_url.should eq '
|
11
|
+
follows.last.follower.angellist_url.should eq 'https://angel.co/danielle-morrill'
|
12
|
+
follows.last.followed.angellist_url.should eq 'https://angel.co/newco'
|
12
13
|
end
|
13
14
|
|
14
15
|
it "gets a user's followers" do
|
15
|
-
followers = client.get_user_followers(
|
16
|
+
followers = client.get_user_followers(user_id)
|
16
17
|
followers.users.should be_an_instance_of Array
|
17
18
|
followers.users.first.should be_an_instance_of Hashie::Mash
|
18
19
|
end
|
19
20
|
|
20
21
|
it "gets IDs of a user's followers" do
|
21
|
-
followers = client.get_user_follower_ids(
|
22
|
+
followers = client.get_user_follower_ids(user_id)
|
22
23
|
followers.ids.should be_an_instance_of Array
|
23
24
|
followers.ids.first.should be_an_instance_of Fixnum
|
24
25
|
end
|
25
26
|
|
26
27
|
it 'gets users a user is following' do
|
27
|
-
following = client.get_user_following(
|
28
|
+
following = client.get_user_following(user_id)
|
28
29
|
following.users.first.should have_key :bio
|
29
30
|
end
|
30
31
|
|
31
32
|
it 'gets startups a user is following' do
|
32
|
-
following = client.get_user_following(
|
33
|
+
following = client.get_user_following(user_id, :type => :startup)
|
33
34
|
following.startups.first.should have_key :product_desc
|
34
35
|
end
|
35
36
|
|
36
37
|
it 'gets IDs of users a user is following' do
|
37
|
-
followers = client.get_user_following_ids(
|
38
|
+
followers = client.get_user_following_ids(user_id)
|
38
39
|
followers.ids.should be_an_instance_of Array
|
39
40
|
followers.ids.first.should be_an_instance_of Fixnum
|
40
41
|
end
|
41
42
|
|
42
43
|
it 'gets IDs of startups a user is following' do
|
43
|
-
followers = client.get_user_following_ids(
|
44
|
+
followers = client.get_user_following_ids(user_id, :type => :startup)
|
44
45
|
followers.ids.should be_an_instance_of Array
|
45
46
|
followers.ids.first.should be_an_instance_of Fixnum
|
46
47
|
end
|
@@ -1,20 +1,21 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
|
-
describe AngellistApi::Client::Jobs,
|
3
|
+
describe AngellistApi::Client::Jobs, :authenticated,
|
4
4
|
:vcr => { :cassette_name => 'jobs' } do
|
5
5
|
|
6
6
|
let(:client) { AngellistApi::Client.new }
|
7
|
+
let(:job_id) { 63344 }
|
7
8
|
|
8
9
|
it 'gets a listing of jobs' do
|
9
|
-
jobs = client.get_jobs
|
10
|
+
jobs = client.get_jobs.jobs
|
10
11
|
jobs.first.should have_key :job_type
|
11
12
|
jobs.first.should have_key :startup
|
12
13
|
end
|
13
14
|
|
14
15
|
it 'gets information about a job' do
|
15
|
-
job = client.get_job(
|
16
|
+
job = client.get_job(job_id)
|
16
17
|
job.title.should eq 'Software Engineer'
|
17
|
-
job.startup.name.should eq '
|
18
|
+
job.startup.name.should eq 'Genetesis'
|
18
19
|
end
|
19
20
|
|
20
21
|
it 'gets jobs for a given startup' do
|
@@ -23,10 +24,6 @@ describe AngellistApi::Client::Jobs,
|
|
23
24
|
end
|
24
25
|
|
25
26
|
it 'gets jobs for a given LocationTag' do
|
26
|
-
# This returns a job where the only LocationTag is Las Vegas. I've
|
27
|
-
# contacted AngelList to inquire if this is an API bug, doc fault, or?
|
28
|
-
pending 'API bug?'
|
29
|
-
|
30
27
|
sf = client.get_tag_jobs(1692)
|
31
28
|
sf.jobs.each do |job|
|
32
29
|
job.tags.select { |tag| tag.id == 1692 }.should_not be_empty
|
@@ -4,18 +4,20 @@ describe AngellistApi::Client::Reviews,
|
|
4
4
|
:vcr => { :cassette_name => 'reviews' } do
|
5
5
|
|
6
6
|
let(:client) { AngellistApi::Client.new }
|
7
|
+
let(:user_id) { 155 } # Naval
|
7
8
|
|
8
9
|
it 'gets reviews of a user' do
|
9
|
-
reviews = client.get_reviews(:user_id =>
|
10
|
+
reviews = client.get_reviews(:user_id => user_id)
|
10
11
|
reviews.should have_key :total_positive
|
11
12
|
reviews.reviews.should be_an_instance_of Array
|
12
|
-
reviews.reviews.first.should have_key :
|
13
|
+
reviews.reviews.first.should have_key :note
|
14
|
+
reviews.reviews.first.should have_key :relationship_to_reviewer
|
13
15
|
end
|
14
16
|
|
15
17
|
it 'gets a specific review' do
|
16
18
|
review = client.get_review(1098)
|
17
19
|
review.should have_key :note
|
18
|
-
review.
|
20
|
+
review.should have_key :relationship_to_reviewer
|
19
21
|
end
|
20
22
|
end
|
21
23
|
|
@@ -4,7 +4,7 @@ describe AngellistApi::Client::Search,
|
|
4
4
|
:vcr => { :cassette_name => 'search' } do
|
5
5
|
|
6
6
|
let(:client) { AngellistApi::Client.new }
|
7
|
-
let(:valid_types) { %w[User Startup MarketTag LocationTag].freeze }
|
7
|
+
let(:valid_types) { %w[User Startup MarketTag LocationTag SkillTag].freeze }
|
8
8
|
|
9
9
|
it 'searches with a general query' do
|
10
10
|
results = client.search('machine learning')
|
@@ -4,9 +4,11 @@ describe AngellistApi::Client::StartupRoles,
|
|
4
4
|
:vcr => { :cassette_name => 'startup_roles' } do
|
5
5
|
|
6
6
|
let(:client) { AngellistApi::Client.new }
|
7
|
+
let(:startup_id) { 1124 } # 500 Startups
|
8
|
+
let(:user_id) { 155 } # Naval
|
7
9
|
|
8
10
|
it "gets a startup's relationships" do
|
9
|
-
roles = client.get_startup_roles(:startup_id =>
|
11
|
+
roles = client.get_startup_roles(:startup_id => startup_id)
|
10
12
|
roles.startup_roles.each do |relationship|
|
11
13
|
ROLES.should include relationship.role
|
12
14
|
end
|
@@ -14,7 +16,7 @@ describe AngellistApi::Client::StartupRoles,
|
|
14
16
|
end
|
15
17
|
|
16
18
|
it "gets a user's relationships" do
|
17
|
-
roles = client.get_startup_roles(:user_id =>
|
19
|
+
roles = client.get_startup_roles(:user_id => user_id)
|
18
20
|
roles.startup_roles.each do |relationship|
|
19
21
|
ROLES.should include relationship.role
|
20
22
|
end
|
@@ -25,7 +27,7 @@ describe AngellistApi::Client::StartupRoles,
|
|
25
27
|
let(:base_params) { { :v => 1 } }
|
26
28
|
|
27
29
|
it "gets a startup's outgoing relationships" do
|
28
|
-
params = { :startup_id =>
|
30
|
+
params = { :startup_id => startup_id, :direction => 'outgoing' }.merge(base_params)
|
29
31
|
roles = client.get_startup_roles(params)
|
30
32
|
roles.startup_roles.each do |relationship|
|
31
33
|
ROLES.should include relationship.role
|
@@ -36,7 +38,7 @@ describe AngellistApi::Client::StartupRoles,
|
|
36
38
|
end
|
37
39
|
|
38
40
|
it "gets a startup's incoming relationships" do
|
39
|
-
params = { :startup_id =>
|
41
|
+
params = { :startup_id => startup_id }.merge(base_params)
|
40
42
|
roles = client.get_startup_roles(params)
|
41
43
|
roles.startup_roles.each do |relationship|
|
42
44
|
ROLES.should include relationship.role
|
@@ -47,7 +49,7 @@ describe AngellistApi::Client::StartupRoles,
|
|
47
49
|
end
|
48
50
|
|
49
51
|
it "gets a user's relationships" do
|
50
|
-
params = { :user_id =>
|
52
|
+
params = { :user_id => user_id }.merge(base_params)
|
51
53
|
roles = client.get_startup_roles(params)
|
52
54
|
roles.startup_roles.each do |relationship|
|
53
55
|
ROLES.should include relationship.role
|
@@ -7,7 +7,7 @@ describe AngellistApi::Client::Startups,
|
|
7
7
|
|
8
8
|
it 'gets information about a startup' do
|
9
9
|
startup = client.get_startup(1124)
|
10
|
-
startup.angellist_url.should eq '
|
10
|
+
startup.angellist_url.should eq 'https://angel.co/500startups'
|
11
11
|
end
|
12
12
|
|
13
13
|
it 'gets comments about a startup' do
|
@@ -19,8 +19,8 @@ describe AngellistApi::Client::Startups,
|
|
19
19
|
|
20
20
|
it 'gets startups in batch' do
|
21
21
|
startups = client.get_startups [1124, 31627]
|
22
|
-
startups.first.name.should eq '500 Startups
|
23
|
-
startups.last.angellist_url.should eq '
|
22
|
+
startups.first.name.should eq '500 Startups'
|
23
|
+
startups.last.angellist_url.should eq 'https://angel.co/newco'
|
24
24
|
end
|
25
25
|
|
26
26
|
it 'gets fundraising startups' do
|
@@ -39,7 +39,7 @@ describe AngellistApi::Client::Startups,
|
|
39
39
|
|
40
40
|
it 'gets information about a startup found by site domain' do
|
41
41
|
startup = client.startup_search(:domain => '500.co')
|
42
|
-
startup.angellist_url.should eq '
|
42
|
+
startup.angellist_url.should eq 'https://angel.co/500startups'
|
43
43
|
end
|
44
44
|
|
45
45
|
it 'gets a company\s startup roles' do
|
@@ -4,14 +4,16 @@ describe AngellistApi::Client::StatusUpdates,
|
|
4
4
|
:vcr => { :cassette_name => 'status_updates' } do
|
5
5
|
|
6
6
|
let(:client) { AngellistApi::Client.new }
|
7
|
+
let(:user_id) { 155 } # Naval
|
8
|
+
let(:startup_id) { 1124 } # 500 Startups
|
7
9
|
|
8
10
|
it 'gets status updates for a user' do
|
9
|
-
statuses = client.get_status_updates(:user_id =>
|
11
|
+
statuses = client.get_status_updates(:user_id => user_id)
|
10
12
|
statuses.status_updates.first.should have_key :message
|
11
13
|
end
|
12
14
|
|
13
15
|
it 'gets status updates for a startup' do
|
14
|
-
statuses = client.get_status_updates(:startup_id =>
|
16
|
+
statuses = client.get_status_updates(:startup_id => startup_id)
|
15
17
|
statuses.status_updates.first.should have_key :message
|
16
18
|
end
|
17
19
|
end
|
@@ -12,7 +12,7 @@ describe AngellistApi::Client::Tags,
|
|
12
12
|
|
13
13
|
it "gets a tag's children" do
|
14
14
|
children = client.get_tag_children(856).children
|
15
|
-
children.map { |tag| tag.display_name }.should include '
|
15
|
+
children.map { |tag| tag.display_name }.should include 'Angels'
|
16
16
|
end
|
17
17
|
|
18
18
|
it "gets a tag's parents" do
|
@@ -4,24 +4,25 @@ describe AngellistApi::Client::Users,
|
|
4
4
|
:vcr => { :cassette_name => 'users' } do
|
5
5
|
|
6
6
|
let(:client) { AngellistApi::Client.new }
|
7
|
+
let(:user_id) { 155 } # Naval
|
7
8
|
|
8
9
|
it 'gets info for a user' do
|
9
|
-
user = client.get_user(
|
10
|
-
user.angellist_url.should eq '
|
10
|
+
user = client.get_user(user_id)
|
11
|
+
user.angellist_url.should eq 'https://angel.co/naval'
|
11
12
|
end
|
12
13
|
|
13
14
|
it 'gets users in batch' do
|
14
15
|
users = client.get_users([15821, 100303])
|
15
|
-
users.map { |u| u.angellist_url }.should eq %w[
|
16
|
+
users.map { |u| u.angellist_url }.should eq %w[https://angel.co/tchae https://angel.co/scomma]
|
16
17
|
end
|
17
18
|
|
18
19
|
it 'gets info for a user by URL slug' do
|
19
|
-
user = client.user_search(:slug => '
|
20
|
-
user.linkedin_url.should eq 'http://www.linkedin.com/
|
20
|
+
user = client.user_search(:slug => 'naval')
|
21
|
+
user.linkedin_url.should eq 'http://www.linkedin.com/in/navalr'
|
21
22
|
end
|
22
23
|
|
23
24
|
it 'gets the companies that a user has been tagged in' do
|
24
|
-
roles = client.user_roles(
|
25
|
+
roles = client.user_roles(user_id)
|
25
26
|
roles.startup_roles.size.should be > 0
|
26
27
|
roles.startup_roles.each do |relationship|
|
27
28
|
ROLES.should include relationship.role
|
data/spec/spec_helper.rb
CHANGED
@@ -6,14 +6,20 @@ require 'angellist_api'
|
|
6
6
|
require 'timecop'
|
7
7
|
|
8
8
|
RSpec.configure do |config|
|
9
|
-
config.mock_with :rspec
|
9
|
+
config.mock_with :rspec do |mocks|
|
10
|
+
mocks.syntax = [:should, :expect]
|
11
|
+
end
|
10
12
|
|
11
13
|
config.filter_run :focus => true
|
12
14
|
config.run_all_when_everything_filtered = true
|
13
|
-
config.
|
14
|
-
|
15
|
+
config.color = true
|
16
|
+
|
17
|
+
config.expect_with :rspec do |rspec|
|
18
|
+
rspec.syntax = [:should, :expect]
|
19
|
+
end
|
15
20
|
end
|
16
21
|
|
17
22
|
Dir['./spec/support/**/*.rb'].each { |f| require f }
|
18
23
|
|
19
|
-
ROLES = %w[founder employee past_investor advisor
|
24
|
+
ROLES = %w[founder employee current_investor past_investor advisor mentor
|
25
|
+
incubator referrer board_member customer]
|
data/spec/support/vcr.rb
CHANGED
@@ -2,9 +2,12 @@ require 'vcr'
|
|
2
2
|
|
3
3
|
VCR.configure do |c|
|
4
4
|
c.cassette_library_dir = 'spec/fixtures/cassettes'
|
5
|
-
c.hook_into :
|
5
|
+
c.hook_into :webmock
|
6
6
|
c.configure_rspec_metadata!
|
7
|
-
c.default_cassette_options = {
|
7
|
+
c.default_cassette_options = {
|
8
|
+
:record => :once,
|
9
|
+
:match_requests_on => [:method, :uri_with_unordered_params]
|
10
|
+
}
|
8
11
|
|
9
12
|
# In recorded cassettes, replace these environment variable values with a
|
10
13
|
# placeholder like <VARIABLE>
|
@@ -15,5 +18,25 @@ VCR.configure do |c|
|
|
15
18
|
placeholders.each do |placeholder|
|
16
19
|
c.filter_sensitive_data("<#{placeholder}>") { ENV[placeholder] }
|
17
20
|
end
|
21
|
+
|
22
|
+
# Between Faraday 0.8.x and 0.9, they started sorting the order of params when
|
23
|
+
# generating URIs:
|
24
|
+
#
|
25
|
+
# https://github.com/lostisland/faraday/issues/353
|
26
|
+
#
|
27
|
+
# The AngelList API should not care about query param ordering. Since
|
28
|
+
# Faraday's fate seems to be in question anyway [1], rather than bump our
|
29
|
+
# dependency requirement for now, a less strict request matcher works around
|
30
|
+
# the discrepancy for the test suite. Hat tip:
|
31
|
+
#
|
32
|
+
# https://github.com/vcr/vcr/wiki/Common-Custom-Matchers#uri-ignoring-query-parameter-ordering
|
33
|
+
#
|
34
|
+
# [1]: https://github.com/lostisland/faraday/issues/454
|
35
|
+
c.register_request_matcher :uri_with_unordered_params do |req1, req2|
|
36
|
+
uri1, uri2 = URI(req1.uri), URI(req2.uri)
|
37
|
+
uri1.scheme == uri2.scheme && uri1.host == uri2.host &&
|
38
|
+
uri1.path == uri2.path &&
|
39
|
+
CGI.parse(uri1.query || '') == CGI.parse(uri2.query || '')
|
40
|
+
end
|
18
41
|
end
|
19
42
|
|
@@ -14,7 +14,7 @@ describe AngellistApi::Authentication do
|
|
14
14
|
context "without auth variables defined" do
|
15
15
|
it "returns a hash with nil values" do
|
16
16
|
a = BasicClass.new
|
17
|
-
a.send(:authentication).values.any?.should
|
17
|
+
a.send(:authentication).values.any?.should be false
|
18
18
|
end
|
19
19
|
end
|
20
20
|
|
@@ -22,12 +22,12 @@ describe AngellistApi::Authentication do
|
|
22
22
|
let(:a) { FullClass.new }
|
23
23
|
|
24
24
|
it "returns a hash with nil values if auth variables are not set" do
|
25
|
-
a.send(:authentication).values.all?.should
|
25
|
+
a.send(:authentication).values.all?.should be false
|
26
26
|
end
|
27
27
|
|
28
28
|
it "returns a hash with nil values if auth variables are set" do
|
29
29
|
a.access_token = "token"
|
30
|
-
a.send(:authentication).values.all?.should
|
30
|
+
a.send(:authentication).values.all?.should be true
|
31
31
|
end
|
32
32
|
end
|
33
33
|
end
|
@@ -37,12 +37,12 @@ describe AngellistApi::Authentication do
|
|
37
37
|
|
38
38
|
it "returns false if authentication has any nil values" do
|
39
39
|
a.should_receive(:authentication).and_return({:access_token=>nil})
|
40
|
-
a.send(:authenticated?).should
|
40
|
+
a.send(:authenticated?).should be false
|
41
41
|
end
|
42
42
|
|
43
43
|
it "returns true if authentication has no nil values" do
|
44
44
|
a.should_receive(:authentication).and_return({:access_token=>"1"})
|
45
|
-
a.send(:authenticated?).should
|
45
|
+
a.send(:authenticated?).should be true
|
46
46
|
end
|
47
47
|
end
|
48
48
|
end
|
@@ -10,13 +10,5 @@ describe AngellistApi::Client::ActivityFeeds do
|
|
10
10
|
client.get_feed(options).should == "success"
|
11
11
|
end
|
12
12
|
end
|
13
|
-
|
14
|
-
describe '#feed_item' do
|
15
|
-
it 'gets 1/feed/<id>' do
|
16
|
-
id = '8fCC3'
|
17
|
-
client.should_receive(:get).with("1/feed/#{id}").and_return('success')
|
18
|
-
client.feed_item(id).should eq 'success'
|
19
|
-
end
|
20
|
-
end
|
21
13
|
end
|
22
14
|
|
@@ -31,11 +31,11 @@ describe AngellistApi do
|
|
31
31
|
|
32
32
|
describe ".respond_to?" do
|
33
33
|
it "returns true if AngellistApi::Client responds to the method" do
|
34
|
-
AngellistApi.respond_to?(:startup_search).should
|
34
|
+
AngellistApi.respond_to?(:startup_search).should be true
|
35
35
|
end
|
36
36
|
|
37
37
|
it "returns false if AngellistApi::Client does not respond to the method" do
|
38
|
-
AngellistApi.respond_to?(:some_unknown_method).should
|
38
|
+
AngellistApi.respond_to?(:some_unknown_method).should be false
|
39
39
|
end
|
40
40
|
end
|
41
41
|
|
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
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paul Singh
|
@@ -9,146 +9,160 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2015-04-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: hashie
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- -
|
18
|
+
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
20
|
version: 1.1.0
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
|
-
- -
|
25
|
+
- - ">="
|
26
26
|
- !ruby/object:Gem::Version
|
27
27
|
version: 1.1.0
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: faraday
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
|
-
- - ~>
|
32
|
+
- - "~>"
|
33
33
|
- !ruby/object:Gem::Version
|
34
34
|
version: '0.7'
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
|
-
- - ~>
|
39
|
+
- - "~>"
|
40
40
|
- !ruby/object:Gem::Version
|
41
41
|
version: '0.7'
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: faraday_middleware
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
|
-
- - ~>
|
46
|
+
- - "~>"
|
47
47
|
- !ruby/object:Gem::Version
|
48
48
|
version: '0.7'
|
49
49
|
type: :runtime
|
50
50
|
prerelease: false
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
|
-
- - ~>
|
53
|
+
- - "~>"
|
54
54
|
- !ruby/object:Gem::Version
|
55
55
|
version: '0.7'
|
56
56
|
- !ruby/object:Gem::Dependency
|
57
57
|
name: multi_json
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
59
59
|
requirements:
|
60
|
-
- - ~>
|
60
|
+
- - "~>"
|
61
61
|
- !ruby/object:Gem::Version
|
62
62
|
version: '1.0'
|
63
63
|
type: :runtime
|
64
64
|
prerelease: false
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
|
-
- - ~>
|
67
|
+
- - "~>"
|
68
68
|
- !ruby/object:Gem::Version
|
69
69
|
version: '1.0'
|
70
70
|
- !ruby/object:Gem::Dependency
|
71
71
|
name: rdiscount
|
72
72
|
requirement: !ruby/object:Gem::Requirement
|
73
73
|
requirements:
|
74
|
-
- - ~>
|
74
|
+
- - "~>"
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '2.0'
|
77
77
|
type: :development
|
78
78
|
prerelease: false
|
79
79
|
version_requirements: !ruby/object:Gem::Requirement
|
80
80
|
requirements:
|
81
|
-
- - ~>
|
81
|
+
- - "~>"
|
82
82
|
- !ruby/object:Gem::Version
|
83
83
|
version: '2.0'
|
84
84
|
- !ruby/object:Gem::Dependency
|
85
85
|
name: rspec
|
86
86
|
requirement: !ruby/object:Gem::Requirement
|
87
87
|
requirements:
|
88
|
-
- - ~>
|
88
|
+
- - "~>"
|
89
89
|
- !ruby/object:Gem::Version
|
90
|
-
version: '2
|
90
|
+
version: '3.2'
|
91
91
|
type: :development
|
92
92
|
prerelease: false
|
93
93
|
version_requirements: !ruby/object:Gem::Requirement
|
94
94
|
requirements:
|
95
|
-
- - ~>
|
95
|
+
- - "~>"
|
96
96
|
- !ruby/object:Gem::Version
|
97
|
-
version: '2
|
97
|
+
version: '3.2'
|
98
98
|
- !ruby/object:Gem::Dependency
|
99
99
|
name: simplecov
|
100
100
|
requirement: !ruby/object:Gem::Requirement
|
101
101
|
requirements:
|
102
|
-
- - ~>
|
102
|
+
- - "~>"
|
103
103
|
- !ruby/object:Gem::Version
|
104
104
|
version: '0.7'
|
105
105
|
type: :development
|
106
106
|
prerelease: false
|
107
107
|
version_requirements: !ruby/object:Gem::Requirement
|
108
108
|
requirements:
|
109
|
-
- - ~>
|
109
|
+
- - "~>"
|
110
110
|
- !ruby/object:Gem::Version
|
111
111
|
version: '0.7'
|
112
112
|
- !ruby/object:Gem::Dependency
|
113
113
|
name: timecop
|
114
114
|
requirement: !ruby/object:Gem::Requirement
|
115
115
|
requirements:
|
116
|
-
- - ~>
|
116
|
+
- - "~>"
|
117
117
|
- !ruby/object:Gem::Version
|
118
118
|
version: '0.6'
|
119
119
|
type: :development
|
120
120
|
prerelease: false
|
121
121
|
version_requirements: !ruby/object:Gem::Requirement
|
122
122
|
requirements:
|
123
|
-
- - ~>
|
123
|
+
- - "~>"
|
124
124
|
- !ruby/object:Gem::Version
|
125
125
|
version: '0.6'
|
126
126
|
- !ruby/object:Gem::Dependency
|
127
127
|
name: vcr
|
128
128
|
requirement: !ruby/object:Gem::Requirement
|
129
129
|
requirements:
|
130
|
-
- - ~>
|
130
|
+
- - "~>"
|
131
131
|
- !ruby/object:Gem::Version
|
132
132
|
version: '2.1'
|
133
133
|
type: :development
|
134
134
|
prerelease: false
|
135
135
|
version_requirements: !ruby/object:Gem::Requirement
|
136
136
|
requirements:
|
137
|
-
- - ~>
|
137
|
+
- - "~>"
|
138
138
|
- !ruby/object:Gem::Version
|
139
139
|
version: '2.1'
|
140
|
+
- !ruby/object:Gem::Dependency
|
141
|
+
name: webmock
|
142
|
+
requirement: !ruby/object:Gem::Requirement
|
143
|
+
requirements:
|
144
|
+
- - "~>"
|
145
|
+
- !ruby/object:Gem::Version
|
146
|
+
version: '1.21'
|
147
|
+
type: :development
|
148
|
+
prerelease: false
|
149
|
+
version_requirements: !ruby/object:Gem::Requirement
|
150
|
+
requirements:
|
151
|
+
- - "~>"
|
152
|
+
- !ruby/object:Gem::Version
|
153
|
+
version: '1.21'
|
140
154
|
- !ruby/object:Gem::Dependency
|
141
155
|
name: yard
|
142
156
|
requirement: !ruby/object:Gem::Requirement
|
143
157
|
requirements:
|
144
|
-
- - ~>
|
158
|
+
- - "~>"
|
145
159
|
- !ruby/object:Gem::Version
|
146
160
|
version: '0.8'
|
147
161
|
type: :development
|
148
162
|
prerelease: false
|
149
163
|
version_requirements: !ruby/object:Gem::Requirement
|
150
164
|
requirements:
|
151
|
-
- - ~>
|
165
|
+
- - "~>"
|
152
166
|
- !ruby/object:Gem::Version
|
153
167
|
version: '0.8'
|
154
168
|
description: Ruby wrapper for the Angellist API. The AngelList API provides developers
|
@@ -161,8 +175,14 @@ executables: []
|
|
161
175
|
extensions: []
|
162
176
|
extra_rdoc_files: []
|
163
177
|
files:
|
178
|
+
- CHANGELOG.md
|
179
|
+
- MIT-LICENSE
|
180
|
+
- README.md
|
181
|
+
- Rakefile
|
182
|
+
- lib/angellist_api.rb
|
164
183
|
- lib/angellist_api/api.rb
|
165
184
|
- lib/angellist_api/authentication.rb
|
185
|
+
- lib/angellist_api/client.rb
|
166
186
|
- lib/angellist_api/client/activity_feeds.rb
|
167
187
|
- lib/angellist_api/client/follows.rb
|
168
188
|
- lib/angellist_api/client/jobs.rb
|
@@ -176,10 +196,10 @@ files:
|
|
176
196
|
- lib/angellist_api/client/status_updates.rb
|
177
197
|
- lib/angellist_api/client/tags.rb
|
178
198
|
- lib/angellist_api/client/users.rb
|
179
|
-
- lib/angellist_api/client.rb
|
180
199
|
- lib/angellist_api/configuration.rb
|
181
200
|
- lib/angellist_api/connection.rb
|
182
201
|
- lib/angellist_api/core_ext/hash.rb
|
202
|
+
- lib/angellist_api/error.rb
|
183
203
|
- lib/angellist_api/error/bad_gateway.rb
|
184
204
|
- lib/angellist_api/error/bad_request.rb
|
185
205
|
- lib/angellist_api/error/forbidden.rb
|
@@ -189,19 +209,13 @@ files:
|
|
189
209
|
- lib/angellist_api/error/service_unavailable.rb
|
190
210
|
- lib/angellist_api/error/too_many_requests.rb
|
191
211
|
- lib/angellist_api/error/unauthorized.rb
|
192
|
-
- lib/angellist_api/
|
212
|
+
- lib/angellist_api/request.rb
|
193
213
|
- lib/angellist_api/request/angellist_api_oauth.rb
|
194
214
|
- lib/angellist_api/request/gateway.rb
|
195
215
|
- lib/angellist_api/request/multipart_with_file.rb
|
196
|
-
- lib/angellist_api/request.rb
|
197
216
|
- lib/angellist_api/response/raise_client_error.rb
|
198
217
|
- lib/angellist_api/response/raise_server_error.rb
|
199
218
|
- lib/angellist_api/version.rb
|
200
|
-
- lib/angellist_api.rb
|
201
|
-
- MIT-LICENSE
|
202
|
-
- Rakefile
|
203
|
-
- README.md
|
204
|
-
- CHANGELOG.md
|
205
219
|
- spec/fixtures/cassettes/activity_feeds.yml
|
206
220
|
- spec/fixtures/cassettes/errors/forbidden.yml
|
207
221
|
- spec/fixtures/cassettes/errors/too_many_requests.yml
|
@@ -263,17 +277,17 @@ require_paths:
|
|
263
277
|
- lib
|
264
278
|
required_ruby_version: !ruby/object:Gem::Requirement
|
265
279
|
requirements:
|
266
|
-
- -
|
280
|
+
- - ">="
|
267
281
|
- !ruby/object:Gem::Version
|
268
282
|
version: '0'
|
269
283
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
270
284
|
requirements:
|
271
|
-
- -
|
285
|
+
- - ">="
|
272
286
|
- !ruby/object:Gem::Version
|
273
287
|
version: '0'
|
274
288
|
requirements: []
|
275
289
|
rubyforge_project:
|
276
|
-
rubygems_version: 2.
|
290
|
+
rubygems_version: 2.2.2
|
277
291
|
signing_key:
|
278
292
|
specification_version: 4
|
279
293
|
summary: Ruby wrapper for the Angellist API.
|