From 9e965f284362e050c643ee1c5f2299b39847c3a6 Mon Sep 17 00:00:00 2001 From: Antonio Roberto Silva Date: Tue, 25 Jun 2024 21:18:44 -0300 Subject: [PATCH] fixes for ci --- Gemfile.lock | 11 ++++++----- lib/blnk/ledger.rb | 2 ++ 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 83d23f3..8ba1195 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -7,8 +7,8 @@ PATH GEM remote: https://rubygems.org/ specs: - addressable (2.8.6) - public_suffix (>= 2.0.2, < 6.0) + addressable (2.8.7) + public_suffix (>= 2.0.2, < 7.0) ansi (1.5.0) ast (2.4.2) backport (1.2.0) @@ -46,7 +46,7 @@ GEM llhttp-ffi (0.5.0) ffi-compiler (~> 1.0) rake (~> 13.0) - minitest (5.23.1) + minitest (5.24.0) minitest-reporters (1.7.1) ansi builder @@ -58,7 +58,7 @@ GEM parser (3.3.3.0) ast (~> 2.4.1) racc - public_suffix (5.0.5) + public_suffix (6.0.0) racc (1.8.0) rainbow (3.1.1) rake (13.2.1) @@ -66,7 +66,7 @@ GEM regexp_parser (2.9.2) reverse_markdown (2.1.1) nokogiri - rexml (3.3.0) + rexml (3.3.1) strscan rubocop (1.64.1) json (~> 2.3) @@ -110,6 +110,7 @@ GEM PLATFORMS arm64-darwin + x86_64-linux DEPENDENCIES blnk! diff --git a/lib/blnk/ledger.rb b/lib/blnk/ledger.rb index abcb724..d046ba0 100644 --- a/lib/blnk/ledger.rb +++ b/lib/blnk/ledger.rb @@ -26,6 +26,8 @@ def self.create(*) end def save + return self if ledger_id + response = post_request(path: '/ledgers', body: body_data) return response unless response.status.success?