popito 0.0.5.alpha → 0.0.6.alpha

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: b58e07c048aa5f7e962ee86b515726e89974f5180c646dde771d2a023cb8b7bc
4
- data.tar.gz: 31949642b3549e1f3921bf0bda7843a4fb8fb283cb90a42442aaf73897c774d1
3
+ metadata.gz: f356449a48844b0978ff411d2abade787d388e9de08d902a098dbe0e9a4ad965
4
+ data.tar.gz: 637efab63db68b93cdf36eb1ad95d34f9294f4922c10f0da7dbefe1dd9aaaeaa
5
5
  SHA512:
6
- metadata.gz: 427df89a3fb3482382397425b50a8d704b86610b01c835f915aa24ea35e59e7a25ae6a938f6ffe166223ab6faf757a44addf16e42e40211a97bc6d7b16504109
7
- data.tar.gz: db3d8b1b3dcdc91a3d2ab2c841bbbbd4cc16beabb59c0bfa79d1aec5b1e1ce499ab00ecdf0959217a74f9bc02fbc46b0f7a2411346aa1be82f678b2c8199701d
6
+ metadata.gz: d3189e2cc6b3ea5394b27e41df20797a08738538c99143cf0378b866a33edc31cd1b7f8b762a2d21f53327de992bdce465eb60940039bfdf46113718e73b8bbb
7
+ data.tar.gz: '09d513b18d5f79b80f42ad72f1cea7c7f440e38a0f916b5307ba6bab4ab0ce8e8a7ae9bec2595ddd69a773cf3e31abccc89f59694a361a29c216ba2fa2e36f1b'
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- popito (0.0.3.alpha)
4
+ popito (0.0.6.alpha)
5
5
  deep_merge (~> 1.2)
6
6
  erb (~> 2.2)
7
7
  json (~> 2.5)
@@ -12,19 +12,19 @@ PATH
12
12
  GEM
13
13
  remote: https://rubygems.org/
14
14
  specs:
15
- cgi (0.2.0)
16
- deep_merge (1.2.1)
15
+ cgi (0.3.2)
16
+ deep_merge (1.2.2)
17
17
  domain_name (0.5.20190701)
18
18
  unf (>= 0.0.5, < 1.0.0)
19
19
  erb (2.2.3)
20
20
  cgi
21
21
  http-accept (1.7.0)
22
- http-cookie (1.0.4)
22
+ http-cookie (1.0.5)
23
23
  domain_name (~> 0.5)
24
- json (2.5.1)
25
- mime-types (3.3.1)
24
+ json (2.6.2)
25
+ mime-types (3.4.1)
26
26
  mime-types-data (~> 3.2015)
27
- mime-types-data (3.2021.0901)
27
+ mime-types-data (3.2022.0105)
28
28
  minitar (0.9)
29
29
  netrc (0.11.0)
30
30
  rake (13.0.3)
@@ -35,8 +35,8 @@ GEM
35
35
  netrc (~> 0.8)
36
36
  unf (0.1.4)
37
37
  unf_ext
38
- unf_ext (0.0.8)
39
- yaml (0.1.1)
38
+ unf_ext (0.0.8.2)
39
+ yaml (0.2.0)
40
40
 
41
41
  PLATFORMS
42
42
  ruby
@@ -47,4 +47,4 @@ DEPENDENCIES
47
47
  rake (~> 13.0)
48
48
 
49
49
  BUNDLED WITH
50
- 2.2.24
50
+ 2.3.17
@@ -1,6 +1,7 @@
1
1
  require 'rest-client'
2
2
  require 'json'
3
3
  require 'minitar'
4
+ require 'byebug'
4
5
  module Popito
5
6
  class ClientBase
6
7
  API_HOST = 'http://localhost:3000'.freeze
@@ -13,7 +14,10 @@ module Popito
13
14
  private
14
15
 
15
16
  def parse_error(err)
16
- JSON.parse(err.response.body)["message"]
17
+ info=JSON.parse(err.response.body)
18
+ puts "Message: " + info["message"]
19
+ puts ("Debug:\n" + info["debug_data"]) if info["debug_data"]
20
+ info["message"]
17
21
  rescue StandardError
18
22
  "An error has been occurred."
19
23
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Popito
4
- VERSION = "0.0.5.alpha"
4
+ VERSION = "0.0.6.alpha"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: popito
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5.alpha
4
+ version: 0.0.6.alpha
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wagner Caixeta
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-08-18 00:00:00.000000000 Z
11
+ date: 2022-11-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: deep_merge