angellist_api 0.1.0 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. data/CHANGELOG.md +8 -0
  2. data/README.md +8 -2
  3. data/Rakefile +8 -25
  4. data/lib/angellist_api/authentication.rb +1 -4
  5. data/lib/angellist_api/client.rb +2 -0
  6. data/lib/angellist_api/client/activity_feeds.rb +19 -0
  7. data/lib/angellist_api/client/follows.rb +2 -2
  8. data/lib/angellist_api/client/tags.rb +1 -1
  9. data/lib/angellist_api/configuration.rb +4 -19
  10. data/lib/angellist_api/connection.rb +1 -1
  11. data/lib/angellist_api/request.rb +1 -1
  12. data/lib/angellist_api/version.rb +2 -1
  13. data/lib/faraday/request/angellist_api_oauth.rb +14 -0
  14. data/spec/lib/angellist_api/api_spec.rb +42 -0
  15. data/spec/lib/angellist_api/authentication_spec.rb +53 -0
  16. data/spec/lib/angellist_api/client/activity_feeds_spec.rb +16 -0
  17. data/spec/lib/angellist_api/client/follows_spec.rb +74 -0
  18. data/spec/lib/angellist_api/client/reviews_spec.rb +16 -0
  19. data/spec/lib/angellist_api/client/startup_roles_spec.rb +16 -0
  20. data/spec/lib/angellist_api/client/startups_spec.rb +23 -0
  21. data/spec/lib/angellist_api/client/status_updates_spec.rb +32 -0
  22. data/spec/lib/angellist_api/client/tags_spec.rb +40 -0
  23. data/spec/lib/angellist_api/client/users_spec.rb +30 -0
  24. data/spec/lib/angellist_api/configuration_spec.rb +49 -0
  25. data/spec/lib/angellist_api/error_spec.rb +126 -0
  26. data/spec/lib/angellist_api/request_spec.rb +51 -0
  27. data/spec/lib/angellist_api_spec.rb +38 -0
  28. data/spec/spec_helper.rb +14 -0
  29. metadata +154 -144
  30. data/lib/faraday/request/twitter_oauth.rb +0 -24
  31. data/lib/tasks/angellist_api_tasks.rake +0 -4
  32. data/test/angellist_api_test.rb +0 -7
  33. data/test/dummy/Rakefile +0 -7
  34. data/test/dummy/app/assets/javascripts/application.js +0 -9
  35. data/test/dummy/app/assets/stylesheets/application.css +0 -7
  36. data/test/dummy/app/controllers/application_controller.rb +0 -3
  37. data/test/dummy/app/helpers/application_helper.rb +0 -2
  38. data/test/dummy/app/views/layouts/application.html.erb +0 -14
  39. data/test/dummy/config.ru +0 -4
  40. data/test/dummy/config/application.rb +0 -42
  41. data/test/dummy/config/boot.rb +0 -10
  42. data/test/dummy/config/database.yml +0 -25
  43. data/test/dummy/config/environment.rb +0 -5
  44. data/test/dummy/config/environments/development.rb +0 -27
  45. data/test/dummy/config/environments/production.rb +0 -51
  46. data/test/dummy/config/environments/test.rb +0 -39
  47. data/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
  48. data/test/dummy/config/initializers/inflections.rb +0 -10
  49. data/test/dummy/config/initializers/mime_types.rb +0 -5
  50. data/test/dummy/config/initializers/secret_token.rb +0 -7
  51. data/test/dummy/config/initializers/session_store.rb +0 -8
  52. data/test/dummy/config/initializers/wrap_parameters.rb +0 -14
  53. data/test/dummy/config/locales/en.yml +0 -5
  54. data/test/dummy/config/routes.rb +0 -58
  55. data/test/dummy/public/404.html +0 -26
  56. data/test/dummy/public/422.html +0 -26
  57. data/test/dummy/public/500.html +0 -26
  58. data/test/dummy/public/favicon.ico +0 -0
  59. data/test/dummy/script/rails +0 -6
  60. data/test/test_helper.rb +0 -10
