Skip to content

Commit e566036

Browse files
committed
scala: fix license and update entries filter
1 parent 728c16c commit e566036

File tree

3 files changed

+16
-11
lines changed

3 files changed

+16
-11
lines changed

assets/javascripts/templates/pages/about_tmpl.coffee

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -637,6 +637,12 @@ credits = [
637637
'MIT',
638638
'https://raw.githubusercontent.com/sass/sass/stable/MIT-LICENSE'
639639
], [
640+
'Scala',
641+
'2002-2019 EPFL, with contributions from Lightbend',
642+
'Apache',
643+
'https://raw.githubusercontent.com/scala/scala-lang/master/license.md'
644+
],
645+
[
640646
'scikit-image',
641647
'2011 the scikit-image team',
642648
'BSD',

lib/docs/filters/scala/entries.rb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,12 @@ def get_name
1717
# Some objects have inner objects, show ParentObject$.ChildObject$ instead of ParentObject$$ChildObject$
1818
name = name.gsub('$$', '$.')
1919

20-
# If a dollar sign is used as separator between two characters, replace it with a dot
21-
name = name.gsub(/([^$.])\$([^$.])/, '\1.\2')
22-
2320
REPLACEMENTS.each do |key, value|
2421
name = name.gsub(key, value)
2522
end
2623

27-
name
24+
# If a dollar sign is used as separator between two characters, replace it with a dot
25+
name.gsub(/([^$.])\$([^$.])/, '\1.\2')
2826
end
2927
end
3028

lib/docs/scrapers/scala.rb

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ class Scala < FileScraper
99

1010
options[:container] = '#content-container'
1111
options[:attribution] = <<-HTML
12-
&copy; 2002-2019 EPFL, with contributions from Lightbend.
12+
&copy; 2002-2019 EPFL, with contributions from Lightbend.<br>
13+
Licensed under the Apache License, Version 2.0.
1314
HTML
1415

1516
# https://downloads.lightbend.com/scala/2.13.0/scala-docs-2.13.0.zip
@@ -32,21 +33,21 @@ class Scala < FileScraper
3233
html_filters.push 'scala/entries', 'scala/clean_html'
3334
end
3435

35-
# https://downloads.lightbend.com/scala/2.12.6/scala-docs-2.12.6.zip
36+
# https://downloads.lightbend.com/scala/2.12.9/scala-docs-2.12.9.zip
3637
# Extract api/scala-library into docs/scala~2.12_library
3738
version '2.12 Library' do
38-
self.release = '2.12.6'
39-
self.base_url = 'https://www.scala-lang.org/api/2.12.6/'
39+
self.release = '2.12.9'
40+
self.base_url = 'https://www.scala-lang.org/api/2.12.9/'
4041
self.root_path = 'index.html'
4142

4243
html_filters.push 'scala/entries', 'scala/clean_html'
4344
end
4445

45-
# https://downloads.lightbend.com/scala/2.12.6/scala-docs-2.12.6.zip
46+
# https://downloads.lightbend.com/scala/2.12.9/scala-docs-2.12.9.zip
4647
# Extract api/scala-reflect into docs/scala~2.12_reflection
4748
version '2.12 Reflection' do
48-
self.release = '2.12.6'
49-
self.base_url = 'https://www.scala-lang.org/api/2.12.6/scala-reflect/'
49+
self.release = '2.12.9'
50+
self.base_url = 'https://www.scala-lang.org/api/2.12.9/scala-reflect/'
5051
self.root_path = 'index.html'
5152

5253
html_filters.push 'scala/entries', 'scala/clean_html'

0 commit comments

Comments
 (0)