Skip to content

Commit

Permalink
Merge pull request #75 from at-grandpa/crystal-version-0.35.1
Browse files Browse the repository at this point in the history
Crystal version 0.35.1
  • Loading branch information
at-grandpa authored Jul 12, 2020
2 parents cc13ebc + 4cda17d commit c7845c5
Show file tree
Hide file tree
Showing 22 changed files with 36 additions and 36 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ Add this to your application's `shard.yml`:
dependencies:
clim:
github: at-grandpa/clim
version: 0.12.0
version: 0.13.0
```
## Samples
Expand Down
4 changes: 2 additions & 2 deletions shard.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: clim
version: 0.12.0
version: 0.13.0

authors:
- at-grandpa <@at_grandpa>
Expand All @@ -8,6 +8,6 @@ targets:
clim:
main: src/clim.cr

crystal: 0.34.0
crystal: 0.35.1

license: MIT
8 changes: 4 additions & 4 deletions spec/clim/command_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ describe Clim::Command do
Options:
-g WORDS, --greeting=WORDS Words of greetings. [type:String] [default:\"Hello\"]
-n NAME Target name. [type:Array(String)] [default:[\"Taro\"]] [required]
-g WORDS, --greeting=WORDS Words of greetings. [type:String] [default:"Hello"]
-n NAME Target name. [type:Array(String)] [default:["Taro"]] [required]
--help Show this help.
Sub Commands:
Expand All @@ -72,8 +72,8 @@ describe Clim::Command do
Options:
-g WORDS, --greeting=WORDS Words of greetings. [type:String] [default:\"Hello\"]
-n NAME Target name. [type:Array(String)] [default:[\"Taro\"]] [required]
-g WORDS, --greeting=WORDS Words of greetings. [type:String] [default:"Hello"]
-n NAME Target name. [type:Array(String)] [default:["Taro"]] [required]
--help Show this help.
Expand Down
6 changes: 3 additions & 3 deletions spec/clim/compile_time_error_spec/compile_time_error_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ describe "Compile time spec, " do
In spec/clim/compile_time_error_spec/files/main_with_alias_name.cr:5:5
5 | alias_name \"main2\"
5 | alias_name "main2"
^---------
Error: 'alias_name' is not supported on main command.
Expand All @@ -177,7 +177,7 @@ describe "Compile time spec, " do
In spec/clim/compile_time_error_spec/files/not_supported_option_type.cr:6:5
6 | option \"-n\", type: BigInt, desc: \"my big int.\", default: 0
6 | option "-n", type: BigInt, desc: "my big int.", default: 0
^
Error: Type [BigInt] is not supported on option.
Expand All @@ -201,7 +201,7 @@ describe "Compile time spec, " do
In spec/clim/compile_time_error_spec/files/empty_option_name.cr:6:5
6 | option \"\", type: String, desc: \"empty option name.\"
6 | option "", type: String, desc: "empty option name."
^
Error: Empty option name.
Expand Down
4 changes: 2 additions & 2 deletions spec/clim/dsl_spec/options/bool_01_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ spec(
{
argv: ["-bool"],
exception_message: {
exception: Clim::ClimInvalidOptionException,
message: "Undefined option. \"-bool\"",
exception: Clim::ClimInvalidTypeCastException,
message: "Bool arguments accept only \"true\" or \"false\". Input: [ool]",
}
},
{
Expand Down
4 changes: 2 additions & 2 deletions spec/clim/dsl_spec/options/bool_02_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ spec(
{
argv: ["-bool"],
exception_message: {
exception: Clim::ClimInvalidOptionException,
message: "Undefined option. \"-bool\"",
exception: Clim::ClimInvalidTypeCastException,
message: "Bool arguments accept only \"true\" or \"false\". Input: [ool]",
}
},
{
Expand Down
4 changes: 2 additions & 2 deletions spec/clim/dsl_spec/options/bool_08_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ spec(
{
argv: ["-bool"],
exception_message: {
exception: Clim::ClimInvalidOptionException,
message: "Undefined option. \"-bool\"",
exception: Clim::ClimInvalidTypeCastException,
message: "Bool arguments accept only \"true\" or \"false\". Input: [ool]",
}
},
{
Expand Down
4 changes: 2 additions & 2 deletions spec/clim/dsl_spec/options/bool_13_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ spec(
{
argv: ["-bool"],
exception_message: {
exception: Clim::ClimInvalidOptionException,
message: "Undefined option. \"-bool\"",
exception: Clim::ClimInvalidTypeCastException,
message: "Bool arguments accept only \"true\" or \"false\". Input: [ool]",
}
},
{
Expand Down
2 changes: 1 addition & 1 deletion spec/clim/dsl_spec/options/types/default_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ require "../../../dsl_spec"
-d=DEFAULT_TYPE Option description. [type:String]
--default-type=DEFAULT_TYPE Option description. [type:String]
--default-type-default=DEFAULT_TYPE
Option description. [type:String] [default:\"Default String!\"]
Option description. [type:String] [default:"Default String!"]
--help Show this help.
Expand Down
6 changes: 3 additions & 3 deletions spec/clim/dsl_spec/sub_command/sub_01_01_a_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ require "./sub"
Options:
-s ARG, --string=ARG Option test. [type:String] [default:\"default string\"]
-s ARG, --string=ARG Option test. [type:String] [default:"default string"]
--help Show this help.
-v, --version Show version.
Expand All @@ -38,7 +38,7 @@ require "./sub"
Options:
-s ARG, --string=ARG Option test. [type:String] [default:\"default string\"]
-s ARG, --string=ARG Option test. [type:String] [default:"default string"]
--help Show this help.
-v, --version Show version.
Expand All @@ -64,7 +64,7 @@ require "./sub"
Options:
-s ARG, --string=ARG Option test. [type:String] [default:\"default string\"]
-s ARG, --string=ARG Option test. [type:String] [default:"default string"]
--help Show this help.
-v, --version Show version.
Expand Down
6 changes: 3 additions & 3 deletions spec/clim/dsl_spec/sub_command/sub_01_01_b_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ require "./sub"
Options:
-s ARG, --string=ARG Option test. [type:String] [default:\"default string\"]
-s ARG, --string=ARG Option test. [type:String] [default:"default string"]
--help Show this help.
-v, --version Show version.
Expand All @@ -38,7 +38,7 @@ require "./sub"
Options:
-s ARG, --string=ARG Option test. [type:String] [default:\"default string\"]
-s ARG, --string=ARG Option test. [type:String] [default:"default string"]
--help Show this help.
-v, --version Show version.
Expand All @@ -64,7 +64,7 @@ require "./sub"
Options:
-s ARG, --string=ARG Option test. [type:String] [default:\"default string\"]
-s ARG, --string=ARG Option test. [type:String] [default:"default string"]
--help Show this help.
-v, --version Show version.
Expand Down
2 changes: 1 addition & 1 deletion spec/clim/dsl_spec/sub_command/sub_command_01_01_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ require "./sub_command"
Options:
-a ARG, --array=ARG Option test. [type:Array(String)] [default:[\"default string\"]]
-a ARG, --array=ARG Option test. [type:Array(String)] [default:["default string"]]
--help Show this help.
-v, --version Show version.
Expand Down
2 changes: 1 addition & 1 deletion spec/clim/dsl_spec/sub_command/sub_command_02_01_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ require "./sub_command_alias"
Options:
-a ARG, --array=ARG Option test. [type:Array(String)] [default:[\"default string\"]]
-a ARG, --array=ARG Option test. [type:Array(String)] [default:["default string"]]
--help Show this help.
Sub Commands:
Expand Down
2 changes: 1 addition & 1 deletion spec/clim/dsl_spec/sub_command/sub_command_02_02_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ require "./sub_command_alias"
Options:
-a ARG, --array=ARG Option test. [type:Array(String)] [default:[\"default string\"]]
-a ARG, --array=ARG Option test. [type:Array(String)] [default:["default string"]]
--help Show this help.
Sub Commands:
Expand Down
2 changes: 1 addition & 1 deletion spec/clim/dsl_spec/sub_command/sub_command_02_03_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ require "./sub_command_alias"
Options:
-a ARG, --array=ARG Option test. [type:Array(String)] [default:[\"default string\"]]
-a ARG, --array=ARG Option test. [type:Array(String)] [default:["default string"]]
--help Show this help.
Sub Commands:
Expand Down
2 changes: 1 addition & 1 deletion spec/clim/dsl_spec/sub_command/sub_command_03_01_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ require "./sub_command_alias"
Options:
-a ARG, --array=ARG Option test. [type:Array(String)] [default:[\"default string\"]]
-a ARG, --array=ARG Option test. [type:Array(String)] [default:["default string"]]
--help Show this help.
Sub Commands:
Expand Down
2 changes: 1 addition & 1 deletion spec/clim/dsl_spec/sub_command/sub_command_03_02_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ require "./sub_command_alias"
Options:
-a ARG, --array=ARG Option test. [type:Array(String)] [default:[\"default string\"]]
-a ARG, --array=ARG Option test. [type:Array(String)] [default:["default string"]]
--help Show this help.
Sub Commands:
Expand Down
2 changes: 1 addition & 1 deletion spec/clim/dsl_spec/sub_command/sub_command_03_03_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ require "./sub_command_alias"
Options:
-a ARG, --array=ARG Option test. [type:Array(String)] [default:[\"default string\"]]
-a ARG, --array=ARG Option test. [type:Array(String)] [default:["default string"]]
--help Show this help.
Sub Commands:
Expand Down
2 changes: 1 addition & 1 deletion spec/clim/dsl_spec/sub_command/sub_command_04_01_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ require "./sub_command_alias"
Options:
-a ARG, --array=ARG Option test. [type:Array(String)] [default:[\"default string\"]]
-a ARG, --array=ARG Option test. [type:Array(String)] [default:["default string"]]
--help Show this help.
Sub Commands:
Expand Down
2 changes: 1 addition & 1 deletion spec/clim/dsl_spec/sub_command/sub_command_04_02_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ require "./sub_command_alias"
Options:
-a ARG, --array=ARG Option test. [type:Array(String)] [default:[\"default string\"]]
-a ARG, --array=ARG Option test. [type:Array(String)] [default:["default string"]]
--help Show this help.
Sub Commands:
Expand Down
2 changes: 1 addition & 1 deletion spec/clim/dsl_spec/sub_command/sub_command_04_03_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ require "./sub_command_alias"
Options:
-a ARG, --array=ARG Option test. [type:Array(String)] [default:[\"default string\"]]
-a ARG, --array=ARG Option test. [type:Array(String)] [default:["default string"]]
--help Show this help.
Sub Commands:
Expand Down
2 changes: 1 addition & 1 deletion src/clim/version.cr
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
class Clim
VERSION = "0.12.0"
VERSION = "0.13.0"
end

0 comments on commit c7845c5

Please sign in to comment.