From 0400a28ac9aecc909d3b8f5b6a85b96f4b4a2b74 Mon Sep 17 00:00:00 2001 From: at-grandpa Date: Fri, 14 Jun 2019 23:12:38 +0900 Subject: [PATCH] 0.29.0 --- .travis.yml | 1 + Makefile | 5 ++++- README.md | 2 +- shard.yml | 4 ++-- spec/clim/command_spec.cr | 2 +- spec/clim/extension_spec.cr | 2 +- src/clim/exception.cr | 2 ++ src/clim/version.cr | 2 +- 8 files changed, 13 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index 0473a9e4..d6b87bd7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,4 +4,5 @@ crystal: - latest script: + - make format-check - make spec diff --git a/Makefile b/Makefile index f30ac866..5cd33896 100644 --- a/Makefile +++ b/Makefile @@ -5,4 +5,7 @@ spec: $(SPEC_FILES) $(SPEC_FILES): crystal spec $@ $(SPEC_OPTS) -.PHONY: spec $(SPEC_FILES) +format-check: + crystal tool format --check + +.PHONY: spec $(SPEC_FILES) format diff --git a/README.md b/README.md index 79a6d08d..536fba4d 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.6.0 + version: 0.7.0 ``` ## Minimum sample diff --git a/shard.yml b/shard.yml index 0d688470..f67df7b1 100644 --- a/shard.yml +++ b/shard.yml @@ -1,5 +1,5 @@ name: clim -version: 0.6.0 +version: 0.7.0 authors: - at-grandpa <@at_grandpa> @@ -8,6 +8,6 @@ targets: clim: main: src/clim.cr -crystal: 0.28.0 +crystal: 0.29.0 license: MIT diff --git a/spec/clim/command_spec.cr b/spec/clim/command_spec.cr index a9b23af6..daedac45 100644 --- a/spec/clim/command_spec.cr +++ b/spec/clim/command_spec.cr @@ -1,4 +1,4 @@ -require "./../../spec_helper" +require "../spec_helper" class SpecCommand < Clim main do diff --git a/spec/clim/extension_spec.cr b/spec/clim/extension_spec.cr index 35204211..949ea85c 100644 --- a/spec/clim/extension_spec.cr +++ b/spec/clim/extension_spec.cr @@ -7,7 +7,7 @@ describe Array do ["a", "b", "a", "b", "c"].duplicate_value.should eq ["a", "b"] [1, 1, 2, 2, 3].duplicate_value.should eq [1, 2] [1, 1, "a", "a", 3].duplicate_value.should eq [1, "a"] - [1, "a", 2, "b"].duplicate_value.should eq [] of String | Int32 + [1, "a", 2, "b"].duplicate_value.should eq [] of String | Int32 ([] of String | Int32).duplicate_value.should eq [] of String | Int32 end end diff --git a/src/clim/exception.cr b/src/clim/exception.cr index 5d7b1d98..f16e46a5 100644 --- a/src/clim/exception.cr +++ b/src/clim/exception.cr @@ -1,8 +1,10 @@ class Clim class ClimException < Exception end + class ClimInvalidOptionException < Exception end + class ClimInvalidTypeCastException < Exception end end diff --git a/src/clim/version.cr b/src/clim/version.cr index e4f8d450..671396cb 100644 --- a/src/clim/version.cr +++ b/src/clim/version.cr @@ -1,3 +1,3 @@ class Clim - VERSION = "0.6.0" + VERSION = "0.7.0" end