From 89045aa8e16dd18be71fe1879be9200a997d5849 Mon Sep 17 00:00:00 2001 From: Jean byroot Boussier Date: Thu, 24 Sep 2020 12:28:02 +0100 Subject: [PATCH] Fix compatibility with frozen string literals (#832) Co-authored-by: Jean Boussier --- lib/vcr/version.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/vcr/version.rb b/lib/vcr/version.rb index 0233d7ed..0d8f59e6 100644 --- a/lib/vcr/version.rb +++ b/lib/vcr/version.rb @@ -10,7 +10,7 @@ module VCR # * `parts` [Array] List of the version parts. def version @version ||= begin - string = '6.0.0' + string = +'6.0.0' def string.parts split('.').map { |p| p.to_i } @@ -28,7 +28,7 @@ def string.patch parts[2] end - string + string.freeze end end end