bacon_ipsum 0.1.4 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bacon_ipsum/bacon_error.rb +4 -0
- data/lib/bacon_ipsum/http_client.rb +2 -1
- data/lib/bacon_ipsum/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 505f9c888927e3a405f881f7996654bbe021aca64f5d0d362d47b950d8621c85
|
4
|
+
data.tar.gz: 202c3b0933f63d8604666786b053989515d64dec9b45a8feec0fe7e37a0500be
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aca04446cb444744251aea6f50794f00dfd48d963698d58cee13ceedd1796deee93e79bfa13df515db87b950406ab224a7da15addbffd04c99a759168461ff38
|
7
|
+
data.tar.gz: dae4d71e44adb04f071041f3d4c1b1ce8c9abf901025fd0c7ca0090c1ba61462431aeb9adc273a6d34f93dece8cedf52592b5271d74d029bfb84ede902eb37c6
|
@@ -1,6 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require 'typhoeus'
|
4
|
+
require_relative 'bacon_error'
|
4
5
|
|
5
6
|
module BaconIpsum
|
6
7
|
# http client for requests to bacon ipsum api
|
@@ -24,7 +25,7 @@ module BaconIpsum
|
|
24
25
|
params: params,
|
25
26
|
timeout: REQUEST_TIMEOUT
|
26
27
|
)
|
27
|
-
raise '
|
28
|
+
raise BaconError, 'response not success' unless response.success?
|
28
29
|
|
29
30
|
response.body
|
30
31
|
end
|
data/lib/bacon_ipsum/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bacon_ipsum
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kirill Leonov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-07-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -31,6 +31,7 @@ extensions: []
|
|
31
31
|
extra_rdoc_files: []
|
32
32
|
files:
|
33
33
|
- lib/bacon_ipsum.rb
|
34
|
+
- lib/bacon_ipsum/bacon_error.rb
|
34
35
|
- lib/bacon_ipsum/http_client.rb
|
35
36
|
- lib/bacon_ipsum/parser.rb
|
36
37
|
- lib/bacon_ipsum/version.rb
|
@@ -56,7 +57,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
56
57
|
- !ruby/object:Gem::Version
|
57
58
|
version: '0'
|
58
59
|
requirements: []
|
59
|
-
rubygems_version: 3.
|
60
|
+
rubygems_version: 3.5.16
|
60
61
|
signing_key:
|
61
62
|
specification_version: 4
|
62
63
|
summary: SDK for JSON API - Bacon Ipsum
|