crunchbase-ruby-library 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -144,7 +144,7 @@ module Crunchbase
144
144
 
145
145
  response = parser.parse(resp)
146
146
  response = response[0] if response.is_a?(Array)
147
- raise Exception, message: response['message'], status: response['status'] unless response['message'].nil?
147
+ raise Exception, response['message'] unless response['message'].nil?
148
148
 
149
149
  response['data']
150
150
  end
@@ -165,7 +165,7 @@ module Crunchbase
165
165
  end
166
166
 
167
167
  case response
168
- when Net::HTTPSuccess, Net::HTTPNotFound, Net::HTTPInternalServerError
168
+ when Net::HTTPSuccess, Net::HTTPNotFound, Net::HTTPInternalServerError, Net::HTTPConflict
169
169
  response.body
170
170
  when Net::HTTPRedirection
171
171
  get_url_following_redirects(response['location'], limit - 1)
@@ -187,7 +187,7 @@ module Crunchbase
187
187
  end
188
188
 
189
189
  response = parser.parse(resp)
190
- raise Exception, message: response['message'], status: response['status'] unless response['message'].nil?
190
+ raise Exception, response['message'] unless response['message'].nil?
191
191
 
192
192
  response['data']
193
193
  end
@@ -214,7 +214,7 @@ module Crunchbase
214
214
  end
215
215
 
216
216
  case response
217
- when Net::HTTPSuccess, Net::HTTPNotFound, Net::HTTPInternalServerError
217
+ when Net::HTTPSuccess, Net::HTTPNotFound, Net::HTTPInternalServerError, Net::HTTPConflict
218
218
  response.body
219
219
  when Net::HTTPRedirection
220
220
  post_url_following_redirects(response['location'], limit - 1)
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Crunchbase
3
- VERSION = '0.3.2'
3
+ VERSION = '0.3.3'
4
4
  end
metadata CHANGED
@@ -1,97 +1,110 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crunchbase-ruby-library
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Encore Shao
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2018-06-19 00:00:00.000000000 Z
12
+ date: 2019-01-08 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: bundler
15
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
- - - "~>"
19
+ - - ~>
18
20
  - !ruby/object:Gem::Version
19
21
  version: '1.6'
20
22
  type: :development
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
23
26
  requirements:
24
- - - "~>"
27
+ - - ~>
25
28
  - !ruby/object:Gem::Version
26
29
  version: '1.6'
27
30
  - !ruby/object:Gem::Dependency
28
31
  name: rake
29
32
  requirement: !ruby/object:Gem::Requirement
33
+ none: false
30
34
  requirements:
31
- - - ">="
35
+ - - ! '>='
32
36
  - !ruby/object:Gem::Version
33
37
  version: '0'
34
38
  type: :development
35
39
  prerelease: false
36
40
  version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
37
42
  requirements:
38
- - - ">="
43
+ - - ! '>='
39
44
  - !ruby/object:Gem::Version
40
45
  version: '0'
41
46
  - !ruby/object:Gem::Dependency
42
47
  name: pry
43
48
  requirement: !ruby/object:Gem::Requirement
49
+ none: false
44
50
  requirements:
45
- - - ">="
51
+ - - ! '>='
46
52
  - !ruby/object:Gem::Version
47
53
  version: '0'
48
54
  type: :development
49
55
  prerelease: false
50
56
  version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
51
58
  requirements:
52
- - - ">="
59
+ - - ! '>='
53
60
  - !ruby/object:Gem::Version
54
61
  version: '0'
55
62
  - !ruby/object:Gem::Dependency
56
63
  name: rspec
57
64
  requirement: !ruby/object:Gem::Requirement
65
+ none: false
58
66
  requirements:
59
- - - "~>"
67
+ - - ~>
60
68
  - !ruby/object:Gem::Version
61
69
  version: '3.0'
62
70
  type: :development
63
71
  prerelease: false
64
72
  version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
65
74
  requirements:
