crunchbase_v2 0.0.9 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  # encoding: utf-8
2
2
 
3
- # http://api.crunchbase.com/v/2/organization/facebook/acquisitions
3
+ # https://api.crunchbase.com/v/2/organization/facebook/acquisitions
4
4
 
5
5
  module Crunchbase
6
6
  class Acquisition < CBEntity
@@ -0,0 +1,18 @@
1
+ # encoding: utf-8
2
+
3
+ # https://api.crunchbase.com/v/2/person/#{permalink}/advisor_at
4
+
5
+ module Crunchbase
6
+ class AdvisorAt < CBEntity
7
+
8
+ RESOURCE_LIST = 'advisor_at'
9
+
10
+ attr_reader :organization_name, :title
11
+
12
+ def initialize(json)
13
+ @organization_name = json['organization_name']
14
+ @title = json['title']
15
+ end
16
+
17
+ end
18
+ end
@@ -13,7 +13,7 @@ require 'timeout'
13
13
  module Crunchbase
14
14
  class API
15
15
 
16
- SUPPORTED_ENTITIES = ['organizations', 'organization', 'people', 'person', 'products', 'product', 'funding_rounds', 'funding-round', 'acquisition', 'ipo', 'fund-raise', 'locations', 'categories', 'offices', 'customers']
16
+ SUPPORTED_ENTITIES = ['organizations', 'organization', 'people', 'person', 'products', 'product', 'funding_rounds', 'funding-round', 'acquisition', 'ipo', 'fund-raise', 'locations', 'categories', 'offices', 'customers', 'degrees', 'experience', 'primary_affiliation', 'videos', 'founded_companies', 'primary_location', 'advisor_at']
17
17
 
18
18
  @timeout_limit = 60
19
19
  @redirect_limit = 2
@@ -97,13 +97,27 @@ module Crunchbase
97
97
  end
98
98
 
99
99
  # Searches for a permalink in a particular category.
100
- # Demo: http://api.crunchbase.com/v/2/organization/facebook/offices?user_key=key
100
+ # Demo: https://api.crunchbase.com/v/2/organization/#{organization-permalink}/offices?user_key=key
101
101
  def self.lists_for_permalink(permalink, category, options)
102
+ lists_for_category('organization', permalink, category, options)
103
+ end
104
+
105
+ # Demo: https://api.crunchbase.com/v/2/person/#{person-permalink}/offices?user_key=key
106
+ def self.lists_for_person_permalink(permalink, category, options)
107
+ lists_for_category('person', permalink, category, options)
108
+ end
109
+
110
+ class << self
111
+ alias_method :category_lists_by_organization, :lists_for_permalink
112
+ alias_method :category_lists_by_person, :lists_for_person_permalink
113
+ end
114
+
115
+ def self.lists_for_category(classify_name, permalink, category, options)
102
116
  options[:page] = 1 if options[:page].nil?
103
117
  options[:order] = ORDER_CREATED_AT_ASC if options[:order].nil?
104
118
  model_name = options.delete(:model_name)
105
119
 
106
- uri = api_url + "organization/#{permalink}/#{category}?#{collect_parameters(options)}"
120
+ uri = api_url + "#{classify_name}/#{permalink}/#{category}?#{collect_parameters(options)}"
107
121
 
108
122
  Search.new options, get_json_response(uri), model_name
109
123
  end
@@ -1,6 +1,6 @@
1
1
  # encoding: utf-8
2
2
 
3
- # http://api.crunchbase.com/v/2/organization/facebook/board_members_and_advisors
3
+ # https://api.crunchbase.com/v/2/organization/facebook/board_members_and_advisors
4
4
 
5
5
  module Crunchbase
6
6
  class BoardMembersAndAdvisor < CBEntity
@@ -1,6 +1,6 @@
1
1
  # encoding: utf-8
2
2
 
3
- # http://api.crunchbase.com/v/2/organization/facebook/categories
3
+ # https://api.crunchbase.com/v/2/organization/facebook/categories
4
4
 
5
5
  module Crunchbase
6
6
  class Category < CBEntity
@@ -3,7 +3,7 @@
3
3
  module Crunchbase
4
4
  class CBEntity
5
5
 
6
- RELATIONSHIPS = %w[ Crunchbase::Ipo Crunchbase::Product Crunchbase::SubOrganization Crunchbase::FundingRound Crunchbase::Founder Crunchbase::Customer Crunchbase::Competitor Crunchbase::Acquisition ]
6
+ RELATIONSHIPS = %w[ Crunchbase::Ipo Crunchbase::Product Crunchbase::SubOrganization Crunchbase::FundingRound Crunchbase::Founder Crunchbase::Customer Crunchbase::Competitor Crunchbase::Acquisition Crunchbase::Degree Crunchbase::PrimaryAffiliation Crunchbase::Experience, Crunchbase::FoundedCompany Crunchbase::Video Crunchbase::PrimaryLocation Crunchbase::AdvisorAt ]
7
7
 
8
8
  # Factory method to return an instance from a permalink
9
9
  def self.get(permalink)
@@ -24,6 +24,18 @@ module Crunchbase
24
24
  return API.lists_for_permalink(permalink, self::RESOURCE_LIST, options)
25
25
  end
26
26
 
27
+ def self.lists_for_person_permalink(permalink, options={})
28
+ options[:model_name] = (RELATIONSHIPS.include?(self.name) ? Relationship : self)
29
+
30
+ return API.lists_for_person_permalink(permalink, self::RESOURCE_LIST, options)
31
+ end
32
+
33
+ def self.category_lists_by_permalink(permalink, classify_name, options={})
34
+ options[:model_name] = (RELATIONSHIPS.include?(self.name) ? Relationship : self)
35
+
36
+ return API.lists_for_category(classify_name, permalink, self::RESOURCE_LIST, options)
37
+ end
38
+
27
39
  def fetch
28
40
  fetch_object = get_fetch_object
29
41
  return [] if fetch_object.empty?
@@ -64,6 +76,13 @@ module Crunchbase
64
76
  when 'Customer' then [Crunchbase::Customer, 'organization']
65
77
  when 'Competitor' then [Crunchbase::Competitor, 'organization']
66
78
  when 'Acquisition' then [Crunchbase::Acquisition, 'acquisition']
79
+ when 'Degree' then [Crunchbase::Degree, 'degree']
80
+ when 'Experience' then [Crunchbase::Experience, 'experience']
81
+ when 'PrimaryAffiliation' then [Crunchbase::PrimaryAffiliation, 'primary_affiliation']
82
+ when 'Video' then [Crunchbase::Video, 'video']
83
+ when 'FoundedCompany' then [Crunchbase::FoundedCompany, 'founded_company']
84
+ when 'AdvisorAt' then [Crunchbase::AdvisorAt, 'advisor_at']
85
+ when 'PrimaryLocation' then [Crunchbase::PrimaryLocation, 'primary_location']
67
86
  else
68
87
  []
69
88
  end
@@ -1,6 +1,6 @@
1
1
  # encoding: utf-8
2
2
 
3
- # http://api.crunchbase.com/v/2/organization/facebook/competitors
3
+ # https://api.crunchbase.com/v/2/organization/facebook/competitors
4
4
 
5
5
  module Crunchbase
6
6
  class Competitor < CBEntity
@@ -1,6 +1,6 @@
1
1
  # encoding: utf-8
2
2
 
3
- # http://api.crunchbase.com/v/2/organization/facebook/current_team
3
+ # https://api.crunchbase.com/v/2/organization/facebook/current_team
4
4
 
5
5
  module Crunchbase
6
6
  class CurrentTeam < CBEntity
@@ -1,6 +1,6 @@
1
1
  # encoding: utf-8
2
2
 
3
- # http://api.crunchbase.com/v/2/organization/facebook/customers
3
+ # https://api.crunchbase.com/v/2/organization/facebook/customers
4
4
 
5
5
  module Crunchbase
6
6
  class Customer < CBEntity
@@ -0,0 +1,24 @@
1
+ # encoding: utf-8
2
+
3
+ # https://api.crunchbase.com/v/2/person/#{permalink}/degrees?user_key=key
4
+
5
+ module Crunchbase
6
+ class Degree < CBEntity
7
+ RESOURCE_LIST = 'degrees'
8
+
9
+ attr_reader :started_on, :completed_on, :degree_type_name, :degree_subject,
10
+ :type_name, :organization_name, :organization_path, :organization_permalink
11
+
12
+ def initialize(json)
13
+ @type_name = json['type']
14
+ @organization_name = json['organization_name']
15
+ @organization_permalink = (json['organization_path'] && json['organization_path'].gsub('organization/', '') || nil)
16
+ @organization_path = json['organization_path']
17
+ @degree_type_name = json['degree_type_name']
18
+ @degree_subject = json['degree_subject']
19
+ @started_on = (json['started_on'] && json['started_on'].to_datetime.utc || nil)
20
+ @completed_on = (json['completed_on'] && json['completed_on'].to_datetime.utc || nil)
21
+ end
22
+
23
+ end
24
+ end
@@ -0,0 +1,21 @@
1
+ # encoding: utf-8
2
+
3
+ # https://api.crunchbase.com/v/2/person/#{permalink}/experience?user_key=key
4
+
5
+ module Crunchbase
6
+ class Experience < CBEntity
7
+ RESOURCE_LIST = 'experience'
8
+
9
+ attr_reader :organization_name, :organization_path, :organization_permalink, :title, :started_on, :ended_on
10
+
11
+ def initialize(json)
12
+ @organization_name = json['organization_name']
13
+ @organization_permalink = (json['organization_path'] && json['organization_path'].gsub('organization/', '') || nil)
14
+ @organization_path = json['organization_path']
15
+ @title = json['title']
16
+ @started_on = (json['started_on'] && json['started_on'].to_datetime.utc || nil)
17
+ @ended_on = (json['ended_on'] && json['ended_on'].to_datetime.utc || nil)
18
+ end
19
+
20
+ end
21
+ end
@@ -0,0 +1,22 @@
1
+ # encoding: utf-8
2
+
3
+ # https://api.crunchbase.com/v/2/person/#{permalink}/founded_companies
4
+
5
+ module Crunchbase
6
+ class FoundedCompany < CBEntity
7
+
8
+ RESOURCE_LIST = 'founded_companies'
9
+
10
+ attr_reader :type_name, :name, :path, :permalink, :created_at, :updated_at
11
+
12
+ def initialize(json)
13
+ @type_name = json['type']
14
+ @name = json['name']
15
+ @path = json['path']
16
+ @permalink = json['path'] && json['path'].gsub('organization/', '')
17
+ @created_at = Time.at(json['created_at']).utc
18
+ @updated_at = Time.at(json['updated_at']).utc
19
+ end
20
+
21
+ end
22
+ end
@@ -1,6 +1,6 @@
1
1
  # encoding: utf-8
