qismo 0.1.0 → 0.1.4

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: 3b17d0ba64fc0e678f76fdc720b1f6780efc9324e78a17a5b046a11ca2c20c63
4
- data.tar.gz: 2168cf3d3fa3b04ad3fffbe18518fd093a11de22be1fbe6ae04939c3ad8d1ed5
3
+ metadata.gz: b6b5b31bbd5b2640bbfc59aff6b0c41115dc10c67128efb0678c684e1ff50ce0
4
+ data.tar.gz: 429f8c1605ab11c7af95e5440ac0026a64f5261f2d27141772119ca0d264b0ed
5
5
  SHA512:
6
- metadata.gz: 937249a7bc7751c3de6f3a1c5cdf735dbacc2a772a447ae0aba852c0a07aa53544cf1239dcd9bd516a450ffffeffe39214a3befc450b24323968ef7d4ecbea1e
7
- data.tar.gz: 0bd51e327f166527a15a183441c83a39413ae23a560803643191796af3eab349a3ea32d20b43fb4fd852d3dd5e9a8a3cd2783dce1efe15038865c6d4fe285082
6
+ metadata.gz: 0353e54c6e8f8ab27f3ca4b29ffdc4940ceaa5a59575d172cc1662b3185eca5063cf4028cf331b1af92960a3dc0355b815bde9f8bf4eb3c25160d43988024ad2
7
+ data.tar.gz: f7638d7000e500242ccc1f2ef0ee80664b9595ea20fed85650d46e60ec6ce1dcf8fd020645e10999a41756f33a9640498c22593e586fc5305da951a2fadc75f0
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.4)
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.0"
5
+ VERSION = "0.1.4"
6
6
  end
data/qismo.gemspec CHANGED
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
11
11
  spec.summary = "Qiscus Multichannel Ruby Client"
12
12
  spec.homepage = "https://multichannel.qiscus.com"
13
13
  spec.license = "MIT"
14
- spec.required_ruby_version = Gem::Requirement.new(">= 2.4.0")
14
+ spec.required_ruby_version = Gem::Requirement.new(">= 2.6.0")
15
15
 
16
16
  # Specify which files should be added to the gem when it is released.
17
17
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
@@ -24,7 +24,7 @@ Gem::Specification.new do |spec|
24
24
  spec.require_paths = ["lib"]
25
25
 
26
26
  # spec.add_runtime_dependency("activesupport", "~> 7.0")
27
- spec.add_runtime_dependency("http", "~> 4.4")
27
+ spec.add_runtime_dependency("http", "~> 5.0")
28
28
 
29
29
  spec.add_development_dependency("rubocop-shopify", "~> 2.3")
30
30
  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.0
4
+ version: 0.1.4
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
@@ -17,14 +17,14 @@ dependencies:
17
17
  requirements:
18
18
  - - "~>"
19
19
  - !ruby/object:Gem::Version
20
- version: '4.4'
20
+ version: '5.0'
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - "~>"
26
26
  - !ruby/object:Gem::Version
27
- version: '4.4'
27
+ version: '5.0'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: rubocop-shopify
30
30
  requirement: !ruby/object:Gem::Requirement
@@ -92,7 +92,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
92
92
  requirements:
93
93
  - - ">="
94
94
  - !ruby/object:Gem::Version
95
- version: 2.4.0
95
+ version: 2.6.0
96
96
  required_rubygems_version: !ruby/object:Gem::Requirement
97
97
  requirements:
98
98
  - - ">="