whatsapp_sdk 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.rubocop.yml +4 -0
- data/CHANGELOG.md +8 -2
- data/Gemfile.lock +2 -1
- data/README.md +1 -1
- data/lib/whatsapp_sdk/api/client.rb +2 -2
- 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,9 +1,15 @@
|
|
1
1
|
# Unreleased
|
2
2
|
|
3
|
-
# v 1.0.
|
4
|
-
-
|
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
|
5
8
|
[#165](https://github.com/ignacio-chiazzo/ruby_whatsapp_sdk/pull/165) @omarowns
|
6
9
|
|
10
|
+
#v 1.0.1
|
11
|
+
- Update `require error` @guizaols [162](https://github.com/ignacio-chiazzo/ruby_whatsapp_sdk/pull/162)
|
12
|
+
|
7
13
|
# v 1.0.0
|
8
14
|
- Implement a Better response API [159](https://github.com/ignacio-chiazzo/ruby_whatsapp_sdk/pull/156)
|
9
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)
|
@@ -75,6 +75,7 @@ GEM
|
|
75
75
|
|
76
76
|
PLATFORMS
|
77
77
|
arm64-darwin-21
|
78
|
+
arm64-darwin-22
|
78
79
|
x86_64-darwin-19
|
79
80
|
x86_64-darwin-21
|
80
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
|
)
|
@@ -50,7 +50,7 @@ module WhatsappSdk
|
|
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
|