aylien_text_api 0.8.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4a3b0fc823371783b3b294300d906988df2fec190a09e919d4bc9d399f07a8e6
4
- data.tar.gz: 50ffab1f2e1f025131e34fc5d5606acdc5924dea77f7e8fae7754420985d4e00
3
+ metadata.gz: 562ad6fd4e2f11ce7ff33e11c71084b7d95f785b1826c5a2ae8bcab35ae7a4e3
4
+ data.tar.gz: 98b321a77808a9ef6f0684e20e4f49538a40d58235f47f0210cf048b508cef80
5
5
  SHA512:
6
- metadata.gz: 39bbd804b19d4441e4b417e1f72d532b8c0c60b72651a947cd805948ddbb29f07aa04c5f15e324638bb21d3f557ac3047b1934441ee72e0e5a0592d1d9188779
7
- data.tar.gz: efd1038da6269bc13909969409c933d66ca9fedad7248bfe635ace65b6c49a55148d57cbbe01ee440a4756ab83a0617d2d97064917b73e0fe14625370225505e
6
+ metadata.gz: dd16b3e7a7f4ae928a798c9c24c94582f04934eaf7cb0ced2960b1b27e4d47d7f751aad1d5518f8408980aad60d501ae3b56a743f8cddf8e63c66732c221162b
7
+ data.tar.gz: f3522c03966986b479e81d63d8c75875f151a678797608460ecf8392ce7c2d3268df61716d20393f499ba3311d5d38d19ea2a349c53d40c44a6b945284e62121
@@ -18,7 +18,7 @@ Gem::Specification.new do |s|
18
18
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
19
19
  s.require_paths = ["lib"]
20
20
 
21
- s.required_ruby_version = '>= 1.9'
21
+ s.required_ruby_version = '>= 2.0'
22
22
 
23
23
  s.add_development_dependency 'rake', '~> 10.4'
24
24
  s.add_development_dependency 'minitest', '~> 5.4'
@@ -40,7 +40,7 @@ module AylienTextApi
40
40
  end
41
41
 
42
42
  def request!
43
- Net::HTTP.start(@uri.host, @uri.port, use_ssl: (@uri.scheme == 'https')) do |http|
43
+ Net::HTTP.start(@uri.host, @uri.port, :ENV, use_ssl: (@uri.scheme == 'https')) do |http|
44
44
  response = http.request(@request)
45
45
 
46
46
  limit = response["X-RateLimit-Limit"]
@@ -13,5 +13,5 @@
13
13
  # limitations under the License.
14
14
 
15
15
  module AylienTextApi
16
- VERSION = "0.8.0" unless defined? AylienTextApi::VERSION
16
+ VERSION = "1.0.0" unless defined? AylienTextApi::VERSION
17
17
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aylien_text_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aylien Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-06-13 00:00:00.000000000 Z
11
+ date: 2019-04-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -210,18 +210,127 @@ required_ruby_version: !ruby/object:Gem::Requirement
210
210
  requirements:
211
211
  - - ">="
212
212
  - !ruby/object:Gem::Version
213
- version: '1.9'
213
+ version: '2.0'
214
214
  required_rubygems_version: !ruby/object:Gem::Requirement
215
215
  requirements:
216
216
  - - ">="
217
217
  - !ruby/object:Gem::Version
218
218
  version: '0'
219
219
  requirements: []
220
- rubyforge_project:
221
- rubygems_version: 2.7.6
220
+ rubygems_version: 3.0.3
222
221
  signing_key:
223
222
  specification_version: 4
224
223
  summary: AYLIEN Text Analysis API is a package of Natural Language Processing and
225
224
  Machine Learning-powered tools for analyzing and extracting various kinds of information
226
225
  from text and images.