2
2
 
3
- # http://api.crunchbase.com/v/2/organization/facebook/founders?user_key=key
3
+ # https://api.crunchbase.com/v/2/organization/facebook/founders?user_key=key
4
4
 
5
5
  module Crunchbase
6
6
  class Founder < CBEntity
@@ -1,6 +1,6 @@
1
1
  # encoding: utf-8
2
2
 
3
- # http://api.crunchbase.com/v/2/organization/facebook/funding_rounds
3
+ # https://api.crunchbase.com/v/2/organization/facebook/funding_rounds
4
4
 
5
5
  module Crunchbase
6
6
  class FundingRound < CBEntity
@@ -1,6 +1,6 @@
1
1
  # encoding: utf-8
2
2
 
3
- # http://api.crunchbase.com/v/2/organization/facebook/headquarters
3
+ # https://api.crunchbase.com/v/2/organization/facebook/headquarters
4
4
 
5
5
  module Crunchbase
6
6
  class Headquarter < CBEntity
@@ -1,6 +1,6 @@
1
1
  # encoding: utf-8
2
2
 
3
- # http://api.crunchbase.com/v/2/organization/facebook/images
3
+ # https://api.crunchbase.com/v/2/organization/facebook/images
4
4
 
5
5
  module Crunchbase
6
6
  class Image < CBEntity
@@ -1,6 +1,6 @@
1
1
  # encoding: utf-8
2
2
 
3
- # http://api.crunchbase.com/v/2/organization/facebook/investments
3
+ # https://api.crunchbase.com/v/2/organization/facebook/investments
4
4
 
5
5
  module Crunchbase
6
6
  class Investment < CBEntity
@@ -1,6 +1,6 @@
1
1
  # encoding: utf-8
2
2
 
3
- # http://api.crunchbase.com/v/2/organization/facebook/news
3
+ # https://api.crunchbase.com/v/2/organization/facebook/news
4
4
 
5
5
  module Crunchbase
6
6
  class NewItem < CBEntity
@@ -1,6 +1,6 @@
1
1
  # encoding: utf-8
2
2
 
3
- # http://api.crunchbase.com/v/2/organization/facebook/offices
3
+ # https://api.crunchbase.com/v/2/organization/facebook/offices
4
4
 
5
5
  module Crunchbase
6
6
  class Office < CBEntity
@@ -1,6 +1,6 @@
1
1
  # encoding: utf-8
2
2
 
3
- # http://api.crunchbase.com/v/2/organization/facebook/past_team
3
+ # https://api.crunchbase.com/v/2/organization/facebook/past_team
4
4
 
5
5
  require 'date'
6
6
 
@@ -1,19 +1,30 @@
1
1
  # encoding: utf-8
2
2
 
3
- # http://api.crunchbase.com/v/2/person/randi-zuckerberg?user_key=key
3
+ # https://api.crunchbase.com/v/2/person/#{permalink}?user_key=key
4
4
 
5
5
  module Crunchbase
6
6
  class Person < CBEntity
7
7
 
8
- RESOURCE_NAME = 'person'
9
8
  RESOURCE_LIST = 'people'
9
+ RESOURCE_NAME = 'person'
10
10
 
11
11
  attr_reader :type_name, :name, :first_name, :last_name, :permalink, :bio, :born_on, :died_on,
12
- :is_deceased, :created_at, :updated_at
12
+ :is_deceased, :created_at, :updated_at, :homepage_url, :uuid
13
+
14
+ attr_reader :degrees, :experiences, :primary_locations, :primary_affiliations, :primary_images, :websites,
15
+ :founded_companies, :investments, :advisor_ats, :videos, :new_items
16
+
17
+ attr_reader :degrees_total_items, :experiences_total_items, :primary_locations_total_items,
18
+ :primary_affiliations_total_items, :primary_images_total_items, :websites_total_items,
19
+ :investments_total_items, :founded_companies_total_items,
20
+ :advisor_ats_total_items, :videos_total_items, :new_items_total_items
21
+
13
22
 
14
23
  def initialize(json)
24
+ @uuid = json['uuid']
15
25
  @type_name = json['type']
16
26
  properties = json['properties']
27
+ relationships = json['relationships']
17
28
 
18
29
  @name = properties['first_name'].to_s + ' ' + properties['last_name'].to_s
19
30
  @first_name = properties['first_name']
@@ -23,8 +34,112 @@ module Crunchbase
23
34
  @born_on = properties['born_on'] && DateTime.parse(properties['born_on'])
24
35
  @died_on = properties['died_on'] && DateTime.parse(properties['died_on'])
25
36
  @is_deceased = properties['is_deceased']
37
+ @homepage_url = properties['homepage_url']
26
38
  @created_at = Time.at(properties['created_at']).utc
27
39
  @updated_at = Time.at(properties['updated_at']).utc
40
+
41
+ @degrees_list = relationships['degrees']
42
+ @experiences_list = relationships['experience']
43
+ @primary_locations_list = relationships['primary_location']
44
+ @affiliations_list = relationships['primary_affiliation']
45
+ @investments_list = relationships['investments']
46
+ @advisor_ats_list = relationships['advisor_at']
47
+ @founded_companies_list = relationships['founded_companies']
48
+ @primary_images_list = relationships['primary_image']
49
+ @videos_list = relationships['videos']
50
+ @websites_list = relationships['websites']
51
+ @new_items_list = relationships['news']
52
+ end
53
+
54
+ def degrees
55
+ @degrees ||= Degree.array_from_list(@degrees_list)
56
+ end
57
+
58
+ def experiences
59
+ @experiences ||= Experience.array_from_list(@experiences_list)
60
+ end
61
+
62
+ def primary_locations
63
+ @primary_locations ||= PrimaryLocation.array_from_list(@primary_locations_list)
64
+ end
65
+
66
+ def primary_affiliations
67
+ @primary_affiliations ||= PrimaryAffiliation.array_from_list(@affiliations_list)
68
+ end
69
+
70
+ def investments
71
+ @investments ||= Investment.array_from_list(@investments_list)
72
+ end
73
+
74
+ def advisor_ats
75
+ @advisor_ats ||= AdvisorAt.array_from_list(@advisor_ats_list)
76
+ end
77
+
78
+ def founded_companies
79
+ @founded_companies ||= FoundedCompany.array_from_list(@founded_companies_list)
80
+ end
81
+
82
+ def primary_images
83
+ @primary_images ||= PrimaryImage.array_from_list(@primary_images_list)
84
+ end
85
+
86
+ def videos
87
+ @videos ||= Video.array_from_list(@videos_list)
88
+ end
89
+
90
+ def websites
91
+ @websites ||= Website.array_from_list(@websites_list)
92
+ end
93
+
94
+ def new_items
95
+ @new_items ||= ItemNew.array_from_list(@new_items_list)
96
+ end
97
+
98
+ # TODO
99
+ # Get all relationships total count
100
+
101
+ def degrees_total_items
102
+ @degrees_total_items ||= Degree.total_items_from_list(@degrees_list)
103
+ end
104
+
105
+ def experiences_total_items
106
+ @experiences_total_items ||= Experience.total_items_from_list(@experiences_list)
107
+ end
108
+
109
+ def primary_locations_total_items
110
+ @primary_locations_total_items ||= PrimaryLocation.total_items_from_list(@primary_locations_list)
111
+ end
112
+
113
+ def primary_affiliations_total_items
114
+ @primary_affiliations_total_items ||= PrimaryAffiliation.total_items_from_list(@affiliations_list)
115
+ end
116
+
117
+ def investments_total_itmes
118
+ @investments_total_itmes ||= Investment.total_items_from_list(@investments_list)
119
+ end
120
+
121
+ def advisor_ats_total_itmes
122
+ @advisor_ats_total_itmes ||= AdvisorAt.total_items_from_list(@advisor_ats_list)
123
+ end
124
+
125
+ def founded_companies_total_items
126
+ @founded_companies_total_items ||= FoundedCompany.total_items_from_list(@founded_companies_list)
127
+ end
128
+
129
+ def primary_images_total_items
130
+ @primary_images_total_items ||= PrimaryImage.total_items_from_list(@primary_images_list)
131
+ end
132
+
133
+ def videos_total_items
134
+ @videos_total_items ||= Video.total_items_from_list(@videos_list)
135
+ end
136
+
137
+ def websites_total_items
138
+ @websites_total_items ||= Website.total_items_from_list(@websites_list)
139
+ end
140
+
141
+ def new_items_total_items
142
+ @new_items_total_items ||= ItemNew.total_items_from_list(@new_items_list)
28
143
  end
29
144
 
30
145
  end
@@ -0,0 +1,21 @@
1
+ # encoding: utf-8
2
+
3
+ # https://api.crunchbase.com/v/2/person/#{permalink}/primary_affiliation?user_key=key
4
+
5
+ module Crunchbase
6
+ class PrimaryAffiliation < CBEntity
7
+ RESOURCE_LIST = 'primary_affiliation'
8
+
9
+ attr_reader :organization_name, :organization_path, :organization_permalink, :title, :started_on, :ended_on
10
+
11
+ def initialize(json)
12
+ @organization_name = json['organization_name']
13
+ @organization_permalink = (json['organization_path'] && json['organization_path'].gsub('organization/', '') || nil)
14
+ @organization_path = json['organization_path']
15
+ @title = json['title']
16
+ @started_on = (json['started_on'] && json['started_on'].to_datetime.utc || nil)
17
+ @ended_on = (json['ended_on'] && json['ended_on'].to_datetime.utc || nil)
18
+ end
19
+
20
+ end
21
+ end
@@ -1,6 +1,6 @@
1
1
  # encoding: utf-8
2
2
 
3
- # http://api.crunchbase.com/v/2/organization/facebook/primary_image
3
+ # https://api.crunchbase.com/v/2/organization/facebook/primary_image
4
4
 
5
5
  module Crunchbase
6
6
  class PrimaryImage < CBEntity
@@ -0,0 +1,22 @@
1
+ # encoding: utf-8
2
+
3
+ # https://api.crunchbase.com/v/2/person/reed-hastings/primary_location
4
+
5
+ module Crunchbase
6
+ class PrimaryLocation < CBEntity
7
+
8
+ RESOURCE_LIST = 'primary_location'
9
+
10
+ attr_reader :type_name, :name, :uuid, :path, :created_at, :updated_at
11
+
12
+ def initialize(json)
13
+ @type_name = json['type']
14
+ @name = json['name']
15
+ @uuid = json['uuid']
16
+ @path = json['path']
17
+ @created_at = Time.at(json['created_at']).utc
18
+ @updated_at = Time.at(json['updated_at']).utc
19
+ end
20
+
21
+ end
22
+ end
@@ -1,6 +1,6 @@
1
1
  # encoding: utf-8
