crunchbase-ruby-library 0.1.0 → 0.1.1

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: 8bf49d940d959e46b782508592b88087ebcbabc5
4
- data.tar.gz: 8f56b76a25d1d82b2fda6753a39284ef44933336
3
+ metadata.gz: 50429f19d626ea589e14ca891a36f1433082697b
4
+ data.tar.gz: 5b228ba00c4de77c36111bde57b764d23520b640
5
5
  SHA512:
6
- metadata.gz: 2436a0468afe5776377e4dff2feecf4d542c05171a00228a9ef432dcc9f2cd94853d451b3e64161c02784a6cdc643f29ce978f08e5291fe1ae8c1651edd9a3cb
7
- data.tar.gz: 61a46fd870ee0dbb8503b49ec1cb1ab619c2ee2161a08db1211e51f9707b99d02d4d3169fc460137529f51e15ff0709b91ef641f256568e1d1e70d245a355cfa
6
+ metadata.gz: 689955b6f2f7912cd06a2f98428eab1faa097fcee0eae750bdf893fed09ab68a214aa94c2b0352c3b6586d641bce01c7d2f2cc094b87b49b6ecf08bd1d5d62ef
7
+ data.tar.gz: 055b603d5df5f9c4e6872f7d978a80b24e8708c29c79a8cfb62ddf33a9fcf6681ebac6a89fb2a8edaed17dd46b2e0bf72bbb9508085d076b54b4342bd54f8f5c
data/.gitignore CHANGED
@@ -3,6 +3,8 @@
3
3
  .bundle
4
4
  .config
5
5
  .yardoc
6
+ .ruby-version
7
+ .DS_Store
6
8
  Gemfile.lock
7
9
  InstalledFiles
8
10
  _yardoc
@@ -9,11 +9,11 @@ module Crunchbase::Model
9
9
 
10
10
  # attr_reader :venture_firm, :investor, :images, :videos, :news
11
11
 
12
- # attr_reader :venture_firm_total_items, :investor_total_items, :images_total_items, :videos_total_items, :news_total_items
13
-
12
+ # attr_reader :venture_firm_total_items, :investor_total_items, :images_total_items, :videos_total_items, :news_total_items
13
+
14
14
  def property_keys
15
15
  %w[
16
- api_path web_path name announced_on announced_on_trust_code
16
+ api_path web_path name announced_on announced_on_trust_code
17
17
  money_raised money_raised_currency_code money_raised_usd created_at updated_at
18
18
  ]
19
19
  end
@@ -23,4 +23,4 @@ module Crunchbase::Model
23
23
  end
24
24
 
25
25
  end
26
- end
26
+ end
@@ -6,15 +6,15 @@ module Crunchbase::Model
6
6
  RESOURCE_LIST = 'funds'
7
7
 
8
8
  attr_reader :name, :path, :created_at, :updated_at
9
-
9
+
10
10
  def initialize(json)
11
- property_keys.each { |v|
12
- instance_variable_set("@#{v}", json[v] || nil)
13
- }
11
+ property_keys.each { |v|
12
+ instance_variable_set("@#{v}", json[v] || nil)
13
+ }
14
14
 
15
- %w[created_at updated_at].each { |v|
16
- instance_variable_set("@#{v}", Time.at(json[v]))
17
- }
15
+ %w[created_at updated_at].each { |v|
16
+ instance_variable_set("@#{v}", Time.at(json[v]))
17
+ }
18
18
  end
19
19
 
20
20
  def property_keys
@@ -22,4 +22,4 @@ module Crunchbase::Model
22
22
  end
23
23
 
24
24
  end
25
- end
25
+ end
@@ -54,7 +54,7 @@ module Crunchbase::Model
54
54
  set_relationships_object(Crunchbase::Model::Acquisition, 'acquisitions', relationships['acquisitions'])
55
55
  set_relationships_object(Crunchbase::Model::AcquiredBy, 'acquired_by', relationships['acquired_by'])
56
56
  set_relationships_object(Crunchbase::Model::Ipo, 'ipo', relationships['ipo'])
57
- set_relationships_object(Crunchbase::Model::FundRaise, 'funds', relationships['funds'])
57
+ set_relationships_object(Crunchbase::Model::Fund, 'funds', relationships['funds'])
58
58
  set_relationships_object(Crunchbase::Model::Website, 'websites', relationships['websites'])
59
59
  set_relationships_object(Crunchbase::Model::Image, 'images', relationships['images'])
60
60
  set_relationships_object(Crunchbase::Model::Video, 'videos', relationships['videos'])
@@ -1,3 +1,3 @@
1
1
  module Crunchbase
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  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.0
4
+ version: 0.1.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: 2015-10-10 00:00:00.000000000 Z
11
+ date: 2015-11-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler