aylien_news_api 0.0.1 → 0.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e0be76614a42729f87f38f3f2e1ae003141dc096
4
- data.tar.gz: 5a335b88ce8a4b7aae8f99f9e6c025234c68e287
3
+ metadata.gz: 8037c93bfa9bd7ec8fc6ad55cc65e89ab7ba8174
4
+ data.tar.gz: d2098cd0f50bacb1149aac1eb146ae6d2d95801c
5
5
  SHA512:
6
- metadata.gz: c3eaa2345e213ba28a09cf90f2cb7f96bf8a7a6e989bf1ac5aabb2f9cf49997c770493c88ee0cb4fc3d5e8fccaeff9f67e3703fc0c9d8fcd037404ee5f9164cd
7
- data.tar.gz: d2ff1a3dcab1ca864dc17e2620a02035d16327f3122dd600038d0eab5f8a73fdead0f9d33a02216ebdca0fba7622dc8730dc3d4ae87dc66fc1aeea2dabe13540
6
+ metadata.gz: 8be9134ea370c68fa8091d88a770f5d710fb617a62595611fbac6c973d629c8f4c50e9e227063b22ce1ba9f97478069fc6e25377d8bf992f320df7dcba389280
7
+ data.tar.gz: 8db848addbf9eccb5cdf535cf30dc823dc0bff1886617379ea3c166a7999c487f2854b63e3f70fe8c0cbecdb063c7a125162c65bb1694c6b9491221728b2684c
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- aylien_news_api (0.0.1)
5
- json (~> 1.4, >= 1.4.6)
4
+ aylien_news_api (0.1.0)
5
+ json (~> 1.8, >= 1.8.3)
6
6
  typhoeus (~> 1.0, >= 1.0.1)
7
7
 
8
8
  GEM
@@ -19,7 +19,7 @@ GEM
19
19
  crack (0.4.3)
20
20
  safe_yaml (~> 1.0.0)
21
21
  diff-lcs (1.2.5)
22
- ethon (0.8.1)
22
+ ethon (0.9.0)
23
23
  ffi (>= 1.3.0)
24
24
  ffi (1.9.10)
25
25
  hashdiff (0.3.0)
@@ -41,9 +41,9 @@ GEM
41
41
  safe_yaml (1.0.4)
42
42
  sys-uname (1.0.2)
43
43
  ffi (>= 1.0.0)
44
- typhoeus (1.0.1)
45
- ethon (>= 0.8.0)
46
- vcr (2.9.3)
44
+ typhoeus (1.0.2)
45
+ ethon (>= 0.9.0)
46
+ vcr (3.0.1)
47
47
  webmock (1.24.3)
48
48
  addressable (>= 2.3.6)
49
49
  crack (>= 0.3.2)
@@ -59,9 +59,9 @@ DEPENDENCIES
59
59
  autotest-rails-pure (~> 4.1, >= 4.1.2)
60
60
  aylien_news_api!
61
61
  rake (~> 11.1, >= 11.1.2)
62
- rspec (~> 3.2, >= 3.2.0)
63
- vcr (~> 2.9, >= 2.9.3)
64
- webmock (~> 1.6, >= 1.6.2)
62
+ rspec (~> 3.4, >= 3.4.0)
63
+ vcr (~> 3.0, >= 3.0.1)
64
+ webmock (~> 1.24, >= 1.24.3)
65
65
 
66
66
  BUNDLED WITH
67
67
  1.11.2
Binary file
@@ -8,19 +8,18 @@ Gem::Specification.new do |s|
8
8
  s.platform = Gem::Platform::RUBY
9
9
  s.authors = ["AYLIEN Inc.", "Hamed Ramezanian Nik"]
10
10
  s.email = ["support@aylien.com", "hamed.r.nik@gmail.com"]
11
- s.homepage = "https://newsapi.aylien.com/"
11
+ s.homepage = "https://github.com/AYLIEN/aylien_newsapi_ruby"
12
12
  s.summary = "AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content"
13
13
  s.description = "AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content."
14
14
  s.license = "Apache-2.0"
15
15
 
16
-
17
16
  s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
18
- s.add_runtime_dependency 'json', '~> 1.4', '>= 1.4.6'
19
-
17
+ s.add_runtime_dependency 'json', '~> 1.8', '>= 1.8.3'
18
+
20
19
  s.add_development_dependency 'rake', '~> 11.1', '>= 11.1.2'
21
- s.add_development_dependency 'rspec', '~> 3.2', '>= 3.2.0'
22
- s.add_development_dependency 'vcr', '~> 2.9', '>= 2.9.3'
23
- s.add_development_dependency 'webmock', '~> 1.6', '>= 1.6.2'
20
+ s.add_development_dependency 'rspec', '~> 3.4', '>= 3.4.0'
21
+ s.add_development_dependency 'vcr', '~> 3.0', '>= 3.0.1'
22
+ s.add_development_dependency 'webmock', '~> 1.24', '>= 1.24.3'
24
23
  s.add_development_dependency 'autotest', '~> 4.4', '>= 4.4.6'
25
24
  s.add_development_dependency 'autotest-rails-pure', '~> 4.1', '>= 4.1.2'
26
25
  s.add_development_dependency 'autotest-growl', '~> 0.2', '>= 0.2.16'
@@ -28,7 +28,7 @@ require 'aylien_news_api'
28
28
  AylienNewsApi.configure do |config|
29
29
  # Configure API key authorization: app_id
30
30
  config.api_key['X-AYLIEN-NewsAPI-Application-ID'] = 'YOUR APP ID'
31
-
31
+
32
32
  # Configure API key authorization: app_key
33
33
  config.api_key['X-AYLIEN-NewsAPI-Application-Key'] = 'YOUR APP KEY'
34
34
  end
@@ -92,7 +92,7 @@ require 'aylien_news_api'
92
92
  AylienNewsApi.configure do |config|
93
93
  # Configure API key authorization: app_id
94
94
  config.api_key['X-AYLIEN-NewsAPI-Application-ID'] = 'YOUR APP ID'
95
-
95
+
96
96
  # Configure API key authorization: app_key
97
97
  config.api_key['X-AYLIEN-NewsAPI-Application-Key'] = 'YOUR APP KEY'
98
98
  end
@@ -131,6 +131,7 @@ opts = {
131
131
  source_scopes_state: ["source_scopes_state_example"], # Array<String> | This parameter is used for finding stories whose source scopes state/province is the specified value.
132
132
  source_scopes_city: ["source_scopes_city_example"], # Array<String> | This parameter is used for finding stories whose source scopes city is the specified value.
133
133
  source_scopes_level: ["source_scopes_level_example"], # Array<String> | This parameter is used for finding stories whose source scopes level is the specified value.
134
+ _return: ["_return_example"], # Array<String> | This parameter is used for specifying return fields.
134
135
  story_id: 789, # Integer | A story id
135
136
  story_url: "story_url_example", # String | An article or webpage
136
137
  story_title: "story_title_example", # String | Title of the article
@@ -184,6 +185,7 @@ Name | Type | Description | Notes
184
185
  **source_scopes_state** | [**Array&lt;String&gt;**](String.md)| This parameter is used for finding stories whose source scopes state/province is the specified value. | [optional]
185
186
  **source_scopes_city** | [**Array&lt;String&gt;**](String.md)| This parameter is used for finding stories whose source scopes city is the specified value. | [optional]
186
187
  **source_scopes_level** | [**Array&lt;String&gt;**](String.md)| This parameter is used for finding stories whose source scopes level is the specified value. | [optional]
188
+ **_return** | [**Array&lt;String&gt;**](String.md)| This parameter is used for specifying return fields. | [optional]
187
189
  **story_id** | **Integer**| A story id | [optional]
188
190
  **story_url** | **String**| An article or webpage | [optional]
189
191
  **story_title** | **String**| Title of the article | [optional]
@@ -222,7 +224,7 @@ require 'aylien_news_api'
222
224
  AylienNewsApi.configure do |config|
223
225
  # Configure API key authorization: app_id
224
226
  config.api_key['X-AYLIEN-NewsAPI-Application-ID'] = 'YOUR APP ID'
225
-
227
+
226
228
  # Configure API key authorization: app_key
227
229
  config.api_key['X-AYLIEN-NewsAPI-Application-Key'] = 'YOUR APP KEY'
228
230
  end
@@ -346,7 +348,7 @@ require 'aylien_news_api'
346
348
  AylienNewsApi.configure do |config|
347
349
  # Configure API key authorization: app_id
348
350
  config.api_key['X-AYLIEN-NewsAPI-Application-ID'] = 'YOUR APP ID'
349
-
351
+
350
352
  # Configure API key authorization: app_key
351
353
  config.api_key['X-AYLIEN-NewsAPI-Application-Key'] = 'YOUR APP KEY'
352
354
  end
@@ -385,6 +387,7 @@ opts = {
385
387
  source_scopes_state: ["source_scopes_state_example"], # Array<String> | This parameter is used for finding stories whose source scopes state/province is the specified value.
386
388
  source_scopes_city: ["source_scopes_city_example"], # Array<String> | This parameter is used for finding stories whose source scopes city is the specified value.
387
389
  source_scopes_level: ["source_scopes_level_example"], # Array<String> | This parameter is used for finding stories whose source scopes level is the specified value.
390
+ _return: ["_return_example"], # Array<String> | This parameter is used for specifying return fields.
388
391
  story_id: 789, # Integer | A story id
389
392
  story_url: "story_url_example", # String | An article or webpage
390
393
  story_title: "story_title_example", # String | Title of the article
@@ -438,6 +441,7 @@ Name | Type | Description | Notes
438
441
  **source_scopes_state** | [**Array&lt;String&gt;**](String.md)| This parameter is used for finding stories whose source scopes state/province is the specified value. | [optional]
439
442
  **source_scopes_city** | [**Array&lt;String&gt;**](String.md)| This parameter is used for finding stories whose source scopes city is the specified value. | [optional]
440
443
  **source_scopes_level** | [**Array&lt;String&gt;**](String.md)| This parameter is used for finding stories whose source scopes level is the specified value. | [optional]
444
+ **_return** | [**Array&lt;String&gt;**](String.md)| This parameter is used for specifying return fields. | [optional]
441
445
  **story_id** | **Integer**| A story id | [optional]
442
446
  **story_url** | **String**| An article or webpage | [optional]
443
447
  **story_title** | **String**| Title of the article | [optional]
@@ -476,7 +480,7 @@ require 'aylien_news_api'
476
480
  AylienNewsApi.configure do |config|
477
481
  # Configure API key authorization: app_id
478
482
  config.api_key['X-AYLIEN-NewsAPI-Application-ID'] = 'YOUR APP ID'
479
-
483
+
480
484
  # Configure API key authorization: app_key
481
485
  config.api_key['X-AYLIEN-NewsAPI-Application-Key'] = 'YOUR APP KEY'
482
486
  end
@@ -606,7 +610,7 @@ require 'aylien_news_api'
606
610
  AylienNewsApi.configure do |config|
607
611
  # Configure API key authorization: app_id
608
612
  config.api_key['X-AYLIEN-NewsAPI-Application-ID'] = 'YOUR APP ID'
609
-
613
+
610
614
  # Configure API key authorization: app_key
611
615
  config.api_key['X-AYLIEN-NewsAPI-Application-Key'] = 'YOUR APP KEY'
612
616
  end
@@ -724,7 +728,7 @@ require 'aylien_news_api'
724
728
  AylienNewsApi.configure do |config|
725
729
  # Configure API key authorization: app_id
726
730
  config.api_key['X-AYLIEN-NewsAPI-Application-ID'] = 'YOUR APP ID'
727
-
731
+
728
732
  # Configure API key authorization: app_key
729
733
  config.api_key['X-AYLIEN-NewsAPI-Application-Key'] = 'YOUR APP KEY'
730
734
  end
@@ -135,6 +135,7 @@ module AylienNewsApi
135
135
  # @option opts [Array<String>] :source_scopes_state This parameter is used for finding stories whose source scopes state/province is the specified value.
136
136
  # @option opts [Array<String>] :source_scopes_city This parameter is used for finding stories whose source scopes city is the specified value.
137
137
  # @option opts [Array<String>] :source_scopes_level This parameter is used for finding stories whose source scopes level is the specified value.
138
+ # @option opts [Array<String>] :_return This parameter is used for specifying return fields.
138
139
  # @option opts [Integer] :story_id A story id
139
140
  # @option opts [String] :story_url An article or webpage
140
141
  # @option opts [String] :story_title Title of the article
@@ -182,6 +183,7 @@ module AylienNewsApi
182
183
  # @option opts [Array<String>] :source_scopes_state This parameter is used for finding stories whose source scopes state/province is the specified value.
183
184
  # @option opts [Array<String>] :source_scopes_city This parameter is used for finding stories whose source scopes city is the specified value.
184
185
  # @option opts [Array<String>] :source_scopes_level This parameter is used for finding stories whose source scopes level is the specified value.
186
+ # @option opts [Array<String>] :_return This parameter is used for specifying return fields.
185
187
  # @option opts [Integer] :story_id A story id
186
188
  # @option opts [String] :story_url An article or webpage
187
189
  # @option opts [String] :story_title Title of the article
@@ -261,6 +263,7 @@ module AylienNewsApi
261
263
  form_params["source.scopes.state[]"] = @api_client.build_collection_param(opts[:'source_scopes_state'], :multi) if opts[:'source_scopes_state']
262
264
  form_params["source.scopes.city[]"] = @api_client.build_collection_param(opts[:'source_scopes_city'], :multi) if opts[:'source_scopes_city']
263
265
  form_params["source.scopes.level[]"] = @api_client.build_collection_param(opts[:'source_scopes_level'], :multi) if opts[:'source_scopes_level']
266
+ form_params["return[]"] = @api_client.build_collection_param(opts[:'_return'], :multi) if opts[:'_return']
264
267
  form_params["story_id"] = opts[:'story_id'] if opts[:'story_id']
265
268
  form_params["story_url"] = opts[:'story_url'] if opts[:'story_url']
266
269
  form_params["story_title"] = opts[:'story_title'] if opts[:'story_title']
@@ -494,6 +497,7 @@ module AylienNewsApi
494
497
  # @option opts [Array<String>] :source_scopes_state This parameter is used for finding stories whose source scopes state/province is the specified value.
495
498
  # @option opts [Array<String>] :source_scopes_city This parameter is used for finding stories whose source scopes city is the specified value.
496
499
  # @option opts [Array<String>] :source_scopes_level This parameter is used for finding stories whose source scopes level is the specified value.
500
+ # @option opts [Array<String>] :_return This parameter is used for specifying return fields.
497
501
  # @option opts [Integer] :story_id A story id
498
502
  # @option opts [String] :story_url An article or webpage
499
503
  # @option opts [String] :story_title Title of the article
@@ -541,6 +545,7 @@ module AylienNewsApi
541
545
  # @option opts [Array<String>] :source_scopes_state This parameter is used for finding stories whose source scopes state/province is the specified value.
542
546
  # @option opts [Array<String>] :source_scopes_city This parameter is used for finding stories whose source scopes city is the specified value.
543
547
  # @option opts [Array<String>] :source_scopes_level This parameter is used for finding stories whose source scopes level is the specified value.
548
+ # @option opts [Array<String>] :_return This parameter is used for specifying return fields.
544
549
  # @option opts [Integer] :story_id A story id
545
550
  # @option opts [String] :story_url An article or webpage
546
551
  # @option opts [String] :story_title Title of the article
@@ -624,6 +629,7 @@ module AylienNewsApi
624
629
  form_params["source.scopes.state[]"] = @api_client.build_collection_param(opts[:'source_scopes_state'], :multi) if opts[:'source_scopes_state']
625
630
  form_params["source.scopes.city[]"] = @api_client.build_collection_param(opts[:'source_scopes_city'], :multi) if opts[:'source_scopes_city']
626
631
  form_params["source.scopes.level[]"] = @api_client.build_collection_param(opts[:'source_scopes_level'], :multi) if opts[:'source_scopes_level']
632
+ form_params["return[]"] = @api_client.build_collection_param(opts[:'_return'], :multi) if opts[:'_return']
627
633
  form_params["story_id"] = opts[:'story_id'] if opts[:'story_id']
628
634
  form_params["story_url"] = opts[:'story_url'] if opts[:'story_url']
629
635
  form_params["story_title"] = opts[:'story_title'] if opts[:'story_title']
@@ -13,5 +13,5 @@
13
13
  # limitations under the License.
14
14
 
15
15
  module AylienNewsApi
16
- VERSION = "0.0.1"
16
+ VERSION = "0.1.0"
17
17
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aylien_news_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - AYLIEN Inc.
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-04-19 00:00:00.000000000 Z
12
+ date: 2016-05-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: typhoeus
@@ -37,20 +37,20 @@ dependencies:
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '1.4'
40
+ version: '1.8'
41
41
  - - ">="
42
42
  - !ruby/object:Gem::Version
43
- version: 1.4.6
43
+ version: 1.8.3
44
44
  type: :runtime
45
45
  prerelease: false
46
46
  version_requirements: !ruby/object:Gem::Requirement
47
47
  requirements:
48
48
  - - "~>"
49
49
  - !ruby/object:Gem::Version
50
- version: '1.4'
50
+ version: '1.8'
51
51
  - - ">="
52
52
  - !ruby/object:Gem::Version
53
- version: 1.4.6
53
+ version: 1.8.3
54
54
  - !ruby/object:Gem::Dependency
55
55
  name: rake
56
56
  requirement: !ruby/object:Gem::Requirement
@@ -77,60 +77,60 @@ dependencies:
77
77
  requirements:
78
78
  - - "~>"
79
79
  - !ruby/object:Gem::Version
80
- version: '3.2'
80
+ version: '3.4'
81
81
  - - ">="
82
82
  - !ruby/object:Gem::Version
83
- version: 3.2.0
83
+ version: 3.4.0
84
84
  type: :development
85
85
  prerelease: false
86
86
  version_requirements: !ruby/object:Gem::Requirement
87
87
  requirements:
88
88
  - - "~>"
89
89
  - !ruby/object:Gem::Version
90
- version: '3.2'
90
+ version: '3.4'
91
91
  - - ">="
92
92
  - !ruby/object:Gem::Version
93
- version: 3.2.0
93
+ version: 3.4.0
94
94
  - !ruby/object:Gem::Dependency
95
95
  name: vcr
96
96
  requirement: !ruby/object:Gem::Requirement
97
97
  requirements:
98
98
  - - "~>"
99
99
  - !ruby/object:Gem::Version
100
- version: '2.9'
100
+ version: '3.0'
101
101
  - - ">="
102
102
  - !ruby/object:Gem::Version
103
- version: 2.9.3
103
+ version: 3.0.1
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: '2.9'
110
+ version: '3.0'
111
111
  - - ">="
112
112
  - !ruby/object:Gem::Version
113
- version: 2.9.3
113
+ version: 3.0.1
114
114
  - !ruby/object:Gem::Dependency
115
115
  name: webmock
116
116
  requirement: !ruby/object:Gem::Requirement
117
117
  requirements:
118
118
  - - "~>"
119
119
  - !ruby/object:Gem::Version
120
- version: '1.6'
120
+ version: '1.24'
121
121
  - - ">="
122
122
  - !ruby/object:Gem::Version
123
- version: 1.6.2
123
+ version: 1.24.3
124
124
  type: :development
125
125
  prerelease: false
126
126
  version_requirements: !ruby/object:Gem::Requirement
127
127
  requirements:
128
128
  - - "~>"
129
129
  - !ruby/object:Gem::Version
130
- version: '1.6'
130
+ version: '1.24'
131
131
  - - ">="
132
132
  - !ruby/object:Gem::Version
133
- version: 1.6.2
133
+ version: 1.24.3
134
134
  - !ruby/object:Gem::Dependency
135
135
  name: autotest
136
136
  requirement: !ruby/object:Gem::Requirement
@@ -225,6 +225,7 @@ files:
225
225
  - LICENSE
226
226
  - README.md
227
227
  - Rakefile
228
+ - aylien_news_api-0.0.1.gem
228
229
  - aylien_news_api.gemspec
229
230
  - docs/Author.md
230
231
  - docs/Autocomplete.md
@@ -330,7 +331,7 @@ files:
330
331
  - spec/models/time_series_spec.rb
331
332
  - spec/models/trend_spec.rb
332
333
  - spec/models/trends_spec.rb
333
- homepage: https://newsapi.aylien.com/
334
+ homepage: https://github.com/AYLIEN/aylien_newsapi_ruby
334
335
  licenses:
335
336
  - Apache-2.0
336
337
  metadata: {}