66
- - - "~>"
75
+ - - ~>
67
76
  - !ruby/object:Gem::Version
68
77
  version: '3.0'
69
78
  - !ruby/object:Gem::Dependency
70
79
  name: rspec-its
71
80
  requirement: !ruby/object:Gem::Requirement
81
+ none: false
72
82
  requirements:
73
- - - ">="
83
+ - - ! '>='
74
84
  - !ruby/object:Gem::Version
75
85
  version: '0'
76
86
  type: :development
77
87
  prerelease: false
78
88
  version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
79
90
  requirements:
80
- - - ">="
91
+ - - ! '>='
81
92
  - !ruby/object:Gem::Version
82
93
  version: '0'
83
94
  - !ruby/object:Gem::Dependency
84
95
  name: rubocop
85
96
  requirement: !ruby/object:Gem::Requirement
97
+ none: false
86
98
  requirements:
87
- - - ">="
99
+ - - ! '>='
88
100
  - !ruby/object:Gem::Version
89
101
  version: '0'
90
102
  type: :development
91
103
  prerelease: false
92
104
  version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
93
106
  requirements:
94
- - - ">="
107
+ - - ! '>='
95
108
  - !ruby/object:Gem::Version
96
109
  version: '0'
97
110
  description: A Ruby wrapper for Crunchbase API version 3.1
@@ -103,11 +116,11 @@ executables:
103
116
  extensions: []
104
117
  extra_rdoc_files: []
105
118
  files:
106
- - ".gitignore"
107
- - ".rspec"
108
- - ".rubocop.yml"
109
- - ".rubocop_todo.yml"
110
- - ".travis.yml"
119
+ - .gitignore
120
+ - .rspec
121
+ - .rubocop.yml
122
+ - .rubocop_todo.yml
123
+ - .travis.yml
111
124
  - Gemfile
112
125
  - LICENSE.txt
113
126
  - README.md
@@ -220,26 +233,33 @@ files:
220
233
  homepage: https://github.com/encoreshao/crunchbase-ruby-library
221
234
  licenses:
222
235
  - MIT
223
- metadata: {}
224
236
  post_install_message:
225
237
  rdoc_options: []
226
238
  require_paths:
227
239
  - lib
228
240
  required_ruby_version: !ruby/object:Gem::Requirement
241
+ none: false
229
242
  requirements:
230
- - - ">="
243
+ - - ! '>='
231
244
  - !ruby/object:Gem::Version
232
245
  version: '0'
246
+ segments:
247
+ - 0
248
+ hash: -394987517701761930
233
249
  required_rubygems_version: !ruby/object:Gem::Requirement
250
+ none: false
234
251
  requirements:
235
- - - ">="
252
+ - - ! '>='
236
253
  - !ruby/object:Gem::Version
237
254
  version: '0'
255
+ segments:
256
+ - 0
257
+ hash: -394987517701761930
238
258
  requirements: []
239
259
  rubyforge_project:
240
- rubygems_version: 2.5.1
260
+ rubygems_version: 1.8.23.2
241
261
  signing_key:
242
- specification_version: 4
262
+ specification_version: 3
243
263
  summary: A Ruby wrapper for Crunchbase API v3.1
244
264
  test_files:
245
265
  - spec/crunchbase.yml.example
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: 2b032af32aa76dd5da6cf9cdb2463bbee3cf0257
4
- data.tar.gz: 74e32566892917c53c95aa26730a31c8791bbebf
5
- SHA512:
6
- metadata.gz: b210892b735f616b700fa57288d7d19d6c214e4f80c06de2acfec8b81b20ac328cbd3b75feed54eada18c5d7743aa1dd3e0c424faa0f137f163724738b8642c2
7
- data.tar.gz: 8a3ad473ed48313fa8805377b766280f1ab67bed78eb2a4cedb77470d5040eb625c3860bcb505e9c1c674d75a13fff16ddd4ca85501328247d0f969190c07d6c