mirror of https://github.com/licensee/licensee.git
commit
d4ab04f33b
|
@ -1,7 +1,7 @@
|
|||
module Licensee
|
||||
module ProjectFiles
|
||||
class ReadmeFile < Licensee::ProjectFiles::LicenseFile
|
||||
EXTENSIONS = %w[md markdown mdown txt rdoc].freeze
|
||||
EXTENSIONS = %w[md markdown mdown txt rdoc rst].freeze
|
||||
SCORES = {
|
||||
/\AREADME\z/i => 1.0,
|
||||
/\AREADME\.(#{Regexp.union(EXTENSIONS).source})\z/i => 0.9
|
||||
|
|
|
@ -12,6 +12,7 @@ RSpec.describe Licensee::ProjectFiles::ReadmeFile do
|
|||
'readme.txt' => 0.9,
|
||||
'readme.mdown' => 0.9,
|
||||
'readme.rdoc' => 0.9,
|
||||
'readme.rst' => 0.9,
|
||||
'LICENSE' => 0.0
|
||||
}.each do |filename, expected_score|
|
||||
context "with a file named #{filename}" do
|
||||
|
|
Loading…
Reference in New Issue