Skip to content

Commit 25576b0

Browse files
committed
release 0.5.2, drop 2.10 support, change license to Apache 2.0
1 parent 523a5e7 commit 25576b0

File tree

5 files changed

+17
-35
lines changed

5 files changed

+17
-35
lines changed

LICENSE.txt

Lines changed: 10 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,13 @@
1-
Simplified BSD License
1+
Copyright 2016 Jan Christopher Vogt
22

3-
Copyright (c) 2015, Jan Christopher Vogt
4-
All rights reserved.
3+
Licensed under the Apache License, Version 2.0 (the "License");
4+
you may not use this file except in compliance with the License.
5+
You may obtain a copy of the License at
56

6-
Redistribution and use in source and binary forms, with or without
7-
modification, are permitted provided that the following conditions are met:
7+
http://www.apache.org/licenses/LICENSE-2.0
88

9-
* Redistributions of source code must retain the above copyright notice, this
10-
list of conditions and the following disclaimer.
11-
12-
* Redistributions in binary form must reproduce the above copyright notice,
13-
this list of conditions and the following disclaimer in the documentation
14-
and/or other materials provided with the distribution.
15-
16-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
17-
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18-
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19-
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
20-
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21-
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
22-
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
23-
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
24-
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25-
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
9+
Unless required by applicable law or agreed to in writing, software
10+
distributed under the License is distributed on an "AS IS" BASIS,
11+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
See the License for the specific language governing permissions and
13+
limitations under the License.

project/Build.scala

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,16 @@ object MyBuild extends Build{
99
name := projectName,
1010
scalaVersion := "2.11.8",
1111
crossScalaVersions := Seq("2.10.6",scalaVersion.value),
12-
description := "Composable Records and type-indexed Maps for Scala",
12+
description := "Faithful extensions of the Scala standard library",
1313
libraryDependencies ++= Seq(
1414
"org.scalatest" %% "scalatest" % "3.0.0-RC4" % "test",
15-
"org.typelevel" %% "macro-compat" % "1.1.0",
16-
"org.scala-lang" % "scala-compiler" % scalaVersion.value % "provided",
17-
compilerPlugin("org.scalamacros" % "paradise" % "2.1.0" cross CrossVersion.full)
15+
"org.scala-lang" % "scala-compiler" % scalaVersion.value % "provided"
1816
),
1917
scalacOptions ++= Seq("-feature", "-deprecation", "-unchecked"),
2018
//scalacOptions ++= Seq("-Xprint:patmat", "-Xshow-phases"),
2119
testOptions in Test += Tests.Argument(TestFrameworks.ScalaTest, "-oFD"),
2220
parallelExecution := false, // <- until TMap thread-safety issues are resolved
23-
version := "0.5.1",
21+
version := "0.5.2",
2422
organizationName := "Jan Christopher Vogt",
2523
organization := "org.cvogt",
2624
scalacOptions in (Compile, doc) <++= (version,sourceDirectory in Compile,name).map((v,src,n) => Seq(
@@ -43,7 +41,7 @@ object MyBuild extends Build{
4341
publishArtifact in Test := false,
4442
pomIncludeRepository := { _ => false },
4543
makePomConfiguration ~= { _.copy(configurations = Some(Seq(Compile, Runtime, Optional))) },
46-
licenses += ("Two-clause BSD-style license", url("http://github.com/cvogt/"+projectName+"/blob/master/LICENSE.txt")),
44+
licenses += ("Apache 2.0", url("http://www.apache.org/licenses/LICENSE-2.0")),
4745
homepage := Some(url("http://github.com/cvogt/"+projectName)),
4846
startYear := Some(2015),
4947
pomExtra :=

readme.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,4 @@ src/test/scala/*
4040

4141
Sbt setup:
4242

43-
libraryDependencies += "org.cvogt" %% "scala-extensions" % "0.5.1"
43+
libraryDependencies += "org.cvogt" %% "scala-extensions" % "0.5.2"

src/main/scala/Defaults.scala

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,15 @@ package org.cvogt.scala
33
import scala.reflect.macros.whitebox.Context
44
import scala.language.dynamics
55
import scala.language.experimental.macros
6-
import macrocompat.bundle
76

87
object Defaults {
98
/** returns the given type's default values in an anonymous class instance */
10-
def apply[T]: Any = macro DefaultsMacros.apply[T]
9+
def apply[T]: Any = macro DefaultsMacros.defaults[T]
1110
}
1211

13-
@bundle
1412
class DefaultsMacros( val c: Context ) {
1513
import c.universe._
16-
def apply[T: c.WeakTypeTag] = {
14+
def defaults[T: c.WeakTypeTag] = {
1715
val T = weakTypeOf[T]
1816
if ( !isCaseClass( T ) )
1917
c.error( c.enclosingPosition, s"not a case class: $T" )

src/main/scala/EnumerateSingletons.scala

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
package org.cvogt.scala
22
import scala.reflect.macros.blackbox.Context
33
import scala.language.experimental.macros
4-
import macrocompat.bundle
54

65
object EnumerateSingletons {
76
/** singleton objects transitively extending the given class or trait */
87
def apply[A]: Set[A] = macro EnumerateSingletonsMacros.enumerateSingletonsMacros[A]
98
}
109

11-
@bundle
1210
class EnumerateSingletonsMacros( val c: Context ) {
1311
import c.universe._
1412
def enumerateSingletonsMacros[T: c.WeakTypeTag]: Tree = {

0 commit comments

Comments
 (0)