crunchbase-ruby-library 0.1.2 → 0.1.3

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8d167711ec610ab1e1c81675df05e8aebc3119ae
4
- data.tar.gz: de5728894ec3309d6cf30ea00a65715c135411a7
3
+ metadata.gz: c707cf870a56439dbdb02b2a3776ea010d816dce
4
+ data.tar.gz: c5599efb47f3d19fb3b3651b7db33e17d3425e34
5
5
  SHA512:
6
- metadata.gz: 13086ad9d0774214e061e874187adccc18af476102ca466180cad8f8cf17e2aa9203d799dd45904ff3138960fc34ddec43ffa82c4da22f693ba18297c3cbbd79
7
- data.tar.gz: cbc94e0d8d3dc18e8facda7f7336eaf3b7fa14a75d5a96bb421d1e57147b68b6d8fdcb53254caa6ad8ebe9606077f970531d4d0c54dc631b3432dd57f6ce637d
6
+ metadata.gz: 7f71393e8a2b90723621c772d1fe51cadd48fbfd1869af347b76a5cf9006e1b28d0c97b83f583428fb3e073a9a9932478d3e5bbe2dcc6d1d0ac488f1210f8bdb
7
+ data.tar.gz: 847912b8b82e84b69269d8fa4cdbf0a42df5ff03b31733f458e7d7e841126d71418da4832ddb610f1a9009edc1eb28bfa873f778c3d2c7876864fc1d630e6138
@@ -135,7 +135,7 @@ module Crunchbase
135
135
  def self.get_url_following_redirects(uri_str, limit = 10)
136
136
  raise Crunchbase::Exception, 'HTTP redirect too deep' if limit == 0
137
137
 
138
- uri = URI.parse(uri_str)
138
+ uri = URI.parse(URI.encode(uri_str))
139
139
 
140
140
  debug_log!(uri) if debug
141
141
 
@@ -1,3 +1,3 @@
1
1
  module Crunchbase
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
@@ -5,56 +5,68 @@ module Crunchbase
5
5
 
6
6
  describe Organization do
7
7
 
8
- before(:all) do
9
- @organization = Organization.get("abovenet")
8
+ context "organization with i18n name" do
9
+ before(:all) do
10
+ @organization = Organization.get("bon-appétit")
11
+ end
12
+
13
+ it 'returns organization data' do
14
+ expect(@organization.name).to eq("Bon Appétit")
15
+ end
10
16
  end
11
17
 
12
- it 'show all products name' do
13
- puts @organization.products.map { |i| i.name }.inspect unless @organization.products.nil?
14
- end
18
+ context "TODO" do
19
+ before(:all) do
20
+ @organization = Organization.get("abovenet")
21
+ end
15
22
 
16
- it 'show all offices name' do
17
- puts @organization.offices.map { |i| i.name }.inspect unless @organization.offices.nil?
18
- end
23
+ it 'show all products name' do
24
+ puts @organization.products.map { |i| i.name }.inspect unless @organization.products.nil?
25
+ end
19
26
 
20
- it 'show all funding_rounds funding_type' do
21
- puts @organization.funding_rounds.map { |i| i.funding_type }.inspect unless @organization.funding_rounds.nil?
22
- end
27
+ it 'show all offices name' do
28
+ puts @organization.offices.map { |i| i.name }.inspect unless @organization.offices.nil?
29
+ end
23
30
 
24
- it 'show all competitors name' do
25
- puts @organization.competitors.map { |i| i.name }.inspect unless @organization.competitors.nil?
26
- end
31
+ it 'show all funding_rounds funding_type' do
32
+ puts @organization.funding_rounds.map { |i| i.funding_type }.inspect unless @organization.funding_rounds.nil?
33
+ end
27
34
 
28
- it 'show all investments money_invested' do
29
- puts @organization.investments.map { |i| i.money_invested }.inspect unless @organization.investments.nil?
30
- end
35
+ it 'show all competitors name' do
36
+ puts @organization.competitors.map { |i| i.name }.inspect unless @organization.competitors.nil?
37
+ end
31
38
 
32
- it 'show all acquisitions acquiree name' do
33
- puts @organization.acquisitions.map { |i| i.acquiree.name }.inspect unless @organization.acquisitions.nil?
34
- end
39
+ it 'show all investments money_invested' do
40
+ puts @organization.investments.map { |i| i.money_invested }.inspect unless @organization.investments.nil?
41
+ end
35
42
 
36
- it 'show all ipo funded_company name' do
37
- puts "IPOs - #{@organization.ipo_total_items.nil?}"
38
- puts @organization.ipo.map { |i| i.funded_company.name }.inspect unless @organization.ipo.nil?
39
- end
43
+ it 'show all acquisitions acquiree name' do
44
+ puts @organization.acquisitions.map { |i| i.acquiree.name }.inspect unless @organization.acquisitions.nil?
45
+ end
40
46
 
41
- it "show all categories name" do
42
- puts @organization.categories.map {|i| i.name }.inspect unless @organization.categories.nil?
43
- end
47
+ it 'show all ipo funded_company name' do
48
+ puts "IPOs - #{@organization.ipo_total_items.nil?}"
49
+ puts @organization.ipo.map { |i| i.funded_company.name }.inspect unless @organization.ipo.nil?
50
+ end
44
51
 
45
- it "show all news name" do
46
- puts @organization.news.map {|i| i.title }.inspect unless @organization.news.nil?
47
- end
52
+ it "show all categories name" do
53
+ puts @organization.categories.map {|i| i.name }.inspect unless @organization.categories.nil?
54
+ end
48
55
 
49
- it "show all current_team members name" do
50
- puts @organization.current_team.map {|i| [i.title, i.person.last_name] }.inspect unless @organization.current_team.nil?
51
- end
56
+ it "show all news name" do
57
+ puts @organization.news.map {|i| i.title }.inspect unless @organization.news.nil?
58
+ end
59
+
60
+ it "show all current_team members name" do
61
+ puts @organization.current_team.map {|i| [i.title, i.person.last_name] }.inspect unless @organization.current_team.nil?
62
+ end
52
63
 
53
- it "show all websites website" do
54
- puts @organization.websites.map {|i| i.website }.inspect unless @organization.websites.nil?
64
+ it "show all websites website" do
65
+ puts @organization.websites.map {|i| i.website }.inspect unless @organization.websites.nil?
66
+ end
55
67
  end
56
68
 
57
69
  end
58
70
 
59
71
  end
60
- end
72
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crunchbase-ruby-library
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Encore Shao