Skip to content

Commit 2f7600c

Browse files
committed
small tweaks to generator
1 parent c2ccddf commit 2f7600c

File tree

4 files changed

+8
-13
lines changed

4 files changed

+8
-13
lines changed

build.sbt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
name := "scala-release-note-generator"
22

3-
scalaVersion := "2.10.3"
3+
scalaVersion := "2.11.5"
44

55
libraryDependencies += "org.pegdown" % "pegdown" % "1.2.0"
6-
76
libraryDependencies += "org.apache.commons" % "commons-lang3" % "3.1"
7+
libraryDependencies += "org.scala-lang.modules" %% "scala-xml" % "1.0.3"
88

99
{
1010
require(sys.props("file.encoding") == "UTF-8", "Please rerun with -Dfile.encoding=UTF-8")

project/build.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
sbt.version=0.13.1
1+
sbt.version=0.13.7

src/main/scala/MakeDownloadPage.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class MakeDownloadPage(version: String, releaseDate: Date = new Date()) {
1616
// get size of `url` without actually downloading it
1717
def humanSize(url: String): Future[String] = future {
1818
import scala.sys.process._
19-
println(url)
19+
println("## fetching size of "+ url)
2020
scala.util.Try {
2121
val responseHeader = Process(s"curl -m 5 --silent -D - -X HEAD $url").lines
2222
val contentLength = responseHeader.find(_.startsWith("Content-Length"))
@@ -30,7 +30,7 @@ class MakeDownloadPage(version: String, releaseDate: Date = new Date()) {
3030
case Some((status, humanSize)) if status.contains("200 OK") || status.contains("302 Found") =>
3131
humanSize
3232
case _ =>
33-
println(s"warning: could not fetch $url")
33+
println(s"## warning: could not fetch $url")
3434
""
3535
}
3636
}

src/main/scala/MakeReleaseNotes.scala

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ object MakeReleaseNotes {
2222

2323
if (ext == "md") {
2424
println(s"cp $fileName ../scala-lang/news/_posts/")
25-
println(s"don't forget to update ../scala-lang/download/index.md, ../scala-lang/documentation/api.md, ../scala-lang/documentation/_config.yml")
25+
println(s"# don't forget to\n${scala.util.Properties.envOrElse("EDITOR", "mate")} ../scala-lang/download/index.md ../scala-lang/documentation/api.md ../scala-lang/_config.yml")
26+
println("# and, to prepare and sanity check your scala-lang PR:")
2627
println(s"maruku --html $fileName")
27-
println("# to prepare and sanity check your scala-lang PR")
2828
}
2929
}
3030

@@ -104,12 +104,7 @@ layout: news
104104
post-type: announcement
105105
title: "Scala ${currentTag drop 1} is now available!"
106106
---
107-
${rawHandWrittenNotes()}
108-
109-
${renderCommitterList}
110-
${renderFixedIssues}
111-
${renderCommitList}
112-
"""
107+
${rawHandWrittenNotes()}"""
113108
}
114109

115110
}

0 commit comments

Comments
 (0)