@@ -0,0 +1,16 @@
1
+ require 'spec_helper'
2
+
3
+ describe AngellistApi::Client::StartupRoles do
4
+ before(:each) do
5
+ @client = AngellistApi::Client.new
6
+ end
7
+
8
+ describe "#get_startup_roles" do
9
+ it "should get to 1/follows" do
10
+ options = { :some => "options" }
11
+ @client.expects(:get).with("1/startup_roles", options, :format => :json, :phoenix => true).returns("success")
12
+ @client.get_startup_roles(options).should == "success"
13
+ end
14
+ end
15
+
16
+ end
@@ -0,0 +1,23 @@
1
+ require 'spec_helper'
2
+
3
+ describe AngellistApi::Client::Startups do
4
+ before(:each) do
5
+ @client = AngellistApi::Client.new
6
+ end
7
+
8
+ describe "#get_startup" do
9
+ it "should get 1/startups/<id>" do
10
+ id = "123"
11
+ @client.expects(:get).with("1/startups/#{id}", :format => :json, :phoenix => true).returns("success")
12
+ @client.get_startup(id).should == "success"
13
+ end
14
+ end
15
+
16
+ describe "#startup_search" do
17
+ it "should get 1/startups/search" do
18
+ options = { :some => "options" }
19
+ @client.expects(:get).with("1/startups/search", options, :format => :json, :phoenix => true).returns("success")
20
+ @client.startup_search(options).should == "success"
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,32 @@
1
+ require 'spec_helper'
2
+
3
+ describe AngellistApi::Client::StatusUpdates do
4
+ before(:each) do
5
+ @client = AngellistApi::Client.new
6
+ end
7
+
8
+ describe "#get_status_updates" do
9
+ it "should get 1/status_updates" do
10
+ options = { :some => "options" }
11
+ @client.expects(:get).with("1/status_updates", options, :format => :json, :phoenix => true).returns("success")
12
+ @client.get_status_updates(options).should == "success"
13
+ end
14
+ end
15
+
16
+ describe "#post_status_updates" do
17
+ it "should post to 1/status_updates" do
18
+ options = { :some => "options" }
19
+ @client.expects(:post).with("1/status_updates", options, :format => :json, :phoenix => true).returns("success")
20
+ @client.post_status_updates(options).should == "success"
21
+ end
22
+ end
23
+
24
+ describe "#delete_status_updates" do
25
+ it "should delete 1/status_updates/<id>" do
26
+ id = "123"
27
+ @client.expects(:delete).with("1/status_updates/#{id}", :format => :json, :phoenix => true).returns("success")
28
+ @client.delete_status_updates(id).should == "success"
29
+ end
30
+ end
31
+
32
+ end
@@ -0,0 +1,40 @@
1
+ require 'spec_helper'
2
+
3
+ describe AngellistApi::Client::Tags do
4
+ before(:each) do
5
+ @client = AngellistApi::Client.new
6
+ end
7
+
8
+ describe "#get_tag" do
9
+ it "should get 1/tags/<id>" do
10
+ id = "123"
11
+ @client.expects(:get).with("1/tags/#{id}", :format => :json, :phoenix => true).returns("success")
12
+ @client.get_tag(id).should == "success"
13
+ end
14
+ end
15
+
16
+ describe "#get_tag_children" do
17
+ it "should get 1/tags/<id>/children" do
18
+ id = "123"
19
+ @client.expects(:get).with("1/tags/#{id}/children", :format => :json, :phoenix => true).returns("success")
20
+ @client.get_tag_children(id).should == "success"
21
+ end
22
+ end
23
+
24
+ describe "#get_tag_parents" do
25
+ it "should get 1/tags/<id>/parents" do
26
+ id = "123"
27
+ @client.expects(:get).with("1/tags/#{id}/parents", :format => :json, :phoenix => true).returns("success")
28
+ @client.get_tag_parents(id).should == "success"
29
+ end
30
+ end
31
+
32
+ describe "#get_tag_startups" do
33
+ it "should get 1/tags/<id>/startups" do
34
+ id = "123"
35
+ options = { :some => "options" }
36
+ @client.expects(:get).with("1/tags/#{id}/startups", options, :format => :json, :phoenix => true).returns("success")
37
+ @client.get_tag_startups(id, options).should == "success"
38
+ end
39
+ end
40
+ end
@@ -0,0 +1,30 @@
1
+ require 'spec_helper'
2
+
3
+ describe AngellistApi::Client::Users do
4
+ before(:each) do
5
+ @client = AngellistApi::Client.new
6
+ end
7
+
8
+ describe "#get_user" do
9
+ it "should get 1/users/<id>" do
10
+ id = "123"
11
+ @client.expects(:get).with("1/users/#{id}", :format => :json, :phoenix => true).returns("success")
12
+ @client.get_user(id).should == "success"
13
+ end
14
+ end
15
+
16
+ describe "#user_search" do
17
+ it "should get 1/users/search" do
18
+ options = { :some => "options "}
19
+ @client.expects(:get).with("1/users/search", options, :format => :json, :phoenix => true).returns("success")
20
+ @client.user_search(options).should == "success"
21
+ end
22
+ end
23
+
24
+ describe "#me" do
25
+ it "should get 1/me" do
26
+ @client.expects(:get).with("1/me", :format => :json, :phoenix => true).returns("success")
27
+ @client.me.should == "success"
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,49 @@
1
+ require 'spec_helper'
2
+
3
+ describe AngellistApi::Configuration do
4
+ class ExtendedClass; extend AngellistApi::Configuration; end
5
+ class IncludedClass; include AngellistApi::Configuration; end
6
+
7
+ describe "#extended" do
8
+ it "should have all configuration variables set to the default values by default" do
9
+ AngellistApi::Configuration::VALID_OPTIONS_KEYS.each do |key|
10
+ ExtendedClass.send(key).should == AngellistApi::Configuration.const_get("DEFAULT_#{key.to_s.upcase}")
11
+ end
12
+ end
13
+ end
14
+
15
+ describe "#configure" do
16
+ it "should allow configuration variables to be set in a block" do
17
+ object = IncludedClass.new
18
+ object.configure do |o|
19
+ o.access_token = "my oauth token"
20
+ end
21
+ object.access_token.should == "my oauth token"
22
+ end
23
+ end
24
+
25
+ describe "#options" do
26
+ it "should return a hash of all configuration options" do
27
+ object = IncludedClass.new
28
+ config = { :access_token => "123-token" }
29
+ config.each { |k,v| object.send("#{k.to_s}=", v) }
30
+ config.each { |k,v| object.options[k].should == v }
31
+ end
32
+ end
33
+
34
+ describe "#reset" do
35
+ it "should set all config variables to the defaults" do
36
+ object = IncludedClass.new
37
+ AngellistApi::Configuration::VALID_OPTIONS_KEYS.each_with_index do |key, i|
38
+ object.send("#{key}=", i)
39
+ object.send(key).should == i
40
+ end
41
+
42
+ object.reset
43
+
44
+ AngellistApi::Configuration::VALID_OPTIONS_KEYS.each_with_index do |key, i|
45
+ object.send(key).should == AngellistApi::Configuration.const_get("DEFAULT_#{key.to_s.upcase}")
46
+ end
47
+ end
48
+ end
49
+ end
@@ -0,0 +1,126 @@
1
+ require 'spec_helper'
2
+
3
+ describe AngellistApi::Error do
4
+
5
+ describe "#initialize" do
6
+ context "message parameter" do
7
+ it "should not raise an error if it is nil" do
8
+ lambda { AngellistApi::Error.new(nil, :header => "data") }.should_not raise_error
9
+ end
10
+
11
+ it "should build an error with the given message" do
12
+ error = AngellistApi::Error.new("bad data", :header => 'data')
13
+ error.message.should == "bad data"
14
+ end
15
+ end
16
+
17
+ context "http_headers parameter" do
18
+ it "should raise an exception if no http headers are passed" do
19
+ lambda { AngellistApi::Error.new("some message", nil) }.should raise_error(ArgumentError, "odd number of arguments for Hash")
20
+ end
21
+
22
+ it "should raise an exception if the params cant be converted to a hash" do
23
+ lambda { AngellistApi::Error.new("some message", "header") }.should raise_error(ArgumentError, "odd number of arguments for Hash")
24
+ end
25
+
26
+ it "should be set with the params" do
27
+ error = AngellistApi::Error.new("some message", :some => "value")
28
+ error.http_headers.should == { :some => "value" }
29
+ end
30
+ end
31
+ end
32
+
33
+ describe "#ratelimit_reset" do
34
+ it "should return the time set as x-rate-limit-reset if it's set" do
35
+ time1 = Time.now.to_i
36
+ time2 = time1 + 3600
37
+ error = AngellistApi::Error.new("message", {'x-ratelimit-reset' => time1, 'X-RateLimit-Reset' => time2})
38
+ error.ratelimit_reset.should == Time.at(time1)
39
+ end
40
+
41
+ it "should return the time set as X-RateLimit-Reset if x-rate-limit-reset is empty" do
42
+ time = Time.now.to_i
43
+ error = AngellistApi::Error.new("message", {'x-ratelimit-reset' => nil, 'X-RateLimit-Reset' => time})
44
+ error.ratelimit_reset.should == Time.at(time)
45
+ end
46
+
47
+ it "should return 0 if both X-RateLimit-Reset or x-rate-limit-reset are not set" do
48
+ error = AngellistApi::Error.new("message", {})
49
+ error.ratelimit_reset.should == Time.at(0)
50
+ end
51
+ end
52
+
53
+ describe "#ratelimit_limit" do
54
+ it "should return the number set as x-rate-limit-limit if it's set" do
55
+ error = AngellistApi::Error.new("message", {'x-ratelimit-limit' => 500, 'X-RateLimit-Limit' => 400})
56
+ error.ratelimit_limit.should == 500
57
+ end
58
+
59
+ it "should return the number set as X-RateLimit-Limit if x-rate-limit-limit is empty" do
60
+ error = AngellistApi::Error.new("message", {'x-ratelimit-limit' => nil, 'X-RateLimit-Limit' => 600})
61
+ error.ratelimit_limit.should == 600
62
+ end
63
+
64
+ it "should return 0 if both X-RateLimit-Limit or x-rate-limit-limit are not set" do
65
+ error = AngellistApi::Error.new("message", {})
66
+ error.ratelimit_limit.should == 0
67
+ end
68
+ end
69
+
70
+ describe "#ratelimit_remaining" do
71
+ it "should return the number set as x-rate-limit-remaining if it's set" do
72
+ error = AngellistApi::Error.new("message", {'x-ratelimit-remaining' => 22, 'X-RateLimit-Remaining' => 23})
73
+ error.ratelimit_remaining.should == 22
74
+ end
75
+
76
+ it "should return the number set as X-RateLimit-Remaining if x-rate-limit-remaining is empty" do
77
+ error = AngellistApi::Error.new("message", {'x-ratelimit-remaining' => nil, 'X-RateLimit-Remaining' => 32})
78
+ error.ratelimit_remaining.should == 32
79
+ end
80
+
81
+ it "should return 0 if both X-RateLimit-Remaining or x-rate-limit-remaining are not set" do
82
+ error = AngellistApi::Error.new("message", {})
83
+ error.ratelimit_remaining.should == 0
84
+ end
85
+ end
86
+
87
+ describe "#retry_after" do
88
+ context "a normal Error object" do
89
+ before(:each) do
90
+ @error = AngellistApi::Error.new("message", {})
91
+ end
92
+
93
+ it "should give you the time in seconds when it is acceptable to make another call" do
94
+ Timecop.freeze(Time.now) do
95
+ @error.expects(:ratelimit_reset).returns(Time.now + 3600)
96
+ @error.retry_after.should == 3600
97
+ end
98
+ end
99
+
100
+ it "should return 0 if the ratelimit_reset time is in the past" do
101
+ Timecop.freeze(Time.now) do
102
+ @error.expects(:ratelimit_reset).returns(Time.now - 3600)
103
+ @error.retry_after.should == 0
104
+ end
105
+ end
106
+ end
107
+
108
+ context "an EnhanceYourCalm Error object" do
109
+ it "should return the number of seconds set as retry-after if it's set" do
110
+ error = AngellistApi::EnhanceYourCalm.new("message", {'retry-after' => 12, 'Retry-After' => 13})
111
+ error.retry_after.should == 12
112
+ end
113
+
114
+ it "should return the number set as Retry-After if retry-after is empty" do
115
+ error = AngellistApi::EnhanceYourCalm.new("message", {'retry-after' => nil, 'Retry-After' => 16})
116
+ error.retry_after.should == 16
117
+ end
118
+
119
+ it "should return 0 if both Retry-After or retry-after are not set" do
120
+ error = AngellistApi::EnhanceYourCalm.new("message", {})
121
+ error.retry_after.should == 0
122
+ end
123
+ end
124
+ end
125
+
126
+ end
@@ -0,0 +1,51 @@
1
+ require 'spec_helper'
2
+
3
+ describe AngellistApi::Request do
4
+ class DummyRequest; include AngellistApi::Request; end
5
+
6
+ before(:each) do
7
+ @dummy = DummyRequest.new
8
+ @sample_path = "/index"
9
+ @sample_params = { :sample => "params" }
10
+ @sample_options = { :sample => "options" }
11
+ end
12
+
13
+ describe "#get" do
14
+ it "should call request with the passed params" do
15
+ @dummy.expects(:request).with(:get, @sample_path, @sample_params, @sample_options).returns("result")
16
+ @dummy.get(@sample_path, @sample_params, @sample_options).should == "result"
17
+ end
18
+ end
19
+
20
+ describe "#post" do
21
+ it "should call request with the passed params" do
22
+ @dummy.expects(:request).with(:post, @sample_path, @sample_params, @sample_options).returns("result")
23
+ @dummy.post(@sample_path, @sample_params, @sample_options).should == "result"
24
+ end
25
+ end
26
+
27
+ describe "#put" do
28
+ it "should call request with the passed params" do
29
+ @dummy.expects(:request).with(:put, @sample_path, @sample_params, @sample_options).returns("result")
30
+ @dummy.put(@sample_path, @sample_params, @sample_options).should == "result"
31
+ end
32
+ end
33
+
34
+ describe "#delete" do
35
+ it "should call request with the passed params" do
36
+ @dummy.expects(:request).with(:delete, @sample_path, @sample_params, @sample_options).returns("result")
37
+ @dummy.delete(@sample_path, @sample_params, @sample_options).should == "result"
38
+ end
39
+ end
40
+
41
+ describe "#formatted_path" do
42
+ it "should return a string with the path without the given format appended" do
43
+ @dummy.send(:formatted_path, @sample_path, {:format => 'json'}).should == "/index"
44
+ end
45
+
46
+ it "should not throw an error options[:format] is not provided" do
47
+ lambda { @dummy.send(:formatted_path, @sample_path) }.should_not raise_error
48
+ end
49
+ end
50
+
51
+ end
@@ -0,0 +1,38 @@
1
+ require 'spec_helper'
2
+
3
+ describe AngellistApi do
4
+
5
+ describe ".new" do
6
+ it "should be an alias for AngellistApi::Client.new" do
7
+ options = { :some => "option" }
8
+ AngellistApi.new(options).class.name.should == "AngellistApi::Client"
9
+ end
10
+ end
11
+
12
+ describe ".method_missing" do
13
+ context "with a method known to AngellistApi::Client" do
14
+ it "should pass the method call to AngellistApi::Client" do
15
+ expected_result = {:some => "result"}
16
+ AngellistApi::Client.any_instance.expects(:startup_search).returns(expected_result)
17
+ lambda { AngellistApi.startup_search(:slug => 'angellist').should == expected_result }.should_not raise_error
18
+ end
19
+ end
20
+
21
+ context "with a method unknown to AngellistApi::Client" do
22
+ it "should raise method not found error" do
23
+ lambda { AngellistApi.some_unknown_method }.should raise_error(NoMethodError)
24
+ end
25
+ end
26
+ end
27
+
28
+ describe ".respond_to?" do
29
+ it "should return true if AngellistApi::Client responds to the method" do
30
+ AngellistApi.respond_to?(:startup_search).should be_true
31
+ end
32
+
33
+ it "should return false if AngellistApi::Client does not respond to the method" do
34
+ AngellistApi.respond_to?(:some_unknown_method).should be_false
35
+ end
36
+ end
37
+
38
+ end
@@ -0,0 +1,14 @@
1
+ require 'simplecov'
2
+ SimpleCov.start
3
+
4
+ require 'rspec'
5
+ require 'angellist_api'
6
+ require 'timecop'
7
+
8
+ RSpec.configure do |config|
9
+ config.mock_with :mocha
10
+
11
+ config.filter_run :focus => true
12
+ config.run_all_when_everything_filtered = true
13
+ config.color_enabled = true
14
+ end
metadata CHANGED
@@ -1,130 +1,138 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: angellist_api
3
- version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 1
8
- - 0
9
- version: 0.1.0
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.2
5
+ prerelease:
10
6
  platform: ruby
11
- authors:
7
+ authors:
12
8
  - Paul Singh
13
9
  autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
-
17
- date: 2011-09-25 00:00:00 -07:00
18
- default_executable:
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
12
+ date: 2012-03-23 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
21
15
  name: hashie
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
24
- requirements:
25
- - - ~>
26
- - !ruby/object:Gem::Version
27
- segments:
28
- - 1
29
- - 1
30
- - 0
16
+ requirement: &2153040320 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
31
21
  version: 1.1.0
32
22
  type: :runtime
33
- version_requirements: *id001
34
- - !ruby/object:Gem::Dependency
35
- name: faraday
36
23
  prerelease: false
37
- requirement: &id002 !ruby/object:Gem::Requirement
38
- requirements:
24
+ version_requirements: *2153040320
25
+ - !ruby/object:Gem::Dependency
26
+ name: faraday
27
+ requirement: &2153039820 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
39
30
  - - ~>
40
- - !ruby/object:Gem::Version
41
- segments:
42
- - 0
43
- - 7
44
- - 4
31
+ - !ruby/object:Gem::Version
45
32
  version: 0.7.4
46
33
  type: :runtime
47
- version_requirements: *id002
48
- - !ruby/object:Gem::Dependency
49
- name: faraday_middleware
50
34
  prerelease: false
