Skip to content

Commit

Permalink
Fix compatibility with frozen string literals (vcr#832)
Browse files Browse the repository at this point in the history
Co-authored-by: Jean Boussier <[email protected]>
  • Loading branch information
casperisfine and byroot authored Sep 24, 2020
1 parent 33757df commit 89045aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/vcr/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module VCR
# * `parts` [Array<Integer>] 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 }
Expand All @@ -28,7 +28,7 @@ def string.patch
parts[2]
end

string
string.freeze
end
end
end

0 comments on commit 89045aa

Please sign in to comment.