From dc95e7ff036b8eb60a1c92571518b530dbc89814 Mon Sep 17 00:00:00 2001 From: Justin Stoller Date: Wed, 30 Aug 2023 15:37:18 -0700 Subject: [PATCH] (PUP-11934) Use String#each_codepoint instead of deprecated String#codepoints --- lib/puppet/pops/time/timespan.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/puppet/pops/time/timespan.rb b/lib/puppet/pops/time/timespan.rb index 0a65fee3cf9..3ab6a3899a1 100644 --- a/lib/puppet/pops/time/timespan.rb +++ b/lib/puppet/pops/time/timespan.rb @@ -633,7 +633,7 @@ def internal_parse(str) position = -1 fstart = 0 - str.codepoints do |codepoint| + str.each_codepoint do |codepoint| position += 1 if state == STATE_LITERAL if codepoint == 0x25 # '%'