summaryrefslogtreecommitdiff
path: root/lib/rubygems/specification_policy.rb
diff options
context:
space:
mode:
authorOlle Jonsson <[email protected]>2020-04-19 18:06:02 +0200
committerHiroshi SHIBATA <[email protected]>2020-06-05 07:32:42 +0900
commitf61ee674d8c5871e8e81b1a7f5884635a0ee9803 ()
treeaa956731f75c20eaa39b7366d0428155df685a77 /lib/rubygems/specification_policy.rb
parentdd5b918cbead5fdb641118aa4e4d90e013f90df1 (diff)
[rubygems/rubygems] Prefer start_with? and end_with? over regex.
- In one of the cases, filenames were checked for ending with "gz" - this is changed to check for ending with ".gz" - The change was made to make it even easier to read the code, and to match only from the start of the input (as opposed to start of the line) https://.com/rubygems/rubygems/commit/aac4290271
Notes: Merged: https://.com/ruby/ruby/pull/3184
0 files changed, 0 insertions, 0 deletions