From edcb2a881a72b7f97527c3b031516000dd3d46a7 Mon Sep 17 00:00:00 2001 From: ignacio-chiazzo Date: Wed, 16 Oct 2024 15:08:32 -0300 Subject: [PATCH 1/4] bump version --- lib/whatsapp_sdk/version.rb | 2 +- test/whatsapp/version_test.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/whatsapp_sdk/version.rb b/lib/whatsapp_sdk/version.rb index 999d295..b44a0ce 100644 --- a/lib/whatsapp_sdk/version.rb +++ b/lib/whatsapp_sdk/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module WhatsappSdk - VERSION = "1.0.0" + VERSION = "1.0.1" end diff --git a/test/whatsapp/version_test.rb b/test/whatsapp/version_test.rb index ddb890f..ef90a59 100644 --- a/test/whatsapp/version_test.rb +++ b/test/whatsapp/version_test.rb @@ -6,6 +6,6 @@ class VersionTest < Minitest::Test def test_that_it_has_a_version_number - assert_equal("1.0.0", WhatsappSdk::VERSION) + assert_equal("1.0.1", WhatsappSdk::VERSION) end end From d3217bfefebd985a1cd7a6565075586b676ce8c5 Mon Sep 17 00:00:00 2001 From: ignacio-chiazzo Date: Wed, 16 Oct 2024 15:08:42 -0300 Subject: [PATCH 2/4] bump libraries --- Gemfile.lock | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 9435f78..2ec3188 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - whatsapp_sdk (1.0.0) + whatsapp_sdk (1.0.1) faraday (~> 2) faraday-multipart (~> 1) zeitwerk (~> 2) @@ -16,18 +16,23 @@ GEM coderay (1.1.3) crack (0.4.5) rexml - faraday (2.8.1) - base64 - faraday-net_http (>= 2.0, < 3.1) - ruby2_keywords (>= 0.0.4) + faraday (2.12.0) + faraday-net_http (>= 2.0, < 3.4) + json + logger faraday-multipart (1.0.4) multipart-post (~> 2) - faraday-net_http (3.0.2) + faraday-net_http (3.3.0) + net-http hashdiff (1.0.1) + json (2.7.2) + logger (1.6.1) method_source (1.0.0) minitest (5.16.1) mocha (1.14.0) multipart-post (2.4.1) + net-http (0.4.1) + uri parallel (1.22.1) parser (3.1.2.0) ast (~> 2.4.1) @@ -59,9 +64,9 @@ GEM rubocop (>= 1.7.0, < 2.0) rubocop-ast (>= 0.4.0) ruby-progressbar (1.11.0) - ruby2_keywords (0.0.5) strscan (3.1.0) unicode-display_width (2.2.0) + uri (0.13.1) vcr (6.3.1) base64 webmock (3.18.1) From 4b747700a9ef3353c466890a3bdc107bbf60575e Mon Sep 17 00:00:00 2001 From: ignacio-chiazzo Date: Wed, 16 Oct 2024 15:16:49 -0300 Subject: [PATCH 3/4] upgrade faraday --- Gemfile.lock | 2 +- whatsapp_sdk.gemspec | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 2ec3188..ea06285 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -2,7 +2,7 @@ PATH remote: . specs: whatsapp_sdk (1.0.1) - faraday (~> 2) + faraday (~> 2.0, > 2.0.1) faraday-multipart (~> 1) zeitwerk (~> 2) diff --git a/whatsapp_sdk.gemspec b/whatsapp_sdk.gemspec index 91ebec1..0c579e6 100644 --- a/whatsapp_sdk.gemspec +++ b/whatsapp_sdk.gemspec @@ -44,7 +44,7 @@ Gem::Specification.new do |spec| spec.add_development_dependency("minitest", "~> 5.0") spec.add_development_dependency("rake", "~> 12.3") - spec.add_dependency("faraday", "~> 2") + spec.add_dependency("faraday", "~> 2.0", "> 2.0.1") spec.add_dependency("faraday-multipart", "~> 1") spec.add_dependency("zeitwerk", "~> 2") spec.metadata['rubygems_mfa_required'] = 'true' From 57047028e16788207161ba662cde973f1a3a1915 Mon Sep 17 00:00:00 2001 From: ignacio-chiazzo Date: Wed, 16 Oct 2024 15:18:57 -0300 Subject: [PATCH 4/4] fix linter --- test/whatsapp/api/templates_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/whatsapp/api/templates_test.rb b/test/whatsapp/api/templates_test.rb index b17bc16..ff9708d 100644 --- a/test/whatsapp/api/templates_test.rb +++ b/test/whatsapp/api/templates_test.rb @@ -80,7 +80,7 @@ def test_get_templates { "type" => "BODY", "text" => "Welcome and congratulations!! This message demonstrates your ability to send a message " \ - "notification from WhatsApp Business Platform’s Cloud API. Thank you for taking the time "\ + "notification from WhatsApp Business Platform’s Cloud API. Thank you for taking the time " \ "to test with us." }, { "type" => "FOOTER", "text" => "WhatsApp Business API Team" }], first_template.components_json