From 51e24fe9f907c6d7664348ee5bbcdb32fe8ac370 Mon Sep 17 00:00:00 2001 From: GregDaniels813 Date: Fri, 18 Aug 2023 14:06:18 -0600 Subject: [PATCH 1/5] Update cassette.rb to use exist --- lib/tcr/cassette.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tcr/cassette.rb b/lib/tcr/cassette.rb index eee1e1c..2a18036 100644 --- a/lib/tcr/cassette.rb +++ b/lib/tcr/cassette.rb @@ -16,7 +16,7 @@ def initialize(name) end def recording? - @recording ||= !File.exists?(filename) + @recording ||= !File.exist?(filename) end def next_session From f879a10d000cec911a3ea76fdfe553f63da8300a Mon Sep 17 00:00:00 2001 From: GregDaniels813 Date: Fri, 18 Aug 2023 14:06:35 -0600 Subject: [PATCH 2/5] Update version.rb --- lib/tcr/version.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tcr/version.rb b/lib/tcr/version.rb index d850e58..30651ac 100644 --- a/lib/tcr/version.rb +++ b/lib/tcr/version.rb @@ -1,3 +1,3 @@ module TCR - VERSION = "0.3.0" + VERSION = "0.4.0" end From b60da9125469e31168dc42b45e60160b87441eb2 Mon Sep 17 00:00:00 2001 From: GregDaniels813 Date: Fri, 18 Aug 2023 14:07:34 -0600 Subject: [PATCH 3/5] Update tcr_spec.rb to use exist instead of exists --- spec/tcr_spec.rb | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/spec/tcr_spec.rb b/spec/tcr_spec.rb index a0fadc5..6103430 100644 --- a/spec/tcr_spec.rb +++ b/spec/tcr_spec.rb @@ -15,13 +15,13 @@ end around(:each) do |example| - File.unlink("test.json") if File.exists?("test.json") - File.unlink("test.yaml") if File.exists?("test.yaml") - File.unlink("test.marshal") if File.exists?("test.marshal") + File.unlink("test.json") if File.exist?("test.json") + File.unlink("test.yaml") if File.exist?("test.yaml") + File.unlink("test.marshal") if File.exist?("test.marshal") example.run - File.unlink("test.json") if File.exists?("test.json") - File.unlink("test.yaml") if File.exists?("test.yaml") - File.unlink("test.marshal") if File.exists?("test.marshal") + File.unlink("test.json") if File.exist?("test.json") + File.unlink("test.yaml") if File.exist?("test.yaml") + File.unlink("test.marshal") if File.exist?("test.marshal") end describe ".configuration" do @@ -214,7 +214,7 @@ TCR.use_cassette("test") do tcp_socket = TCPSocket.open("smtp.mandrillapp.com", 2525) end - }.to change{ File.exists?("./test.json") }.from(false).to(true) + }.to change{ File.exist?("./test.json") }.from(false).to(true) end it "records the tcp session data into the file" do @@ -237,7 +237,7 @@ TCR.use_cassette("test") do tcp_socket = TCPSocket.open("smtp.mandrillapp.com", 2525) end - }.to change{ File.exists?("./test.yaml") }.from(false).to(true) + }.to change{ File.exist?("./test.yaml") }.from(false).to(true) end it "records the tcp session data into the yaml file" do @@ -261,7 +261,7 @@ TCR.use_cassette("test") do tcp_socket = TCPSocket.open("smtp.mandrillapp.com", 2525) end - }.to change{ File.exists?("./test.marshal") }.from(false).to(true) + }.to change{ File.exist?("./test.marshal") }.from(false).to(true) end it "records the tcp session data into the marshalled file" do From 65e6981773a6aa0f922a3f320a6e953363df53fc Mon Sep 17 00:00:00 2001 From: GregDaniels813 Date: Fri, 18 Aug 2023 14:08:08 -0600 Subject: [PATCH 4/5] Update tcr.yml --- .github/workflows/tcr.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/tcr.yml b/.github/workflows/tcr.yml index fb8244e..926349c 100644 --- a/.github/workflows/tcr.yml +++ b/.github/workflows/tcr.yml @@ -21,6 +21,7 @@ jobs: - "2.5.1" - "2.7.3" - "3.0.1" + - "3.2.0" steps: - uses: actions/checkout@v2 From 7ca2aabe30e602a2f70aee2174739697854b609c Mon Sep 17 00:00:00 2001 From: Ben Olive Date: Mon, 28 Aug 2023 18:16:51 -0400 Subject: [PATCH 5/5] Revert change to version.rb We'll update this when we cut the release --- lib/tcr/version.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tcr/version.rb b/lib/tcr/version.rb index 30651ac..d850e58 100644 --- a/lib/tcr/version.rb +++ b/lib/tcr/version.rb @@ -1,3 +1,3 @@ module TCR - VERSION = "0.4.0" + VERSION = "0.3.0" end