Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
96 changed files
with
2,688 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
resolvers += Resolver.url("Typesafe repository", new java.net.URL("http://typesafe.artifactoryonline.com/typesafe/ivy-releases/"))(Resolver.defaultIvyPatterns) | ||
|
||
libraryDependencies <+= sbtVersion("org.scala-tools.sbt" %% "scripted-plugin" % _) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
seq(jot.Plugin.options:_*) | ||
|
||
(jot.Keys.jotFile in Jot) <<= (baseDirectory)(_ / ".myjots") |
Binary file added
BIN
+839 KB
src/sbt-test/jot/customfile/project/boot/other/net.java.dev.jna/jna/3.2.3/jna-3.2.3.jar
Binary file not shown.
Empty file.
Binary file not shown.
Binary file added
BIN
+8.57 MB
src/sbt-test/jot/customfile/project/boot/scala-2.8.1/lib/scala-compiler.jar
Binary file not shown.
Binary file added
BIN
+6.2 MB
src/sbt-test/jot/customfile/project/boot/scala-2.8.1/lib/scala-library.jar
Binary file not shown.
Binary file added
BIN
+245 KB
...stomfile/project/boot/scala-2.8.1/org.scala-tools.sbt/sbt/0.10.1/actions_2.8.1-0.10.1.jar
Binary file not shown.
Binary file added
BIN
+302 KB
...t/customfile/project/boot/scala-2.8.1/org.scala-tools.sbt/sbt/0.10.1/api_2.8.1-0.10.1.jar
Binary file not shown.
Binary file added
BIN
+109 KB
...customfile/project/boot/scala-2.8.1/org.scala-tools.sbt/sbt/0.10.1/cache_2.8.1-0.10.1.jar
Binary file not shown.
Binary file added
BIN
+78.5 KB
...omfile/project/boot/scala-2.8.1/org.scala-tools.sbt/sbt/0.10.1/classfile_2.8.1-0.10.1.jar
Binary file not shown.
Binary file added
BIN
+69.8 KB
...omfile/project/boot/scala-2.8.1/org.scala-tools.sbt/sbt/0.10.1/classpath_2.8.1-0.10.1.jar
Binary file not shown.
Binary file added
BIN
+177 KB
...file/project/boot/scala-2.8.1/org.scala-tools.sbt/sbt/0.10.1/collections_2.8.1-0.10.1.jar
Binary file not shown.
Binary file added
BIN
+29.4 KB
.../customfile/project/boot/scala-2.8.1/org.scala-tools.sbt/sbt/0.10.1/commons-codec-1.2.jar
Binary file not shown.
Binary file added
BIN
+298 KB
...omfile/project/boot/scala-2.8.1/org.scala-tools.sbt/sbt/0.10.1/commons-httpclient-3.1.jar
Binary file not shown.
Binary file added
BIN
+37.1 KB
...tomfile/project/boot/scala-2.8.1/org.scala-tools.sbt/sbt/0.10.1/commons-logging-1.0.4.jar
Binary file not shown.
Binary file added
BIN
+114 KB
...stomfile/project/boot/scala-2.8.1/org.scala-tools.sbt/sbt/0.10.1/compile_2.8.1-0.10.1.jar
Binary file not shown.
Binary file added
BIN
+134 KB
...tools.sbt/sbt/0.10.1/compiler-interface-bin_2.8.1.final/compiler-interface-bin-0.10.1.jar
Binary file not shown.
Binary file added
BIN
+137 KB
...ala-tools.sbt/sbt/0.10.1/compiler-interface-bin_2.9.0.1/compiler-interface-bin-0.10.1.jar
Binary file not shown.
Binary file added
BIN
+17.2 KB
...1/org.scala-tools.sbt/sbt/0.10.1/compiler-interface-src/compiler-interface-src-0.10.1.jar
Binary file not shown.
Binary file added
BIN
+274 KB
...mfile/project/boot/scala-2.8.1/org.scala-tools.sbt/sbt/0.10.1/completion_2.8.1-0.10.1.jar
Binary file not shown.
Binary file added
BIN
+10.7 KB
...stomfile/project/boot/scala-2.8.1/org.scala-tools.sbt/sbt/0.10.1/control_2.8.1-0.10.1.jar
Binary file not shown.
Binary file added
BIN
+21.1 KB
...omfile/project/boot/scala-2.8.1/org.scala-tools.sbt/sbt/0.10.1/discovery_2.8.1-0.10.1.jar
Binary file not shown.
Binary file added
BIN
+145 KB
...ect/boot/scala-2.8.1/org.scala-tools.sbt/sbt/0.10.1/incremental-compiler_2.8.1-0.10.1.jar
Binary file not shown.
Binary file added
BIN
+243 KB
...ot/customfile/project/boot/scala-2.8.1/org.scala-tools.sbt/sbt/0.10.1/io_2.8.1-0.10.1.jar
Binary file not shown.
Binary file added
BIN
+925 KB
...test/jot/customfile/project/boot/scala-2.8.1/org.scala-tools.sbt/sbt/0.10.1/ivy-2.2.0.jar
Binary file not shown.
Binary file added
BIN
+453 KB
...t/customfile/project/boot/scala-2.8.1/org.scala-tools.sbt/sbt/0.10.1/ivy_2.8.1-0.10.1.jar
Binary file not shown.
Binary file added
BIN
+85.3 KB
...t/jot/customfile/project/boot/scala-2.8.1/org.scala-tools.sbt/sbt/0.10.1/jline-0.9.94.jar
Binary file not shown.
Binary file added
BIN
+168 KB
...st/jot/customfile/project/boot/scala-2.8.1/org.scala-tools.sbt/sbt/0.10.1/jsch-0.1.31.jar
Binary file not shown.
Binary file added
BIN
+5.32 KB
...oject/boot/scala-2.8.1/org.scala-tools.sbt/sbt/0.10.1/launcher-interface_2.8.1-0.10.1.jar
Binary file not shown.
Binary file added
BIN
+68.6 KB
...stomfile/project/boot/scala-2.8.1/org.scala-tools.sbt/sbt/0.10.1/logging_2.8.1-0.10.1.jar
Binary file not shown.
Binary file added
BIN
+1.41 MB
.../customfile/project/boot/scala-2.8.1/org.scala-tools.sbt/sbt/0.10.1/main_2.8.1-0.10.1.jar
Binary file not shown.
Binary file added
BIN
+110 KB
...stomfile/project/boot/scala-2.8.1/org.scala-tools.sbt/sbt/0.10.1/persist_2.8.1-0.10.1.jar
Binary file not shown.
Binary file added
BIN
+108 KB
...stomfile/project/boot/scala-2.8.1/org.scala-tools.sbt/sbt/0.10.1/process_2.8.1-0.10.1.jar
Binary file not shown.
Binary file added
BIN
+82.6 KB
...t/customfile/project/boot/scala-2.8.1/org.scala-tools.sbt/sbt/0.10.1/run_2.8.1-0.10.1.jar
Binary file not shown.
Binary file added
BIN
+145 KB
...ustomfile/project/boot/scala-2.8.1/org.scala-tools.sbt/sbt/0.10.1/sbinary_2.8.1-0.4.0.jar
Binary file not shown.
Empty file.
Binary file added
BIN
+14.3 KB
...t/customfile/project/boot/scala-2.8.1/org.scala-tools.sbt/sbt/0.10.1/sbt_2.8.1-0.10.1.jar
Binary file not shown.
Binary file added
BIN
+117 KB
...file/project/boot/scala-2.8.1/org.scala-tools.sbt/sbt/0.10.1/task-system_2.8.1-0.10.1.jar
Binary file not shown.
Binary file added
BIN
+96.7 KB
...customfile/project/boot/scala-2.8.1/org.scala-tools.sbt/sbt/0.10.1/tasks_2.8.1-0.10.1.jar
Binary file not shown.
Binary file added
BIN
+4.3 KB
...customfile/project/boot/scala-2.8.1/org.scala-tools.sbt/sbt/0.10.1/test-interface-0.5.jar
Binary file not shown.
Binary file added
BIN
+69 KB
...stomfile/project/boot/scala-2.8.1/org.scala-tools.sbt/sbt/0.10.1/testing_2.8.1-0.10.1.jar
Binary file not shown.
Binary file added
BIN
+41.7 KB
...tomfile/project/boot/scala-2.8.1/org.scala-tools.sbt/sbt/0.10.1/tracking_2.8.1-0.10.1.jar
Binary file not shown.
Binary file added
BIN
+35.4 KB
...omfile/project/boot/scala-2.8.1/org.scala-tools.sbt/sbt/0.10.1/xsbti/interface-0.10.1.jar
Binary file not shown.
1,306 changes: 1,306 additions & 0 deletions
1,306
src/sbt-test/jot/customfile/project/boot/update.log
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
libraryDependencies <+= sbtVersion(v => | ||
"me.lessis" %% "jot" % "0.1.0-%s-SNAPSHOT".format(v) | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# test for custom file | ||
> jot:down some ideas | ||
$ exists .myjots |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
seq(jot.Plugin.options:_*) | ||
|
||
InputKey[Unit]("empty") <<= inputTask { (argsTask: TaskKey[Seq[String]]) => | ||
(argsTask, streams) map { | ||
(args, out) => | ||
args match { | ||
case Seq(path) => | ||
IO.read(file(path)) match { | ||
case "" => out.log.debug("File %s was empty" format path) | ||
case contents => error( | ||
"Empty should have been empty but instead contained %s" format contents | ||
) | ||
} | ||
case xs => error("usage: empty path") | ||
} | ||
} | ||
} | ||
|
||
InputKey[Unit]("contents") <<= inputTask { (argsTask: TaskKey[Seq[String]]) => | ||
(argsTask, streams) map { | ||
(args, out) => | ||
args match { | ||
case Seq(given, expected) => | ||
if(IO.read(file(given)).equals(IO.read(file(expected)))) out.log.debug( | ||
"Contents match" | ||
) | ||
else error( | ||
"Contents of (%s)\n%s does not match (%s)\n%s" format( | ||
given, IO.read(file(given)), expected, IO.read(file(expected)) | ||
) | ||
) | ||
} | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Write more scripted tests | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Write more scripted tests | ||
|
||
Verify rm works | ||
|
Binary file added
BIN
+839 KB
src/sbt-test/jot/simple/project/boot/other/net.java.dev.jna/jna/3.2.3/jna-3.2.3.jar
Binary file not shown.
Empty file.
Binary file not shown.
Binary file added
BIN
+8.57 MB
src/sbt-test/jot/simple/project/boot/scala-2.8.1/lib/scala-compiler.jar
Binary file not shown.
Binary file added
BIN
+6.2 MB
src/sbt-test/jot/simple/project/boot/scala-2.8.1/lib/scala-library.jar
Binary file not shown.
Binary file added
BIN
+245 KB
...t/simple/project/boot/scala-2.8.1/org.scala-tools.sbt/sbt/0.10.1/actions_2.8.1-0.10.1.jar
Binary file not shown.
Binary file added
BIN
+302 KB
...t/jot/simple/project/boot/scala-2.8.1/org.scala-tools.sbt/sbt/0.10.1/api_2.8.1-0.10.1.jar
Binary file not shown.
Binary file added
BIN
+109 KB
...jot/simple/project/boot/scala-2.8.1/org.scala-tools.sbt/sbt/0.10.1/cache_2.8.1-0.10.1.jar
Binary file not shown.
Binary file added
BIN
+78.5 KB
...simple/project/boot/scala-2.8.1/org.scala-tools.sbt/sbt/0.10.1/classfile_2.8.1-0.10.1.jar
Binary file not shown.
Binary file added
BIN
+69.8 KB
...simple/project/boot/scala-2.8.1/org.scala-tools.sbt/sbt/0.10.1/classpath_2.8.1-0.10.1.jar
Binary file not shown.
Binary file added
BIN
+177 KB
...mple/project/boot/scala-2.8.1/org.scala-tools.sbt/sbt/0.10.1/collections_2.8.1-0.10.1.jar
Binary file not shown.
Binary file added
BIN
+29.4 KB
.../jot/simple/project/boot/scala-2.8.1/org.scala-tools.sbt/sbt/0.10.1/commons-codec-1.2.jar
Binary file not shown.
Binary file added
BIN
+298 KB
...simple/project/boot/scala-2.8.1/org.scala-tools.sbt/sbt/0.10.1/commons-httpclient-3.1.jar
Binary file not shown.
Binary file added
BIN
+37.1 KB
.../simple/project/boot/scala-2.8.1/org.scala-tools.sbt/sbt/0.10.1/commons-logging-1.0.4.jar
Binary file not shown.
Binary file added
BIN
+114 KB
...t/simple/project/boot/scala-2.8.1/org.scala-tools.sbt/sbt/0.10.1/compile_2.8.1-0.10.1.jar
Binary file not shown.
Binary file added
BIN
+134 KB
...tools.sbt/sbt/0.10.1/compiler-interface-bin_2.8.1.final/compiler-interface-bin-0.10.1.jar
Binary file not shown.
Binary file added
BIN
+137 KB
...ala-tools.sbt/sbt/0.10.1/compiler-interface-bin_2.9.0.1/compiler-interface-bin-0.10.1.jar
Binary file not shown.
Binary file added
BIN
+17.2 KB
...1/org.scala-tools.sbt/sbt/0.10.1/compiler-interface-src/compiler-interface-src-0.10.1.jar
Binary file not shown.
Binary file added
BIN
+274 KB
...imple/project/boot/scala-2.8.1/org.scala-tools.sbt/sbt/0.10.1/completion_2.8.1-0.10.1.jar
Binary file not shown.
Binary file added
BIN
+10.7 KB
...t/simple/project/boot/scala-2.8.1/org.scala-tools.sbt/sbt/0.10.1/control_2.8.1-0.10.1.jar
Binary file not shown.
Binary file added
BIN
+21.1 KB
...simple/project/boot/scala-2.8.1/org.scala-tools.sbt/sbt/0.10.1/discovery_2.8.1-0.10.1.jar
Binary file not shown.
Binary file added
BIN
+145 KB
...ect/boot/scala-2.8.1/org.scala-tools.sbt/sbt/0.10.1/incremental-compiler_2.8.1-0.10.1.jar
Binary file not shown.
Binary file added
BIN
+243 KB
...st/jot/simple/project/boot/scala-2.8.1/org.scala-tools.sbt/sbt/0.10.1/io_2.8.1-0.10.1.jar
Binary file not shown.
Binary file added
BIN
+925 KB
...sbt-test/jot/simple/project/boot/scala-2.8.1/org.scala-tools.sbt/sbt/0.10.1/ivy-2.2.0.jar
Binary file not shown.
Binary file added
BIN
+453 KB
...t/jot/simple/project/boot/scala-2.8.1/org.scala-tools.sbt/sbt/0.10.1/ivy_2.8.1-0.10.1.jar
Binary file not shown.
Binary file added
BIN
+85.3 KB
...-test/jot/simple/project/boot/scala-2.8.1/org.scala-tools.sbt/sbt/0.10.1/jline-0.9.94.jar
Binary file not shown.
Binary file added
BIN
+168 KB
...t-test/jot/simple/project/boot/scala-2.8.1/org.scala-tools.sbt/sbt/0.10.1/jsch-0.1.31.jar
Binary file not shown.
Binary file added
BIN
+5.32 KB
...oject/boot/scala-2.8.1/org.scala-tools.sbt/sbt/0.10.1/launcher-interface_2.8.1-0.10.1.jar
Binary file not shown.
Binary file added
BIN
+68.6 KB
...t/simple/project/boot/scala-2.8.1/org.scala-tools.sbt/sbt/0.10.1/logging_2.8.1-0.10.1.jar
Binary file not shown.
Binary file added
BIN
+1.41 MB
.../jot/simple/project/boot/scala-2.8.1/org.scala-tools.sbt/sbt/0.10.1/main_2.8.1-0.10.1.jar
Binary file not shown.
Binary file added
BIN
+110 KB
...t/simple/project/boot/scala-2.8.1/org.scala-tools.sbt/sbt/0.10.1/persist_2.8.1-0.10.1.jar
Binary file not shown.
Binary file added
BIN
+108 KB
...t/simple/project/boot/scala-2.8.1/org.scala-tools.sbt/sbt/0.10.1/process_2.8.1-0.10.1.jar
Binary file not shown.
Binary file added
BIN
+82.6 KB
...t/jot/simple/project/boot/scala-2.8.1/org.scala-tools.sbt/sbt/0.10.1/run_2.8.1-0.10.1.jar
Binary file not shown.
Binary file added
BIN
+145 KB
...ot/simple/project/boot/scala-2.8.1/org.scala-tools.sbt/sbt/0.10.1/sbinary_2.8.1-0.4.0.jar
Binary file not shown.
Empty file.
Binary file added
BIN
+14.3 KB
...t/jot/simple/project/boot/scala-2.8.1/org.scala-tools.sbt/sbt/0.10.1/sbt_2.8.1-0.10.1.jar
Binary file not shown.
Binary file added
BIN
+117 KB
...mple/project/boot/scala-2.8.1/org.scala-tools.sbt/sbt/0.10.1/task-system_2.8.1-0.10.1.jar
Binary file not shown.
Binary file added
BIN
+96.7 KB
...jot/simple/project/boot/scala-2.8.1/org.scala-tools.sbt/sbt/0.10.1/tasks_2.8.1-0.10.1.jar
Binary file not shown.
Binary file added
BIN
+4.3 KB
...jot/simple/project/boot/scala-2.8.1/org.scala-tools.sbt/sbt/0.10.1/test-interface-0.5.jar
Binary file not shown.
Binary file added
BIN
+69 KB
...t/simple/project/boot/scala-2.8.1/org.scala-tools.sbt/sbt/0.10.1/testing_2.8.1-0.10.1.jar
Binary file not shown.
Binary file added
BIN
+41.7 KB
.../simple/project/boot/scala-2.8.1/org.scala-tools.sbt/sbt/0.10.1/tracking_2.8.1-0.10.1.jar
Binary file not shown.
Binary file added
BIN
+35.4 KB
...simple/project/boot/scala-2.8.1/org.scala-tools.sbt/sbt/0.10.1/xsbti/interface-0.10.1.jar
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
libraryDependencies <+= sbtVersion(v => | ||
"me.lessis" %% "jot" % "0.1.0-%s-SNAPSHOT".format(v) | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# verify .jotfile gets created | ||
$ delete .jot | ||
> jot:down Some idea | ||
$ exists .jot | ||
|
||
# check that the file is empty | ||
> jot:clear | ||
> empty .jot | ||
|
||
# check content creation | ||
> jot:down Write more scripted tests | ||
> jot:down Verify rm works | ||
> contents .jot fixtures/before-rm | ||
|
||
# not rm the second item | ||
> jot:rm 1 | ||
> contents .jot fixtures/after-rm |