aylien_news_api 4.0.0 → 4.4.0
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 +4 -4
- data/docs/AggregatedSentiment.md +21 -0
- data/docs/DefaultApi.md +353 -1
- data/docs/Entity.md +13 -5
- data/docs/EntityLinks.md +6 -2
- data/docs/EntitySentiment.md +19 -0
- data/docs/EntitySurfaceForm.md +21 -0
- data/docs/ErrorLinks.md +3 -1
- data/docs/Logicals.md +21 -0
- data/docs/NestedEntity.md +33 -0
- data/docs/Parameter.md +127 -0
- data/docs/Query.md +31 -0
- data/docs/RelatedStories.md +5 -1
- data/docs/Stories.md +3 -1
- data/docs/Story.md +3 -1
- data/docs/TimeSeries.md +3 -1
- data/docs/Trend.md +3 -1
- data/docs/Warning.md +21 -0
- data/lib/aylien_news_api.rb +8 -0
- data/lib/aylien_news_api/api/default_api.rb +521 -2
- data/lib/aylien_news_api/models/aggregated_sentiment.rb +228 -0
- data/lib/aylien_news_api/models/entity.rb +68 -28
- data/lib/aylien_news_api/models/entity_links.rb +25 -5
- data/lib/aylien_news_api/models/entity_sentiment.rb +240 -0
- data/lib/aylien_news_api/models/entity_surface_form.rb +244 -0
- data/lib/aylien_news_api/models/error_links.rb +13 -4
- data/lib/aylien_news_api/models/logicals.rb +230 -0
- data/lib/aylien_news_api/models/nested_entity.rb +278 -0
- data/lib/aylien_news_api/models/parameter.rb +701 -0
- data/lib/aylien_news_api/models/query.rb +271 -0
- data/lib/aylien_news_api/models/related_stories.rb +24 -4
- data/lib/aylien_news_api/models/stories.rb +16 -4
- data/lib/aylien_news_api/models/story.rb +14 -4
- data/lib/aylien_news_api/models/time_series.rb +13 -4
- data/lib/aylien_news_api/models/trend.rb +13 -4
- data/lib/aylien_news_api/models/warning.rb +226 -0
- data/lib/aylien_news_api/version.rb +1 -1
- data/spec/api/default_api_spec.rb +145 -0
- data/spec/models/aggregated_sentiment_spec.rb +53 -0
- data/spec/models/entity_links_spec.rb +12 -0
- data/spec/models/entity_sentiment_spec.rb +47 -0
- data/spec/models/entity_spec.rb +26 -2
- data/spec/models/entity_surface_form_spec.rb +53 -0
- data/spec/models/error_links_spec.rb +6 -0
- data/spec/models/logicals_spec.rb +53 -0
- data/spec/models/nested_entity_spec.rb +89 -0
- data/spec/models/parameter_spec.rb +371 -0
- data/spec/models/query_spec.rb +83 -0
- data/spec/models/related_stories_spec.rb +12 -0
- data/spec/models/stories_spec.rb +6 -0
- data/spec/models/story_spec.rb +6 -0
- data/spec/models/time_series_spec.rb +6 -0
- data/spec/models/trend_spec.rb +6 -0
- data/spec/models/warning_spec.rb +53 -0
- metadata +34 -2
@@ -0,0 +1,83 @@
|
|
1
|
+
=begin
|
2
|
+
#AYLIEN News API
|
3
|
+
|
4
|
+
#The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 3.0
|
7
|
+
Contact: support@aylien.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for AylienNewsApi::Query
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'Query' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = AylienNewsApi::Query.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of Query' do
|
31
|
+
it 'should create an instance of Query' do
|
32
|
+
expect(@instance).to be_instance_of(AylienNewsApi::Query)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "eq"' do
|
36
|
+
it 'should work' do
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
describe 'test attribute "text"' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
describe 'test attribute "_in"' do
|
48
|
+
it 'should work' do
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
describe 'test attribute "gt"' do
|
54
|
+
it 'should work' do
|
55
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
describe 'test attribute "gte"' do
|
60
|
+
it 'should work' do
|
61
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
describe 'test attribute "lt"' do
|
66
|
+
it 'should work' do
|
67
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
describe 'test attribute "lte"' do
|
72
|
+
it 'should work' do
|
73
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
77
|
+
describe 'test attribute "boost"' do
|
78
|
+
it 'should work' do
|
79
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
83
|
+
end
|
@@ -56,4 +56,16 @@ describe 'RelatedStories' do
|
|
56
56
|
end
|
57
57
|
end
|
58
58
|
|
59
|
+
describe 'test attribute "published_at_end"' do
|
60
|
+
it 'should work' do
|
61
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
describe 'test attribute "published_at_start"' do
|
66
|
+
it 'should work' do
|
67
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
59
71
|
end
|
data/spec/models/stories_spec.rb
CHANGED
data/spec/models/story_spec.rb
CHANGED
data/spec/models/trend_spec.rb
CHANGED
@@ -0,0 +1,53 @@
|
|
1
|
+
=begin
|
2
|
+
#AYLIEN News API
|
3
|
+
|
4
|
+
#The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 3.0
|
7
|
+
Contact: support@aylien.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for AylienNewsApi::Warning
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'Warning' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = AylienNewsApi::Warning.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of Warning' do
|
31
|
+
it 'should create an instance of Warning' do
|
32
|
+
expect(@instance).to be_instance_of(AylienNewsApi::Warning)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "id"' do
|
36
|
+
it 'should work' do
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
describe 'test attribute "links"' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
describe 'test attribute "detail"' do
|
48
|
+
it 'should work' do
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aylien_news_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- AYLIEN
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-05-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -56,6 +56,7 @@ files:
|
|
56
56
|
- README.md
|
57
57
|
- Rakefile
|
58
58
|
- aylien_news_api.gemspec
|
59
|
+
- docs/AggregatedSentiment.md
|
59
60
|
- docs/Author.md
|
60
61
|
- docs/Autocomplete.md
|
61
62
|
- docs/Autocompletes.md
|
@@ -69,15 +70,21 @@ files:
|
|
69
70
|
- docs/Entities.md
|
70
71
|
- docs/Entity.md
|
71
72
|
- docs/EntityLinks.md
|
73
|
+
- docs/EntitySentiment.md
|
74
|
+
- docs/EntitySurfaceForm.md
|
72
75
|
- docs/Error.md
|
73
76
|
- docs/ErrorLinks.md
|
74
77
|
- docs/Errors.md
|
75
78
|
- docs/HistogramInterval.md
|
76
79
|
- docs/Histograms.md
|
77
80
|
- docs/Location.md
|
81
|
+
- docs/Logicals.md
|
78
82
|
- docs/Media.md
|
79
83
|
- docs/MediaFormat.md
|
80
84
|
- docs/MediaType.md
|
85
|
+
- docs/NestedEntity.md
|
86
|
+
- docs/Parameter.md
|
87
|
+
- docs/Query.md
|
81
88
|
- docs/Rank.md
|
82
89
|
- docs/Rankings.md
|
83
90
|
- docs/RelatedStories.md
|
@@ -102,12 +109,14 @@ files:
|
|
102
109
|
- docs/TimeSeriesList.md
|
103
110
|
- docs/Trend.md
|
104
111
|
- docs/Trends.md
|
112
|
+
- docs/Warning.md
|
105
113
|
- git_push.sh
|
106
114
|
- lib/aylien_news_api.rb
|
107
115
|
- lib/aylien_news_api/api/default_api.rb
|
108
116
|
- lib/aylien_news_api/api_client.rb
|
109
117
|
- lib/aylien_news_api/api_error.rb
|
110
118
|
- lib/aylien_news_api/configuration.rb
|
119
|
+
- lib/aylien_news_api/models/aggregated_sentiment.rb
|
111
120
|
- lib/aylien_news_api/models/author.rb
|
112
121
|
- lib/aylien_news_api/models/autocomplete.rb
|
113
122
|
- lib/aylien_news_api/models/autocompletes.rb
|
@@ -120,15 +129,21 @@ files:
|
|
120
129
|
- lib/aylien_news_api/models/entities.rb
|
121
130
|
- lib/aylien_news_api/models/entity.rb
|
122
131
|
- lib/aylien_news_api/models/entity_links.rb
|
132
|
+
- lib/aylien_news_api/models/entity_sentiment.rb
|
133
|
+
- lib/aylien_news_api/models/entity_surface_form.rb
|
123
134
|
- lib/aylien_news_api/models/error.rb
|
124
135
|
- lib/aylien_news_api/models/error_links.rb
|
125
136
|
- lib/aylien_news_api/models/errors.rb
|
126
137
|
- lib/aylien_news_api/models/histogram_interval.rb
|
127
138
|
- lib/aylien_news_api/models/histograms.rb
|
128
139
|
- lib/aylien_news_api/models/location.rb
|
140
|
+
- lib/aylien_news_api/models/logicals.rb
|
129
141
|
- lib/aylien_news_api/models/media.rb
|
130
142
|
- lib/aylien_news_api/models/media_format.rb
|
131
143
|
- lib/aylien_news_api/models/media_type.rb
|
144
|
+
- lib/aylien_news_api/models/nested_entity.rb
|
145
|
+
- lib/aylien_news_api/models/parameter.rb
|
146
|
+
- lib/aylien_news_api/models/query.rb
|
132
147
|
- lib/aylien_news_api/models/rank.rb
|
133
148
|
- lib/aylien_news_api/models/rankings.rb
|
134
149
|
- lib/aylien_news_api/models/related_stories.rb
|
@@ -153,10 +168,12 @@ files:
|
|
153
168
|
- lib/aylien_news_api/models/time_series_list.rb
|
154
169
|
- lib/aylien_news_api/models/trend.rb
|
155
170
|
- lib/aylien_news_api/models/trends.rb
|
171
|
+
- lib/aylien_news_api/models/warning.rb
|
156
172
|
- lib/aylien_news_api/version.rb
|
157
173
|
- spec/api/default_api_spec.rb
|
158
174
|
- spec/api_client_spec.rb
|
159
175
|
- spec/configuration_spec.rb
|
176
|
+
- spec/models/aggregated_sentiment_spec.rb
|
160
177
|
- spec/models/author_spec.rb
|
161
178
|
- spec/models/autocomplete_spec.rb
|
162
179
|
- spec/models/autocompletes_spec.rb
|
@@ -168,16 +185,22 @@ files:
|
|
168
185
|
- spec/models/coverages_spec.rb
|
169
186
|
- spec/models/entities_spec.rb
|
170
187
|
- spec/models/entity_links_spec.rb
|
188
|
+
- spec/models/entity_sentiment_spec.rb
|
171
189
|
- spec/models/entity_spec.rb
|
190
|
+
- spec/models/entity_surface_form_spec.rb
|
172
191
|
- spec/models/error_links_spec.rb
|
173
192
|
- spec/models/error_spec.rb
|
174
193
|
- spec/models/errors_spec.rb
|
175
194
|
- spec/models/histogram_interval_spec.rb
|
176
195
|
- spec/models/histograms_spec.rb
|
177
196
|
- spec/models/location_spec.rb
|
197
|
+
- spec/models/logicals_spec.rb
|
178
198
|
- spec/models/media_format_spec.rb
|
179
199
|
- spec/models/media_spec.rb
|
180
200
|
- spec/models/media_type_spec.rb
|
201
|
+
- spec/models/nested_entity_spec.rb
|
202
|
+
- spec/models/parameter_spec.rb
|
203
|
+
- spec/models/query_spec.rb
|
181
204
|
- spec/models/rank_spec.rb
|
182
205
|
- spec/models/rankings_spec.rb
|
183
206
|
- spec/models/related_stories_spec.rb
|
@@ -202,6 +225,7 @@ files:
|
|
202
225
|
- spec/models/time_series_spec.rb
|
203
226
|
- spec/models/trend_spec.rb
|
204
227
|
- spec/models/trends_spec.rb
|
228
|
+
- spec/models/warning_spec.rb
|
205
229
|
- spec/spec_helper.rb
|
206
230
|
homepage: https://newsapi.aylien.com/
|
207
231
|
licenses:
|
@@ -234,15 +258,18 @@ test_files:
|
|
234
258
|
- spec/models/error_spec.rb
|
235
259
|
- spec/models/representative_story_spec.rb
|
236
260
|
- spec/models/rank_spec.rb
|
261
|
+
- spec/models/logicals_spec.rb
|
237
262
|
- spec/models/trends_spec.rb
|
238
263
|
- spec/models/summary_spec.rb
|
239
264
|
- spec/models/sentiment_polarity_spec.rb
|
240
265
|
- spec/models/category_spec.rb
|
241
266
|
- spec/models/media_spec.rb
|
267
|
+
- spec/models/entity_surface_form_spec.rb
|
242
268
|
- spec/models/trend_spec.rb
|
243
269
|
- spec/models/error_links_spec.rb
|
244
270
|
- spec/models/story_links_spec.rb
|
245
271
|
- spec/models/autocomplete_spec.rb
|
272
|
+
- spec/models/nested_entity_spec.rb
|
246
273
|
- spec/models/stories_spec.rb
|
247
274
|
- spec/models/media_format_spec.rb
|
248
275
|
- spec/models/story_translations_en_spec.rb
|
@@ -253,21 +280,26 @@ test_files:
|
|
253
280
|
- spec/models/rankings_spec.rb
|
254
281
|
- spec/models/category_taxonomy_spec.rb
|
255
282
|
- spec/models/time_series_list_spec.rb
|
283
|
+
- spec/models/warning_spec.rb
|
256
284
|
- spec/models/coverages_spec.rb
|
257
285
|
- spec/models/share_counts_spec.rb
|
258
286
|
- spec/models/location_spec.rb
|
259
287
|
- spec/models/source_spec.rb
|
260
288
|
- spec/models/story_translations_spec.rb
|
261
289
|
- spec/models/related_stories_spec.rb
|
290
|
+
- spec/models/parameter_spec.rb
|
262
291
|
- spec/models/sentiments_spec.rb
|
263
292
|
- spec/models/autocompletes_spec.rb
|
264
293
|
- spec/models/story_cluster_spec.rb
|
265
294
|
- spec/models/story_spec.rb
|
295
|
+
- spec/models/aggregated_sentiment_spec.rb
|
266
296
|
- spec/models/sentiment_spec.rb
|
267
297
|
- spec/models/time_series_spec.rb
|
268
298
|
- spec/models/share_count_spec.rb
|
299
|
+
- spec/models/entity_sentiment_spec.rb
|
269
300
|
- spec/models/media_type_spec.rb
|
270
301
|
- spec/models/errors_spec.rb
|
302
|
+
- spec/models/query_spec.rb
|
271
303
|
- spec/models/category_links_spec.rb
|
272
304
|
- spec/models/story_translation_spec.rb
|
273
305
|
- spec/models/histograms_spec.rb
|