Skip to content

Commit 03e595c

Browse files
Merge pull request #181 from ignacio-chiazzo/release_v_1_0_4
Release 1.0.4
2 parents 3438490 + e186746 commit 03e595c

File tree

5 files changed

+23
-20
lines changed

5 files changed

+23
-20
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Unreleased
22

3+
# v 1.0.4
4+
- Support for version 23 and 24 API. [180](https://github.com/ignacio-chiazzo/ruby_whatsapp_sdk/pull/180)
5+
36
# v 1.0.3
47
- Fix configuration bug setting `api_version` on Configure. @frenesim [#168](https://github.com/ignacio-chiazzo/ruby_whatsapp_sdk/pull/168)
58

Gemfile.lock

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
whatsapp_sdk (1.0.3)
4+
whatsapp_sdk (1.0.4)
55
faraday (~> 2.0, > 2.0.1)
66
faraday-multipart (~> 1)
77
zeitwerk (~> 2)
@@ -16,23 +16,23 @@ GEM
1616
coderay (1.1.3)
1717
crack (0.4.5)
1818
rexml
19-
faraday (2.12.0)
20-
faraday-net_http (>= 2.0, < 3.4)
19+
faraday (2.14.0)
20+
faraday-net_http (>= 2.0, < 3.5)
2121
json
2222
logger
23-
faraday-multipart (1.0.4)
24-
multipart-post (~> 2)
25-
faraday-net_http (3.3.0)
26-
net-http
23+
faraday-multipart (1.2.0)
24+
multipart-post (~> 2.0)
25+
faraday-net_http (3.4.2)
26+
net-http (~> 0.5)
2727
hashdiff (1.0.1)
28-
json (2.7.2)
29-
logger (1.6.1)
28+
json (2.18.0)
29+
logger (1.7.0)
3030
method_source (1.0.0)
3131
minitest (5.16.1)
3232
mocha (1.14.0)
3333
multipart-post (2.4.1)
34-
net-http (0.4.1)
35-
uri
34+
net-http (0.9.1)
35+
uri (>= 0.11.1)
3636
parallel (1.22.1)
3737
parser (3.1.2.0)
3838
ast (~> 2.4.1)
@@ -64,14 +64,14 @@ GEM
6464
rubocop-ast (>= 0.4.0)
6565
ruby-progressbar (1.11.0)
6666
unicode-display_width (2.2.0)
67-
uri (0.13.2)
67+
uri (1.1.1)
6868
vcr (6.3.1)
6969
base64
7070
webmock (3.18.1)
7171
addressable (>= 2.8.0)
7272
crack (>= 0.3.2)
7373
hashdiff (>= 0.4.0, < 2.0.0)
74-
zeitwerk (2.6.18)
74+
zeitwerk (2.7.4)
7575

7676
PLATFORMS
7777
arm64-darwin-21

lib/whatsapp_sdk/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module WhatsappSdk
4-
VERSION = "1.0.3"
4+
VERSION = "1.0.4"
55
end

test/whatsapp/api/client_test.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def test_logs_http_requests_into_the_logger_without_response_body
8787

8888
assert_includes(middleware_handlers, Faraday::Response::Logger)
8989
assert_match_logger_output!(logged_string)
90-
assert_match('INFO -- response: ', logged_string)
90+
assert_match(/INFO -- :? ?response: /, logged_string)
9191
end
9292

9393
def test_logs_http_requests_into_the_logger_with_response_body
@@ -104,7 +104,7 @@ def test_logs_http_requests_into_the_logger_with_response_body
104104

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

110110
def test_should_not_log_when_logger_not_configured
@@ -173,10 +173,10 @@ def faraday_middlewares(client)
173173
end
174174

175175
def assert_match_logger_output!(logged_string)
176-
assert_match('INFO -- request: GET https://graph.facebook.com/v19.0/test', logged_string)
177-
assert_match('INFO -- request: Authorization: "Bearer test_token"', logged_string)
176+
assert_match(%r{INFO -- :? ?request: GET https://graph\.facebook\.com/v19\.0/test}, logged_string)
177+
assert_match(/INFO -- :? ?request: Authorization: "Bearer test_token"/, logged_string)
178178
assert_match('User-Agent: "Faraday', logged_string)
179-
assert_match('INFO -- response: Status 200', logged_string)
179+
assert_match(/INFO -- :? ?response: Status 200/, logged_string)
180180
end
181181
end
182182
end

test/whatsapp/version_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66

77
class VersionTest < Minitest::Test
88
def test_that_it_has_a_version_number
9-
assert_equal("1.0.3", WhatsappSdk::VERSION)
9+
assert_equal("1.0.4", WhatsappSdk::VERSION)
1010
end
1111
end

0 commit comments

Comments
 (0)