51
- requirement: &id003 !ruby/object:Gem::Requirement
52
- requirements:
35
+ version_requirements: *2153039820
36
+ - !ruby/object:Gem::Dependency
37
+ name: faraday_middleware
38
+ requirement: &2153039360 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
53
41
  - - ~>
54
- - !ruby/object:Gem::Version
55
- segments:
56
- - 0
57
- - 7
58
- - 0
42
+ - !ruby/object:Gem::Version
59
43
  version: 0.7.0
60
44
  type: :runtime
61
- version_requirements: *id003
62
- - !ruby/object:Gem::Dependency
63
- name: multi_json
64
45
  prerelease: false
65
- requirement: &id004 !ruby/object:Gem::Requirement
66
- requirements:
46
+ version_requirements: *2153039360
47
+ - !ruby/object:Gem::Dependency
48
+ name: multi_json
49
+ requirement: &2153038900 !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
67
52
  - - ~>
68
- - !ruby/object:Gem::Version
69
- segments:
70
- - 1
71
- - 0
72
- - 0
53
+ - !ruby/object:Gem::Version
73
54
  version: 1.0.0
74
55
  type: :runtime
75
- version_requirements: *id004
76
- - !ruby/object:Gem::Dependency
77
- name: simple_oauth
78
56
  prerelease: false
79
- requirement: &id005 !ruby/object:Gem::Requirement
80
- requirements:
57
+ version_requirements: *2153038900
58
+ - !ruby/object:Gem::Dependency
59
+ name: mocha
60
+ requirement: &2153029960 !ruby/object:Gem::Requirement
61
+ none: false
62
+ requirements:
81
63
  - - ~>
82
- - !ruby/object:Gem::Version
83
- segments:
84
- - 0
85
- - 1
86
- - 5
87
- version: 0.1.5
88
- type: :runtime
89
- version_requirements: *id005
90
- - !ruby/object:Gem::Dependency
91
- name: rails
64
+ - !ruby/object:Gem::Version
65
+ version: 0.10.0
66
+ type: :development
92
67
  prerelease: false
93
- requirement: &id006 !ruby/object:Gem::Requirement
94
- requirements:
68
+ version_requirements: *2153029960
69
+ - !ruby/object:Gem::Dependency
70
+ name: rdiscount
71
+ requirement: &2153029500 !ruby/object:Gem::Requirement
72
+ none: false
73
+ requirements:
95
74
  - - ~>
96
- - !ruby/object:Gem::Version
97
- segments:
98
- - 3
99
- - 0
100
- - 10
101
- version: 3.0.10
102
- type: :runtime
103
- version_requirements: *id006
104
- - !ruby/object:Gem::Dependency
105
- name: sqlite3
75
+ - !ruby/object:Gem::Version
76
+ version: 1.6.8
77
+ type: :development
78
+ prerelease: false
79
+ version_requirements: *2153029500
80
+ - !ruby/object:Gem::Dependency
81
+ name: rspec
82
+ requirement: &2153029040 !ruby/object:Gem::Requirement
83
+ none: false
84
+ requirements:
85
+ - - ~>
86
+ - !ruby/object:Gem::Version
87
+ version: 2.7.0
88
+ type: :development
89
+ prerelease: false
90
+ version_requirements: *2153029040
91
+ - !ruby/object:Gem::Dependency
92
+ name: simplecov
93
+ requirement: &2153028580 !ruby/object:Gem::Requirement
94
+ none: false
95
+ requirements:
96
+ - - ~>
97
+ - !ruby/object:Gem::Version
98
+ version: 0.5.4
99
+ type: :development
100
+ prerelease: false
101
+ version_requirements: *2153028580
102
+ - !ruby/object:Gem::Dependency
103
+ name: timecop
104
+ requirement: &2153028120 !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ~>
108
+ - !ruby/object:Gem::Version
109
+ version: 0.3.5
110
+ type: :development
106
111
  prerelease: false
