File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 22require_relative "group"
33
44require "yaml"
5- require "digest/md5 "
5+ require "digest/sha2 "
66require "pathname"
77
88class Thor ::Runner < Thor #:nodoc:
@@ -91,7 +91,7 @@ def install(name) # rubocop:disable Metrics/MethodLength
9191 end
9292
9393 thor_yaml [ as ] = {
94- :filename => Digest ::MD5 . hexdigest ( name + as ) ,
94+ :filename => Digest ::SHA256 . hexdigest ( name + as ) ,
9595 :location => location ,
9696 :namespaces => Thor ::Util . namespaces_in_content ( contents , base )
9797 }
Original file line number Diff line number Diff line change @@ -219,7 +219,7 @@ def when_no_thorfiles_exist
219219 allow ( FileUtils ) . to receive ( :touch )
220220 allow ( Thor ::LineEditor ) . to receive ( :readline ) . and_return ( "Y" )
221221
222- path = File . join ( Thor ::Util . thor_root , Digest ::MD5 . hexdigest ( @location + "random" ) )
222+ path = File . join ( Thor ::Util . thor_root , Digest ::SHA256 . hexdigest ( @location + "random" ) )
223223 expect ( File ) . to receive ( :open ) . with ( path , "w" )
224224 end
225225
You can’t perform that action at this time.
0 commit comments