crunchbase_v2 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.rdoc CHANGED
@@ -6,17 +6,22 @@ Ruby API wrapper for [Crunchbase API](https://developer.crunchbase.com/docs) ver
6
6
 
7
7
  Add this line to your application's Gemfile:
8
8
 
9
- gem 'crunchbase', github: 'encoreshao/crunchbase_v2'
9
+ gem 'crunchbase_v2'
10
10
 
11
11
  And then execute:
12
12
 
13
13
  $ bundle
14
14
 
15
+ Or install it yourself as:
16
+
17
+ $ gem install crunchbase_v2
18
+
15
19
  == Usage Examples
16
20
 
17
- Config your user_key, debug somewhere like development.rb.
21
+ Config your user_key, debug somewhere like development.rb, Recommended directory config/initializers/crunchbase.rb
18
22
 
19
- Crunchbase::API.key = 'YOUR_API_KEY'
23
+ require 'crunchbase_v2'
24
+ Crunchbase::API.key = 'user_key'
20
25
  Crunchbase::API.debug = false
21
26
 
22
27
  === Search
@@ -35,10 +40,7 @@ Searching the Crunchbase is possible with the Search class, The Search will retu
35
40
  Get information by the permalink, Example:
36
41
 
37
42
  company = Crunchbase::Organization.get("facebook")
38
- Relationship objects
39
- [ competitors customers founders funding_rounds ipos products sub_organizations ]
40
- Friendly relationship objects
41
- [ past_teams current_teams acquisitions offices headquarters categories investments primary_images images websites new_items board_members_and_advisors ]
43
+ Relationship objects [ competitors customers founders funding_rounds ipos products sub_organizations ]
42
44
  company.competitors Only return Top 8 items
43
45
  company.competitors_total_items Return competitors total items count
44
46
  company.competitors.each do |e|
@@ -46,6 +48,7 @@ Get information by the permalink, Example:
46
48
  puts competitor.name
47
49
  end
48
50
  OR
51
+ Friendly relationship objects [ past_teams current_teams acquisitions offices headquarters categories investments primary_images images websites new_items board_members_and_advisors ]
49
52
  company.websites
50
53
 
51
54
  If you want all competitors items, Please do:
@@ -66,11 +69,11 @@ If you want all competitors items, Please do:
66
69
 
67
70
  people.results
68
71
 
69
- [#<Crunchbase::SearchResult:0x007fd16ae18b40 ...>,
72
+ [ #<Crunchbase::SearchResult:0x007fd16ae18b40 ...>,
70
73
  #<Crunchbase::SearchResult:0x007fd16ae18870 ...>,
71
74
  #<Crunchbase::SearchResult:0x007fd16ae185a0 ...>,
72
75
  #<Crunchbase::SearchResult:0x007fd16ae182f8 ...>
73
- ......]
76
+ ...... ]
74
77
 
75
78
 
76
79
  === How to use Location & Category ....
data/crunchbase.gemspec CHANGED
@@ -7,9 +7,9 @@ Gem::Specification.new do |spec|
7
7
  spec.name = "crunchbase_v2"
8
8
  spec.version = Crunchbase::VERSION
9
9
  spec.authors = ["Encore Shao"]
10
- spec.email = ["encore@ekohe.com"]
11
- spec.summary = %q{ Wrapper for Crunchbase API version 2 }
12
- spec.description = %q{ Wrapper for Crunchbase API version 2 }
10
+ spec.email = ["encore.shao@gmail.com"]
11
+ spec.summary = %q{ Ruby wrapper for Crunchbase API version 2 }
12
+ spec.description = %q{ Ruby wrapper for Crunchbase API version 2 }
13
13
  spec.homepage = "https://github.com/encoreshao/crunchbase_v2"
14
14
  spec.license = "MIT"
15
15
 
@@ -1,3 +1,3 @@
1
1
  module Crunchbase
2
- VERSION = "0.0.1"
3
- end
2
+ VERSION = "0.0.2"
3
+ end
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.1
4
+ version: 0.0.2
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: 2014-08-27 00:00:00.000000000 Z
12
+ date: 2014-08-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -59,9 +59,9 @@ dependencies:
59
59
  - - ~>
60
60
  - !ruby/object:Gem::Version
61
61
  version: 2.10.0
62
- description: ! ' Wrapper for Crunchbase API version 2 '
62
+ description: ! ' Ruby wrapper for Crunchbase API version 2 '
63
63
  email:
64
- - encore@ekohe.com
64
+ - encore.shao@gmail.com
65
65
  executables: []
66
66
  extensions: []
67
67
  extra_rdoc_files: []
@@ -157,7 +157,7 @@ rubyforge_project:
157
157
  rubygems_version: 1.8.23.2
158
158
  signing_key:
159
159
  specification_version: 3
160
- summary: Wrapper for Crunchbase API version 2
160
+ summary: Ruby wrapper for Crunchbase API version 2
161
161
  test_files:
162
162
  - spec/apikey.example.yml
163
163
  - spec/bootstrap.rb