news-api 0.0.0 → 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 +4 -4
- data/lib/news-api.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: cd5215bcc1a28d4b59e264337cffdf558e6b18036479b10240372d7a4fd41430
|
|
4
|
+
data.tar.gz: 47e17904d3c4debf2aade8bd56d5e8381786fbe2545aeaf7ff559755afc8352a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ca1d62a5c07a56720e5380d5d11bea55013bda438ad505e9e142762e0c3ebeb8cd998fef02d63013fb4a445a3c8f9cb69797d87db4c9cbb3d9c6cc4b7e5c223d
|
|
7
|
+
data.tar.gz: 7e04de47a424375441c4bb34d13452813d7a8284c6191b30e73ac179da38248dbe574a6b3ed0d0da920506404c10ac025792c2e1e0fc4e801938fa9d5b4c0ead
|
data/lib/news-api.rb
CHANGED
|
@@ -56,7 +56,7 @@ class News
|
|
|
56
56
|
raise UnauthorizedException, json
|
|
57
57
|
elsif res.code == '400'
|
|
58
58
|
raise BadRequestException, json
|
|
59
|
-
elsif res.code == '429'
|
|
59
|
+
elsif res.code == '429' || res.code == '426'
|
|
60
60
|
raise TooManyRequestsException, json
|
|
61
61
|
elsif res.code == '500'
|
|
62
62
|
raise ServerException, json
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: news-api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Oleg Mikhnovich
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2019-06-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: News API SDK gem
|
|
14
14
|
email: oleg5966346@gmail.com
|
|
@@ -40,7 +40,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
40
40
|
version: '0'
|
|
41
41
|
requirements: []
|
|
42
42
|
rubyforge_project:
|
|
43
|
-
rubygems_version: 2.7.
|
|
43
|
+
rubygems_version: 2.7.6
|
|
44
44
|
signing_key:
|
|
45
45
|
specification_version: 4
|
|
46
46
|
summary: News API SDK for Ruby
|