bacon_ipsum 0.0.4 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 258de3154b5d80b55b8fd42abf05d871940905807be6f1dc8116713ead0daff2
4
- data.tar.gz: 54de8976093878becdffdded346503521076fbc8a8a5ea56874552185c4c7438
3
+ metadata.gz: def429d735d88001082beb1f485b3a439854895ced1503c6f22444754a92b6c2
4
+ data.tar.gz: 5e0b94ecfdf714689118f40fd6d2476f38f46d3f9715d4cd33cf3270b09a5b1b
5
5
  SHA512:
6
- metadata.gz: 160f17441c5e9ff76ac3bb30e22aa3a2d4d99755e100d4a8892a080eadf1af98378e0538d3e0b23db7119b15b8fa97351fbd38c3f3ad904db6f682b3da8ee88b
7
- data.tar.gz: 921db92aa15222ab5c4aecaba3a0955bf4493f3b1bd952f92bc3905e098bd1ce12529134434ef602503a3816e43ffa553630a6904a385236be261d2cd632c89a
6
+ metadata.gz: 30abbc0ae07283a6925a59997b9f04359196603dd90037e043a399e73ebae3eaccc71fcba551617a61e50ed50527c08cc86f32fa051e3107f5a02c772f4654c9
7
+ data.tar.gz: 8396151636056e9c03d05562a6cf13dd798d5824764e726eba8a2a981c8ba02e97e0d4bd8b0e3baa67792810e284993b19d702bfb13f47ec9bd078008d9d9712
@@ -23,7 +23,7 @@ module BaconIpsum
23
23
  params: params,
24
24
  timeout: REQUEST_TIMEOUT
25
25
  )
26
- return false unless response.success?
26
+ raise 'BaconFail' unless response.success?
27
27
 
28
28
  response.body
29
29
  end
@@ -4,7 +4,7 @@ require 'json'
4
4
 
5
5
  module BaconIpsum
6
6
  class Parser
7
- attr_reader :response, :format
7
+ attr_accessor :response, :format
8
8
 
9
9
  def initialize(response, format)
10
10
  @response = response
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BaconIpsum
4
- VERSION = '0.0.4'
4
+ VERSION = '0.0.6'
5
5
  end
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.0.4
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kirill Leonov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-07-23 00:00:00.000000000 Z
11
+ date: 2023-08-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus