qismo 0.1.1 → 0.1.5

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: 7961e7f1cdd83d7b96cf3670ce9a8e8f1defb8c7ce47dcc16e346775b6f4ab72
4
- data.tar.gz: 99d9edf9236c17865b7438fd0f23b629db816cc48d35f974aec4202ebcecbf2f
3
+ metadata.gz: 5c4eb425c07da2c102b9957e98e81eb8f5b5fb7f20b490f28f9f024774f54842
4
+ data.tar.gz: 6495f38b266671afbc9ddb8fa2cf06bac1e840d2e056785ccd0211be13b2ee43
5
5
  SHA512:
6
- metadata.gz: db8946cd07738b2ca32af700f4847dc3ae3791d4a8cd8699fb04f57050f4d993e9520cedc73f7a54dfebf30d0d616b25d62b861537f7ee6a685afa7ff09f2744
7
- data.tar.gz: 88e1c187cec631d9183a37fab56fe0ea3b8906657aeb711c5d19bd9a9cbf411af23f06fd44479f8278659e4ce7c56bd8602f6c655885bfe1b943e75480323182
6
+ metadata.gz: 04d8aeaac5a6359f6037c0e045f0a826d15d00f354cf983408345140af0bd15462c43029b26e4d9200e83b188dac93f8ca6c3925f86a20208a2f14f038551f9b
7
+ data.tar.gz: c634e814a64978335121be344cd6cf49bc8855caaaff4a93dd8d87f3db6ae85ac4e5dc736c9c12043950958c7fcba9757a3ca57426377389f81935473bfdac56
data/.gitignore CHANGED
@@ -9,3 +9,4 @@
9
9
 
10
10
  # rspec failure tracking
11
11
  .rspec_status
12
+ *.gem
data/Gemfile CHANGED
@@ -5,7 +5,5 @@ source "https://rubygems.org"
5
5
  # Specify your gem's dependencies in qismo.gemspec
6
6
  gemspec
7
7
 
8
- gem "rake", "~> 12.0"
8
+ gem "rake", "~> 13.0"
9
9
  gem "rspec", "~> 3.0"
10
-
11
- gem "http", "~> 4.4"
data/Gemfile.lock CHANGED
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- qismo (0.1.0)
5
- http (~> 4.4)
4
+ qismo (0.1.5)
5
+ http (~> 5.0)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
@@ -13,54 +13,55 @@ GEM
13
13
  diff-lcs (1.5.0)
14
14
  domain_name (0.5.20190701)
15
15
  unf (>= 0.0.5, < 1.0.0)
16
- ffi (1.15.4)
16
+ ffi (1.15.5)
17
17
  ffi-compiler (1.0.1)
18
18
  ffi (>= 1.0.0)
19
19
  rake
20
- http (4.4.1)
21
- addressable (~> 2.3)
20
+ http (5.0.4)
21
+ addressable (~> 2.8)
22
22
  http-cookie (~> 1.0)
23
23
  http-form_data (~> 2.2)
24
- http-parser (~> 1.2.0)
24
+ llhttp-ffi (~> 0.4.0)
25
25
  http-cookie (1.0.4)
26
26
  domain_name (~> 0.5)
27
27
  http-form_data (2.3.0)
28
- http-parser (1.2.3)
29
- ffi-compiler (>= 1.0, < 2.0)
28
+ llhttp-ffi (0.4.0)
29
+ ffi-compiler (~> 1.0)
30
+ rake (~> 13.0)
30
31
  parallel (1.21.0)
31
- parser (3.0.3.2)
32
+ parser (3.1.1.0)
32
33
  ast (~> 2.4.1)
33
34
  public_suffix (4.0.6)
34
- rainbow (3.0.0)
35
- rake (12.3.3)
36
- regexp_parser (2.2.0)
35
+ rainbow (3.1.1)
36
+ rake (13.0.6)
37
+ regexp_parser (2.2.1)
37
38
  rexml (3.2.5)
