angellist_api 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +12 -0
- data/README.md +8 -2
- data/Rakefile +7 -16
- data/lib/angellist_api/version.rb +2 -1
- data/spec/lib/angellist_api/configuration_spec.rb +3 -3
- metadata +53 -24
- data/lib/tasks/angellist_api_tasks.rake +0 -4
data/CHANGELOG.md
ADDED
data/README.md
CHANGED
@@ -1,10 +1,13 @@
|
|
1
1
|
# The AngelList API Ruby Gem
|
2
|
-
|
2
|
+
|
3
|
+
A Ruby wrapper for the [AngelList REST APIs][].
|
3
4
|
|
4
5
|
## <a name="installation">Installation</a>
|
5
|
-
|
6
|
+
|
7
|
+
gem install angellist_api
|
6
8
|
|
7
9
|
## <a name="pulls">Submitting a Pull Request</a>
|
10
|
+
|
8
11
|
1. Fork the project.
|
9
12
|
2. Create a topic branch.
|
10
13
|
3. Implement your feature or bug fix.
|
@@ -14,3 +17,6 @@ A Ruby wrapper for the AngelList REST APIs
|
|
14
17
|
7. Run <tt>bundle exec rake spec</tt>. If your changes are not 100% covered, go back to step 6.
|
15
18
|
8. Commit and push your changes.
|
16
19
|
9. Submit a pull request. Please do not include changes to the gemspec, version, or history file. (If you want to create your own version for some reason, please do so in a separate commit.)
|
20
|
+
|
21
|
+
[AngelList REST APIs]: http://angel.co/api
|
22
|
+
|
data/Rakefile
CHANGED
@@ -1,24 +1,10 @@
|
|
1
|
-
#!/usr/bin/env rake
|
2
1
|
begin
|
3
2
|
require 'bundler/setup'
|
4
3
|
rescue LoadError
|
5
4
|
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
|
6
5
|
end
|
7
|
-
begin
|
8
|
-
require 'rdoc/task'
|
9
|
-
rescue LoadError
|
10
|
-
require 'rdoc/rdoc'
|
11
|
-
require 'rake/rdoctask'
|
12
|
-
RDoc::Task = Rake::RDocTask
|
13
|
-
end
|
14
6
|
|
15
|
-
|
16
|
-
rdoc.rdoc_dir = 'rdoc'
|
17
|
-
rdoc.title = 'AngellistApi'
|
18
|
-
rdoc.options << '--line-numbers'
|
19
|
-
rdoc.rdoc_files.include('README.rdoc')
|
20
|
-
rdoc.rdoc_files.include('lib/**/*.rb')
|
21
|
-
end
|
7
|
+
require 'yard'
|
22
8
|
|
23
9
|
Bundler::GemHelper.install_tasks
|
24
10
|
|
@@ -26,4 +12,9 @@ require 'rspec/core/rake_task'
|
|
26
12
|
RSpec::Core::RakeTask.new(:spec)
|
27
13
|
|
28
14
|
task :test => :spec
|
29
|
-
task :default => :spec
|
15
|
+
task :default => :spec
|
16
|
+
|
17
|
+
YARD::Rake::YardocTask.new do |t|
|
18
|
+
t.files = ['lib/**/*.rb', 'README.md']
|
19
|
+
end
|
20
|
+
|
@@ -7,7 +7,7 @@ describe AngellistApi::Configuration do
|
|
7
7
|
describe "#extended" do
|
8
8
|
it "should have all configuration variables set to the default values by default" do
|
9
9
|
AngellistApi::Configuration::VALID_OPTIONS_KEYS.each do |key|
|
10
|
-
ExtendedClass.send(key).should == AngellistApi::Configuration.const_get("DEFAULT_#{key.upcase}")
|
10
|
+
ExtendedClass.send(key).should == AngellistApi::Configuration.const_get("DEFAULT_#{key.to_s.upcase}")
|
11
11
|
end
|
12
12
|
end
|
13
13
|
end
|
@@ -42,8 +42,8 @@ describe AngellistApi::Configuration do
|
|
42
42
|
object.reset
|
43
43
|
|
44
44
|
AngellistApi::Configuration::VALID_OPTIONS_KEYS.each_with_index do |key, i|
|
45
|
-
object.send(key).should == AngellistApi::Configuration.const_get("DEFAULT_#{key.upcase}")
|
45
|
+
object.send(key).should == AngellistApi::Configuration.const_get("DEFAULT_#{key.to_s.upcase}")
|
46
46
|
end
|
47
47
|
end
|
48
48
|
end
|
49
|
-
end
|
49
|
+
end
|
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.0.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,22 +9,22 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2012-03-23 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: hashie
|
16
|
-
requirement: &
|
16
|
+
requirement: &2156046440 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
|
-
- -
|
19
|
+
- - ! '>='
|
20
20
|
- !ruby/object:Gem::Version
|
21
21
|
version: 1.1.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *2156046440
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: faraday
|
27
|
-
requirement: &
|
27
|
+
requirement: &2156043740 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: 0.7.4
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *2156043740
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: faraday_middleware
|
38
|
-
requirement: &
|
38
|
+
requirement: &2156042200 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ~>
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: 0.7.0
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *2156042200
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: multi_json
|
49
|
-
requirement: &
|
49
|
+
requirement: &2156040860 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ~>
|
@@ -54,32 +54,43 @@ dependencies:
|
|
54
54
|
version: 1.0.0
|
55
55
|
type: :runtime
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *2156040860
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
|
-
name:
|
60
|
-
requirement: &
|
59
|
+
name: mocha
|
60
|
+
requirement: &2156039420 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ~>
|
64
64
|
- !ruby/object:Gem::Version
|
65
|
-
version:
|
65
|
+
version: 0.10.0
|
66
66
|
type: :development
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *2156039420
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
71
|
-
requirement: &
|
70
|
+
name: rdiscount
|
71
|
+
requirement: &2156038120 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
74
|
- - ~>
|
75
75
|
- !ruby/object:Gem::Version
|
76
|
-
version:
|
76
|
+
version: 1.6.8
|
77
77
|
type: :development
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *2156038120
|
80
|
+
- !ruby/object:Gem::Dependency
|
81
|
+
name: rspec
|
82
|
+
requirement: &2156036920 !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: *2156036920
|
80
91
|
- !ruby/object:Gem::Dependency
|
81
92
|
name: simplecov
|
82
|
-
requirement: &
|
93
|
+
requirement: &2156035440 !ruby/object:Gem::Requirement
|
83
94
|
none: false
|
84
95
|
requirements:
|
85
96
|
- - ~>
|
@@ -87,10 +98,10 @@ dependencies:
|
|
87
98
|
version: 0.5.4
|
88
99
|
type: :development
|
89
100
|
prerelease: false
|
90
|
-
version_requirements: *
|
101
|
+
version_requirements: *2156035440
|
91
102
|
- !ruby/object:Gem::Dependency
|
92
103
|
name: timecop
|
93
|
-
requirement: &
|
104
|
+
requirement: &2156034240 !ruby/object:Gem::Requirement
|
94
105
|
none: false
|
95
106
|
requirements:
|
96
107
|
- - ~>
|
@@ -98,7 +109,18 @@ dependencies:
|
|
98
109
|
version: 0.3.5
|
99
110
|
type: :development
|
100
111
|
prerelease: false
|
101
|
-
version_requirements: *
|
112
|
+
version_requirements: *2156034240
|
113
|
+
- !ruby/object:Gem::Dependency
|
114
|
+
name: yard
|
115
|
+
requirement: &2156033440 !ruby/object:Gem::Requirement
|
116
|
+
none: false
|
117
|
+
requirements:
|
118
|
+
- - ~>
|
119
|
+
- !ruby/object:Gem::Version
|
120
|
+
version: 0.7.3
|
121
|
+
type: :development
|
122
|
+
prerelease: false
|
123
|
+
version_requirements: *2156033440
|
102
124
|
description: Ruby wrapper for the Angellist API. The AngelList API provides developers
|
103
125
|
with a RESTful interface to the AngelList data set. Some endpoints are public and
|
104
126
|
require no authentication.
|
@@ -131,10 +153,10 @@ files:
|
|
131
153
|
- lib/faraday/request/phoenix.rb
|
132
154
|
- lib/faraday/response/raise_http_4xx.rb
|
133
155
|
- lib/faraday/response/raise_http_5xx.rb
|
134
|
-
- lib/tasks/angellist_api_tasks.rake
|
135
156
|
- MIT-LICENSE
|
136
157
|
- Rakefile
|
137
158
|
- README.md
|
159
|
+
- CHANGELOG.md
|
138
160
|
- spec/lib/angellist_api/api_spec.rb
|
139
161
|
- spec/lib/angellist_api/authentication_spec.rb
|
140
162
|
- spec/lib/angellist_api/client/activity_feeds_spec.rb
|
@@ -162,12 +184,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
162
184
|
- - ! '>='
|
163
185
|
- !ruby/object:Gem::Version
|
164
186
|
version: '0'
|
187
|
+
segments:
|
188
|
+
- 0
|
189
|
+
hash: -201940340624470610
|
165
190
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
166
191
|
none: false
|
167
192
|
requirements:
|
168
193
|
- - ! '>='
|
169
194
|
- !ruby/object:Gem::Version
|
170
195
|
version: '0'
|
196
|
+
segments:
|
197
|
+
- 0
|
198
|
+
hash: -201940340624470610
|
171
199
|
requirements: []
|
172
200
|
rubyforge_project:
|
173
201
|
rubygems_version: 1.8.10
|
@@ -190,3 +218,4 @@ test_files:
|
|
190
218
|
- spec/lib/angellist_api/request_spec.rb
|
191
219
|
- spec/lib/angellist_api_spec.rb
|
192
220
|
- spec/spec_helper.rb
|
221
|
+
has_rdoc:
|