angel_list 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +24 -1
- data/angel_list.gemspec +0 -4
- data/lib/angel_list/feed.rb +2 -2
- data/lib/angel_list/version.rb +1 -1
- data/lib/angel_list.rb +12 -0
- metadata +2 -66
data/README.md
CHANGED
@@ -18,8 +18,31 @@ Or install it yourself as:
|
|
18
18
|
|
19
19
|
## Usage
|
20
20
|
|
21
|
-
|
21
|
+
require 'angel_list'
|
22
|
+
a = AngelList::Auth.new(:client_id => 'client_id',
|
23
|
+
:client_secret => 'client_secret',
|
24
|
+
:redirect_uri => 'http://127.0.0.1:3000/auth/angel_list/callback')
|
25
|
+
|
26
|
+
redirect_to a.redirect_url
|
22
27
|
|
28
|
+
then in the callback
|
29
|
+
|
30
|
+
a = AngelList::Auth.new(:client_id => 'client_id',
|
31
|
+
:client_secret => 'client_secret',
|
32
|
+
:redirect_uri => 'http://127.0.0.1:3000/auth/angel_list/callback')
|
33
|
+
token = a.code(params[:code])
|
34
|
+
puts token.token
|
35
|
+
now you can save the token and get another access token later with it like this
|
36
|
+
|
37
|
+
a.from_hash(token.token)
|
38
|
+
|
39
|
+
after you have a token, you can make authorized requests:
|
40
|
+
|
41
|
+
su = AngelList::StatusUpdate.new(a)
|
42
|
+
|
43
|
+
message = su.new(:message=> 'message to be posted to angel list')
|
44
|
+
su.destroy(message.id) # will delete the message, etc
|
45
|
+
|
23
46
|
## Contributing
|
24
47
|
|
25
48
|
1. Fork it
|
data/angel_list.gemspec
CHANGED
@@ -14,13 +14,9 @@ Gem::Specification.new do |gem|
|
|
14
14
|
gem.name = "angel_list"
|
15
15
|
gem.require_paths = ["lib"]
|
16
16
|
gem.version = AngelList::VERSION
|
17
|
-
gem.add_dependency(%q<curb>, [">= 0"])
|
18
|
-
gem.add_dependency(%q<typhoeus>, [">= 0"])
|
19
17
|
gem.add_dependency(%q<faraday>, [">= 0"])
|
20
18
|
gem.add_dependency(%q<hashie>, [">= 0"])
|
21
19
|
gem.add_dependency(%q<yajl-ruby>, [">= 0"])
|
22
|
-
gem.add_dependency(%q<nokogiri>, [">= 0"])
|
23
|
-
gem.add_dependency(%q<hpricot>, [">= 0"])
|
24
20
|
gem.add_dependency(%q<oauth2>, [">= 0"])
|
25
21
|
gem.add_development_dependency(%q<pry>, ['>= 0'])
|
26
22
|
end
|
data/lib/angel_list/feed.rb
CHANGED
data/lib/angel_list/version.rb
CHANGED
data/lib/angel_list.rb
CHANGED
@@ -6,6 +6,18 @@ require 'angel_list/startup'
|
|
6
6
|
require 'angel_list/status_update'
|
7
7
|
require 'angel_list/user'
|
8
8
|
require 'angel_list/auth'
|
9
|
+
require 'angel_list/feed'
|
10
|
+
require 'angel_list/follow'
|
11
|
+
require 'angel_list/job'
|
12
|
+
require 'angel_list/message'
|
13
|
+
require 'angel_list/path'
|
14
|
+
require 'angel_list/press'
|
15
|
+
require 'angel_list/review'
|
16
|
+
require 'angel_list/search'
|
17
|
+
require 'angel_list/startup'
|
18
|
+
require 'angel_list/startup_role'
|
19
|
+
require 'angel_list/status_update'
|
20
|
+
require 'angel_list/tag'
|
9
21
|
require 'angel_list/response'
|
10
22
|
|
11
23
|
if File.exists?('config/angel_list.yml')
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: angel_list
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,40 +9,8 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-09-
|
12
|
+
date: 2012-09-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
|
-
- !ruby/object:Gem::Dependency
|
15
|
-
name: curb
|
16
|
-
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
|
-
requirements:
|
19
|
-
- - ! '>='
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
version: '0'
|
22
|
-
type: :runtime
|
23
|
-
prerelease: false
|
24
|
-
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
|
-
requirements:
|
27
|
-
- - ! '>='
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: '0'
|
30
|
-
- !ruby/object:Gem::Dependency
|
31
|
-
name: typhoeus
|
32
|
-
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
|
-
requirements:
|
35
|
-
- - ! '>='
|
36
|
-
- !ruby/object:Gem::Version
|
37
|
-
version: '0'
|
38
|
-
type: :runtime
|
39
|
-
prerelease: false
|
40
|
-
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
|
-
requirements:
|
43
|
-
- - ! '>='
|
44
|
-
- !ruby/object:Gem::Version
|
45
|
-
version: '0'
|
46
14
|
- !ruby/object:Gem::Dependency
|
47
15
|
name: faraday
|
48
16
|
requirement: !ruby/object:Gem::Requirement
|
@@ -91,38 +59,6 @@ dependencies:
|
|
91
59
|
- - ! '>='
|
92
60
|
- !ruby/object:Gem::Version
|
93
61
|
version: '0'
|
94
|
-
- !ruby/object:Gem::Dependency
|
95
|
-
name: nokogiri
|
96
|
-
requirement: !ruby/object:Gem::Requirement
|
97
|
-
none: false
|
98
|
-
requirements:
|
99
|
-
- - ! '>='
|
100
|
-
- !ruby/object:Gem::Version
|
101
|
-
version: '0'
|
102
|
-
type: :runtime
|
103
|
-
prerelease: false
|
104
|
-
version_requirements: !ruby/object:Gem::Requirement
|
105
|
-
none: false
|
106
|
-
requirements:
|
107
|
-
- - ! '>='
|
108
|
-
- !ruby/object:Gem::Version
|
109
|
-
version: '0'
|
110
|
-
- !ruby/object:Gem::Dependency
|
111
|
-
name: hpricot
|
112
|
-
requirement: !ruby/object:Gem::Requirement
|
113
|
-
none: false
|
114
|
-
requirements:
|
115
|
-
- - ! '>='
|
116
|
-
- !ruby/object:Gem::Version
|
117
|
-
version: '0'
|
118
|
-
type: :runtime
|
119
|
-
prerelease: false
|
120
|
-
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
none: false
|
122
|
-
requirements:
|
123
|
-
- - ! '>='
|
124
|
-
- !ruby/object:Gem::Version
|
125
|
-
version: '0'
|
126
62
|
- !ruby/object:Gem::Dependency
|
127
63
|
name: oauth2
|
128
64
|
requirement: !ruby/object:Gem::Requirement
|