freshchat_whatsapp 0.1.0 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/freshchat_whatsapp.gemspec +1 -2
- data/lib/freshchat_whatsapp/client.rb +0 -10
- data/lib/freshchat_whatsapp/version.rb +1 -1
- metadata +4 -24
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4b9358445148af3b6517df994e94b2be0890569c4a1e0da5bbf1713a38d7b35e
|
4
|
+
data.tar.gz: 0266f6d8591e0bb329ed04d40c653149cc59d1fb95ee3fcb389bd6909fb94206
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc57debcbb509e2dfd8a6f1ae6ced2f4fc07e2e79417812a31da486fd2d7081dd288bc388a17e878ab065e084c83664abdeb9dc73413178007b76a7411bf3de4
|
7
|
+
data.tar.gz: b0ae3a5d35485fb2c07f2aaf7d398fefe604a05901e21803b9bf634e87a1988b10db62d91742c5d9bbe6f0671ecff80468dae99560e1966952098a9c94c3cb62
|
data/freshchat_whatsapp.gemspec
CHANGED
@@ -29,8 +29,7 @@ Gem::Specification.new do |spec|
|
|
29
29
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
30
30
|
spec.require_paths = ['lib']
|
31
31
|
|
32
|
-
spec.add_dependency 'faraday'
|
33
|
-
spec.add_development_dependency 'pry-byebug', '~> 3.6'
|
32
|
+
spec.add_dependency 'faraday'
|
34
33
|
spec.add_development_dependency 'rake', '~> 12.0'
|
35
34
|
spec.add_development_dependency 'rspec', '~> 3.0'
|
36
35
|
end
|
@@ -12,11 +12,6 @@ module FreshchatWhatsapp
|
|
12
12
|
full_path = "#{base_path}#{path}"
|
13
13
|
conn = Faraday.new(url: full_path, headers: headers)
|
14
14
|
response = conn.post { |request| request.body = body(payload) }
|
15
|
-
|
16
|
-
unless response.success?
|
17
|
-
raise FreshchatWhatsapp::Errors::RequestError.new('FreshchatWhatsapp API request error.', response.body)
|
18
|
-
end
|
19
|
-
|
20
15
|
JSON.parse(response.body)
|
21
16
|
end
|
22
17
|
|
@@ -24,11 +19,6 @@ module FreshchatWhatsapp
|
|
24
19
|
full_path = "#{base_path}#{path}"
|
25
20
|
conn = Faraday.new(url: full_path, headers: headers)
|
26
21
|
response = conn.get { |request| request.body = body(payload) }
|
27
|
-
|
28
|
-
unless response.success?
|
29
|
-
raise FreshchatWhatsapp::Errors::RequestError.new('FreshchatWhatsapp API request error.', response.body)
|
30
|
-
end
|
31
|
-
|
32
22
|
JSON.parse(response.body)
|
33
23
|
end
|
34
24
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: freshchat_whatsapp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Arvind Vyas
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-11-
|
11
|
+
date: 2023-11-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -16,34 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
20
|
-
- - "<"
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: '3'
|
19
|
+
version: '0'
|
23
20
|
type: :runtime
|
24
21
|
prerelease: false
|
25
22
|
version_requirements: !ruby/object:Gem::Requirement
|
26
23
|
requirements:
|
27
24
|
- - ">="
|
28
25
|
- !ruby/object:Gem::Version
|
29
|
-
version: '
|
30
|
-
- - "<"
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
version: '3'
|
33
|
-
- !ruby/object:Gem::Dependency
|
34
|
-
name: pry-byebug
|
35
|
-
requirement: !ruby/object:Gem::Requirement
|
36
|
-
requirements:
|
37
|
-
- - "~>"
|
38
|
-
- !ruby/object:Gem::Version
|
39
|
-
version: '3.6'
|
40
|
-
type: :development
|
41
|
-
prerelease: false
|
42
|
-
version_requirements: !ruby/object:Gem::Requirement
|
43
|
-
requirements:
|
44
|
-
- - "~>"
|
45
|
-
- !ruby/object:Gem::Version
|
46
|
-
version: '3.6'
|
26
|
+
version: '0'
|
47
27
|
- !ruby/object:Gem::Dependency
|
48
28
|
name: rake
|
49
29
|
requirement: !ruby/object:Gem::Requirement
|