107
- requirement: &id007 !ruby/object:Gem::Requirement
108
- requirements:
109
- - - ">="
110
- - !ruby/object:Gem::Version
111
- segments:
112
- - 0
113
- version: "0"
112
+ version_requirements: *2153028120
113
+ - !ruby/object:Gem::Dependency
114
+ name: yard
115
+ requirement: &2153027660 !ruby/object:Gem::Requirement
116
+ none: false
117
+ requirements:
118
+ - - ~>
119
+ - !ruby/object:Gem::Version
120
+ version: 0.7.3
114
121
  type: :development
115
- version_requirements: *id007
116
- description: Ruby wrapper for the Angellist API. The AngelList API provides developers with a RESTful interface to the AngelList data set. Some endpoints are public and require no authentication.
117
- email:
122
+ prerelease: false
123
+ version_requirements: *2153027660
124
+ description: Ruby wrapper for the Angellist API. The AngelList API provides developers
125
+ with a RESTful interface to the AngelList data set. Some endpoints are public and
126
+ require no authentication.
127
+ email:
118
128
  - paul@resultsjunkies.com
119
129
  executables: []
120
-
121
130
  extensions: []
122
-
123
131
  extra_rdoc_files: []
124
-
125
- files:
132
+ files:
126
133
  - lib/angellist_api/api.rb
