File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ require 'colored'
1111require 'fuzzy_match'
1212
1313# Display usage instructions
14- puts File . open ( __FILE__ ) . read . scan ( /^# .*/ ) [ 0 ...3 ] . join ( "\n " ) . gsub ( /^# / , '' ) if ARGV . count != 1
14+ puts File . read ( __FILE__ ) . scan ( /^# .*/ ) [ 0 ...3 ] . join ( "\n " ) . gsub ( /^# / , '' ) if ARGV . count != 1
1515
1616class TrueClass
1717 def to_s
Original file line number Diff line number Diff line change 66 Dir [ "#{ licenses_path } /*.txt" ] . each do |file |
77 context "the #{ File . basename ( file , '.txt' ) } license" do
88 it 'does not begin with a byte order mark' do
9- bom = File . open ( file ) . read . start_with? ( "\u0000 EF\u0000 BB\u0000 BF" )
9+ bom = File . read ( file ) . start_with? ( "\u0000 EF\u0000 BB\u0000 BF" )
1010 msg = 'License file begins with a Byte Order Mark. See https://stackoverflow.com/a/1068700.'
1111 expect ( bom ) . to eql ( false ) , msg
1212 end
You can’t perform that action at this time.
0 commit comments