whatsapp_sdk 1.0.0 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +14 -11
- data/lib/whatsapp_sdk/api/client.rb +5 -5
- data/lib/whatsapp_sdk/resource/errors.rb +1 -1
- data/lib/whatsapp_sdk/version.rb +1 -1
- data/whatsapp_sdk.gemspec +1 -1
- metadata +10 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ed93aabe8b6cb2967a908c8ae113f76529462e1b768bd3cc523ed7cd0873e958
|
4
|
+
data.tar.gz: a016f51ad25dcd88e0cce06b9e42feeae0ff0812daaffe2c700cd4aeb5f724ab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 64241a3b2899343c95f87ae6541246c472266a5c061b294e9c13fe25088d5eacdeff671f25bf830dc5700240c64c64be3d0d539458ae05721ede51adba341e25
|
7
|
+
data.tar.gz: 1fc21288923a4092d4830be7f730284c492900195795d963db99f9830d4eceee8119d03596ff06c6a62711eee11ad9af1bdfccbf77c42f177581ed06b82da8d2
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
# Unreleased
|
2
2
|
|
3
|
+
# v 1.0.1
|
4
|
+
- Send the current client instance to the initializer of the client resource #165
|
5
|
+
[#165](https://github.com/ignacio-chiazzo/ruby_whatsapp_sdk/pull/165) @omarowns
|
6
|
+
|
3
7
|
# v 1.0.0
|
4
8
|
- Implement a Better response API [159](https://github.com/ignacio-chiazzo/ruby_whatsapp_sdk/pull/156)
|
5
9
|
- Implement a Better API for calling the Cloud API [156](https://github.com/ignacio-chiazzo/ruby_whatsapp_sdk/pull/156)
|
data/Gemfile.lock
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
whatsapp_sdk (1.0.
|
5
|
-
faraday (~> 2)
|
4
|
+
whatsapp_sdk (1.0.2)
|
5
|
+
faraday (~> 2.0, > 2.0.1)
|
6
6
|
faraday-multipart (~> 1)
|
7
7
|
zeitwerk (~> 2)
|
8
8
|
|
@@ -16,18 +16,23 @@ GEM
|
|
16
16
|
coderay (1.1.3)
|
17
17
|
crack (0.4.5)
|
18
18
|
rexml
|
19
|
-
faraday (2.
|
20
|
-
|
21
|
-
|
22
|
-
|
19
|
+
faraday (2.12.0)
|
20
|
+
faraday-net_http (>= 2.0, < 3.4)
|
21
|
+
json
|
22
|
+
logger
|
23
23
|
faraday-multipart (1.0.4)
|
24
24
|
multipart-post (~> 2)
|
25
|
-
faraday-net_http (3.0
|
25
|
+
faraday-net_http (3.3.0)
|
26
|
+
net-http
|
26
27
|
hashdiff (1.0.1)
|
28
|
+
json (2.7.2)
|
29
|
+
logger (1.6.1)
|
27
30
|
method_source (1.0.0)
|
28
31
|
minitest (5.16.1)
|
29
32
|
mocha (1.14.0)
|
30
33
|
multipart-post (2.4.1)
|
34
|
+
net-http (0.4.1)
|
35
|
+
uri
|
31
36
|
parallel (1.22.1)
|
32
37
|
parser (3.1.2.0)
|
33
38
|
ast (~> 2.4.1)
|
@@ -40,8 +45,7 @@ GEM
|
|
40
45
|
rainbow (3.1.1)
|
41
46
|
rake (12.3.3)
|
42
47
|
regexp_parser (2.5.0)
|
43
|
-
rexml (3.3.
|
44
|
-
strscan
|
48
|
+
rexml (3.3.9)
|
45
49
|
rubocop (1.30.1)
|
46
50
|
parallel (~> 1.10)
|
47
51
|
parser (>= 3.1.0.0)
|
@@ -59,9 +63,8 @@ GEM
|
|
59
63
|
rubocop (>= 1.7.0, < 2.0)
|
60
64
|
rubocop-ast (>= 0.4.0)
|
61
65
|
ruby-progressbar (1.11.0)
|
62
|
-
ruby2_keywords (0.0.5)
|
63
|
-
strscan (3.1.0)
|
64
66
|
unicode-display_width (2.2.0)
|
67
|
+
uri (0.13.1)
|
65
68
|
vcr (6.3.1)
|
66
69
|
base64
|
67
70
|
webmock (3.18.1)
|
@@ -28,23 +28,23 @@ module WhatsappSdk
|
|
28
28
|
end
|
29
29
|
|
30
30
|
def media
|
31
|
-
@media ||= WhatsappSdk::Api::Medias.new
|
31
|
+
@media ||= WhatsappSdk::Api::Medias.new(self)
|
32
32
|
end
|
33
33
|
|
34
34
|
def messages
|
35
|
-
@messages ||= WhatsappSdk::Api::Messages.new
|
35
|
+
@messages ||= WhatsappSdk::Api::Messages.new(self)
|
36
36
|
end
|
37
37
|
|
38
38
|
def phone_numbers
|
39
|
-
@phone_numbers ||= WhatsappSdk::Api::PhoneNumbers.new
|
39
|
+
@phone_numbers ||= WhatsappSdk::Api::PhoneNumbers.new(self)
|
40
40
|
end
|
41
41
|
|
42
42
|
def business_profiles
|
43
|
-
@business_profiles ||= WhatsappSdk::Api::BusinessProfile.new
|
43
|
+
@business_profiles ||= WhatsappSdk::Api::BusinessProfile.new(self)
|
44
44
|
end
|
45
45
|
|
46
46
|
def templates
|
47
|
-
@templates ||= WhatsappSdk::Api::Templates.new
|
47
|
+
@templates ||= WhatsappSdk::Api::Templates.new(self)
|
48
48
|
end
|
49
49
|
|
50
50
|
def send_request(endpoint: "", full_url: nil, http_method: "post", params: {}, headers: {}, multipart: false)
|
data/lib/whatsapp_sdk/version.rb
CHANGED
data/whatsapp_sdk.gemspec
CHANGED
@@ -44,7 +44,7 @@ Gem::Specification.new do |spec|
|
|
44
44
|
spec.add_development_dependency("minitest", "~> 5.0")
|
45
45
|
spec.add_development_dependency("rake", "~> 12.3")
|
46
46
|
|
47
|
-
spec.add_dependency("faraday", "~> 2")
|
47
|
+
spec.add_dependency("faraday", "~> 2.0", "> 2.0.1")
|
48
48
|
spec.add_dependency("faraday-multipart", "~> 1")
|
49
49
|
spec.add_dependency("zeitwerk", "~> 2")
|
50
50
|
spec.metadata['rubygems_mfa_required'] = 'true'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: whatsapp_sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ignacio-chiazzo
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-12-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -58,14 +58,20 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '2'
|
61
|
+
version: '2.0'
|
62
|
+
- - ">"
|
63
|
+
- !ruby/object:Gem::Version
|
64
|
+
version: 2.0.1
|
62
65
|
type: :runtime
|
63
66
|
prerelease: false
|
64
67
|
version_requirements: !ruby/object:Gem::Requirement
|
65
68
|
requirements:
|
66
69
|
- - "~>"
|
67
70
|
- !ruby/object:Gem::Version
|
68
|
-
version: '2'
|
71
|
+
version: '2.0'
|
72
|
+
- - ">"
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: 2.0.1
|
69
75
|
- !ruby/object:Gem::Dependency
|
70
76
|
name: faraday-multipart
|
71
77
|
requirement: !ruby/object:Gem::Requirement
|