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 2
2
require_relative "group"
3
3
4
4
require "yaml"
5
- require "digest/md5 "
5
+ require "digest/sha2 "
6
6
require "pathname"
7
7
8
8
class Thor ::Runner < Thor #:nodoc:
@@ -91,7 +91,7 @@ def install(name) # rubocop:disable Metrics/MethodLength
91
91
end
92
92
93
93
thor_yaml [ as ] = {
94
- :filename => Digest ::MD5 . hexdigest ( name + as ) ,
94
+ :filename => Digest ::SHA256 . hexdigest ( name + as ) ,
95
95
:location => location ,
96
96
:namespaces => Thor ::Util . namespaces_in_content ( contents , base )
97
97
}
Original file line number Diff line number Diff line change @@ -219,7 +219,7 @@ def when_no_thorfiles_exist
219
219
allow ( FileUtils ) . to receive ( :touch )
220
220
allow ( Thor ::LineEditor ) . to receive ( :readline ) . and_return ( "Y" )
221
221
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" ) )
223
223
expect ( File ) . to receive ( :open ) . with ( path , "w" )
224
224
end
225
225
You can’t perform that action at this time.
0 commit comments