am 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/am/version.rb +1 -1
  3. data/lib/ui.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cf5a9bc28dbc2da57bc4bc157d6eb0f74f7a1954
4
- data.tar.gz: c4721d8dec917d8ee6a3b02de8b055de51f8df92
3
+ metadata.gz: 2daba3de95eb8972a6ee9de3b8af5686a77f66d4
4
+ data.tar.gz: 86cf82ef88025b34465e1bcdb9397774ab2aceb0
5
5
  SHA512:
6
- metadata.gz: 602ad447e90860238496e8147c690b225ec20e7538abe9efebcda18df3c9f02e33c61c30dea87b5dbf37099c5496ca4616d30b9d674d8e82fdb914a106c52653
7
- data.tar.gz: 68391468e356dbdecb5fa83acb2b25d551cc20e9c88508cdcc04e7a12a52fa0319a781b9747cf9b5b50e6cd11bc775958c42978a77dc8c26bd28bd39efc5c221
6
+ metadata.gz: 4d88e019ba34b2e53317d75c851f196a246c220a37d5f80afdea72e3d44707001403568f49769b5f07f847a00160608a35b5446de58e5121e48e4dddbc70bc09
7
+ data.tar.gz: 8d5eb095075f76de314aa664c43d0a4aff0da2a48284c4d61b0d060826b4bca3f805dac9f463ff4452795b70f97d17315353ddb2e613438b3b2f2131961ee671
data/lib/am/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Am
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
data/lib/ui.rb CHANGED
@@ -54,7 +54,7 @@ module AM
54
54
  end
55
55
 
56
56
  def valid?(val, pattern, message)
57
- if /#{pattern}/ =~ val
57
+ if /#{pattern}/ =~ val || val.length == 0
58
58
  puts message
59
59
  exit
60
60
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: am
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - ka-yamashita