Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Unreleased

# v 1.0.4
- Support for version 23 and 24 API. [180](https://github.com/ignacio-chiazzo/ruby_whatsapp_sdk/pull/180)

# v 1.0.3
- Fix configuration bug setting `api_version` on Configure. @frenesim [#168](https://github.com/ignacio-chiazzo/ruby_whatsapp_sdk/pull/168)

Expand Down
26 changes: 13 additions & 13 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
whatsapp_sdk (1.0.3)
whatsapp_sdk (1.0.4)
faraday (~> 2.0, > 2.0.1)
faraday-multipart (~> 1)
zeitwerk (~> 2)
Expand All @@ -16,23 +16,23 @@ GEM
coderay (1.1.3)
crack (0.4.5)
rexml
faraday (2.12.0)
faraday-net_http (>= 2.0, < 3.4)
faraday (2.14.0)
faraday-net_http (>= 2.0, < 3.5)
json
logger
faraday-multipart (1.0.4)
multipart-post (~> 2)
faraday-net_http (3.3.0)
net-http
faraday-multipart (1.2.0)
multipart-post (~> 2.0)
faraday-net_http (3.4.2)
net-http (~> 0.5)
hashdiff (1.0.1)
json (2.7.2)
logger (1.6.1)
json (2.18.0)
logger (1.7.0)
method_source (1.0.0)
minitest (5.16.1)
mocha (1.14.0)
multipart-post (2.4.1)
net-http (0.4.1)
uri
net-http (0.9.1)
uri (>= 0.11.1)
parallel (1.22.1)
parser (3.1.2.0)
ast (~> 2.4.1)
Expand Down Expand Up @@ -64,14 +64,14 @@ GEM
rubocop-ast (>= 0.4.0)
ruby-progressbar (1.11.0)
unicode-display_width (2.2.0)
uri (0.13.2)
uri (1.1.1)
vcr (6.3.1)
base64
webmock (3.18.1)
addressable (>= 2.8.0)
crack (>= 0.3.2)
hashdiff (>= 0.4.0, < 2.0.0)
zeitwerk (2.6.18)
zeitwerk (2.7.4)

PLATFORMS
arm64-darwin-21
Expand Down
2 changes: 1 addition & 1 deletion lib/whatsapp_sdk/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module WhatsappSdk
VERSION = "1.0.3"
VERSION = "1.0.4"
end
10 changes: 5 additions & 5 deletions test/whatsapp/api/client_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def test_logs_http_requests_into_the_logger_without_response_body

assert_includes(middleware_handlers, Faraday::Response::Logger)
assert_match_logger_output!(logged_string)
assert_match('INFO -- response: ', logged_string)
assert_match(/INFO -- :? ?response: /, logged_string)
end

def test_logs_http_requests_into_the_logger_with_response_body
Expand All @@ -104,7 +104,7 @@ def test_logs_http_requests_into_the_logger_with_response_body

logged_string = logger_io.string
assert_match_logger_output!(logged_string)
assert_match('INFO -- response: {"success":true}', logged_string)
assert_match(/INFO -- :? ?response: \{"success":true\}/, logged_string)
end

def test_should_not_log_when_logger_not_configured
Expand Down Expand Up @@ -173,10 +173,10 @@ def faraday_middlewares(client)
end

def assert_match_logger_output!(logged_string)
assert_match('INFO -- request: GET https://graph.facebook.com/v19.0/test', logged_string)
assert_match('INFO -- request: Authorization: "Bearer test_token"', logged_string)
assert_match(%r{INFO -- :? ?request: GET https://graph\.facebook\.com/v19\.0/test}, logged_string)
assert_match(/INFO -- :? ?request: Authorization: "Bearer test_token"/, logged_string)
assert_match('User-Agent: "Faraday', logged_string)
assert_match('INFO -- response: Status 200', logged_string)
assert_match(/INFO -- :? ?response: Status 200/, logged_string)
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion test/whatsapp/version_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@

class VersionTest < Minitest::Test
def test_that_it_has_a_version_number
assert_equal("1.0.3", WhatsappSdk::VERSION)
assert_equal("1.0.4", WhatsappSdk::VERSION)
end
end
Loading