diff --git a/_licenses/ecl-2.0.txt b/_licenses/ecl-2.0.txt index ccc9267..2b0be47 100644 --- a/_licenses/ecl-2.0.txt +++ b/_licenses/ecl-2.0.txt @@ -12,7 +12,7 @@ note: The Apereo Foundation recommends taking the additional step of adding a bo using: - Sakai: https://github.com/sakaiproject/sakai/blob/master/LICENSE - OAE: https://github.com/oaeproject/Hilary/blob/master/LICENSE - - Opencast: https://bitbucket.org/opencast-community/opencast/src/905077ba5e6483f8c49869a1fc13bf9268790a79/LICENSE?at=develop + - Opencast: https://bitbucket.org/opencast-community/opencast/src/905077ba5e6483f8c49869a1fc13bf9268790a79/LICENSE permissions: - commercial-use diff --git a/spec/license_meta_spec.rb b/spec/license_meta_spec.rb index a3923ad..6c6400d 100644 --- a/spec/license_meta_spec.rb +++ b/spec/license_meta_spec.rb @@ -66,6 +66,8 @@ describe 'license meta' do example_url.gsub!(%r{\Ahttps://github.com/([\w-]+/[\w-]+)/blob/([\w-]+/\S+)\z}, 'https://raw.githubusercontent.com/\1/\2') elsif example_url.index('https://git.savannah.gnu.org/') == 0 || example_url.index('https://git.gnome.org/') == 0 example_url.gsub!(%r{/tree/}, '/plain/') + elsif example_url.index('https://bitbucket.org/') == 0 + example_url.gsub!(%r{/src/}, '/raw/') end content = open(example_url).read detected = Licensee::ProjectFiles::LicenseFile.new(content, 'LICENSE').license