crunchbase_v2 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (68) hide show
  1. data/.gitignore +25 -0
  2. data/Gemfile +4 -0
  3. data/LICENSE.txt +22 -0
  4. data/README.rdoc +88 -0
  5. data/Rakefile +7 -0
  6. data/crunchbase.gemspec +24 -0
  7. data/lib/crunchbase.rb +36 -0
  8. data/lib/crunchbase/acquisition.rb +66 -0
  9. data/lib/crunchbase/api.rb +153 -0
  10. data/lib/crunchbase/board_members_and_advisor.rb +23 -0
  11. data/lib/crunchbase/category.rb +22 -0
  12. data/lib/crunchbase/cb_entity.rb +70 -0
  13. data/lib/crunchbase/competitor.rb +25 -0
  14. data/lib/crunchbase/crunch_exception.rb +6 -0
  15. data/lib/crunchbase/current_team.rb +26 -0
  16. data/lib/crunchbase/customer.rb +21 -0
  17. data/lib/crunchbase/founder.rb +21 -0
  18. data/lib/crunchbase/funding_round.rb +69 -0
  19. data/lib/crunchbase/headquarter.rb +27 -0
  20. data/lib/crunchbase/image.rb +21 -0
  21. data/lib/crunchbase/investment.rb +33 -0
  22. data/lib/crunchbase/ipo.rb +57 -0
  23. data/lib/crunchbase/location.rb +24 -0
  24. data/lib/crunchbase/new_item.rb +22 -0
  25. data/lib/crunchbase/office.rb +28 -0
  26. data/lib/crunchbase/organization.rb +246 -0
  27. data/lib/crunchbase/past_team.rb +29 -0
  28. data/lib/crunchbase/person.rb +31 -0
  29. data/lib/crunchbase/primary_image.rb +21 -0
  30. data/lib/crunchbase/product.rb +78 -0
  31. data/lib/crunchbase/relationship.rb +17 -0
  32. data/lib/crunchbase/search.rb +45 -0
  33. data/lib/crunchbase/search_result.rb +11 -0
  34. data/lib/crunchbase/sub_organization.rb +21 -0
  35. data/lib/crunchbase/version.rb +3 -0
  36. data/lib/crunchbase/website.rb +20 -0
  37. data/spec/apikey.example.yml +2 -0
  38. data/spec/bootstrap.rb +9 -0
  39. data/spec/crunchbase/acquisition_spec.rb +26 -0
  40. data/spec/crunchbase/api_spec.rb +8 -0
  41. data/spec/crunchbase/board_members_and_advisor_spec.rb +16 -0
  42. data/spec/crunchbase/category_spec.rb +25 -0
  43. data/spec/crunchbase/competitor_spec.rb +19 -0
  44. data/spec/crunchbase/current_team_spec.rb +17 -0
  45. data/spec/crunchbase/customer_spec.rb +20 -0
  46. data/spec/crunchbase/founder_spec.rb +20 -0
  47. data/spec/crunchbase/funding_round_spec.rb +26 -0
  48. data/spec/crunchbase/headquarter_spec.rb +17 -0
  49. data/spec/crunchbase/investment_spec.rb +20 -0
  50. data/spec/crunchbase/ipo_spec.rb +29 -0
  51. data/spec/crunchbase/location_spec.rb +16 -0
  52. data/spec/crunchbase/new_item_spec.rb +33 -0
  53. data/spec/crunchbase/office_spec.rb +19 -0
  54. data/spec/crunchbase/organization_spec.rb +62 -0
  55. data/spec/crunchbase/past_team_spec.rb +16 -0
  56. data/spec/crunchbase/person_spec.rb +23 -0
  57. data/spec/crunchbase/primary_image_spec.rb +21 -0
  58. data/spec/crunchbase/product_spec.rb +28 -0
  59. data/spec/crunchbase/search_result_spec.rb +16 -0
  60. data/spec/crunchbase/search_spec.rb +17 -0
  61. data/spec/crunchbase/sub_organization_spec.rb +21 -0
  62. data/spec/crunchbase/website_spec.rb +25 -0
  63. data/spec/fixtures/facebook-acquisition.js +82 -0
  64. data/spec/fixtures/facebook-funding-round.js +96 -0
  65. data/spec/fixtures/organization-facebook.js +1023 -0
  66. data/spec/fixtures/person-randi-zuckerberg.js +233 -0
  67. data/spec/spec_helper.rb +10 -0
  68. metadata +192 -0
