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
@@ -1,26 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>The change you wanted was rejected (422)</title>
5
- <style type="text/css">
6
- body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
- div.dialog {
8
- width: 25em;
9
- padding: 0 4em;
10
- margin: 4em auto 0 auto;
11
- border: 1px solid #ccc;
12
- border-right-color: #999;
13
- border-bottom-color: #999;
14
- }
15
- h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
- </style>
17
- </head>
18
-
19
- <body>
20
- <!-- This file lives in public/422.html -->
21
- <div class="dialog">
22
- <h1>The change you wanted was rejected.</h1>
23
- <p>Maybe you tried to change something you didn't have access to.</p>
24
- </div>
25
- </body>
26
- </html>
@@ -1,26 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>We're sorry, but something went wrong (500)</title>
5
- <style type="text/css">
6
- body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
- div.dialog {
8
- width: 25em;
9
- padding: 0 4em;
10
- margin: 4em auto 0 auto;
11
- border: 1px solid #ccc;
12
- border-right-color: #999;
13
- border-bottom-color: #999;
14
- }
15
- h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
- </style>
17
- </head>
18
-
19
- <body>
20
- <!-- This file lives in public/500.html -->
21
- <div class="dialog">
22
- <h1>We're sorry, but something went wrong.</h1>
23
- <p>We've been notified about this issue and we'll take a look at it shortly.</p>
24
- </div>
25
- </body>
26
- </html>
File without changes
@@ -1,6 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
3
-
4
- APP_PATH = File.expand_path('../../config/application', __FILE__)
5
- require File.expand_path('../../config/boot', __FILE__)
6
- require 'rails/commands'
@@ -1,10 +0,0 @@
1
- # Configure Rails Environment
2
- ENV["RAILS_ENV"] = "test"
3
-
4
- require File.expand_path("../dummy/config/environment.rb", __FILE__)
5
- require "rails/test_help"
6
-
7
- Rails.backtrace_cleaner.remove_silencers!
8
-
9
- # Load support files
10
- Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }