aylien_news_api 0.3.0 → 0.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/Gemfile.lock +21 -21
- data/aylien_news_api-0.3.0.gem +0 -0
- data/aylien_news_api.gemspec +3 -2
- data/docs/DefaultApi.md +451 -250
- data/docs/Media.md +4 -0
- data/lib/aylien_news_api/api/default_api.rb +965 -341
- data/lib/aylien_news_api/api_client.rb +13 -5
- data/lib/aylien_news_api/configuration.rb +6 -6
- data/lib/aylien_news_api/models/author.rb +3 -3
- data/lib/aylien_news_api/models/autocomplete.rb +3 -3
- data/lib/aylien_news_api/models/autocompletes.rb +3 -3
- data/lib/aylien_news_api/models/category.rb +3 -3
- data/lib/aylien_news_api/models/category_links.rb +3 -3
- data/lib/aylien_news_api/models/coverages.rb +3 -3
- data/lib/aylien_news_api/models/entities.rb +3 -3
- data/lib/aylien_news_api/models/entity.rb +3 -4
- data/lib/aylien_news_api/models/entity_links.rb +3 -3
- data/lib/aylien_news_api/models/error.rb +3 -3
- data/lib/aylien_news_api/models/error_links.rb +3 -3
- data/lib/aylien_news_api/models/errors.rb +3 -3
- data/lib/aylien_news_api/models/histogram_interval.rb +3 -3
- data/lib/aylien_news_api/models/histograms.rb +3 -3
- data/lib/aylien_news_api/models/location.rb +3 -3
- data/lib/aylien_news_api/models/media.rb +59 -7
- data/lib/aylien_news_api/models/rank.rb +3 -3
- data/lib/aylien_news_api/models/rankings.rb +3 -3
- data/lib/aylien_news_api/models/related_stories.rb +3 -3
- data/lib/aylien_news_api/models/scope.rb +3 -3
- data/lib/aylien_news_api/models/sentiment.rb +3 -4
- data/lib/aylien_news_api/models/sentiments.rb +3 -3
- data/lib/aylien_news_api/models/share_count.rb +3 -3
- data/lib/aylien_news_api/models/share_counts.rb +3 -3
- data/lib/aylien_news_api/models/source.rb +3 -3
- data/lib/aylien_news_api/models/stories.rb +3 -3
- data/lib/aylien_news_api/models/story.rb +3 -3
- data/lib/aylien_news_api/models/story_cluster.rb +3 -3
- data/lib/aylien_news_api/models/story_links.rb +3 -3
- data/lib/aylien_news_api/models/summary.rb +3 -3
- data/lib/aylien_news_api/models/time_series.rb +3 -3
- data/lib/aylien_news_api/models/time_series_list.rb +3 -3
- data/lib/aylien_news_api/models/trend.rb +3 -3
- data/lib/aylien_news_api/models/trends.rb +3 -3
- data/lib/aylien_news_api/version.rb +1 -1
- metadata +4 -6
@@ -108,7 +108,7 @@ module AylienNewsApi
|
|
108
108
|
def build_from_hash(attributes)
|
109
109
|
return nil unless attributes.is_a?(Hash)
|
110
110
|
self.class.api_types.each_pair do |key, type|
|
111
|
-
if type =~
|
111
|
+
if type =~ /\AArray<(.*)>/i
|
112
112
|
# check to ensure the input is an array given that the the attribute
|
113
113
|
# is documented as an array but the input is not
|
114
114
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
@@ -139,7 +139,7 @@ module AylienNewsApi
|
|
139
139
|
when :Float
|
140
140
|
value.to_f
|
141
141
|
when :BOOLEAN
|
142
|
-
if value.to_s =~
|
142
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
143
143
|
true
|
144
144
|
else
|
145
145
|
false
|
@@ -150,7 +150,7 @@ module AylienNewsApi
|
|
150
150
|
when /\AArray<(?<inner_type>.+)>\z/
|
151
151
|
inner_type = Regexp.last_match[:inner_type]
|
152
152
|
value.map { |v| _deserialize(inner_type, v) }
|
153
|
-
when /\AHash<(?<k_type
|
153
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
154
154
|
k_type = Regexp.last_match[:k_type]
|
155
155
|
v_type = Regexp.last_match[:v_type]
|
156
156
|
{}.tap do |hash|
|
@@ -90,7 +90,7 @@ module AylienNewsApi
|
|
90
90
|
def build_from_hash(attributes)
|
91
91
|
return nil unless attributes.is_a?(Hash)
|
92
92
|
self.class.api_types.each_pair do |key, type|
|
93
|
-
if type =~
|
93
|
+
if type =~ /\AArray<(.*)>/i
|
94
94
|
# check to ensure the input is an array given that the the attribute
|
95
95
|
# is documented as an array but the input is not
|
96
96
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
@@ -121,7 +121,7 @@ module AylienNewsApi
|
|
121
121
|
when :Float
|
122
122
|
value.to_f
|
123
123
|
when :BOOLEAN
|
124
|
-
if value.to_s =~
|
124
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
125
125
|
true
|
126
126
|
else
|
127
127
|
false
|
@@ -132,7 +132,7 @@ module AylienNewsApi
|
|
132
132
|
when /\AArray<(?<inner_type>.+)>\z/
|
133
133
|
inner_type = Regexp.last_match[:inner_type]
|
134
134
|
value.map { |v| _deserialize(inner_type, v) }
|
135
|
-
when /\AHash<(?<k_type
|
135
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
136
136
|
k_type = Regexp.last_match[:k_type]
|
137
137
|
v_type = Regexp.last_match[:v_type]
|
138
138
|
{}.tap do |hash|
|
@@ -98,7 +98,7 @@ module AylienNewsApi
|
|
98
98
|
def build_from_hash(attributes)
|
99
99
|
return nil unless attributes.is_a?(Hash)
|
100
100
|
self.class.api_types.each_pair do |key, type|
|
101
|
-
if type =~
|
101
|
+
if type =~ /\AArray<(.*)>/i
|
102
102
|
# check to ensure the input is an array given that the the attribute
|
103
103
|
# is documented as an array but the input is not
|
104
104
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
@@ -129,7 +129,7 @@ module AylienNewsApi
|
|
129
129
|
when :Float
|
130
130
|
value.to_f
|
131
131
|
when :BOOLEAN
|
132
|
-
if value.to_s =~
|
132
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
133
133
|
true
|
134
134
|
else
|
135
135
|
false
|
@@ -140,7 +140,7 @@ module AylienNewsApi
|
|
140
140
|
when /\AArray<(?<inner_type>.+)>\z/
|
141
141
|
inner_type = Regexp.last_match[:inner_type]
|
142
142
|
value.map { |v| _deserialize(inner_type, v) }
|
143
|
-
when /\AHash<(?<k_type
|
143
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
144
144
|
k_type = Regexp.last_match[:k_type]
|
145
145
|
v_type = Regexp.last_match[:v_type]
|
146
146
|
{}.tap do |hash|
|
@@ -120,7 +120,7 @@ module AylienNewsApi
|
|
120
120
|
def build_from_hash(attributes)
|
121
121
|
return nil unless attributes.is_a?(Hash)
|
122
122
|
self.class.api_types.each_pair do |key, type|
|
123
|
-
if type =~
|
123
|
+
if type =~ /\AArray<(.*)>/i
|
124
124
|
# check to ensure the input is an array given that the the attribute
|
125
125
|
# is documented as an array but the input is not
|
126
126
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
@@ -151,7 +151,7 @@ module AylienNewsApi
|
|
151
151
|
when :Float
|
152
152
|
value.to_f
|
153
153
|
when :BOOLEAN
|
154
|
-
if value.to_s =~
|
154
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
155
155
|
true
|
156
156
|
else
|
157
157
|
false
|
@@ -162,7 +162,7 @@ module AylienNewsApi
|
|
162
162
|
when /\AArray<(?<inner_type>.+)>\z/
|
163
163
|
inner_type = Regexp.last_match[:inner_type]
|
164
164
|
value.map { |v| _deserialize(inner_type, v) }
|
165
|
-
when /\AHash<(?<k_type
|
165
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
166
166
|
k_type = Regexp.last_match[:k_type]
|
167
167
|
v_type = Regexp.last_match[:v_type]
|
168
168
|
{}.tap do |hash|
|
@@ -98,7 +98,7 @@ module AylienNewsApi
|
|
98
98
|
def build_from_hash(attributes)
|
99
99
|
return nil unless attributes.is_a?(Hash)
|
100
100
|
self.class.api_types.each_pair do |key, type|
|
101
|
-
if type =~
|
101
|
+
if type =~ /\AArray<(.*)>/i
|
102
102
|
# check to ensure the input is an array given that the the attribute
|
103
103
|
# is documented as an array but the input is not
|
104
104
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
@@ -129,7 +129,7 @@ module AylienNewsApi
|
|
129
129
|
when :Float
|
130
130
|
value.to_f
|
131
131
|
when :BOOLEAN
|
132
|
-
if value.to_s =~
|
132
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
133
133
|
true
|
134
134
|
else
|
135
135
|
false
|
@@ -140,7 +140,7 @@ module AylienNewsApi
|
|
140
140
|
when /\AArray<(?<inner_type>.+)>\z/
|
141
141
|
inner_type = Regexp.last_match[:inner_type]
|
142
142
|
value.map { |v| _deserialize(inner_type, v) }
|
143
|
-
when /\AHash<(?<k_type
|
143
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
144
144
|
k_type = Regexp.last_match[:k_type]
|
145
145
|
v_type = Regexp.last_match[:v_type]
|
146
146
|
{}.tap do |hash|
|
@@ -100,7 +100,7 @@ module AylienNewsApi
|
|
100
100
|
def build_from_hash(attributes)
|
101
101
|
return nil unless attributes.is_a?(Hash)
|
102
102
|
self.class.api_types.each_pair do |key, type|
|
103
|
-
if type =~
|
103
|
+
if type =~ /\AArray<(.*)>/i
|
104
104
|
# check to ensure the input is an array given that the the attribute
|
105
105
|
# is documented as an array but the input is not
|
106
106
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
@@ -131,7 +131,7 @@ module AylienNewsApi
|
|
131
131
|
when :Float
|
132
132
|
value.to_f
|
133
133
|
when :BOOLEAN
|
134
|
-
if value.to_s =~
|
134
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
135
135
|
true
|
136
136
|
else
|
137
137
|
false
|
@@ -142,7 +142,7 @@ module AylienNewsApi
|
|
142
142
|
when /\AArray<(?<inner_type>.+)>\z/
|
143
143
|
inner_type = Regexp.last_match[:inner_type]
|
144
144
|
value.map { |v| _deserialize(inner_type, v) }
|
145
|
-
when /\AHash<(?<k_type
|
145
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
146
146
|
k_type = Regexp.last_match[:k_type]
|
147
147
|
v_type = Regexp.last_match[:v_type]
|
148
148
|
{}.tap do |hash|
|
metadata
CHANGED
@@ -1,15 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aylien_news_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
- AYLIEN Inc.
|
8
7
|
- Hamed R. Nik
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2016-
|
11
|
+
date: 2016-11-03 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: typhoeus
|
@@ -194,7 +193,6 @@ dependencies:
|
|
194
193
|
description: AYLIEN News API is the most powerful way of sourcing, searching and syndicating
|
195
194
|
analyzed and enriched news content.
|
196
195
|
email:
|
197
|
-
- support@aylien.com
|
198
196
|
- hamed.r.nik@gmail.com
|
199
197
|
executables: []
|
200
198
|
extensions: []
|
@@ -205,6 +203,7 @@ files:
|
|
205
203
|
- LICENSE
|
206
204
|
- README.md
|
207
205
|
- aylien_news_api-0.2.0.gem
|
206
|
+
- aylien_news_api-0.3.0.gem
|
208
207
|
- aylien_news_api.gemspec
|
209
208
|
- docs/Author.md
|
210
209
|
- docs/Autocomplete.md
|
@@ -331,7 +330,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
331
330
|
requirements:
|
332
331
|
- - ">="
|
333
332
|
- !ruby/object:Gem::Version
|
334
|
-
version: '
|
333
|
+
version: '1.9'
|
335
334
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
336
335
|
requirements:
|
337
336
|
- - ">="
|
@@ -383,4 +382,3 @@ test_files:
|
|
383
382
|
- spec/models/category_spec.rb
|
384
383
|
- spec/models/time_series_list_spec.rb
|
385
384
|
- spec/spec_helper.rb
|
386
|
-
has_rdoc:
|