@@ -0,0 +1,233 @@
1
+ {
2
+ "metadata": {
3
+ "version": 2,
4
+ "www_path_prefix": "http://www.crunchbase.com/",
5
+ "api_path_prefix": "http://api.crunchbase.com/v/2/",
6
+ "image_path_prefix": "http://images.crunchbase.com/"
7
+ },
8
+ "data": {
9
+ "uuid": "84ab8d0bd16ea4180ecf53fb7f0d8127",
10
+ "type": "Person",
11
+ "properties": {
12
+ "role_investor": true,
13
+ "last_name": "Zuckerberg",
14
+ "first_name": "Randi",
15
+ "permalink": "randi-zuckerberg",
16
+ "bio": "Randi Zuckerberg managed marketing initiatives at [Facebook](/company/facebook), where she led the company's US election and international politics strategy, as well as pioneered several large media partnerships. \r\n\r\nIncluded in The Hollywood Reporter's 2008 Digital Power List, Randi has led projects ranging from the ABC News/Facebook Presidential Debates to the CNN/Facebook Inauguration Day Partnership and Comcast's Facebook Diaries. \r\n\r\nRandi is a graduate of Harvard University and has a passion for Italian opera and Broadway showtunes. She is also the sister of Facebook co-founder [Mark Zuckerberg.](/person/mark-zuckerberg)",
17
+ "born_on_day": 30,
18
+ "born_on_month": 1,
19
+ "born_on_year": 1981,
20
+ "born_on": "1981-01-30",
21
+ "born_on_trust_code": 7,
22
+ "created_at": 1233271545,
23
+ "updated_at": 1408498780
24
+ },
25
+ "relationships": {
26
+ "degrees": {
27
+ "paging": {
28
+ "total_items": 1,
29
+ "first_page_url": "http://api.crunchbase.com/v/2/person/randi-zuckerberg/degrees",
30
+ "sort_order": "created_at DESC"
31
+ },
32
+ "items": [
33
+ {
34
+ "started_on": null,
35
+ "completed_on": null,
36
+ "degree_type_name": "BA",
37
+ "degree_subject": null,
38
+ "type": "Degree",
39
+ "organization_name": "Harvard University",
40
+ "organization_path": "organization/harvard-university"
41
+ }
42
+ ]
43
+ },
44
+ "experience": {
45
+ "paging": {
46
+ "total_items": 2,
47
+ "first_page_url": "http://api.crunchbase.com/v/2/person/randi-zuckerberg/experience",
48
+ "sort_order": "created_at DESC"
49
+ },
50
+ "items": [
51
+ {
52
+ "organization_name": "Zuckerberg Media",
53
+ "organization_path": "organization/zuckerberg-media",
54
+ "title": "Founder and CEO",
55
+ "started_on": null,
56
+ "ended_on": null
57
+ },
58
+ {
59
+ "organization_name": "Facebook",
60
+ "organization_path": "organization/facebook",
61
+ "title": "Director of Market Development and Spokeswoman",
62
+ "started_on": null,
63
+ "ended_on": null
64
+ }
65
+ ]
66
+ },
67
+ "primary_affiliation": {
68
+ "paging": {
69
+ "total_items": 1,
70
+ "first_page_url": "http://api.crunchbase.com/v/2/person/randi-zuckerberg/primary_affiliation",
71
+ "sort_order": "created_at DESC"
72
+ },
73
+ "items": [
74
+ {
75
+ "organization_name": "Facebook",
76
+ "title": "Director of Market Development and Spokeswoman",
77
+ "started_on": null,
78
+ "ended_on": null
79
+ }
80
+ ]
81
+ },
82
+ "investments": {
83
+ "paging": {
84
+ "total_items": 1,
85
+ "first_page_url": "http://api.crunchbase.com/v/2/person/randi-zuckerberg/investments",
86
+ "sort_order": "created_at DESC"
87
+ },
88
+ "items": [
89
+ {
90
+ "type": "InvestorInvestment",
91
+ "money_invested": null,
92
+ "money_invested_currency_code": "USD",
93
+ "money_invested_usd": null,
94
+ "funding_round": {
95
+ "path": "funding-round/3716bf3661545030f0088063f221f238"
96
+ },
97
+ "invested_in": {
98
+ "type": "Organization",
99
+ "name": "Timehop",
100
+ "path": "organization/timehop"
101
+ }
102
+ }
103
+ ]
104
+ },
105
+ "advisor_at": {
106
+ "paging": {
107
+ "total_items": 1,
108
+ "first_page_url": "http://api.crunchbase.com/v/2/person/randi-zuckerberg/advisor_at",
109
+ "sort_order": "created_at DESC"
110
+ },
111
+ "items": [
112
+ {
113
+ "organization_name": null,
114
+ "title": "Advisor"
115
+ }
116
+ ]
117
+ },
118
+ "founded_companies": {
119
+ "paging": {
120
+ "total_items": 1,
121
+ "first_page_url": "http://api.crunchbase.com/v/2/person/randi-zuckerberg/founded_companies",
122
+ "sort_order": "created_at DESC"
123
+ },
124
+ "items": [
125
+ {
126
+ "type": "Organization",
127
+ "name": "Zuckerberg Media",
128
+ "path": "organization/zuckerberg-media",
129
+ "created_at": 1366641799,
130
+ "updated_at": 1408498815
131
+ }
132
+ ]
133
+ },
134
+ "primary_image": {
135
+ "paging": {
136
+ "total_items": 1,
137
+ "first_page_url": "http://api.crunchbase.com/v/2/person/randi-zuckerberg/primary_image",
138
+ "sort_order": "created_at DESC"
139
+ },
140
+ "items": [
141
+ {
142
+ "type": "ImageAsset",
143
+ "title": null,
144
+ "path": "image/upload/v1397181031/d56cc5fddb2448491d0f6a5f5777bb04.jpg",
145
+ "created_at": 1398019027,
146
+ "updated_at": 1398019027
147
+ }
148
+ ]
149
+ },
150
+ "news": {
151
+ "paging": {
152
+ "total_items": 14,
153
+ "first_page_url": "http://api.crunchbase.com/v/2/person/randi-zuckerberg/news",
154
+ "sort_order": "created_at DESC"
155
+ },
156
+ "items": [
157
+ {
158
+ "url": "http://techcrunch.com/2012/12/28/theres-a-difference-between-private-and-personal/",
159
+ "author": "Drew Olanoff",
160
+ "posted_on": "2012-12-28",
161
+ "type": "PressReference",
162
+ "title": "There’s A Difference Between Private And Personal",
163
+ "created_at": 1356743058,
164
+ "updated_at": 2012
165
+ },
166
+ {
167
+ "url": "http://techcrunch.com/2012/04/20/live-from-the-first-ever-mamabear-family-conference/",
168
+ "author": "Alexia Tsotsis",
169
+ "posted_on": "2012-04-20",
170
+ "type": "PressReference",
171
+ "title": "Live From The First Ever MamaBear Family Conference",
172
+ "created_at": 1334962777,
173
+ "updated_at": 2012
174
+ },
175
+ {
176
+ "url": "http://techcrunch.com/2012/04/06/randi-zuckerberg-defends-her-reality-show-hey-silicon-valley-stop-being-snobs/",
177
+ "author": "Colleen Taylor",
178
+ "posted_on": "2012-04-06",
179
+ "type": "PressReference",
180
+ "title": "Randi Zuckerberg Defends Her Reality Show: Hey Silicon Valley, Stop Being Snobs",
181
+ "created_at": 1333757730,
182
+ "updated_at": 2012
183
+ },
184
+ {
185
+ "url": "http://techcrunch.com/2011/08/03/zucks-sis-quits-on-him/",
186
+ "author": "Alexia Tsotsis",
187
+ "posted_on": "2011-08-03",
188
+ "type": "PressReference",
189
+ "title": "Zuck’s Sis Quits On Him",
190
+ "created_at": 1312409766,
191
+ "updated_at": 2011
192
+ },
193
+ {
194
+ "url": "http://techcrunch.com/2011/01/03/facebook-users-uploaded-a-record-750-million-photos-over-new-years/",
195
+ "author": "Jason Kincaid",
196
+ "posted_on": "2011-01-03",
197
+ "type": "PressReference",
198
+ "title": "Facebook Users Uploaded A Record 750 Million Photos Over New Year’s",
199
+ "created_at": 1294126638,
200
+ "updated_at": 2011
201
+ },
202
+ {
203
+ "url": "http://www.techcrunch.com/2010/01/27/world-economic-forums-social-networking-powerhouse-panel/",
204
+ "author": "Michael Arrington",
205
+ "posted_on": "2010-01-27",
206
+ "type": "PressReference",
207
+ "title": "Key Video From The World Economic Forum’s Social Networking Powerhouse Panel",
208
+ "created_at": 1264582492,
209
+ "updated_at": 2010
210
+ },
211
+ {
212
+ "url": "http://www.techcrunch.com/2009/07/13/mark-can-have-chris-leftovers-randi-gets-michael/",
213
+ "author": "MG Siegler",
214
+ "posted_on": "2009-07-13",
215
+ "type": "PressReference",
216
+ "title": "Mark Can Have Chris’ Leftovers. Randi Gets Michael.",
217
+ "created_at": 1247517656,
218
+ "updated_at": 2009
219
+ },
220
+ {
221
+ "url": "http://www.techcrunch.com/2009/06/29/youtube-launches-reporters-center-wants-to-school-citizen-journalists-in-better-news-reporting/",
222
+ "author": "Robin Wauters",
223
+ "posted_on": "2009-06-29",
224
+ "type": "PressReference",
225
+ "title": "YouTube Launches Reporters’ Center, Wants To School Citizen Journalists In Better News Reporting",
226
+ "created_at": 1246291214,
227
+ "updated_at": 2009
228
+ }
229
+ ]
230
+ }
231
+ }
232
+ }
233
+ }
@@ -0,0 +1,10 @@
1
+ $LOAD_PATH << File.join(File.dirname(__FILE__), "..", "lib")
2
+ require 'rspec'
3
+ require 'crunchbase'
4
+ require 'date'
5
+ require 'yaml'
6
+
7
+ yaml = YAML.load_file(File.join(File.dirname(__FILE__),'apikey.yml'))
8
+
9
+ Crunchbase::API.key = yaml["key"]
10
+ Crunchbase::API.debug = yaml["debug"]
metadata ADDED
@@ -0,0 +1,192 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: crunchbase_v2
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Encore Shao
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2014-08-27 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: bundler
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: '1.6'
22
+ type: :development
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: '1.6'
30
+ - !ruby/object:Gem::Dependency
31
+ name: rake
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ type: :development
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
+ - !ruby/object:Gem::Dependency
47
+ name: rspec
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ~>
52
+ - !ruby/object:Gem::Version
53
+ version: 2.10.0
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: 2.10.0
62
+ description: ! ' Wrapper for Crunchbase API version 2 '
63
+ email:
64
+ - encore@ekohe.com
65
+ executables: []
66
+ extensions: []
67
+ extra_rdoc_files: []
68
+ files:
69
+ - .gitignore
70
+ - Gemfile
71
+ - LICENSE.txt
72
+ - README.rdoc
73
+ - Rakefile
74
+ - crunchbase.gemspec
75
+ - lib/crunchbase.rb
76
+ - lib/crunchbase/acquisition.rb
77
+ - lib/crunchbase/api.rb
78
+ - lib/crunchbase/board_members_and_advisor.rb
79
+ - lib/crunchbase/category.rb
80
+ - lib/crunchbase/cb_entity.rb
81
+ - lib/crunchbase/competitor.rb
82
+ - lib/crunchbase/crunch_exception.rb
83
+ - lib/crunchbase/current_team.rb
84
+ - lib/crunchbase/customer.rb
85
+ - lib/crunchbase/founder.rb
86
+ - lib/crunchbase/funding_round.rb
87
+ - lib/crunchbase/headquarter.rb
88
+ - lib/crunchbase/image.rb
89
+ - lib/crunchbase/investment.rb
90
+ - lib/crunchbase/ipo.rb
91
+ - lib/crunchbase/location.rb
92
+ - lib/crunchbase/new_item.rb
93
+ - lib/crunchbase/office.rb
94
+ - lib/crunchbase/organization.rb
95
+ - lib/crunchbase/past_team.rb
96
+ - lib/crunchbase/person.rb
97
+ - lib/crunchbase/primary_image.rb
98
+ - lib/crunchbase/product.rb
99
+ - lib/crunchbase/relationship.rb
100
+ - lib/crunchbase/search.rb
101
+ - lib/crunchbase/search_result.rb
102
+ - lib/crunchbase/sub_organization.rb
103
+ - lib/crunchbase/version.rb
104
+ - lib/crunchbase/website.rb
105
+ - spec/apikey.example.yml
106
+ - spec/bootstrap.rb
107
+ - spec/crunchbase/acquisition_spec.rb
108
+ - spec/crunchbase/api_spec.rb
109
+ - spec/crunchbase/board_members_and_advisor_spec.rb
110
+ - spec/crunchbase/category_spec.rb
111
+ - spec/crunchbase/competitor_spec.rb
112
+ - spec/crunchbase/current_team_spec.rb
113
+ - spec/crunchbase/customer_spec.rb
114
+ - spec/crunchbase/founder_spec.rb
115
+ - spec/crunchbase/funding_round_spec.rb
116
+ - spec/crunchbase/headquarter_spec.rb
117
+ - spec/crunchbase/investment_spec.rb
118
+ - spec/crunchbase/ipo_spec.rb
119
+ - spec/crunchbase/location_spec.rb
120
+ - spec/crunchbase/new_item_spec.rb
121
+ - spec/crunchbase/office_spec.rb
122
+ - spec/crunchbase/organization_spec.rb
123
+ - spec/crunchbase/past_team_spec.rb
124
+ - spec/crunchbase/person_spec.rb
125
+ - spec/crunchbase/primary_image_spec.rb
126
+ - spec/crunchbase/product_spec.rb
127
+ - spec/crunchbase/search_result_spec.rb
128
+ - spec/crunchbase/search_spec.rb
129
+ - spec/crunchbase/sub_organization_spec.rb
130
+ - spec/crunchbase/website_spec.rb
131
+ - spec/fixtures/facebook-acquisition.js
132
+ - spec/fixtures/facebook-funding-round.js
133
+ - spec/fixtures/organization-facebook.js
134
+ - spec/fixtures/person-randi-zuckerberg.js
135
+ - spec/spec_helper.rb
136
+ homepage: https://github.com/encoreshao/crunchbase_v2
137
+ licenses:
138
+ - MIT
139
+ post_install_message:
140
+ rdoc_options: []
141
+ require_paths:
142
+ - lib
143
+ required_ruby_version: !ruby/object:Gem::Requirement
144
+ none: false
145
+ requirements:
146
+ - - ! '>='
147
+ - !ruby/object:Gem::Version
148
+ version: '0'
149
+ required_rubygems_version: !ruby/object:Gem::Requirement
150
+ none: false
151
+ requirements:
152
+ - - ! '>='
153
+ - !ruby/object:Gem::Version
154
+ version: '0'
155
+ requirements: []
156
+ rubyforge_project:
157
+ rubygems_version: 1.8.23.2
158
+ signing_key:
159
+ specification_version: 3
160
+ summary: Wrapper for Crunchbase API version 2
161
+ test_files:
162
+ - spec/apikey.example.yml
163
+ - spec/bootstrap.rb
164
+ - spec/crunchbase/acquisition_spec.rb
165
+ - spec/crunchbase/api_spec.rb
166
+ - spec/crunchbase/board_members_and_advisor_spec.rb
167
+ - spec/crunchbase/category_spec.rb
168
+ - spec/crunchbase/competitor_spec.rb
169
+ - spec/crunchbase/current_team_spec.rb
170
+ - spec/crunchbase/customer_spec.rb
171
+ - spec/crunchbase/founder_spec.rb
172
+ - spec/crunchbase/funding_round_spec.rb
173
+ - spec/crunchbase/headquarter_spec.rb
174
+ - spec/crunchbase/investment_spec.rb
175
+ - spec/crunchbase/ipo_spec.rb
176
+ - spec/crunchbase/location_spec.rb
177
+ - spec/crunchbase/new_item_spec.rb
178
+ - spec/crunchbase/office_spec.rb
179
+ - spec/crunchbase/organization_spec.rb
180
+ - spec/crunchbase/past_team_spec.rb
181
+ - spec/crunchbase/person_spec.rb
182
+ - spec/crunchbase/primary_image_spec.rb
183
+ - spec/crunchbase/product_spec.rb
184
+ - spec/crunchbase/search_result_spec.rb
185
+ - spec/crunchbase/search_spec.rb
186
+ - spec/crunchbase/sub_organization_spec.rb
187
+ - spec/crunchbase/website_spec.rb
188
+ - spec/fixtures/facebook-acquisition.js
189
+ - spec/fixtures/facebook-funding-round.js
190
+ - spec/fixtures/organization-facebook.js
191
+ - spec/fixtures/person-randi-zuckerberg.js
192
+ - spec/spec_helper.rb