crunchbase_v2 1.1.1 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 5b3539da5df418331ba6aee61567a4ba53d1f9df
4
+ data.tar.gz: ae2c416d8456e4a43caf10e0ae89ea58a7e448c9
5
+ SHA512:
6
+ metadata.gz: 5661c53f931f4c2db09e6ee1a15c63a6fc646c2831fd6526204540ff3c04bb01eefce23b5b9e0694926fce9a59b9556864fb405479ea602d7fa090e7654ffb3b
7
+ data.tar.gz: b68978076fd4f4426447fcc1c6c9f74a52e42b99c4230e62636a83c9e83a060fdd13d00dae3f179753983d1401fba200034ac5398ed82ae28a429aa4fbb6a0e3
@@ -10,7 +10,7 @@ module Crunchbase
10
10
 
11
11
  attr_reader :type_name, :name, :post_money_valuation_currency_code, :permalink, :funding_type,
12
12
  :money_raised_usd, :announced_on_trust_code, :money_raised,
13
- :money_raised_currency_code, :announced_on, :canonical_currency_code,
13
+ :money_raised_currency_code, :series, :announced_on, :canonical_currency_code,
14
14
  :created_at, :updated_at
15
15
 
16
16
  attr_reader :investments, :funded_organizations, :new_items
@@ -18,14 +18,16 @@ module Crunchbase
18
18
  attr_reader :investments_total_items, :funded_organizations_total_items, :new_items_total_items
19
19
 
20
20
  def initialize(json)
21
- @type_name = json['type']
22
- properties = json['properties']
23
- relationships = json['relationships']
24
-
25
- @name = properties['name']
26
- @funding_type = properties['funding_type']
27
- @permalink = properties['permalink']
21
+ @type_name = json['type']
22
+ properties = json['properties']
23
+ relationships = json['relationships']
24
+
25
+ @name = properties['name']
26
+ @funding_type = properties['funding_type']
27
+ @permalink = properties['permalink']
28
+ @series = properties['series']
28
29
  @money_raised_usd = properties['money_raised_usd']
30
+
29
31
  if (properties['announced_on'].blank? || properties['announced_on'] == "0000-01-01")
30
32
  @announced_on = nil
31
33
  else
@@ -70,4 +72,4 @@ module Crunchbase
70
72
  end
71
73
 
72
74
  end
73
- end
75
+ end
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module Crunchbase
4
- VERSION = "1.1.1"
4
+ VERSION = "1.1.2"
5
5
  end
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crunchbase_v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
5
- prerelease:
4
+ version: 1.1.2
6
5
  platform: ruby
7
6
  authors:
8
7
  - Encore Shao
@@ -11,105 +10,93 @@ authors:
11
10
  autorequire:
12
11
  bindir: bin
13
12
  cert_chain: []
14
- date: 2015-03-17 00:00:00.000000000 Z
13
+ date: 2015-04-05 00:00:00.000000000 Z
15
14
  dependencies:
16
15
  - !ruby/object:Gem::Dependency
17
16
  name: bundler
18
17
  requirement: !ruby/object:Gem::Requirement
19
- none: false
20
18
  requirements:
21
- - - ~>
19
+ - - "~>"
22
20
  - !ruby/object:Gem::Version
23
21
  version: '1.6'
24
22
  type: :development
25
23
  prerelease: false
26
24
  version_requirements: !ruby/object:Gem::Requirement
27
- none: false
28
25
  requirements:
29
- - - ~>
26
+ - - "~>"
30
27
  - !ruby/object:Gem::Version
31
28
  version: '1.6'
32
29
  - !ruby/object:Gem::Dependency
33
30
  name: rake
34
31
  requirement: !ruby/object:Gem::Requirement
35
- none: false
36
32
  requirements:
37
- - - ! '>='
33
+ - - ">="
38
34
  - !ruby/object:Gem::Version
39
35
  version: '0'
40
36
  type: :development
41
37
  prerelease: false
42
38
  version_requirements: !ruby/object:Gem::Requirement
43
- none: false
44
39
  requirements:
45
- - - ! '>='
40
+ - - ">="
46
41
  - !ruby/object:Gem::Version
47
42
  version: '0'
48
43
  - !ruby/object:Gem::Dependency
49
44
  name: rspec
50
45
  requirement: !ruby/object:Gem::Requirement
51
- none: false
52
46
  requirements:
53
- - - ~>
47
+ - - "~>"
54
48
  - !ruby/object:Gem::Version
55
49
  version: '3.0'
56
50
  type: :development
57
51
  prerelease: false
58
52
  version_requirements: !ruby/object:Gem::Requirement
59
- none: false
60
53
  requirements:
61
- - - ~>
54
+ - - "~>"
62
55
  - !ruby/object:Gem::Version
63
56
  version: '3.0'
64
57
  - !ruby/object:Gem::Dependency
65
58
  name: rspec-its
66
59
  requirement: !ruby/object:Gem::Requirement
67
- none: false
68
60
  requirements:
69
- - - ! '>='
61
+ - - ">="
70
62
  - !ruby/object:Gem::Version
71
63
  version: '0'
72
64
  type: :development
73
65
  prerelease: false
74
66
  version_requirements: !ruby/object:Gem::Requirement
75
- none: false
76
67
  requirements:
77
- - - ! '>='
68
+ - - ">="
78
69
  - !ruby/object:Gem::Version
79
70
  version: '0'
80
71
  - !ruby/object:Gem::Dependency
81
72
  name: webmock
82
73
  requirement: !ruby/object:Gem::Requirement
83
- none: false
84
74
  requirements:
85
- - - ! '>='
75
+ - - ">="
86
76
  - !ruby/object:Gem::Version
87
77
  version: '0'
88
78
  type: :development
89
79
  prerelease: false
90
80
  version_requirements: !ruby/object:Gem::Requirement
91
- none: false
92
81
  requirements:
93
- - - ! '>='
82
+ - - ">="
94
83
  - !ruby/object:Gem::Version
95
84
  version: '0'
96
85
  - !ruby/object:Gem::Dependency
97
86
  name: vcr
98
87
  requirement: !ruby/object:Gem::Requirement
99
- none: false
100
88
  requirements:
101
- - - ! '>='
89
+ - - ">="
102
90
  - !ruby/object:Gem::Version
103
91
  version: '0'
104
92
  type: :development
105
93
  prerelease: false
106
94
  version_requirements: !ruby/object:Gem::Requirement
107
- none: false
108
95
  requirements:
109
- - - ! '>='
96
+ - - ">="
110
97
  - !ruby/object:Gem::Version
111
98
  version: '0'
112
- description: ! ' Ruby wrapper for Crunchbase API version 2 '
99
+ description: " Ruby wrapper for Crunchbase API version 2 "
113
100
  email:
114
101
  - encore.shao@gmail.com
115
102
  - ladislav.martincik@gmail.com
@@ -117,7 +104,7 @@ executables: []
117
104
  extensions: []
118
105
  extra_rdoc_files: []
119
106
  files:
120
- - .gitignore
107
+ - ".gitignore"
121
108
  - Gemfile
122
109
  - LICENSE.txt
123
110
  - README.rdoc
@@ -195,33 +182,26 @@ files:
195
182
  homepage: https://github.com/encoreshao/crunchbase_v2
196
183
  licenses:
197
184
  - MIT
185
+ metadata: {}
198
186
  post_install_message:
199
187
  rdoc_options: []
200
188
  require_paths:
201
189
  - lib
202
190
  required_ruby_version: !ruby/object:Gem::Requirement
203
- none: false
204
191
  requirements:
205
- - - ! '>='
192
+ - - ">="
206
193
  - !ruby/object:Gem::Version
207
194
  version: '0'
208
- segments:
209
- - 0
210
- hash: 11833851429512340
211
195
  required_rubygems_version: !ruby/object:Gem::Requirement
212
- none: false
213
196
  requirements:
214
- - - ! '>='
197
+ - - ">="
215
198
  - !ruby/object:Gem::Version
216
199
  version: '0'
217
- segments:
218
- - 0
219
- hash: 11833851429512340
220
200
  requirements: []
221
201
  rubyforge_project:
222
- rubygems_version: 1.8.23.2
202
+ rubygems_version: 2.4.5
223
203
  signing_key:
224
- specification_version: 3
204
+ specification_version: 4
225
205
  summary: Ruby wrapper for Crunchbase API version 2
226
206
  test_files:
227
207
  - spec/apikey.example.yml
@@ -256,3 +236,4 @@ test_files:
256
236
  - spec/fixtures/person-randi-zuckerberg.js
257
237
  - spec/spec_helper.rb
258
238
  - spec/support/shared_examples.rb
239
+ has_rdoc: