crunchbase-ruby-library 0.1.7 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (111) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +66 -0
  3. data/.rubocop_todo.yml +47 -0
  4. data/.travis.yml +12 -0
  5. data/Gemfile +4 -0
  6. data/README.md +44 -54
  7. data/Rakefile +4 -1
  8. data/bin/console +15 -0
  9. data/bin/setup +8 -0
  10. data/crunchbase-ruby-library.gemspec +15 -12
  11. data/lib/crunchbase.rb +12 -3
  12. data/lib/crunchbase/api.rb +110 -102
  13. data/lib/crunchbase/client.rb +50 -0
  14. data/lib/crunchbase/exception.rb +13 -11
  15. data/lib/crunchbase/model.rb +50 -48
  16. data/lib/crunchbase/model/acquired_by.rb +23 -20
  17. data/lib/crunchbase/model/acquiree.rb +2 -1
  18. data/lib/crunchbase/model/acquirer.rb +2 -1
  19. data/lib/crunchbase/model/acquisition.rb +16 -19
  20. data/lib/crunchbase/model/address.rb +4 -6
  21. data/lib/crunchbase/model/advisory_role.rb +2 -2
  22. data/lib/crunchbase/model/board_members_and_advisor.rb +10 -9
  23. data/lib/crunchbase/model/category.rb +6 -7
  24. data/lib/crunchbase/model/competitor.rb +3 -2
  25. data/lib/crunchbase/model/current_team.rb +7 -11
  26. data/lib/crunchbase/model/customer.rb +3 -2
  27. data/lib/crunchbase/model/degree.rb +4 -5
  28. data/lib/crunchbase/model/entity.rb +98 -108
  29. data/lib/crunchbase/model/error.rb +3 -4
  30. data/lib/crunchbase/model/featured_team.rb +19 -0
  31. data/lib/crunchbase/model/founded_company.rb +2 -3
  32. data/lib/crunchbase/model/founder.rb +3 -4
  33. data/lib/crunchbase/model/fund.rb +8 -11
  34. data/lib/crunchbase/model/fund_raise.rb +7 -8
  35. data/lib/crunchbase/model/funding_round.rb +29 -24
  36. data/lib/crunchbase/model/headquarter.rb +2 -1
  37. data/lib/crunchbase/model/image.rb +6 -7
  38. data/lib/crunchbase/model/investment.rb +20 -27
  39. data/lib/crunchbase/model/investor.rb +6 -7
  40. data/lib/crunchbase/model/ipo.rb +12 -12
  41. data/lib/crunchbase/model/job.rb +11 -10
  42. data/lib/crunchbase/model/location.rb +20 -11
  43. data/lib/crunchbase/model/member.rb +3 -4
  44. data/lib/crunchbase/model/membership.rb +7 -8
  45. data/lib/crunchbase/model/new.rb +5 -6
  46. data/lib/crunchbase/model/office.rb +3 -4
  47. data/lib/crunchbase/model/organization.rb +39 -38
  48. data/lib/crunchbase/model/organization_summary.rb +7 -8
  49. data/lib/crunchbase/model/owned_by.rb +4 -5
  50. data/lib/crunchbase/model/parent_location.rb +3 -3
  51. data/lib/crunchbase/model/past_team.rb +7 -11
  52. data/lib/crunchbase/model/person.rb +53 -46
  53. data/lib/crunchbase/model/person_summary.rb +13 -14
  54. data/lib/crunchbase/model/primary_affiliation.rb +6 -6
  55. data/lib/crunchbase/model/primary_image.rb +3 -3
  56. data/lib/crunchbase/model/primary_location.rb +8 -7
  57. data/lib/crunchbase/model/product.rb +14 -13
  58. data/lib/crunchbase/model/product_summary.rb +4 -5
  59. data/lib/crunchbase/model/school.rb +3 -2
  60. data/lib/crunchbase/model/search.rb +39 -40
  61. data/lib/crunchbase/model/search_result.rb +7 -6
  62. data/lib/crunchbase/model/simple_organization.rb +9 -10
  63. data/lib/crunchbase/model/sub_organization.rb +3 -4
  64. data/lib/crunchbase/model/video.rb +4 -5
  65. data/lib/crunchbase/model/website.rb +7 -11
  66. data/lib/crunchbase/request.rb +8 -0
  67. data/lib/crunchbase/request/client.rb +69 -0
  68. data/lib/crunchbase/version.rb +2 -1
  69. data/spec/crunchbase.yml.example +2 -2
  70. data/spec/crunchbase/client_spec.rb +25 -0
  71. data/spec/crunchbase/data/board_members_and_advisors/facebook.json +462 -0
  72. data/spec/crunchbase/data/categories/facebook.json +67 -0
  73. data/spec/crunchbase/data/current_team/facebook.json +4335 -0
  74. data/spec/crunchbase/data/featured_team/facebook.json +286 -0
  75. data/spec/crunchbase/data/funding_rounds/37bd05f961af726ba3c1b279da842805.json +484 -0
  76. data/spec/crunchbase/data/funding_rounds/facebook.json +2049 -0
  77. data/spec/crunchbase/data/headquarters/facebook.json +50 -0
  78. data/spec/crunchbase/data/investors/facebook.json +776 -0
  79. data/spec/crunchbase/data/news/facebook.json +1426 -0
  80. data/spec/crunchbase/data/news/facebook_2.json +1426 -0
  81. data/spec/crunchbase/data/offices/facebook.json +50 -0
  82. data/spec/crunchbase/data/organizations/crunchbase.json +2845 -0
  83. data/spec/crunchbase/data/organizations/ekohe.json +654 -0
  84. data/spec/crunchbase/data/organizations/facebook-without-relationships.json +45 -0
  85. data/spec/crunchbase/data/organizations/facebook.json +6723 -0
  86. data/spec/crunchbase/data/organizations/mx-media-llc.json +7 -0
  87. data/spec/crunchbase/data/past_team/facebook.json +4336 -0
  88. data/spec/crunchbase/data/people/facebook_founders.json +148 -0
  89. data/spec/crunchbase/data/people/mark-zuckerberg.json +2602 -0
  90. data/spec/crunchbase/data/websites/facebook.json +74 -0
  91. data/spec/crunchbase/model/board_members_and_advisor_spec.rb +39 -11
  92. data/spec/crunchbase/model/category_spec.rb +47 -0
  93. data/spec/crunchbase/model/current_team_spec.rb +50 -0
  94. data/spec/crunchbase/model/featured_team_spec.rb +40 -0
  95. data/spec/crunchbase/model/founders_spec.rb +49 -0
  96. data/spec/crunchbase/model/fund_raise_spec.rb +4 -24
  97. data/spec/crunchbase/model/funding_round_spec.rb +75 -32
  98. data/spec/crunchbase/model/headquarter_spec.rb +37 -0
  99. data/spec/crunchbase/model/investment_spec.rb +4 -15
  100. data/spec/crunchbase/model/investor_spec.rb +37 -0
  101. data/spec/crunchbase/model/new_spec.rb +86 -0
  102. data/spec/crunchbase/model/office_spec.rb +29 -9
  103. data/spec/crunchbase/model/organization_spec.rb +160 -34
  104. data/spec/crunchbase/model/past_team_spec.rb +36 -14
  105. data/spec/crunchbase/model/person_spec.rb +21 -19
  106. data/spec/crunchbase/model/product_spec.rb +4 -31
  107. data/spec/crunchbase/model/search_spec.rb +25 -49
  108. data/spec/crunchbase/model/website_spec.rb +36 -9
  109. data/spec/crunchbase/support/api_helper.rb +19 -0
  110. data/spec/spec_helper.rb +14 -4
  111. metadata +103 -6
@@ -1,26 +1,48 @@
1
- require File.join(File.dirname(__FILE__), "../..", "spec_helper.rb")
1
+ # frozen_string_literal: true
2
2
 
3
3
  module Crunchbase
4
4
  module Model
5
+ RSpec.describe PastTeam do
6
+ let(:past_team_data) { parse_json('past_team', 'facebook') }
5
7
 
6
- describe PastTeam do
8
+ context 'past_team of facebook' do
9
+ let(:past_team) { PastTeam.organization_lists('facebook') }
7
10
 
8
- before(:all) do
9
- begin
10
- @past_team = PastTeam.organization_lists("apple")
11
- rescue Exception => e
12
- @past_team = nil
11
+ before :each do
12
+ result = search_results(past_team_data, PastTeam)
13
+
14
+ allow(PastTeam).to receive(:organization_lists).and_return(result)
13
15
  end
14
- end
15
16
 
16
- it 'show past team results' do
17
- unless @past_team.nil?
18
- puts @past_team.total_items
17
+ it 'should return 4 of total count with past_team' do
18
+ expect(past_team.results.size).to eq(100)
19
+ end
19
20
 
20
- puts @past_team.results.collect { |p| [p.title, p.person.first_name] }.inspect
21
+ it 'should paging values from past_team response' do
22
+ expect(past_team.total_items).to eq(416)
23
+ expect(past_team.pages).to eq(5)
24
+ expect(past_team.current_page).to eq(1)
25
+ expect(past_team.per_page).to eq(100)
21
26
  end
22
- end
23
27
 
28
+ it 'should return first past team record' do
29
+ first_item = past_team.results.first
30
+
31
+ expect(first_item.type_name).to eq('Job')
32
+ expect(first_item.uuid).to eq('29939253caf107957250298344c8d3e6')
33
+ expect(first_item.title).to eq('Director of Security Incident Response')
34
+ expect(first_item.person.first_name).to eq('Ryan')
35
+ end
36
+
37
+ it 'should return last past team record' do
38
+ last_item = past_team.results.last
39
+
40
+ expect(last_item.type_name).to eq('Job')
41
+ expect(last_item.uuid).to eq('3e535020b46ba9487d46a724986c99e1')
42
+ expect(last_item.title).to eq('core infrastructure systems')
43
+ expect(last_item.person.first_name).to eq('Nikita')
44
+ end
45
+ end
24
46
  end
25
47
  end
26
- end
48
+ end
@@ -1,28 +1,30 @@
1
- require File.join(File.dirname(__FILE__), "../..", "spec_helper.rb")
1
+ # frozen_string_literal: true
2
2
 
3
3
  module Crunchbase
4
4
  module Model
5
+ RSpec.describe Person do
6
+ let(:mark_zuckerberg_json_data) { parse_json('people', 'mark-zuckerberg') }
5
7
 
6
- # describe Person, "#get" do
7
- # begin
8
- # person = Person.get("li-ka-shing")
8
+ context 'Person - with mark zuckerberg' do
9
+ let(:mark_zuckerberg) { Person.get('mark-zuckerberg') }
9
10
 
10
- # puts person.inspect
11
-
12
- # rescue Exception => e
13
- # puts e.message
14
- # end
15
- # end
11
+ before :each do
12
+ result = Person.new(mark_zuckerberg_json_data)
16
13
 
17
- describe Person, "#list" do
18
- begin
19
- person = Person.list( 1 )
20
- puts person.results.map {|e| [e.first_name, e.last_name].join(', ') }.inspect
21
- rescue Exception => e
22
- puts e.message
14
+ allow(Person).to receive(:get).and_return(result)
15
+ end
16
+
17
+ it 'should return personal information with mark zuckerberg' do
18
+ expect(mark_zuckerberg.type_name).to eq('Person')
19
+ expect(mark_zuckerberg.uuid).to eq('a01b8d46d31133337c34aa3ae9c03f22')
20
+ expect(mark_zuckerberg.first_name).to eq('Mark')
21
+ expect(mark_zuckerberg.last_name).to eq('Zuckerberg')
22
+ expect(mark_zuckerberg.name).to eq('Mark Zuckerberg')
23
+ expect(mark_zuckerberg.gender).to eq('Male')
24
+ expect(mark_zuckerberg.born_on).to eq(Date.parse('1984-05-14'))
25
+ expect(mark_zuckerberg.role_investor).to eq(true)
26
+ end
23
27
  end
24
28
  end
25
-
26
-
27
29
  end
28
- end
30
+ end
@@ -1,33 +1,6 @@
1
- require File.join(File.dirname(__FILE__), "../..", "spec_helper.rb")
2
-
3
- module Crunchbase
4
- module Model
5
-
6
- describe Product, "#get" do
7
- begin
8
- ps = Product.get("hiphop-virtual-machine")
9
-
10
- puts ps.inspect
11
-
12
- rescue Exception => e
13
- puts e.message
14
- end
15
- end
16
-
17
- describe Product, "#organization_lists" do
18
- # begin
19
- # ps = Product.organization_lists("facebook")
20
-
21
- # puts ps.total_items
22
-
23
- # ps.results.each do |p|
24
- # puts [p.permalink, p.name].inspect
25
- # end
26
-
27
- # rescue Exception => e
28
- # puts e.message
29
- # end
30
- end
1
+ # frozen_string_literal: true
31
2
 
3
+ module Crunchbase::Model
4
+ RSpec.describe Product do
32
5
  end
33
- end
6
+ end
@@ -1,50 +1,26 @@
1
- require File.join(File.dirname(__FILE__), "../..", "spec_helper.rb")
2
-
3
- module Crunchbase
4
- module Model
5
-
6
- # Full text search of an Organization's name,
7
- # aliases (i.e. previous names or "also known as"), and short description
8
- describe Search, "Search organizations with -> query through crunchbase API" do
9
- o = Search.search({query: "Google"}, 'organizations')
10
-
11
-
12
- o.results.each do |i|
13
- puts [i.name, i.permalink].inspect
14
- end
15
- end
16
-
17
- # Full text search limited to name and aliases
18
- describe Search, "Search organizations with -> name through crunchbase API" do
19
- o = Search.search({name: "Google"}, 'organizations')
20
-
21
-
22
- o.results.each do |i|
23
- puts [i.name, i.permalink].inspect
24
- end
25
- end
26
-
27
- # Text search of an Organization's domain_name (e.g. www.google.com)
28
- describe Search, "Search organizations with -> domain_name through crunchbase API" do
29
- o = Search.search({domain_name: "google.com"}, 'organizations')
30
-
31
-
32
- o.results.each do |i|
33
- puts [i.name, i.domain].inspect
34
- end
35
- end
36
-
37
- # A full-text query of name, title, and company
38
- describe Search, "Search person with -> query through crunchbase API" do
39
- o = Search.search({query: "encore"}, 'people')
40
-
41
-
42
- o.results.each do |i|
43
- puts [i.first_name, i.last_name].inspect
44
- end
45
- end
46
-
47
-
48
-
1
+ # frozen_string_literal: true
2
+
3
+ module Crunchbase::Model
4
+ RSpec.describe Search do
5
+ # # Full text search of an Organization's name,
6
+ # # aliases (i.e. previous names or "also known as"), and short description
7
+ # it 'Search organizations with -> query through crunchbase API' do
8
+ # Search.search({ query: 'Google' }, 'organizations')
9
+ # end
10
+
11
+ # # Full text search limited to name and aliases
12
+ # it 'Search organizations with -> name through crunchbase API' do
13
+ # Search.search({ name: 'Google' }, 'organizations')
14
+ # end
15
+
16
+ # # Text search of an Organization's domain_name (e.g. www.google.com)
17
+ # it 'Search organizations with -> domain_name through crunchbase API' do
18
+ # Search.search({ domain_name: 'google.com' }, 'organizations')
19
+ # end
20
+
21
+ # # A full-text query of name, title, and company
22
+ # it 'Search person with -> query through crunchbase API' do
23
+ # Search.search({ query: 'encore' }, 'people')
24
+ # end
49
25
  end
50
- end
26
+ end
@@ -1,18 +1,45 @@
1
- require File.join(File.dirname(__FILE__), "../..", "spec_helper.rb")
1
+ # frozen_string_literal: true
2
2
 
3
3
  module Crunchbase
4
4
  module Model
5
+ RSpec.describe Website do
6
+ let(:websites_data) { parse_json('websites', 'facebook') }
5
7
 
6
- describe Website, "#person_lists" do
7
- begin
8
- o = Website.person_lists("mark-zuckerberg").results
8
+ context 'websites of facebook' do
9
+ let(:websites) { Website.organization_lists('facebook') }
9
10
 
10
- o.collect {|e| puts e.website }
11
+ before :each do
12
+ result = search_results(websites_data, Website)
11
13
 
12
- rescue Exception => e
13
- puts e.message
14
+ allow(Website).to receive(:organization_lists).and_return(result)
15
+ end
16
+
17
+ it 'should return 4 of total count with websites' do
18
+ expect(websites.results.size).to eq(4)
19
+ end
20
+
21
+ it 'should paging values from websites response' do
22
+ expect(websites.pages).to eq(1)
23
+ expect(websites.current_page).to eq(1)
24
+ expect(websites.per_page).to eq(100)
25
+ end
26
+
27
+ it 'should return first website record' do
28
+ first_item = websites.results.first
29
+
30
+ expect(first_item.type_name).to eq('Website')
31
+ expect(first_item.website_type).to eq('homepage')
32
+ expect(first_item.website_type).to eq('homepage')
33
+ end
34
+
35
+ it 'should return last website record' do
36
+ first_item = websites.results.last
37
+
38
+ expect(first_item.type_name).to eq('Website')
39
+ expect(first_item.website_name).to eq('linkedin')
40
+ expect(first_item.website_type).to eq('linkedin')
41
+ end
14
42
  end
15
43
  end
16
-
17
44
  end
18
- end
45
+ end
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ApiHelper
4
+ def parse_json(endpoint, filename)
5
+ response_data = JSON.parse(load_file(endpoint, filename))
6
+ response_data = response_data[0] if response_data.is_a?(Array)
7
+ raise Crunchbase::Exception, message: response_data['message'], status: response_data['status'] unless response_data['message'].nil?
8
+
9
+ response_data['data']
10
+ end
11
+
12
+ def load_file(endpoint, filename)
13
+ File.read(File.join(File.dirname(__FILE__), "../data/#{endpoint}", "#{filename}.json"))
14
+ end
15
+
16
+ def search_results(data, kclass)
17
+ Crunchbase::Model::Search.new({}, data, kclass)
18
+ end
19
+ end
data/spec/spec_helper.rb CHANGED
@@ -1,20 +1,30 @@
1
- $LOAD_PATH << File.join(File.dirname(__FILE__), "..", "lib")
1
+ # frozen_string_literal: true
2
+ require 'coveralls'
3
+ Coveralls.wear!
4
+
5
+ $LOAD_PATH << File.join(File.dirname(__FILE__), '..', 'lib')
6
+
2
7
  require 'rspec'
3
8
  require 'rspec/its'
4
9
  require 'crunchbase'
5
10
  require 'time'
6
11
  require 'yaml'
7
12
 
8
- yaml = YAML.load_file(File.join(File.dirname(__FILE__),'crunchbase.yml'))
13
+ yaml = YAML.load_file(File.join(File.dirname(__FILE__), 'crunchbase.yml'))
14
+
15
+ Crunchbase::API.key = yaml['user_key']
16
+ Crunchbase::API.debug = yaml['debug']
9
17
 
10
- Crunchbase::API.key = yaml["user_key"]
11
- Crunchbase::API.debug = yaml["debug"]
18
+ Dir[File.dirname(__FILE__) + '/crunchbase/support/*.rb'].each { |file| require file }
12
19
 
13
20
  RSpec.configure do |config|
14
21
  config.expect_with :rspec do |expectations|
15
22
  expectations.include_chain_clauses_in_custom_matcher_descriptions = true
16
23
  end
24
+
17
25
  config.mock_with :rspec do |mocks|
18
26
  mocks.verify_partial_doubles = true
19
27
  end
28
+
29
+ config.include ApiHelper
20
30
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crunchbase-ruby-library
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Encore Shao
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-19 00:00:00.000000000 Z
11
+ date: 2017-11-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: pry
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: rspec
43
57
  requirement: !ruby/object:Gem::Requirement
@@ -66,22 +80,44 @@ dependencies:
66
80
  - - ">="
67
81
  - !ruby/object:Gem::Version
68
82
  version: '0'