2
2
 
3
- # http://api.crunchbase.com/v/2/organization/facebook/products
3
+ # https://api.crunchbase.com/v/2/organization/facebook/products
4
4
 
5
5
  require 'date'
6
6
 
@@ -1,6 +1,6 @@
1
1
  # encoding: utf-8
2
2
 
3
- # http://api.crunchbase.com/v/2/organization/facebook/sub_organizations
3
+ # https://api.crunchbase.com/v/2/organization/facebook/sub_organizations
4
4
 
5
5
  module Crunchbase
6
6
  class SubOrganization < CBEntity
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module Crunchbase
4
- VERSION = "0.0.9"
4
+ VERSION = "1.0.0"
5
5
  end
@@ -0,0 +1,20 @@
1
+ # encoding: utf-8
2
+
3
+ # https://api.crunchbase.com/v/2/person/{permalink}/videos
4
+
5
+ module Crunchbase
6
+ class Video < CBEntity
7
+
8
+ RESOURCE_LIST = 'videos'
9
+
10
+ attr_reader :type_name, :title, :created_at, :updated_at
11
+
12
+ def initialize(json)
13
+ @type_name = json['type']
14
+ @title = json['title']
15
+ @created_at = Time.at(json['created_at']).utc
16
+ @updated_at = Time.at(json['updated_at']).utc
17
+ end
18
+
19
+ end
20
+ end
@@ -1,6 +1,7 @@
1
1
  # encoding: utf-8
2
2
 
3
- # http://api.crunchbase.com/v/2/organization/facebook/websites
3
+ # https://api.crunchbase.com/v/2/#{classify}/#{permalink}/websites
4
+ # Type [organization, person]
4
5
 
5
6
  module Crunchbase
6
7
  class Website < CBEntity
data/lib/crunchbase.rb CHANGED
@@ -28,6 +28,13 @@ require "crunchbase/search"
28
28
  require "crunchbase/search_result"
29
29
  require "crunchbase/website"
30
30
  require "crunchbase/board_members_and_advisor"
31
+ require "crunchbase/degree"
32
+ require "crunchbase/experience"
33
+ require "crunchbase/primary_affiliation"
34
+ require "crunchbase/advisor_at"
35
+ require "crunchbase/founded_company"
36
+ require "crunchbase/primary_location"
37
+ require "crunchbase/video"
31
38
  require "crunchbase/version"
32
39
 
33
40
 
@@ -2,7 +2,7 @@
2
2
  "metadata": {
3
3
  "version": 2,
4
4
  "www_path_prefix": "http://www.crunchbase.com/",
5
- "api_path_prefix": "http://api.crunchbase.com/v/2/",
5
+ "api_path_prefix": "https://api.crunchbase.com/v/2/",
6
6
  "image_path_prefix": "http://images.crunchbase.com/"
7
7
  },
