aylien_text_api 0.5.1 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (119) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +2 -2
  3. data/LICENSE +1 -1
  4. data/aylien_text_api.gemspec +2 -2
  5. data/lib/aylien_text_api.rb +1 -1
  6. data/lib/aylien_text_api/client.rb +59 -15
  7. data/lib/aylien_text_api/configuration.rb +3 -2
  8. data/lib/aylien_text_api/connection.rb +1 -1
  9. data/lib/aylien_text_api/error.rb +1 -1
  10. data/lib/aylien_text_api/version.rb +2 -2
  11. data/spec/fixtures/aylien_text_api/client/absa_with_invalid_client.yml +38 -0
  12. data/spec/fixtures/aylien_text_api/client/absa_with_invalid_params.yml +57 -0
  13. data/spec/fixtures/aylien_text_api/client/absa_with_text.yml +229 -0
  14. data/spec/fixtures/aylien_text_api/client/absa_with_unauthenticated_client.yml +42 -0
  15. data/spec/fixtures/aylien_text_api/client/absa_with_valid_url.yml +407 -0
  16. data/spec/fixtures/aylien_text_api/client/absa_with_value_as_text.yml +229 -0
  17. data/spec/fixtures/aylien_text_api/client/absa_with_value_as_valid_url.yml +407 -0
  18. data/spec/fixtures/aylien_text_api/client/classify_by_taxonomy_with_invalid_client.yml +3 -3
  19. data/spec/fixtures/aylien_text_api/client/classify_by_taxonomy_with_invalid_params.yml +5 -5
  20. data/spec/fixtures/aylien_text_api/client/classify_by_taxonomy_with_invalid_taxonomy.yml +5 -5
  21. data/spec/fixtures/aylien_text_api/client/classify_by_taxonomy_with_text.yml +5 -5
  22. data/spec/fixtures/aylien_text_api/client/classify_by_taxonomy_with_unauthenticated_client.yml +3 -3
  23. data/spec/fixtures/aylien_text_api/client/classify_by_taxonomy_with_valid_url.yml +100 -100
  24. data/spec/fixtures/aylien_text_api/client/classify_by_taxonomy_with_value_as_text.yml +5 -5
  25. data/spec/fixtures/aylien_text_api/client/classify_by_taxonomy_with_value_as_valid_url.yml +100 -100
  26. data/spec/fixtures/aylien_text_api/client/classify_with_invalid_client.yml +3 -3
  27. data/spec/fixtures/aylien_text_api/client/classify_with_invalid_params.yml +6 -6
  28. data/spec/fixtures/aylien_text_api/client/classify_with_text.yml +5 -5
  29. data/spec/fixtures/aylien_text_api/client/classify_with_unauthenticated_client.yml +3 -3
  30. data/spec/fixtures/aylien_text_api/client/classify_with_valid_url.yml +90 -90
  31. data/spec/fixtures/aylien_text_api/client/classify_with_value_as_text.yml +5 -5
  32. data/spec/fixtures/aylien_text_api/client/classify_with_value_as_valid_url.yml +90 -90
  33. data/spec/fixtures/aylien_text_api/client/combined_with_invalid_client.yml +3 -3
  34. data/spec/fixtures/aylien_text_api/client/combined_with_invalid_params.yml +5 -5
  35. data/spec/fixtures/aylien_text_api/client/combined_with_text.yml +9 -9
  36. data/spec/fixtures/aylien_text_api/client/combined_with_unauthenticated_client.yml +3 -3
  37. data/spec/fixtures/aylien_text_api/client/combined_with_valid_url.yml +259 -255
  38. data/spec/fixtures/aylien_text_api/client/combined_with_value_as_text.yml +9 -9
  39. data/spec/fixtures/aylien_text_api/client/combined_with_value_as_valid_url.yml +259 -255
  40. data/spec/fixtures/aylien_text_api/client/concepts_with_invalid_client.yml +3 -3
  41. data/spec/fixtures/aylien_text_api/client/concepts_with_invalid_params.yml +5 -5
  42. data/spec/fixtures/aylien_text_api/client/concepts_with_text.yml +10 -10
  43. data/spec/fixtures/aylien_text_api/client/concepts_with_unauthenticated_client.yml +3 -3
  44. data/spec/fixtures/aylien_text_api/client/concepts_with_valid_url.yml +25 -85
  45. data/spec/fixtures/aylien_text_api/client/concepts_with_value_as_text.yml +10 -10
  46. data/spec/fixtures/aylien_text_api/client/concepts_with_value_as_valid_url.yml +25 -85
  47. data/spec/fixtures/aylien_text_api/client/entities_with_invalid_client.yml +3 -3
  48. data/spec/fixtures/aylien_text_api/client/entities_with_invalid_params.yml +5 -5
  49. data/spec/fixtures/aylien_text_api/client/entities_with_text.yml +5 -5
  50. data/spec/fixtures/aylien_text_api/client/entities_with_unauthenticated_client.yml +3 -3
  51. data/spec/fixtures/aylien_text_api/client/entities_with_valid_url.yml +5 -5
  52. data/spec/fixtures/aylien_text_api/client/entities_with_value_as_text.yml +5 -5
  53. data/spec/fixtures/aylien_text_api/client/entities_with_value_as_valid_url.yml +5 -5
  54. data/spec/fixtures/aylien_text_api/client/extract_with_invalid_client.yml +3 -3
  55. data/spec/fixtures/aylien_text_api/client/extract_with_invalid_params.yml +6 -6
  56. data/spec/fixtures/aylien_text_api/client/extract_with_unauthenticated_client.yml +3 -3
  57. data/spec/fixtures/aylien_text_api/client/extract_with_valid_url.yml +255 -255
  58. data/spec/fixtures/aylien_text_api/client/extract_with_value_as_text.yml +5 -5
  59. data/spec/fixtures/aylien_text_api/client/extract_with_value_as_valid_url.yml +255 -255
  60. data/spec/fixtures/aylien_text_api/client/hashtags_with_invalid_client.yml +3 -3
  61. data/spec/fixtures/aylien_text_api/client/hashtags_with_invalid_params.yml +5 -5
  62. data/spec/fixtures/aylien_text_api/client/hashtags_with_text.yml +5 -5
  63. data/spec/fixtures/aylien_text_api/client/hashtags_with_unauthenticated_client.yml +3 -3
  64. data/spec/fixtures/aylien_text_api/client/hashtags_with_valid_url.yml +13 -42
  65. data/spec/fixtures/aylien_text_api/client/hashtags_with_value_as_text.yml +5 -5
  66. data/spec/fixtures/aylien_text_api/client/hashtags_with_value_as_valid_url.yml +13 -42
  67. data/spec/fixtures/aylien_text_api/client/image_tags_with_invalid_client.yml +3 -3
  68. data/spec/fixtures/aylien_text_api/client/image_tags_with_invalid_params.yml +6 -6
  69. data/spec/fixtures/aylien_text_api/client/image_tags_with_unauthenticated_client.yml +3 -3
  70. data/spec/fixtures/aylien_text_api/client/image_tags_with_valid_url.yml +8 -8
  71. data/spec/fixtures/aylien_text_api/client/image_tags_with_value_as_text.yml +5 -5
  72. data/spec/fixtures/aylien_text_api/client/image_tags_with_value_as_valid_url.yml +8 -8
  73. data/spec/fixtures/aylien_text_api/client/language_with_invalid_client.yml +3 -3
  74. data/spec/fixtures/aylien_text_api/client/language_with_invalid_params.yml +5 -5
  75. data/spec/fixtures/aylien_text_api/client/language_with_unauthenticated_client.yml +3 -3
  76. data/spec/fixtures/aylien_text_api/client/language_with_valid_text.yml +6 -6
  77. data/spec/fixtures/aylien_text_api/client/language_with_valid_url.yml +13 -37
  78. data/spec/fixtures/aylien_text_api/client/language_with_value_as_text.yml +6 -6
  79. data/spec/fixtures/aylien_text_api/client/language_with_value_as_valid_url.yml +13 -37
  80. data/spec/fixtures/aylien_text_api/client/microformats_with_invalid_client.yml +3 -3
  81. data/spec/fixtures/aylien_text_api/client/microformats_with_invalid_params.yml +5 -5
  82. data/spec/fixtures/aylien_text_api/client/microformats_with_unauthenticated_client.yml +3 -3
  83. data/spec/fixtures/aylien_text_api/client/microformats_with_valid_url.yml +6 -6
  84. data/spec/fixtures/aylien_text_api/client/microformats_with_value_as_valid_url.yml +6 -6
  85. data/spec/fixtures/aylien_text_api/client/rate_limits.yml +6 -6
  86. data/spec/fixtures/aylien_text_api/client/rate_limits_with_invalid_client.yml +3 -3
  87. data/spec/fixtures/aylien_text_api/client/rate_limits_with_unauthenticated_client.yml +3 -3
  88. data/spec/fixtures/aylien_text_api/client/related_with_invalid_client.yml +3 -3
  89. data/spec/fixtures/aylien_text_api/client/related_with_invalid_params.yml +6 -6
  90. data/spec/fixtures/aylien_text_api/client/related_with_phrase.yml +5 -5
  91. data/spec/fixtures/aylien_text_api/client/related_with_unauthenticated_client.yml +3 -3
  92. data/spec/fixtures/aylien_text_api/client/related_with_value_as_phrase.yml +5 -5
  93. data/spec/fixtures/aylien_text_api/client/related_with_value_as_valid_url.yml +5 -5
  94. data/spec/fixtures/aylien_text_api/client/sentiment_with_invalid_client.yml +3 -3
  95. data/spec/fixtures/aylien_text_api/client/sentiment_with_invalid_params.yml +5 -5
  96. data/spec/fixtures/aylien_text_api/client/sentiment_with_text.yml +5 -5
  97. data/spec/fixtures/aylien_text_api/client/sentiment_with_unauthenticated_client.yml +3 -3
  98. data/spec/fixtures/aylien_text_api/client/sentiment_with_valid_url.yml +15 -40
  99. data/spec/fixtures/aylien_text_api/client/sentiment_with_value_as_text.yml +5 -5
  100. data/spec/fixtures/aylien_text_api/client/sentiment_with_value_as_valid_url.yml +15 -40
  101. data/spec/fixtures/aylien_text_api/client/summarize_with_invalid_client.yml +3 -3
  102. data/spec/fixtures/aylien_text_api/client/summarize_with_invalid_params.yml +5 -5
  103. data/spec/fixtures/aylien_text_api/client/summarize_with_title_and_text.yml +5 -5
  104. data/spec/fixtures/aylien_text_api/client/summarize_with_unauthenticated_client.yml +3 -3
  105. data/spec/fixtures/aylien_text_api/client/summarize_with_valid_url.yml +12 -52
  106. data/spec/fixtures/aylien_text_api/client/summarize_with_value_as_text_and_title.yml +5 -5
  107. data/spec/fixtures/aylien_text_api/client/summarize_with_value_as_text_and_without_title.yml +5 -5
  108. data/spec/fixtures/aylien_text_api/client/summarize_with_value_as_valid_url.yml +12 -52
  109. data/spec/fixtures/aylien_text_api/client/unsupervised_classify_with_invalid_client.yml +3 -3
  110. data/spec/fixtures/aylien_text_api/client/unsupervised_classify_with_invalid_params.yml +5 -5
  111. data/spec/fixtures/aylien_text_api/client/unsupervised_classify_with_text.yml +5 -5
  112. data/spec/fixtures/aylien_text_api/client/unsupervised_classify_with_unauthenticated_client.yml +3 -3
  113. data/spec/fixtures/aylien_text_api/client/unsupervised_classify_with_valid_url.yml +42 -42
  114. data/spec/fixtures/aylien_text_api/client/unsupervised_classify_with_value_as_text.yml +5 -5
  115. data/spec/fixtures/aylien_text_api/client/unsupervised_classify_with_value_as_valid_url.yml +42 -42
  116. data/spec/lib/aylien_text_api/absa.rb +102 -0
  117. data/spec/lib/aylien_text_api/classify.rb +1 -1
  118. data/spec/lib/aylien_text_api/client_spec.rb +1 -0
  119. metadata +21 -6
@@ -12,7 +12,7 @@ http_interactions:
12
12
  Accept:
13
13
  - "*/*"
14
14
  User-Agent:
15
- - Aylien Text API Ruby Gem 0.4.0
15
+ - Aylien Text API Ruby Gem 0.6.0
16
16
  Content-Type:
17
17
  - application/x-www-form-urlencoded
18
18
  X-Aylien-Textapi-Application-Id:
@@ -27,54 +27,29 @@ http_interactions:
27
27
  Server:
28
28
  - openresty/1.9.3.2
29
29
  Date:
30
- - Fri, 22 Jan 2016 13:17:25 GMT
30
+ - Thu, 28 Apr 2016 10:36:51 GMT
31
31
  Content-Type:
32
32
  - application/json;charset=UTF-8
33
33
  Content-Length:
34
- - '1422'
34
+ - '1353'
35
35
  Connection:
36
36
  - keep-alive
37
37
  X-Ratelimit-Limit:
38
38
  - '207000'
39
39
  X-Ratelimit-Remaining:
40
- - '206402'
40
+ - '174053'
41
41
  X-Ratelimit-Reset:
42
- - '1453507200'
42
+ - '1461888000'
43
43
  body:
44
- encoding: ASCII-8BIT
45
- string: !binary |-
46
- ewogICJwb2xhcml0eSI6ICJuZXV0cmFsIiwKICAic3ViamVjdGl2aXR5Ijog
47
- InN1YmplY3RpdmUiLAogICJ0ZXh0IjogIkxpb25lbCBNZXNzaTogRm9yd2Fy
48
- ZCBpcyBub3QgZm9yIHNhbGUsIHNheXMgQmFyY2Vsb25hIHByZXNpZGVudFxu
49
- XG5CYXJjZWxvbmEgZm9yd2FyZCBMaW9uZWwgTWVzc2kgaXMgbm90IGZvciBz
50
- YWxlIGFuZCB0aGUgY2x1YiBwbGFuIHRvIGRpc2N1c3MgYSBuZXcgY29udHJh
51
- Y3Qgd2l0aCB0aGUgQXJnZW50aW5lLCBzYXlzIHByZXNpZGVudCBKb3NlcCBN
52
- YXJpYSBCYXJ0b21ldS5cblxuRm91ci10aW1lIEJhbGxvbiBkJ09yIHdpbm5l
53
- ciBNZXNzaSwgMjYsIGlzIHJlcG9ydGVkIHRvIGJlIGEgdGFyZ2V0IGZvciBG
54
- cmVuY2ggc2lkZSBQYXJpcyBTdC1HZXJtYWluLlxuXG5JbiBhbiBpbnRlcnZp
55
- ZXcgd2l0aCByYWRpbyBzdGF0aW9uIFJBQzEsIHBvc3RlZCBvbiBCYXJjZWxv
56
- b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lciB0aGUgYmFsbC5cblxuXCJIZSBzZWVzIHBhc3NlcyB0aGF0
73
- IG1vc3QgcGVvcGxlIGNhbiBvbmx5IHNlZSB3aGlsc3Qgd2F0Y2hpbmcgdGhl
74
- IGdhbWUgb24gVFYgb3IgaW4gdGhlIHN0YW5kcywgbm90IG9uZXMgdGhhdCB5
75
- b3UgY2FuIG5vcm1hbGx5IHNlZSBvbiB0aGUgZmllbGQuXCIiLAogICJwb2xh
76
- cml0eV9jb25maWRlbmNlIjogMC45OTkwNjc3Njk5MTE4MDA4LAogICJzdWJq
77
- ZWN0aXZpdHlfY29uZmlkZW5jZSI6IDEuMAp9
44
+ encoding: UTF-8
45
+ string: |-
46
+ {
47
+ "polarity": "neutral",
48
+ "subjectivity": "subjective",
49
+ "text": "Barcelona forward Lionel Messi is not for sale and the club plan to discuss a new contract with the Argentine, says president Josep Maria Bartomeu.\n\nFour-time Ballon d'Or winner Messi, 26, is reported to be a target for French side Paris St-Germain.\n\nIn an interview with radio station RAC1, posted on Barcelona's website, Bartomeu said: \"The club will sit down and negotiate a new contract.\n\n\"We will do what we have to, to ensure he's the best-paid player.\"\n\nMessi scored 60 goals in 50 appearances last season but has struggled to match that goalscoring form in 2013-14.\n\nHe has scored 18 goals so far but just eight of those have been in the league.\n\nHis last league goal came in September, before he was out for five weeks with a hamstring injury.\n\n\"He can do everything,\" said Barca coach Gerardo Martino. \"If he succeeds in other facets of his game, it doesn't matter if he scores.\n\n\"Nothing surprises me with him. He controls the game well, passes the ball well, he is a good finisher, he can press and recover the ball.\n\n\"He sees passes that most people can only see whilst watching the game on TV or in the stands, not ones that you can normally see on the field.\"",
50
+ "polarity_confidence": 0.9997059056004345,
51
+ "subjectivity_confidence": 1.0
52
+ }
78
53
  http_version:
79
- recorded_at: Fri, 22 Jan 2016 13:17:25 GMT
54
+ recorded_at: Thu, 28 Apr 2016 10:36:51 GMT
80
55
  recorded_with: VCR 2.9.3
@@ -12,7 +12,7 @@ http_interactions:
12
12
  Accept:
13
13
  - "*/*"
14
14
  User-Agent:
15
- - Aylien Text API Ruby Gem 0.4.0
15
+ - Aylien Text API Ruby Gem 0.6.0
16
16
  Content-Type:
17
17
  - application/x-www-form-urlencoded
18
18
  X-Aylien-Textapi-Application-Id:
@@ -27,7 +27,7 @@ http_interactions:
27
27
  Server:
28
28
  - openresty/1.9.3.2
29
29
  Date:
30
- - Fri, 22 Jan 2016 13:17:25 GMT
30
+ - Thu, 28 Apr 2016 10:36:57 GMT
31
31
  Content-Type:
32
32
  - application/json;charset=UTF-8
33
33
  Content-Length:
@@ -37,9 +37,9 @@ http_interactions:
37
37
  X-Ratelimit-Limit:
38
38
  - '207000'
39
39
  X-Ratelimit-Remaining:
40
- - '206401'
40
+ - '174037'
41
41
  X-Ratelimit-Reset:
42
- - '1453507200'
42
+ - '1461888000'
43
43
  body:
44
44
  encoding: UTF-8
45
45
  string: |-
@@ -51,5 +51,5 @@ http_interactions:
51
51
  "subjectivity_confidence": 1.0
52
52
  }
53
53
  http_version:
54
- recorded_at: Fri, 22 Jan 2016 13:17:25 GMT
54
+ recorded_at: Thu, 28 Apr 2016 10:36:57 GMT
55
55
  recorded_with: VCR 2.9.3
@@ -12,7 +12,7 @@ http_interactions:
12
12
  Accept:
13
13
  - "*/*"
14
14
  User-Agent:
15
- - Aylien Text API Ruby Gem 0.4.0
15
+ - Aylien Text API Ruby Gem 0.6.0
16
16
  Content-Type:
17
17
  - application/x-www-form-urlencoded
18
18
  X-Aylien-Textapi-Application-Id:
@@ -27,54 +27,29 @@ http_interactions:
27
27
  Server:
28
28
  - openresty/1.9.3.2
29
29
  Date:
30
- - Fri, 22 Jan 2016 13:17:22 GMT
30
+ - Thu, 28 Apr 2016 10:36:54 GMT
31
31
  Content-Type:
32
32
  - application/json;charset=UTF-8
33
33
  Content-Length:
34
- - '1422'
34
+ - '1353'
35
35
  Connection:
36
36
  - keep-alive
37
37
  X-Ratelimit-Limit:
38
38
  - '207000'
39
39
  X-Ratelimit-Remaining:
40
- - '206403'
40
+ - '174052'
41
41
  X-Ratelimit-Reset:
42
- - '1453507200'
42
+ - '1461888000'
43
43
  body:
44
- encoding: ASCII-8BIT
45
- string: !binary |-
46
- ewogICJwb2xhcml0eSI6ICJuZXV0cmFsIiwKICAic3ViamVjdGl2aXR5Ijog
47
- InN1YmplY3RpdmUiLAogICJ0ZXh0IjogIkxpb25lbCBNZXNzaTogRm9yd2Fy
48
- ZCBpcyBub3QgZm9yIHNhbGUsIHNheXMgQmFyY2Vsb25hIHByZXNpZGVudFxu
49
- XG5CYXJjZWxvbmEgZm9yd2FyZCBMaW9uZWwgTWVzc2kgaXMgbm90IGZvciBz
50
- YWxlIGFuZCB0aGUgY2x1YiBwbGFuIHRvIGRpc2N1c3MgYSBuZXcgY29udHJh
51
- Y3Qgd2l0aCB0aGUgQXJnZW50aW5lLCBzYXlzIHByZXNpZGVudCBKb3NlcCBN
52
- YXJpYSBCYXJ0b21ldS5cblxuRm91ci10aW1lIEJhbGxvbiBkJ09yIHdpbm5l
53
- ciBNZXNzaSwgMjYsIGlzIHJlcG9ydGVkIHRvIGJlIGEgdGFyZ2V0IGZvciBG
54
- cmVuY2ggc2lkZSBQYXJpcyBTdC1HZXJtYWluLlxuXG5JbiBhbiBpbnRlcnZp
55
- ZXcgd2l0aCByYWRpbyBzdGF0aW9uIFJBQzEsIHBvc3RlZCBvbiBCYXJjZWxv
56
- bmEncyB3ZWJzaXRlLMKgIEJhcnRvbWV1IHNhaWQ6IFwiVGhlIGNsdWIgd2ls
57
- bCBzaXQgZG93biBhbmQgbmVnb3RpYXRlIGEgbmV3IGNvbnRyYWN0LlxuXG5c
58
- IldlIHdpbGwgZG8gd2hhdCB3ZSBoYXZlIHRvLCB0byBlbnN1cmUgaGUncyB0
59
- aGUgYmVzdC1wYWlkIHBsYXllci5cIlxuXG5NZXNzaSBzY29yZWQgNjAgZ29h
60
- bHMgaW4gNTAgYXBwZWFyYW5jZXMgbGFzdCBzZWFzb24gYnV0IGhhcyBzdHJ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fY29uZmlkZW5jZSI6IDEuMAp9
44
+ encoding: UTF-8
45
+ string: |-
46
+ {
47
+ "polarity": "neutral",
48
+ "subjectivity": "subjective",
49
+ "text": "Barcelona forward Lionel Messi is not for sale and the club plan to discuss a new contract with the Argentine, says president Josep Maria Bartomeu.\n\nFour-time Ballon d'Or winner Messi, 26, is reported to be a target for French side Paris St-Germain.\n\nIn an interview with radio station RAC1, posted on Barcelona's website, Bartomeu said: \"The club will sit down and negotiate a new contract.\n\n\"We will do what we have to, to ensure he's the best-paid player.\"\n\nMessi scored 60 goals in 50 appearances last season but has struggled to match that goalscoring form in 2013-14.\n\nHe has scored 18 goals so far but just eight of those have been in the league.\n\nHis last league goal came in September, before he was out for five weeks with a hamstring injury.\n\n\"He can do everything,\" said Barca coach Gerardo Martino. \"If he succeeds in other facets of his game, it doesn't matter if he scores.\n\n\"Nothing surprises me with him. He controls the game well, passes the ball well, he is a good finisher, he can press and recover the ball.\n\n\"He sees passes that most people can only see whilst watching the game on TV or in the stands, not ones that you can normally see on the field.\"",
50
+ "polarity_confidence": 0.9997059056004345,
51
+ "subjectivity_confidence": 1.0
52
+ }
78
53
  http_version:
79
- recorded_at: Fri, 22 Jan 2016 13:17:22 GMT
54
+ recorded_at: Thu, 28 Apr 2016 10:36:54 GMT
80
55
  recorded_with: VCR 2.9.3
@@ -12,7 +12,7 @@ http_interactions:
12
12
  Accept:
13
13
  - "*/*"
14
14
  User-Agent:
15
- - Aylien Text API Ruby Gem 0.4.0
15
+ - Aylien Text API Ruby Gem 0.6.0
16
16
  Content-Type:
17
17
  - application/x-www-form-urlencoded
18
18
  response:
@@ -23,7 +23,7 @@ http_interactions:
23
23
  Server:
24
24
  - openresty/1.9.3.2
25
25
  Date:
26
- - Fri, 22 Jan 2016 13:17:12 GMT
26
+ - Thu, 28 Apr 2016 10:36:12 GMT
27
27
  Content-Type:
28
28
  - text/plain; charset=us-ascii
29
29
  Transfer-Encoding:
@@ -34,5 +34,5 @@ http_interactions:
34
34
  encoding: UTF-8
35
35
  string: Authentication parameters missing
36
36
  http_version:
37
- recorded_at: Fri, 22 Jan 2016 13:17:12 GMT
37
+ recorded_at: Thu, 28 Apr 2016 10:36:12 GMT
38
38
  recorded_with: VCR 2.9.3
@@ -12,7 +12,7 @@ http_interactions:
12
12
  Accept:
13
13
  - "*/*"
14
14
  User-Agent:
15
- - Aylien Text API Ruby Gem 0.4.0
15
+ - Aylien Text API Ruby Gem 0.6.0
16
16
  Content-Type:
17
17
  - application/x-www-form-urlencoded
18
18
  X-Aylien-Textapi-Application-Id:
@@ -27,7 +27,7 @@ http_interactions:
27
27
  Server:
28
28
  - openresty/1.9.3.2
29
29
  Date:
30
- - Fri, 22 Jan 2016 13:17:13 GMT
30
+ - Thu, 28 Apr 2016 10:36:10 GMT
31
31
  Content-Type:
32
32
  - application/json;charset=UTF-8
33
33
  Content-Length:
@@ -37,9 +37,9 @@ http_interactions:
37
37
  X-Ratelimit-Limit:
38
38
  - '207000'
39
39
  X-Ratelimit-Remaining:
40
- - '206411'
40
+ - '174156'
41
41
  X-Ratelimit-Reset:
42
- - '1453507200'
42
+ - '1461888000'
43
43
  body:
44
44
  encoding: UTF-8
45
45
  string: |-
@@ -58,5 +58,5 @@ http_interactions:
58
58
  }]
59
59
  }
60
60
  http_version:
61
- recorded_at: Fri, 22 Jan 2016 13:17:13 GMT
61
+ recorded_at: Thu, 28 Apr 2016 10:36:10 GMT
62
62
  recorded_with: VCR 2.9.3
@@ -12,7 +12,7 @@ http_interactions:
12
12
  Accept:
13
13
  - "*/*"
14
14
  User-Agent:
15
- - Aylien Text API Ruby Gem 0.4.0
15
+ - Aylien Text API Ruby Gem 0.6.0
16
16
  Content-Type:
17
17
  - application/x-www-form-urlencoded
18
18
  X-Aylien-Textapi-Application-Id:
@@ -27,7 +27,7 @@ http_interactions:
27
27
  Server:
28
28
  - openresty/1.9.3.2
29
29
  Date:
30
- - Fri, 22 Jan 2016 13:17:14 GMT
30
+ - Thu, 28 Apr 2016 10:36:09 GMT
31
31
  Content-Type:
32
32
  - application/json;charset=UTF-8
33
33
  Content-Length:
@@ -37,9 +37,9 @@ http_interactions:
37
37
  X-Ratelimit-Limit:
38
38
  - '207000'
39
39
  X-Ratelimit-Remaining:
40
- - '206409'
40
+ - '174157'
41
41
  X-Ratelimit-Reset:
42
- - '1453507200'
42
+ - '1461888000'
43
43
  body:
44
44
  encoding: UTF-8
45
45
  string: |-
@@ -48,5 +48,5 @@ http_interactions:
48
48
  "sentences": ["Batman has always been my favourite superhero ever since the first time I heard about him because he his human with no powers, also he is much more questionable than any other superhero.", "The story of the film is about Batman, Lieutenant James Gordon, and new district attorney Harvey Dent beginning to succeed in rounding up the criminals that plague Gotham City.", "There are now six Batman films and I must say that The Dark Knight is the best out of all of them.", "The cinematography is excellent which is made so dark & sinister that really did suit the mood for the film.", "Overall The Dark Knight is the kind of movie that will make the audience cheer in the end instead of throwing fruit & vegetables on the screen."]
49
49
  }
50
50
  http_version:
51
- recorded_at: Fri, 22 Jan 2016 13:17:14 GMT
51
+ recorded_at: Thu, 28 Apr 2016 10:36:09 GMT
52
52
  recorded_with: VCR 2.9.3
@@ -12,7 +12,7 @@ http_interactions:
12
12
  Accept:
13
13
  - "*/*"
14
14
  User-Agent:
15
- - Aylien Text API Ruby Gem 0.4.0
15
+ - Aylien Text API Ruby Gem 0.6.0
16
16
  Content-Type:
17
17
  - application/x-www-form-urlencoded
18
18
  X-Aylien-Textapi-Application-Id:
@@ -27,7 +27,7 @@ http_interactions:
27
27
  Server:
28
28
  - openresty/1.9.3.2
29
29
  Date:
30
- - Fri, 22 Jan 2016 13:17:13 GMT
30
+ - Thu, 28 Apr 2016 10:36:15 GMT
31
31
  Content-Type:
32
32
  - text/plain; charset=us-ascii
33
33
  Transfer-Encoding:
@@ -38,5 +38,5 @@ http_interactions:
38
38
  encoding: UTF-8
39
39
  string: Authentication failed
40
40
  http_version:
41
- recorded_at: Fri, 22 Jan 2016 13:17:13 GMT
41
+ recorded_at: Thu, 28 Apr 2016 10:36:15 GMT
42
42
  recorded_with: VCR 2.9.3
@@ -12,7 +12,7 @@ http_interactions:
12
12
  Accept:
13
13
  - "*/*"
14
14
  User-Agent:
15
- - Aylien Text API Ruby Gem 0.4.0
15
+ - Aylien Text API Ruby Gem 0.6.0
16
16
  Content-Type:
17
17
  - application/x-www-form-urlencoded
18
18
  X-Aylien-Textapi-Application-Id:
@@ -27,66 +27,26 @@ http_interactions:
27
27
  Server:
28
28
  - openresty/1.9.3.2
29
29
  Date:
30
- - Fri, 22 Jan 2016 13:17:16 GMT
30
+ - Thu, 28 Apr 2016 10:36:14 GMT
31
31
  Content-Type:
32
32
  - application/json;charset=UTF-8
33
33
  Content-Length:
34
- - '1960'
34
+ - '1822'
35
35
  Connection:
36
36
  - keep-alive
37
37
  X-Ratelimit-Limit:
38
38
  - '207000'
39
39
  X-Ratelimit-Remaining:
40
- - '206408'
40
+ - '174130'
41
41
  X-Ratelimit-Reset:
42
- - '1453507200'
42
+ - '1461888000'
43
43
  body:
44
- encoding: ASCII-8BIT
45
- string: !binary |-
46
- ewogICJ0ZXh0IjogIkxpb25lbCBNZXNzaTogRm9yd2FyZCBpcyBub3QgZm9y
47
- IHNhbGUsIHNheXMgQmFyY2Vsb25hIHByZXNpZGVudFxuXG5CYXJjZWxvbmEg
48
- Zm9yd2FyZCBMaW9uZWwgTWVzc2kgaXMgbm90IGZvciBzYWxlIGFuZCB0aGUg
49
- Y2x1YiBwbGFuIHRvIGRpc2N1c3MgYSBuZXcgY29udHJhY3Qgd2l0aCB0aGUg
50
- QXJnZW50aW5lLCBzYXlzIHByZXNpZGVudCBKb3NlcCBNYXJpYSBCYXJ0b21l
51
- dS5cblxuRm91ci10aW1lIEJhbGxvbiBkJ09yIHdpbm5lciBNZXNzaSwgMjYs
52
- IGlzIHJlcG9ydGVkIHRvIGJlIGEgdGFyZ2V0IGZvciBGcmVuY2ggc2lkZSBQ
53
- YXJpcyBTdC1HZXJtYWluLlxuXG5JbiBhbiBpbnR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BvZiBoaXMgZ2FtZSwgaXQgZG9lc24ndCBtYXR0ZXIgaWYgaGUgc2NvcmVz
87
- LiIsICJIZSBjb250cm9scyB0aGUgZ2FtZSB3ZWxsLCBwYXNzZXMgdGhlIGJh
88
- bGwgd2VsbCwgaGUgaXMgYSBnb29kIGZpbmlzaGVyLCBoZSBjYW4gcHJlc3Mg
89
- YW5kIHJlY292ZXIgdGhlIGJhbGwuIl0KfQ==
44
+ encoding: UTF-8
45
+ string: |-
46
+ {
47
+ "text": "Barcelona forward Lionel Messi is not for sale and the club plan to discuss a new contract with the Argentine, says president Josep Maria Bartomeu.\n\nFour-time Ballon d'Or winner Messi, 26, is reported to be a target for French side Paris St-Germain.\n\nIn an interview with radio station RAC1, posted on Barcelona's website, Bartomeu said: \"The club will sit down and negotiate a new contract.\n\n\"We will do what we have to, to ensure he's the best-paid player.\"\n\nMessi scored 60 goals in 50 appearances last season but has struggled to match that goalscoring form in 2013-14.\n\nHe has scored 18 goals so far but just eight of those have been in the league.\n\nHis last league goal came in September, before he was out for five weeks with a hamstring injury.\n\n\"He can do everything,\" said Barca coach Gerardo Martino. \"If he succeeds in other facets of his game, it doesn't matter if he scores.\n\n\"Nothing surprises me with him. He controls the game well, passes the ball well, he is a good finisher, he can press and recover the ball.\n\n\"He sees passes that most people can only see whilst watching the game on TV or in the stands, not ones that you can normally see on the field.\"",
48
+ "sentences": ["Barcelona forward Lionel Messi is not for sale and the club plan to discuss a new contract with the Argentine, says president Josep Maria Bartomeu.", "In an interview with radio station RAC1, posted on Barcelona's website, Bartomeu said: \"The club will sit down and negotiate a new contract.", "His last league goal came in September, before he was out for five weeks with a hamstring injury.", "\"If he succeeds in other facets of his game, it doesn't matter if he scores.", "He controls the game well, passes the ball well, he is a good finisher, he can press and recover the ball."]
49
+ }
90
50
  http_version:
91
- recorded_at: Fri, 22 Jan 2016 13:17:16 GMT
51
+ recorded_at: Thu, 28 Apr 2016 10:36:14 GMT
92
52
  recorded_with: VCR 2.9.3
@@ -12,7 +12,7 @@ http_interactions:
12
12
  Accept:
13
13
  - "*/*"
14
14
  User-Agent:
15
- - Aylien Text API Ruby Gem 0.4.0
15
+ - Aylien Text API Ruby Gem 0.6.0
16
16
  Content-Type:
17
17
  - application/x-www-form-urlencoded
18
18
  X-Aylien-Textapi-Application-Id:
@@ -27,7 +27,7 @@ http_interactions:
27
27
  Server:
28
28
  - openresty/1.9.3.2
29
29
  Date:
30
- - Fri, 22 Jan 2016 13:17:17 GMT
30
+ - Thu, 28 Apr 2016 10:36:11 GMT
31
31
  Content-Type:
32
32
  - application/json;charset=UTF-8
33
33
  Content-Length:
@@ -37,9 +37,9 @@ http_interactions:
37
37
  X-Ratelimit-Limit:
38
38
  - '207000'
39
39
  X-Ratelimit-Remaining:
40
- - '206407'
40
+ - '174133'
41
41
  X-Ratelimit-Reset:
42
- - '1453507200'
42
+ - '1461888000'
43
43
  body:
44
44
  encoding: UTF-8
45
45
  string: |-
@@ -48,5 +48,5 @@ http_interactions:
48
48
  "sentences": ["Batman has always been my favourite superhero ever since the first time I heard about him because he his human with no powers, also he is much more questionable than any other superhero.", "The story of the film is about Batman, Lieutenant James Gordon, and new district attorney Harvey Dent beginning to succeed in rounding up the criminals that plague Gotham City.", "There are now six Batman films and I must say that The Dark Knight is the best out of all of them.", "The cinematography is excellent which is made so dark & sinister that really did suit the mood for the film.", "Overall The Dark Knight is the kind of movie that will make the audience cheer in the end instead of throwing fruit & vegetables on the screen."]
49
49
  }
50
50
  http_version:
51
- recorded_at: Fri, 22 Jan 2016 13:17:17 GMT
51
+ recorded_at: Thu, 28 Apr 2016 10:36:11 GMT
52
52
  recorded_with: VCR 2.9.3
@@ -12,7 +12,7 @@ http_interactions:
12
12
  Accept:
13
13
  - "*/*"
14
14
  User-Agent:
15
- - Aylien Text API Ruby Gem 0.4.0
15
+ - Aylien Text API Ruby Gem 0.6.0
16
16
  Content-Type:
17
17
  - application/x-www-form-urlencoded
18
18
  X-Aylien-Textapi-Application-Id:
@@ -27,7 +27,7 @@ http_interactions:
27
27
  Server:
28
28
  - openresty/1.9.3.2
29
29
  Date:
30
- - Fri, 22 Jan 2016 13:17:14 GMT
30
+ - Thu, 28 Apr 2016 10:36:16 GMT
31
31
  Content-Type:
32
32
  - application/json;charset=UTF-8
33
33
  Content-Length:
@@ -37,9 +37,9 @@ http_interactions:
37
37
  X-Ratelimit-Limit:
38
38
  - '207000'
39
39
  X-Ratelimit-Remaining:
40
- - '206410'
40
+ - '174117'
41
41
  X-Ratelimit-Reset:
42
- - '1453507200'
42
+ - '1461888000'
43
43
  body:
44
44
  encoding: UTF-8
45
45
  string: |-
@@ -53,5 +53,5 @@ http_interactions:
53
53
  }]
54
54
  }
55
55
  http_version:
56
- recorded_at: Fri, 22 Jan 2016 13:17:14 GMT
56
+ recorded_at: Thu, 28 Apr 2016 10:36:16 GMT
57
57
  recorded_with: VCR 2.9.3