69
- description: " Ruby wrapper for Crunchbase API version 3 "
83
+ - !ruby/object:Gem::Dependency
84
+ name: rubocop
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ description: A Ruby wrapper for Crunchbase API version 3.1
70
98
  email:
71
99
  - encore.shao@gmail.com
72
- executables: []
100
+ executables:
101
+ - console
102
+ - setup
73
103
  extensions: []
74
104
  extra_rdoc_files: []
75
105
  files:
76
106
  - ".gitignore"
77
107
  - ".rspec"
108
+ - ".rubocop.yml"
109
+ - ".rubocop_todo.yml"
110
+ - ".travis.yml"
78
111
  - Gemfile
79
112
  - LICENSE.txt
80
113
  - README.md
81
114
  - Rakefile
115
+ - bin/console
116
+ - bin/setup
82
117
  - crunchbase-ruby-library.gemspec
83
118
  - lib/crunchbase.rb
84
119
  - lib/crunchbase/api.rb
120
+ - lib/crunchbase/client.rb
85
121
  - lib/crunchbase/exception.rb
86
122
  - lib/crunchbase/model.rb
87
123
  - lib/crunchbase/model/acquired_by.rb
@@ -98,6 +134,7 @@ files:
98
134
  - lib/crunchbase/model/degree.rb
99
135
  - lib/crunchbase/model/entity.rb
100
136
  - lib/crunchbase/model/error.rb
137
+ - lib/crunchbase/model/featured_team.rb
101
138
  - lib/crunchbase/model/founded_company.rb
102
139
  - lib/crunchbase/model/founder.rb
103
140
  - lib/crunchbase/model/fund.rb
@@ -133,12 +170,42 @@ files:
133
170
  - lib/crunchbase/model/sub_organization.rb
134
171
  - lib/crunchbase/model/video.rb
135
172
  - lib/crunchbase/model/website.rb
173
+ - lib/crunchbase/request.rb
174
+ - lib/crunchbase/request/client.rb
136
175
  - lib/crunchbase/version.rb
137
176
  - spec/crunchbase.yml.example
177
+ - spec/crunchbase/client_spec.rb
178
+ - spec/crunchbase/data/board_members_and_advisors/facebook.json
179
+ - spec/crunchbase/data/categories/facebook.json
180
+ - spec/crunchbase/data/current_team/facebook.json
181
+ - spec/crunchbase/data/featured_team/facebook.json
182
+ - spec/crunchbase/data/funding_rounds/37bd05f961af726ba3c1b279da842805.json
183
+ - spec/crunchbase/data/funding_rounds/facebook.json
184
+ - spec/crunchbase/data/headquarters/facebook.json
185
+ - spec/crunchbase/data/investors/facebook.json
186
+ - spec/crunchbase/data/news/facebook.json
187
+ - spec/crunchbase/data/news/facebook_2.json
188
+ - spec/crunchbase/data/offices/facebook.json
189
+ - spec/crunchbase/data/organizations/crunchbase.json
190
+ - spec/crunchbase/data/organizations/ekohe.json
191
+ - spec/crunchbase/data/organizations/facebook-without-relationships.json
192
+ - spec/crunchbase/data/organizations/facebook.json
193
+ - spec/crunchbase/data/organizations/mx-media-llc.json
194
+ - spec/crunchbase/data/past_team/facebook.json
195
+ - spec/crunchbase/data/people/facebook_founders.json
196
+ - spec/crunchbase/data/people/mark-zuckerberg.json
197
+ - spec/crunchbase/data/websites/facebook.json
138
198
  - spec/crunchbase/model/board_members_and_advisor_spec.rb
199
+ - spec/crunchbase/model/category_spec.rb
200
+ - spec/crunchbase/model/current_team_spec.rb
201
+ - spec/crunchbase/model/featured_team_spec.rb
202
+ - spec/crunchbase/model/founders_spec.rb
139
203
  - spec/crunchbase/model/fund_raise_spec.rb
140
204
  - spec/crunchbase/model/funding_round_spec.rb
205
+ - spec/crunchbase/model/headquarter_spec.rb
141
206
  - spec/crunchbase/model/investment_spec.rb