38
- rspec (3.10.0)
39
- rspec-core (~> 3.10.0)
40
- rspec-expectations (~> 3.10.0)
41
- rspec-mocks (~> 3.10.0)
42
- rspec-core (3.10.1)
43
- rspec-support (~> 3.10.0)
44
- rspec-expectations (3.10.1)
39
+ rspec (3.11.0)
40
+ rspec-core (~> 3.11.0)
41
+ rspec-expectations (~> 3.11.0)
42
+ rspec-mocks (~> 3.11.0)
43
+ rspec-core (3.11.0)
44
+ rspec-support (~> 3.11.0)
45
+ rspec-expectations (3.11.0)
45
46
  diff-lcs (>= 1.2.0, < 2.0)
46
- rspec-support (~> 3.10.0)
47
- rspec-mocks (3.10.2)
47
+ rspec-support (~> 3.11.0)
48
+ rspec-mocks (3.11.0)
48
49
  diff-lcs (>= 1.2.0, < 2.0)
49
- rspec-support (~> 3.10.0)
50
- rspec-support (3.10.3)
51
- rubocop (1.24.0)
50
+ rspec-support (~> 3.11.0)
51
+ rspec-support (3.11.0)
52
+ rubocop (1.25.1)
52
53
  parallel (~> 1.10)
53
- parser (>= 3.0.0.0)
54
+ parser (>= 3.1.0.0)
54
55
  rainbow (>= 2.2.2, < 4.0)
55
56
  regexp_parser (>= 1.8, < 3.0)
56
57
  rexml
57
- rubocop-ast (>= 1.15.0, < 2.0)
58
+ rubocop-ast (>= 1.15.1, < 2.0)
58
59
  ruby-progressbar (~> 1.7)
59
60
  unicode-display_width (>= 1.4.0, < 3.0)
60
- rubocop-ast (1.15.0)
61
- parser (>= 3.0.1.1)
62
- rubocop-shopify (2.3.0)
63
- rubocop (~> 1.22)
61
+ rubocop-ast (1.16.0)
62
+ parser (>= 3.1.1.0)
63
+ rubocop-shopify (2.4.0)
64
+ rubocop (~> 1.24)
64
65
  ruby-progressbar (1.11.0)
65
66
  unf (0.1.4)
66
67
  unf_ext
@@ -71,9 +72,8 @@ PLATFORMS
71
72
  ruby
72
73
 
73
74
  DEPENDENCIES
74
- http (~> 4.4)
75
75
  qismo!
76
- rake (~> 12.0)
76
+ rake (~> 13.0)
77
77
  rspec (~> 3.0)
78
78
  rubocop-shopify (~> 2.3)
79
79
 
@@ -36,7 +36,7 @@ module Qismo
36
36
 
37
37
  body = resp.http_body
38
38
  room = body.dig("data", "customer_room")
39
- if room == {}
39
+ unless room
40
40
  raise NotFound.new(
41
41
  "Room with id #{id} is not found",
42
42
  http_code: 404,
@@ -124,7 +124,7 @@ module Qismo
124
124
  end
125
125
 
126
126
  klass.message = error_message
127
- klass.message = errors if klass.message.is_a?(String)
127
+ klass.message = error if klass.message.is_a?(String)
128
128
  else
129
129
  klass.message = klass.http_body
130
130
  end
data/lib/qismo/version.rb CHANGED
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Qismo
4
4
  # @return [String] gem version constant
5
- VERSION = "0.1.1"
5
+ VERSION = "0.1.5"
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qismo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nurcholis Art
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2022-02-22 00:00:00.000000000 Z
12
+ date: 2022-03-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: http
@@ -57,8 +57,6 @@ files:
57
57
  - LICENSE.txt
58
58
  - README.md
59
59
  - Rakefile
60
- - bin/console
61
- - bin/setup
62
60
  - lib/qismo.rb
63
61
  - lib/qismo/client.rb
64
62
  - lib/qismo/errors.rb
data/bin/console DELETED
@@ -1,14 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require "bundler/setup"
4
- require "qismo"
5
-
6
- # You can add fixtures and/or initialization code here to make experimenting
7
- # with your gem easier. You can also use a different console, if you like.
8
-
9
- # (If you use this, don't forget to add pry to your Gemfile!)
10
- # require "pry"
11
- # Pry.start
12
-
13
- require "irb"
14
- IRB.start(__FILE__)
data/bin/setup DELETED
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
- set -vx
5
-
6
- bundle install
7
-
8
- # Do any other automated setup that you need to do here