From 125fb6e06760a914be2113db78ba2606aaf7a62a Mon Sep 17 00:00:00 2001 From: at-grandpa Date: Thu, 21 Jun 2018 13:04:56 +0900 Subject: [PATCH 1/2] fix heredoc --- spec/clim/dsl_spec/custom_help_spec.cr | 10 +++++----- src/clim/types.cr | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/spec/clim/dsl_spec/custom_help_spec.cr b/spec/clim/dsl_spec/custom_help_spec.cr index 58f6109f..63ed721a 100644 --- a/spec/clim/dsl_spec/custom_help_spec.cr +++ b/spec/clim/dsl_spec/custom_help_spec.cr @@ -17,6 +17,10 @@ require "../../dsl_spec" spec( spec_class_name: OptionTypeSpec, spec_dsl_lines: [ + "desc \"my desc message.\"", + "usage \"my usage message.\"", + "option \"--uint8=VALUE\", type: UInt8", + "option \"--uint16=VALUE\", type: UInt16", <<-CUSTOM_HELP custom_help do |desc, usage, options_help| <<-MY_HELP @@ -27,11 +31,7 @@ spec( \#{options_help} MY_HELP end - CUSTOM_HELP, - "desc \"my desc message.\"", - "usage \"my usage message.\"", - "option \"--uint8=VALUE\", type: UInt8", - "option \"--uint16=VALUE\", type: UInt16", + CUSTOM_HELP ], spec_desc: "option type spec,", spec_cases: [ diff --git a/src/clim/types.cr b/src/clim/types.cr index ba4865e4..4f5474c2 100644 --- a/src/clim/types.cr +++ b/src/clim/types.cr @@ -79,7 +79,7 @@ class Clim end obj === "true" end - PROCESS, + PROCESS }, Array(Int8) => { type: "array", From b9966b1e46d88108333d6957b1dff09741c86849 Mon Sep 17 00:00:00 2001 From: at-grandpa Date: Thu, 21 Jun 2018 13:08:17 +0900 Subject: [PATCH 2/2] fix version --- README.md | 2 +- shard.yml | 4 ++-- src/clim/version.cr | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 7b9dc0e4..4511f7b7 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,7 @@ Add this to your application's `shard.yml`: dependencies: clim: github: at-grandpa/clim - version: 0.3.1 + version: 0.3.2 ``` ## Minimum sample diff --git a/shard.yml b/shard.yml index 897b266b..4337da9c 100644 --- a/shard.yml +++ b/shard.yml @@ -1,5 +1,5 @@ name: clim -version: 0.3.1 +version: 0.3.2 authors: - at-grandpa <@at_grandpa> @@ -8,6 +8,6 @@ targets: clim: main: src/clim.cr -crystal: 0.24.2 +crystal: 0.25.0 license: MIT diff --git a/src/clim/version.cr b/src/clim/version.cr index c3d54872..4a0581dc 100644 --- a/src/clim/version.cr +++ b/src/clim/version.cr @@ -1,3 +1,3 @@ class Clim - VERSION = "0.3.1" + VERSION = "0.3.2" end