227
- test_files: []
226
+ test_files:
227
+ - spec/fixtures/aylien_text_api/client/absa_with_invalid_client.yml
228
+ - spec/fixtures/aylien_text_api/client/absa_with_invalid_params.yml
229
+ - spec/fixtures/aylien_text_api/client/absa_with_text.yml
230
+ - spec/fixtures/aylien_text_api/client/absa_with_unauthenticated_client.yml
231
+ - spec/fixtures/aylien_text_api/client/absa_with_valid_url.yml
232
+ - spec/fixtures/aylien_text_api/client/absa_with_value_as_text.yml
233
+ - spec/fixtures/aylien_text_api/client/absa_with_value_as_valid_url.yml
234
+ - spec/fixtures/aylien_text_api/client/classify_by_taxonomy_with_invalid_client.yml
235
+ - spec/fixtures/aylien_text_api/client/classify_by_taxonomy_with_invalid_params.yml
236
+ - spec/fixtures/aylien_text_api/client/classify_by_taxonomy_with_invalid_taxonomy.yml
237
+ - spec/fixtures/aylien_text_api/client/classify_by_taxonomy_with_text.yml
238
+ - spec/fixtures/aylien_text_api/client/classify_by_taxonomy_with_unauthenticated_client.yml
239
+ - spec/fixtures/aylien_text_api/client/classify_by_taxonomy_with_valid_url.yml
240
+ - spec/fixtures/aylien_text_api/client/classify_by_taxonomy_with_value_as_text.yml
241
+ - spec/fixtures/aylien_text_api/client/classify_by_taxonomy_with_value_as_valid_url.yml
242
+ - spec/fixtures/aylien_text_api/client/classify_with_invalid_client.yml
243
+ - spec/fixtures/aylien_text_api/client/classify_with_invalid_params.yml
244
+ - spec/fixtures/aylien_text_api/client/classify_with_text.yml
245
+ - spec/fixtures/aylien_text_api/client/classify_with_unauthenticated_client.yml
246
+ - spec/fixtures/aylien_text_api/client/classify_with_valid_url.yml
247
+ - spec/fixtures/aylien_text_api/client/classify_with_value_as_text.yml
248
+ - spec/fixtures/aylien_text_api/client/classify_with_value_as_valid_url.yml
249
+ - spec/fixtures/aylien_text_api/client/combined_with_invalid_client.yml
250
+ - spec/fixtures/aylien_text_api/client/combined_with_invalid_params.yml
251
+ - spec/fixtures/aylien_text_api/client/combined_with_text.yml
252
+ - spec/fixtures/aylien_text_api/client/combined_with_unauthenticated_client.yml
253
+ - spec/fixtures/aylien_text_api/client/combined_with_valid_url.yml
254
+ - spec/fixtures/aylien_text_api/client/combined_with_value_as_text.yml
255
+ - spec/fixtures/aylien_text_api/client/combined_with_value_as_valid_url.yml
256
+ - spec/fixtures/aylien_text_api/client/concepts_with_invalid_client.yml
257
+ - spec/fixtures/aylien_text_api/client/concepts_with_invalid_params.yml
258
+ - spec/fixtures/aylien_text_api/client/concepts_with_text.yml
259
+ - spec/fixtures/aylien_text_api/client/concepts_with_unauthenticated_client.yml
260
+ - spec/fixtures/aylien_text_api/client/concepts_with_valid_url.yml
261
+ - spec/fixtures/aylien_text_api/client/concepts_with_value_as_text.yml
262
+ - spec/fixtures/aylien_text_api/client/concepts_with_value_as_valid_url.yml
263
+ - spec/fixtures/aylien_text_api/client/elsa_with_invalid_client.yml
264
+ - spec/fixtures/aylien_text_api/client/elsa_with_invalid_params.yml
265
+ - spec/fixtures/aylien_text_api/client/elsa_with_text.yml
266
+ - spec/fixtures/aylien_text_api/client/elsa_with_unauthenticated_client.yml
267
+ - spec/fixtures/aylien_text_api/client/elsa_with_valid_url.yml
268
+ - spec/fixtures/aylien_text_api/client/elsa_with_value_as_text.yml
269
+ - spec/fixtures/aylien_text_api/client/elsa_with_value_as_valid_url.yml
270
+ - spec/fixtures/aylien_text_api/client/entities_with_invalid_client.yml
271
+ - spec/fixtures/aylien_text_api/client/entities_with_invalid_params.yml
272
+ - spec/fixtures/aylien_text_api/client/entities_with_text.yml
273
+ - spec/fixtures/aylien_text_api/client/entities_with_unauthenticated_client.yml
274
+ - spec/fixtures/aylien_text_api/client/entities_with_valid_url.yml
275
+ - spec/fixtures/aylien_text_api/client/entities_with_value_as_text.yml
276
+ - spec/fixtures/aylien_text_api/client/entities_with_value_as_valid_url.yml
277
+ - spec/fixtures/aylien_text_api/client/extract_with_invalid_client.yml
278
+ - spec/fixtures/aylien_text_api/client/extract_with_invalid_params.yml
279
+ - spec/fixtures/aylien_text_api/client/extract_with_unauthenticated_client.yml
280
+ - spec/fixtures/aylien_text_api/client/extract_with_valid_url.yml
281
+ - spec/fixtures/aylien_text_api/client/extract_with_value_as_text.yml
282
+ - spec/fixtures/aylien_text_api/client/extract_with_value_as_valid_url.yml
283
+ - spec/fixtures/aylien_text_api/client/hashtags_with_invalid_client.yml
284
+ - spec/fixtures/aylien_text_api/client/hashtags_with_invalid_params.yml
285
+ - spec/fixtures/aylien_text_api/client/hashtags_with_text.yml
286
+ - spec/fixtures/aylien_text_api/client/hashtags_with_unauthenticated_client.yml
287
+ - spec/fixtures/aylien_text_api/client/hashtags_with_valid_url.yml
288
+ - spec/fixtures/aylien_text_api/client/hashtags_with_value_as_text.yml
289
+ - spec/fixtures/aylien_text_api/client/hashtags_with_value_as_valid_url.yml
290
+ - spec/fixtures/aylien_text_api/client/image_tags_with_invalid_client.yml
291
+ - spec/fixtures/aylien_text_api/client/image_tags_with_invalid_params.yml
292
+ - spec/fixtures/aylien_text_api/client/image_tags_with_unauthenticated_client.yml
293
+ - spec/fixtures/aylien_text_api/client/image_tags_with_valid_url.yml
294
+ - spec/fixtures/aylien_text_api/client/image_tags_with_value_as_text.yml
295
+ - spec/fixtures/aylien_text_api/client/image_tags_with_value_as_valid_url.yml
296
+ - spec/fixtures/aylien_text_api/client/language_with_invalid_client.yml
297
+ - spec/fixtures/aylien_text_api/client/language_with_invalid_params.yml
298
+ - spec/fixtures/aylien_text_api/client/language_with_unauthenticated_client.yml
299
+ - spec/fixtures/aylien_text_api/client/language_with_valid_text.yml
300
+ - spec/fixtures/aylien_text_api/client/language_with_valid_url.yml
301
+ - spec/fixtures/aylien_text_api/client/language_with_value_as_text.yml
302
+ - spec/fixtures/aylien_text_api/client/language_with_value_as_valid_url.yml
303
+ - spec/fixtures/aylien_text_api/client/rate_limits.yml
304
+ - spec/fixtures/aylien_text_api/client/rate_limits_with_invalid_client.yml
305
+ - spec/fixtures/aylien_text_api/client/rate_limits_with_unauthenticated_client.yml
306
+ - spec/fixtures/aylien_text_api/client/sentiment_with_invalid_client.yml
307
+ - spec/fixtures/aylien_text_api/client/sentiment_with_invalid_params.yml
308
+ - spec/fixtures/aylien_text_api/client/sentiment_with_text.yml
309
+ - spec/fixtures/aylien_text_api/client/sentiment_with_unauthenticated_client.yml
310
+ - spec/fixtures/aylien_text_api/client/sentiment_with_valid_url.yml
311
+ - spec/fixtures/aylien_text_api/client/sentiment_with_value_as_text.yml
312
+ - spec/fixtures/aylien_text_api/client/sentiment_with_value_as_valid_url.yml
313
+ - spec/fixtures/aylien_text_api/client/summarize_with_invalid_client.yml
314
+ - spec/fixtures/aylien_text_api/client/summarize_with_invalid_params.yml
315
+ - spec/fixtures/aylien_text_api/client/summarize_with_title_and_text.yml
316
+ - spec/fixtures/aylien_text_api/client/summarize_with_unauthenticated_client.yml
317
+ - spec/fixtures/aylien_text_api/client/summarize_with_valid_url.yml
318
+ - spec/fixtures/aylien_text_api/client/summarize_with_value_as_text_and_title.yml
319
+ - spec/fixtures/aylien_text_api/client/summarize_with_value_as_text_and_without_title.yml
320
+ - spec/fixtures/aylien_text_api/client/summarize_with_value_as_valid_url.yml
321
+ - spec/lib/aylien_text_api/absa.rb
322
+ - spec/lib/aylien_text_api/classify.rb
323
+ - spec/lib/aylien_text_api/classify_by_taxonomy.rb
324
+ - spec/lib/aylien_text_api/client_spec.rb
325
+ - spec/lib/aylien_text_api/combined.rb
326
+ - spec/lib/aylien_text_api/concepts.rb
327
+ - spec/lib/aylien_text_api/elsa.rb
328
+ - spec/lib/aylien_text_api/entities.rb
329
+ - spec/lib/aylien_text_api/extract.rb
330
+ - spec/lib/aylien_text_api/hashtags.rb
331
+ - spec/lib/aylien_text_api/image_tags.rb
332
+ - spec/lib/aylien_text_api/language.rb
333
+ - spec/lib/aylien_text_api/rate_limits.rb
334
+ - spec/lib/aylien_text_api/sentiment.rb
335
+ - spec/lib/aylien_text_api/summarize.rb
336
+ - spec/spec_helper.rb