whatsapp_sdk 1.0.1 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +4 -0
- data/CHANGELOG.md +10 -0
- data/Gemfile.lock +3 -4
- data/README.md +1 -1
- data/lib/whatsapp_sdk/api/client.rb +7 -7
- data/lib/whatsapp_sdk/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 68fa7bcce031d800ba3b8c541992921e602fd9266172fda8c2b9db9a0d400efc
|
4
|
+
data.tar.gz: e7922f22f38e79a5e2cca6377c86d0bc5a1a2a26beb859b2311b21f6a9be33e7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f4ae0d0f4f0fff5d85d22255ed36eb063f7b4a3eac744f4d31dca4fc5c86605116bf34043932e17a4b10e8dba9433cf1a7c2aaca54a0becd5bf13ae8ce00a167
|
7
|
+
data.tar.gz: d0a8e8ef860b48363804833bb518dafc5eb417e09f53d1ffd5cfd797368d9611d040fcdbec55977d886bea265924916c35c65e54c07ba1a41773cb1c2060fa9d
|
data/.rubocop.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,15 @@
|
|
1
1
|
# Unreleased
|
2
2
|
|
3
|
+
# v 1.0.3
|
4
|
+
- Fix configuration bug setting `api_version` on Configure. @frenesim [#168](https://github.com/ignacio-chiazzo/ruby_whatsapp_sdk/pull/168)
|
5
|
+
|
6
|
+
# v 1.0.2
|
7
|
+
- Send the current client instance to the initializer of the client resource #165
|
8
|
+
[#165](https://github.com/ignacio-chiazzo/ruby_whatsapp_sdk/pull/165) @omarowns
|
9
|
+
|
10
|
+
#v 1.0.1
|
11
|
+
- Update `require error` @guizaols [162](https://github.com/ignacio-chiazzo/ruby_whatsapp_sdk/pull/162)
|
12
|
+
|
3
13
|
# v 1.0.0
|
4
14
|
- Implement a Better response API [159](https://github.com/ignacio-chiazzo/ruby_whatsapp_sdk/pull/156)
|
5
15
|
- 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,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
whatsapp_sdk (1.0.
|
4
|
+
whatsapp_sdk (1.0.3)
|
5
5
|
faraday (~> 2.0, > 2.0.1)
|
6
6
|
faraday-multipart (~> 1)
|
7
7
|
zeitwerk (~> 2)
|
@@ -45,8 +45,7 @@ GEM
|
|
45
45
|
rainbow (3.1.1)
|
46
46
|
rake (12.3.3)
|
47
47
|
regexp_parser (2.5.0)
|
48
|
-
rexml (3.3.
|
49
|
-
strscan
|
48
|
+
rexml (3.3.9)
|
50
49
|
rubocop (1.30.1)
|
51
50
|
parallel (~> 1.10)
|
52
51
|
parser (>= 3.1.0.0)
|
@@ -64,7 +63,6 @@ GEM
|
|
64
63
|
rubocop (>= 1.7.0, < 2.0)
|
65
64
|
rubocop-ast (>= 0.4.0)
|
66
65
|
ruby-progressbar (1.11.0)
|
67
|
-
strscan (3.1.0)
|
68
66
|
unicode-display_width (2.2.0)
|
69
67
|
uri (0.13.1)
|
70
68
|
vcr (6.3.1)
|
@@ -77,6 +75,7 @@ GEM
|
|
77
75
|
|
78
76
|
PLATFORMS
|
79
77
|
arm64-darwin-21
|
78
|
+
arm64-darwin-22
|
80
79
|
x86_64-darwin-19
|
81
80
|
x86_64-darwin-21
|
82
81
|
x86_64-linux
|
data/README.md
CHANGED
@@ -483,7 +483,7 @@ Note: Sometimes the messages are delayed; see [Meta documentation](https://devel
|
|
483
483
|
|
484
484
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests.
|
485
485
|
|
486
|
-
Run ' bundle exec rake install
|
486
|
+
Run ' bundle exec rake install' to install this gem onto your local machine. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
487
487
|
|
488
488
|
### Run all the tests
|
489
489
|
|
@@ -15,7 +15,7 @@ module WhatsappSdk
|
|
15
15
|
|
16
16
|
def initialize(
|
17
17
|
access_token = WhatsappSdk.configuration.access_token,
|
18
|
-
api_version =
|
18
|
+
api_version = WhatsappSdk.configuration.api_version,
|
19
19
|
logger = nil,
|
20
20
|
logger_options = {}
|
21
21
|
)
|
@@ -28,29 +28,29 @@ 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)
|
51
51
|
url = full_url || "#{ApiConfiguration::API_URL}/#{@api_version}/"
|
52
52
|
|
53
|
-
faraday_request = faraday(url
|
53
|
+
faraday_request = faraday(url:, multipart:)
|
54
54
|
|
55
55
|
response = faraday_request.public_send(http_method, endpoint, request_params(params, headers), headers)
|
56
56
|
|
data/lib/whatsapp_sdk/version.rb
CHANGED
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.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ignacio-chiazzo
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-01-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|