Skip to content

Commit 3cb44ac

Browse files
committed
Release 0.6.3
Use `List` for hooks to maintain order Signed-off-by: Gopal S Akshintala <[email protected]>
1 parent d4002ba commit 3cb44ac

File tree

7 files changed

+8
-11
lines changed

7 files changed

+8
-11
lines changed

.idea/misc.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ endif::[]
1818
:pmtemplates: src/integrationTest/resources/pm-templates
1919
:imagesdir: docs/images
2020
:prewrap!:
21-
:revoman-version: 0.6.2
21+
:revoman-version: 0.6.3
2222

2323
'''
2424

buildSrc/src/main/kotlin/Config.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
* ************************************************************************************************
77
*/
88
const val GROUP_ID = "com.salesforce.revoman"
9-
const val VERSION = "0.6.2"
9+
const val VERSION = "0.6.3"
1010
const val ARTIFACT_ID = "revoman"
1111
const val STAGING_PROFILE_ID = "1ea0a23e61ba7d"

src/integrationTest/java/com/salesforce/revoman/integration/pokemon/PokemonTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public void accept(@NotNull StepReport stepReport, @NotNull Rundown rundown) {
129129
post(afterStepContainingHeader("postLog"), postLogHook))
130130
.dynamicEnvironment(dynamicEnvironment)
131131
.off());
132-
132+
133133
assertThat(pokeRundown.firstUnIgnoredUnsuccessfulStepReport().failure)
134134
.containsOnLeft(new PostStepHookFailure(RUNTIME_EXCEPTION));
135135
assertThat(pokeRundown.stepReports).hasSize(5);

src/main/kotlin/com/salesforce/revoman/input/config/KickDef.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ internal interface KickDef {
5454

5555
fun skipSteps(): List<ExeStepPick>
5656

57-
fun hooks(): Set<HookConfig>
57+
fun hooks(): List<HookConfig>
5858

5959
@Value.Derived fun preHooks(): List<HookConfig> = hooks().filter { it.pick is PreTxnStepPick }
6060

src/main/kotlin/com/salesforce/revoman/internal/json/MoshiReVoman.kt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ import org.http4k.format.withStandardMappings
3333
open class MoshiReVoman(builder: Moshi.Builder) {
3434
private var moshi = builder.build()
3535

36-
@get:JvmName("internalMoshiCopy") val moshiCopy: Moshi by lazy { moshi.newBuilder().build() }
36+
@get:JvmName("internalMoshiCopy")
37+
val internalMoshiCopy: Moshi by lazy { moshi.newBuilder().build() }
3738

3839
@Synchronized
3940
fun addAdapters(
@@ -51,9 +52,6 @@ open class MoshiReVoman(builder: Moshi.Builder) {
5152
fun <PojoT : Any> lenientAdapter(targetType: Type): JsonAdapter<PojoT> =
5253
adapter<PojoT>(targetType).lenient()
5354

54-
private inline fun <reified PojoT : Any> lenientAdapter(): JsonAdapter<PojoT> =
55-
moshi.adapter<PojoT>(PojoT::class.java).lenient()
56-
5755
fun <PojoT : Any> fromJson(input: String?, targetType: Type = Any::class.java): PojoT? =
5856
input?.let { lenientAdapter<PojoT>(targetType).fromJson(it) }
5957

src/main/kotlin/com/salesforce/revoman/output/postman/PostmanEnvironment.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ data class PostmanEnvironment<ValueT : Any?>
2020
@JvmOverloads
2121
constructor(
2222
val mutableEnv: MutableMap<String, ValueT> = mutableMapOf(),
23-
@get:JvmName("moshiReVoman")
24-
val moshiReVoman: MoshiReVoman = initMoshi(),
23+
@get:JvmName("moshiReVoman") val moshiReVoman: MoshiReVoman = initMoshi(),
2524
) : MutableMap<String, ValueT> by mutableEnv {
2625

2726
@get:JvmName("immutableEnv") val immutableEnv: Map<String, ValueT> by lazy { mutableEnv.toMap() }

0 commit comments

Comments
 (0)