8
8
  "data": {
@@ -30,7 +30,7 @@
30
30
  "acquirer": {
31
31
  "paging": {
32
32
  "total_items": 1,
33
- "first_page_url": "http://api.crunchbase.com/v/2/acquisition/7a3d7915ed43073c0e4b5b0d7601def8/acquirer",
33
+ "first_page_url": "https://api.crunchbase.com/v/2/acquisition/7a3d7915ed43073c0e4b5b0d7601def8/acquirer",
34
34
  "sort_order": "created_at DESC"
35
35
  },
36
36
  "items": [
@@ -46,7 +46,7 @@
46
46
  "acquiree": {
47
47
  "paging": {
48
48
  "total_items": 1,
49
- "first_page_url": "http://api.crunchbase.com/v/2/acquisition/7a3d7915ed43073c0e4b5b0d7601def8/acquiree",
49
+ "first_page_url": "https://api.crunchbase.com/v/2/acquisition/7a3d7915ed43073c0e4b5b0d7601def8/acquiree",
50
50
  "sort_order": "created_at DESC"
51
51
  },
52
52
  "items": [
@@ -62,7 +62,7 @@
62
62
  "news": {
63
63
  "paging": {
64
64
  "total_items": 1,
65
- "first_page_url": "http://api.crunchbase.com/v/2/acquisition/7a3d7915ed43073c0e4b5b0d7601def8/news",
65
+ "first_page_url": "https://api.crunchbase.com/v/2/acquisition/7a3d7915ed43073c0e4b5b0d7601def8/news",
66
66
  "sort_order": "created_at DESC"
67
67
  },
68
68
  "items": [
@@ -2,7 +2,7 @@
2
2
  "metadata": {
3
3
  "version": 2,
4
4
  "www_path_prefix": "http://www.crunchbase.com/",
5
- "api_path_prefix": "http://api.crunchbase.com/v/2/",
5
+ "api_path_prefix": "https://api.crunchbase.com/v/2/",
6
6
  "image_path_prefix": "http://images.crunchbase.com/"
7
7
  },
8
8
  "data": {
@@ -29,7 +29,7 @@
29
29
  "investments": {
30
30
  "paging": {
31
31
  "total_items": 2,
32
- "first_page_url": "http://api.crunchbase.com/v/2/funding-round/37bd05f961af726ba3c1b279da842805/investments",
32
+ "first_page_url": "https://api.crunchbase.com/v/2/funding-round/37bd05f961af726ba3c1b279da842805/investments",
33
33
  "sort_order": "created_at DESC"
34
34
  },
35
35
  "items": [
@@ -60,7 +60,7 @@
60
60
  "funded_organization": {
61
61
  "paging": {
62
62
  "total_items": 1,
63
- "first_page_url": "http://api.crunchbase.com/v/2/funding-round/37bd05f961af726ba3c1b279da842805/funded_organization",
63
+ "first_page_url": "https://api.crunchbase.com/v/2/funding-round/37bd05f961af726ba3c1b279da842805/funded_organization",
64
64
  "sort_order": "created_at DESC"
65
65
  },
66
66
  "items": [
@@ -76,7 +76,7 @@
76
76
  "news": {
77
77
  "paging": {
78
78
  "total_items": 1,
79
- "first_page_url": "http://api.crunchbase.com/v/2/funding-round/37bd05f961af726ba3c1b279da842805/news",
79
+ "first_page_url": "https://api.crunchbase.com/v/2/funding-round/37bd05f961af726ba3c1b279da842805/news",
80
80
  "sort_order": "created_at DESC"
81
81
  },
82
82
  "items": [
@@ -2,7 +2,7 @@
2
2
  "metadata": {
3
3
  "version": 2,
4
4
  "www_path_prefix": "http://www.crunchbase.com/",
5
- "api_path_prefix": "http://api.crunchbase.com/v/2/",
5
+ "api_path_prefix": "https://api.crunchbase.com/v/2/",
6
6
  "image_path_prefix": "http://images.crunchbase.com/"
7
7
  },
8
8
  "data": {
@@ -39,7 +39,7 @@
39
39
  "past_team": {
40
40
  "paging": {
41
41
  "total_items": 186,
42
- "first_page_url": "http://api.crunchbase.com/v/2/organization/facebook/past_team",
42
+ "first_page_url": "https://api.crunchbase.com/v/2/organization/facebook/past_team",
43
43
  "sort_order": "created_at DESC"
44
44
  },
45
45
  "items": [
@@ -128,7 +128,7 @@
128
128
  "board_members_and_advisors": {
129
129
  "paging": {
130
130
  "total_items": 12,
131
- "first_page_url": "http://api.crunchbase.com/v/2/organization/facebook/board_members_and_advisors",
131
+ "first_page_url": "https://api.crunchbase.com/v/2/organization/facebook/board_members_and_advisors",
132
132
  "sort_order": "created_at DESC"
133
133
  },
134
134
  "items": [
@@ -209,7 +209,7 @@
209
209
  "sub_organizations": {
210
210
  "paging": {
211
211
  "total_items": 2,
212
- "first_page_url": "http://api.crunchbase.com/v/2/organization/facebook/sub_organizations",
212
+ "first_page_url": "https://api.crunchbase.com/v/2/organization/facebook/sub_organizations",
213
213
  "sort_order": "created_at DESC"
214
214
  },
215
215
  "items": [
@@ -232,7 +232,7 @@
232
232
  "current_team": {
233
233
  "paging": {
234
234
  "total_items": 137,
235
- "first_page_url": "http://api.crunchbase.com/v/2/organization/facebook/current_team",
235
+ "first_page_url": "https://api.crunchbase.com/v/2/organization/facebook/current_team",
236
236
  "sort_order": "custom"
237
237
  },
238
238
  "items": [
@@ -313,7 +313,7 @@
313
313
  "acquisitions": {
314
314
  "paging": {
315
315
  "total_items": 49,
316
- "first_page_url": "http://api.crunchbase.com/v/2/organization/facebook/acquisitions",
316
+ "first_page_url": "https://api.crunchbase.com/v/2/organization/facebook/acquisitions",
317
317
  "sort_order": "announced_on? desc"
318
318
  },
319
319
  "items": [
@@ -386,7 +386,7 @@
386
386
  "competitors": {
387
387
  "paging": {
388
388
  "total_items": 9,
389
- "first_page_url": "http://api.crunchbase.com/v/2/organization/facebook/competitors",
389
+ "first_page_url": "https://api.crunchbase.com/v/2/organization/facebook/competitors",
390
390
  "sort_order": "created_at DESC"
391
391
  },
392
392
  "items": [
@@ -451,7 +451,7 @@
451
451
  "offices": {
452
452
  "paging": {
453
453
  "total_items": 3,
454
- "first_page_url": "http://api.crunchbase.com/v/2/organization/facebook/offices",
454
+ "first_page_url": "https://api.crunchbase.com/v/2/organization/facebook/offices",
455
455
  "sort_order": "created_at DESC"
456
456
  },
457
457
  "items": [
@@ -499,7 +499,7 @@
499
499
  "headquarters": {
500
500
  "paging": {
501
501
  "total_items": 1,
502
- "first_page_url": "http://api.crunchbase.com/v/2/organization/facebook/headquarters",
502
+ "first_page_url": "https://api.crunchbase.com/v/2/organization/facebook/headquarters",
503
503
  "sort_order": "created_at DESC"
504
504
  },
505
505
  "items": [
@@ -521,7 +521,7 @@
521
521
  "funding_rounds": {
522
522
  "paging": {
523
523
  "total_items": 11,
524
- "first_page_url": "http://api.crunchbase.com/v/2/organization/facebook/funding_rounds",
524
+ "first_page_url": "https://api.crunchbase.com/v/2/organization/facebook/funding_rounds",
525
525
  "sort_order": "created_at DESC"
526
526
  },
527
527
  "items": [
@@ -586,7 +586,7 @@
586
586
  "categories": {
587
587
  "paging": {
588
588
  "total_items": 7,
589
- "first_page_url": "http://api.crunchbase.com/v/2/organization/facebook/categories",
589
+ "first_page_url": "https://api.crunchbase.com/v/2/organization/facebook/categories",
590
590
  "sort_order": "created_at DESC"
591
591
  },
592
592
  "items": [
@@ -651,7 +651,7 @@
651
651
  "customers": {
652
652
  "paging": {
653
653
  "total_items": 1,
654
- "first_page_url": "http://api.crunchbase.com/v/2/organization/facebook/customers",
654
+ "first_page_url": "https://api.crunchbase.com/v/2/organization/facebook/customers",
655
655
  "sort_order": "created_at DESC"
656
656
  },
657
657
  "items": [
@@ -667,7 +667,7 @@
667
667
  "investments": {
668
668
  "paging": {
669
669
  "total_items": 3,
670
- "first_page_url": "http://api.crunchbase.com/v/2/organization/facebook/investments",
670
+ "first_page_url": "https://api.crunchbase.com/v/2/organization/facebook/investments",
671
671
  "sort_order": "created_at DESC"
672
672
  },
673
673
  "items": [
@@ -718,7 +718,7 @@
718
718
  "founders": {
719
719
  "paging": {
720
720
  "total_items": 5,
721
- "first_page_url": "http://api.crunchbase.com/v/2/organization/facebook/founders",
721
+ "first_page_url": "https://api.crunchbase.com/v/2/organization/facebook/founders",
722
722
  "sort_order": "created_at DESC"
723
723
  },
724
724
  "items": [
@@ -762,7 +762,7 @@
762
762
  "ipo": {
763
763
  "paging": {
764
764
  "total_items": 3,
765
- "first_page_url": "http://api.crunchbase.com/v/2/organization/facebook/ipo",
765
+ "first_page_url": "https://api.crunchbase.com/v/2/organization/facebook/ipo",
766
766
  "sort_order": "created_at DESC"
767
767
  },
768
768
  "items": [
@@ -792,7 +792,7 @@
792
792
  "products": {
793
793
  "paging": {
794
794
  "total_items": 17,
795
- "first_page_url": "http://api.crunchbase.com/v/2/organization/facebook/products",
795
+ "first_page_url": "https://api.crunchbase.com/v/2/organization/facebook/products",
796
796
  "sort_order": "created_at DESC"
797
797
  },
798
798
  "items": [
@@ -857,7 +857,7 @@
857
857
  "primary_image": {
858
858
  "paging": {
859
859
  "total_items": 1,
860
- "first_page_url": "http://api.crunchbase.com/v/2/organization/facebook/primary_image",
860
+ "first_page_url": "https://api.crunchbase.com/v/2/organization/facebook/primary_image",
861
861
  "sort_order": "created_at DESC"
862
862
  },
863
863
  "items": [
@@ -873,7 +873,7 @@
873
873
  "images": {
874
874
  "paging": {
875
875
  "total_items": 1,
876
- "first_page_url": "http://api.crunchbase.com/v/2/organization/facebook/images",
876
+ "first_page_url": "https://api.crunchbase.com/v/2/organization/facebook/images",
877
877
  "sort_order": "created_at DESC"
878
878
  },
879
879
  "items": [
@@ -889,7 +889,7 @@
889
889
  "websites": {
890
890
  "paging": {
891
891
  "total_items": 6,
892
- "first_page_url": "http://api.crunchbase.com/v/2/organization/facebook/websites",
892
+ "first_page_url": "https://api.crunchbase.com/v/2/organization/facebook/websites",
893
893
  "sort_order": "created_at DESC"
894
894
  },
895
895
  "items": [
@@ -940,7 +940,7 @@
940
940
  "news": {
941
941
  "paging": {
942
942
  "total_items": 3113,
943
- "first_page_url": "http://api.crunchbase.com/v/2/organization/facebook/news",
943
+ "first_page_url": "https://api.crunchbase.com/v/2/organization/facebook/news",
944
944
  "sort_order": "created_at DESC"
945
945
  },
946
946
  "items": [
@@ -2,7 +2,7 @@
2
2
  "metadata": {
3
3
  "version": 2,
4
4
  "www_path_prefix": "http://www.crunchbase.com/",
5
- "api_path_prefix": "http://api.crunchbase.com/v/2/",
5
+ "api_path_prefix": "https://api.crunchbase.com/v/2/",
6
6
  "image_path_prefix": "http://images.crunchbase.com/"
7
7
  },
8
8
  "data": {
@@ -26,7 +26,7 @@
26
26
  "degrees": {
27
27
  "paging": {
28
28
  "total_items": 1,
29
- "first_page_url": "http://api.crunchbase.com/v/2/person/randi-zuckerberg/degrees",
29
+ "first_page_url": "https://api.crunchbase.com/v/2/person/randi-zuckerberg/degrees",
30
30
  "sort_order": "created_at DESC"
31
31
  },
32
32
  "items": [
@@ -44,7 +44,7 @@
44
44
  "experience": {
45
45
  "paging": {
46
46
  "total_items": 2,
47
- "first_page_url": "http://api.crunchbase.com/v/2/person/randi-zuckerberg/experience",
47
+ "first_page_url": "https://api.crunchbase.com/v/2/person/randi-zuckerberg/experience",
48
48
  "sort_order": "created_at DESC"
49
49
  },
50
50
  "items": [
@@ -67,7 +67,7 @@
67
67
  "primary_affiliation": {
68
68
  "paging": {
69
69
  "total_items": 1,
70
- "first_page_url": "http://api.crunchbase.com/v/2/person/randi-zuckerberg/primary_affiliation",
70
+ "first_page_url": "https://api.crunchbase.com/v/2/person/randi-zuckerberg/primary_affiliation",
71
71
  "sort_order": "created_at DESC"
72
72
  },
73
73
  "items": [
@@ -82,7 +82,7 @@
82
82
  "investments": {
83
83
  "paging": {
84
84
  "total_items": 1,
85
- "first_page_url": "http://api.crunchbase.com/v/2/person/randi-zuckerberg/investments",
85
+ "first_page_url": "https://api.crunchbase.com/v/2/person/randi-zuckerberg/investments",
86
86
  "sort_order": "created_at DESC"
87
87
  },
88
88
  "items": [
@@ -105,7 +105,7 @@
105
105
  "advisor_at": {
106
106
  "paging": {
107
107
  "total_items": 1,
108
- "first_page_url": "http://api.crunchbase.com/v/2/person/randi-zuckerberg/advisor_at",
108
+ "first_page_url": "https://api.crunchbase.com/v/2/person/randi-zuckerberg/advisor_at",
109
109
  "sort_order": "created_at DESC"
110
110
  },
111
111
  "items": [
@@ -118,7 +118,7 @@
118
118
  "founded_companies": {
119
119
  "paging": {
120
120
  "total_items": 1,
121
- "first_page_url": "http://api.crunchbase.com/v/2/person/randi-zuckerberg/founded_companies",
121
+ "first_page_url": "https://api.crunchbase.com/v/2/person/randi-zuckerberg/founded_companies",
122
122
  "sort_order": "created_at DESC"
123
123
  },
124
124
  "items": [
@@ -134,7 +134,7 @@
134
134
  "primary_image": {
135
135
  "paging": {
136
136
  "total_items": 1,
137
- "first_page_url": "http://api.crunchbase.com/v/2/person/randi-zuckerberg/primary_image",
137
+ "first_page_url": "https://api.crunchbase.com/v/2/person/randi-zuckerberg/primary_image",
138
138
  "sort_order": "created_at DESC"
139
139
  },
140
140
  "items": [
@@ -150,7 +150,7 @@
150
150
  "news": {
151
151
  "paging": {
152
152
  "total_items": 14,
153
- "first_page_url": "http://api.crunchbase.com/v/2/person/randi-zuckerberg/news",
153
+ "first_page_url": "https://api.crunchbase.com/v/2/person/randi-zuckerberg/news",
154
154
  "sort_order": "created_at DESC"
155
155
  },
156
156
  "items": [
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crunchbase_v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 1.0.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-01-19 00:00:00.000000000 Z
12
+ date: 2015-02-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -74,6 +74,7 @@ files:
74
74
  - crunchbase.gemspec
75
75
  - lib/crunchbase.rb
76
76
  - lib/crunchbase/acquisition.rb
77
+ - lib/crunchbase/advisor_at.rb
77
78
  - lib/crunchbase/api.rb
78
79
  - lib/crunchbase/board_members_and_advisor.rb
79
80
  - lib/crunchbase/category.rb
@@ -82,6 +83,9 @@ files:
82
83
  - lib/crunchbase/crunch_exception.rb
83
84
  - lib/crunchbase/current_team.rb
84
85
  - lib/crunchbase/customer.rb
86
+ - lib/crunchbase/degree.rb
87
+ - lib/crunchbase/experience.rb
88
+ - lib/crunchbase/founded_company.rb
85
89
  - lib/crunchbase/founder.rb
86
90
  - lib/crunchbase/funding_round.rb
87
91
  - lib/crunchbase/headquarter.rb
@@ -94,13 +98,16 @@ files:
94
98
  - lib/crunchbase/organization.rb
95
99
  - lib/crunchbase/past_team.rb
96
100
  - lib/crunchbase/person.rb
101
+ - lib/crunchbase/primary_affiliation.rb
97
102
  - lib/crunchbase/primary_image.rb
103
+ - lib/crunchbase/primary_location.rb
98
104
  - lib/crunchbase/product.rb
99
105
  - lib/crunchbase/relationship.rb
100
106
  - lib/crunchbase/search.rb
101
107
  - lib/crunchbase/search_result.rb
102
108
  - lib/crunchbase/sub_organization.rb
103
109
  - lib/crunchbase/version.rb
110
+ - lib/crunchbase/video.rb
104
111
  - lib/crunchbase/website.rb
105
112
  - spec/apikey.example.yml
106
113
  - spec/bootstrap.rb
@@ -148,7 +155,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
148
155
  version: '0'
149
156
  segments:
150
157
  - 0
151
- hash: -1074293236062647351
158
+ hash: -2613269083352727618
152
159
  required_rubygems_version: !ruby/object:Gem::Requirement
153
160
  none: false
154
161
  requirements:
@@ -157,7 +164,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
157
164
  version: '0'
158
165
  segments:
159
166
  - 0
160
- hash: -1074293236062647351
167
+ hash: -2613269083352727618
161
168
  requirements: []
162
169
  rubyforge_project:
163
170
  rubygems_version: 1.8.23.2