127
134
  - lib/angellist_api/authentication.rb
135
+ - lib/angellist_api/client/activity_feeds.rb
128
136
  - lib/angellist_api/client/follows.rb
129
137
  - lib/angellist_api/client/reviews.rb
130
138
  - lib/angellist_api/client/startup_roles.rb
@@ -139,73 +147,75 @@ files:
139
147
  - lib/angellist_api/request.rb
140
148
  - lib/angellist_api/version.rb
141
149
  - lib/angellist_api.rb
150
+ - lib/faraday/request/angellist_api_oauth.rb
142
151
  - lib/faraday/request/gateway.rb
143
152
  - lib/faraday/request/multipart_with_file.rb
144
153
  - lib/faraday/request/phoenix.rb
145
- - lib/faraday/request/twitter_oauth.rb
146
154
  - lib/faraday/response/raise_http_4xx.rb
147
155
  - lib/faraday/response/raise_http_5xx.rb
148
- - lib/tasks/angellist_api_tasks.rake
149
156
  - MIT-LICENSE
150
157
  - Rakefile
151
158
  - README.md
152
- has_rdoc: true
159
+ - CHANGELOG.md
160
+ - spec/lib/angellist_api/api_spec.rb
161
+ - spec/lib/angellist_api/authentication_spec.rb
162
+ - spec/lib/angellist_api/client/activity_feeds_spec.rb
163
+ - spec/lib/angellist_api/client/follows_spec.rb
164
+ - spec/lib/angellist_api/client/reviews_spec.rb
165
+ - spec/lib/angellist_api/client/startup_roles_spec.rb
166
+ - spec/lib/angellist_api/client/startups_spec.rb
167
+ - spec/lib/angellist_api/client/status_updates_spec.rb
168
+ - spec/lib/angellist_api/client/tags_spec.rb
169
+ - spec/lib/angellist_api/client/users_spec.rb
170
+ - spec/lib/angellist_api/configuration_spec.rb
171
+ - spec/lib/angellist_api/error_spec.rb
172
+ - spec/lib/angellist_api/request_spec.rb
173
+ - spec/lib/angellist_api_spec.rb
174
+ - spec/spec_helper.rb
153
175
  homepage: https://github.com/paulsingh/angellist-api