207
+ - spec/crunchbase/model/investor_spec.rb
208
+ - spec/crunchbase/model/new_spec.rb
142
209
  - spec/crunchbase/model/office_spec.rb
143
210
  - spec/crunchbase/model/organization_spec.rb
144
211
  - spec/crunchbase/model/past_team_spec.rb
@@ -146,6 +213,7 @@ files:
146
213
  - spec/crunchbase/model/product_spec.rb
147
214
  - spec/crunchbase/model/search_spec.rb
148
215
  - spec/crunchbase/model/website_spec.rb
216
+ - spec/crunchbase/support/api_helper.rb
149
217
  - spec/spec_helper.rb
150
218
  homepage: https://github.com/encoreshao/crunchbase-ruby-library
151
219
  licenses:
@@ -167,16 +235,44 @@ required_rubygems_version: !ruby/object:Gem::Requirement
167
235
  version: '0'
168
236
  requirements: []
169
237
  rubyforge_project:
170
- rubygems_version: 2.4.5
238
+ rubygems_version: 2.5.1
171
239
  signing_key:
172
240
  specification_version: 4
173
- summary: Ruby wrapper for Crunchbase API version 3
241
+ summary: A Ruby wrapper for Crunchbase API v3.1
174
242
  test_files:
175
243
  - spec/crunchbase.yml.example
244
+ - spec/crunchbase/client_spec.rb
245
+ - spec/crunchbase/data/board_members_and_advisors/facebook.json
246
+ - spec/crunchbase/data/categories/facebook.json
247
+ - spec/crunchbase/data/current_team/facebook.json
248
+ - spec/crunchbase/data/featured_team/facebook.json
249
+ - spec/crunchbase/data/funding_rounds/37bd05f961af726ba3c1b279da842805.json
250
+ - spec/crunchbase/data/funding_rounds/facebook.json
251
+ - spec/crunchbase/data/headquarters/facebook.json
252
+ - spec/crunchbase/data/investors/facebook.json
253
+ - spec/crunchbase/data/news/facebook.json
254
+ - spec/crunchbase/data/news/facebook_2.json
255
+ - spec/crunchbase/data/offices/facebook.json
256
+ - spec/crunchbase/data/organizations/crunchbase.json
257
+ - spec/crunchbase/data/organizations/ekohe.json
258
+ - spec/crunchbase/data/organizations/facebook-without-relationships.json
259
+ - spec/crunchbase/data/organizations/facebook.json
260
+ - spec/crunchbase/data/organizations/mx-media-llc.json
261
+ - spec/crunchbase/data/past_team/facebook.json
262
+ - spec/crunchbase/data/people/facebook_founders.json
263
+ - spec/crunchbase/data/people/mark-zuckerberg.json
264
+ - spec/crunchbase/data/websites/facebook.json
176
265
  - spec/crunchbase/model/board_members_and_advisor_spec.rb
266
+ - spec/crunchbase/model/category_spec.rb
267
+ - spec/crunchbase/model/current_team_spec.rb
268
+ - spec/crunchbase/model/featured_team_spec.rb
269
+ - spec/crunchbase/model/founders_spec.rb
177
270
  - spec/crunchbase/model/fund_raise_spec.rb
178
271
  - spec/crunchbase/model/funding_round_spec.rb
272
+ - spec/crunchbase/model/headquarter_spec.rb
179
273
  - spec/crunchbase/model/investment_spec.rb
274
+ - spec/crunchbase/model/investor_spec.rb
275
+ - spec/crunchbase/model/new_spec.rb
180
276
  - spec/crunchbase/model/office_spec.rb
181
277
  - spec/crunchbase/model/organization_spec.rb
182
278
  - spec/crunchbase/model/past_team_spec.rb
@@ -184,4 +280,5 @@ test_files:
184
280
  - spec/crunchbase/model/product_spec.rb
185
281
  - spec/crunchbase/model/search_spec.rb
186
282
  - spec/crunchbase/model/website_spec.rb
283
+ - spec/crunchbase/support/api_helper.rb
187
284
  - spec/spec_helper.rb