Skip to content

Commit

Permalink
fix binary embedded file generation (missing "," when multi-line)
Browse files Browse the repository at this point in the history
  • Loading branch information
yurique committed Jan 3, 2021
1 parent 21e41b6 commit 773380b
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 5 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## 0.1.1

Bug-fix release.
## 0.1.0

Initial release.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ And an acompanying macro to more easily access those objects.
### `plugins.sbt`

```scala
addSbtPlugin("com.yurique" % "sbt-embedded-files" % "0.1.0")
addSbtPlugin("com.yurique" % "sbt-embedded-files" % "0.1.1")
```

### `build.sbt`

```scala
libraryDependencies += "com.yurique" %%% "embedded-files-macro" % "0.1.0"
libraryDependencies += "com.yurique" %%% "embedded-files-macro" % "0.1.1"
```

## Example usage
Expand Down
2 changes: 1 addition & 1 deletion embedded-files-macro/version.sbt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version in ThisBuild := "0.1.0"
version in ThisBuild := "0.1.1"
2 changes: 1 addition & 1 deletion sbt-plugin/build.sbt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ThisBuild / version := "0.1.0"
ThisBuild / version := "0.1.1"
ThisBuild / organization := "com.yurique"
ThisBuild / description := "An sbt plugin that generates scala objects embedding the contents of files."
ThisBuild / bintrayRepository := "sbt-plugins"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ object EmbeddedFilesPlugin extends AutoPlugin {
.map("0x" + _)
.mkString(", ")
)
.mkString("\n ")}
.mkString(",\n ")}
| )
|
|}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ object test_bin_file_1_bin extends __embedded_files.EmbeddedBinFile {
val path: String = """com/yurique/embedded/sbt/binary/test_bin_file_1.bin"""

val content: Array[Byte] = Array(
0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f,
0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f
)

Expand Down
Binary file not shown.

0 comments on commit 773380b

Please sign in to comment.