154
176
  licenses: []
155
-
156
177
  post_install_message:
157
178
  rdoc_options: []
158
-
159
- require_paths:
179
+ require_paths:
160
180
  - lib
161
- required_ruby_version: !ruby/object:Gem::Requirement
162
- requirements:
163
- - - ">="
164
- - !ruby/object:Gem::Version
165
- segments:
181
+ required_ruby_version: !ruby/object:Gem::Requirement
182
+ none: false
183
+ requirements:
184
+ - - ! '>='
185
+ - !ruby/object:Gem::Version
186
+ version: '0'
187
+ segments:
166
188
  - 0
167
- version: "0"
168
- required_rubygems_version: !ruby/object:Gem::Requirement
169
- requirements:
170
- - - ">="
171
- - !ruby/object:Gem::Version
172
- segments:
189
+ hash: -380453470880224371
190
+ required_rubygems_version: !ruby/object:Gem::Requirement
191
+ none: false
192
+ requirements:
193
+ - - ! '>='
194
+ - !ruby/object:Gem::Version
195
+ version: '0'
196
+ segments:
173
197
  - 0
174
- version: "0"
198
+ hash: -380453470880224371
175
199
  requirements: []
176
-
177
200
  rubyforge_project:
178
- rubygems_version: 1.3.6
201
+ rubygems_version: 1.8.10
179
202
  signing_key:
180
203
  specification_version: 3
181
204
  summary: Ruby wrapper for the Angellist API.
182
- test_files:
183
- - test/angellist_api_test.rb
184
- - test/dummy/app/assets/javascripts/application.js
185
- - test/dummy/app/assets/stylesheets/application.css
186
- - test/dummy/app/controllers/application_controller.rb
187
- - test/dummy/app/helpers/application_helper.rb
188
- - test/dummy/app/views/layouts/application.html.erb
189
- - test/dummy/config/application.rb
190
- - test/dummy/config/boot.rb
191
- - test/dummy/config/database.yml
192
- - test/dummy/config/environment.rb
193
- - test/dummy/config/environments/development.rb
194
- - test/dummy/config/environments/production.rb
195
- - test/dummy/config/environments/test.rb
196
- - test/dummy/config/initializers/backtrace_silencers.rb
197
- - test/dummy/config/initializers/inflections.rb
198
- - test/dummy/config/initializers/mime_types.rb
199
- - test/dummy/config/initializers/secret_token.rb
200
- - test/dummy/config/initializers/session_store.rb
201
- - test/dummy/config/initializers/wrap_parameters.rb
202
- - test/dummy/config/locales/en.yml
203
- - test/dummy/config/routes.rb
204
- - test/dummy/config.ru
205
- - test/dummy/public/404.html
206
- - test/dummy/public/422.html
207
- - test/dummy/public/500.html
208
- - test/dummy/public/favicon.ico
209
- - test/dummy/Rakefile
210
- - test/dummy/script/rails
211
- - test/test_helper.rb
205
+ test_files:
206
+ - spec/lib/angellist_api/api_spec.rb
207
+ - spec/lib/angellist_api/authentication_spec.rb
208
+ - spec/lib/angellist_api/client/activity_feeds_spec.rb
209
+ - spec/lib/angellist_api/client/follows_spec.rb
210
+ - spec/lib/angellist_api/client/reviews_spec.rb
211
+ - spec/lib/angellist_api/client/startup_roles_spec.rb
212
+ - spec/lib/angellist_api/client/startups_spec.rb
213
+ - spec/lib/angellist_api/client/status_updates_spec.rb
214
+ - spec/lib/angellist_api/client/tags_spec.rb
215
+ - spec/lib/angellist_api/client/users_spec.rb
216
+ - spec/lib/angellist_api/configuration_spec.rb
217
+ - spec/lib/angellist_api/error_spec.rb
218
+ - spec/lib/angellist_api/request_spec.rb
219
+ - spec/lib/angellist_api_spec.rb
220
+ - spec/spec_helper.rb
221
+ has_rdoc: