e1515si_check_age 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 626d61068d28ba1a9038e5841a04c0eee2e6184a
4
- data.tar.gz: cb7de105560977d4284d9840911ebcf9eb0fba9e
3
+ metadata.gz: 272b2f2f7c84176b6e9a75ca7b36dea73ccd9365
4
+ data.tar.gz: 2296ed430657ebd41a6fac9cb60d182583451c36
5
5
  SHA512:
6
- metadata.gz: 09dc933eec8f566a282b4f2d0a63c842faf91407670884f05d73456a066f4cb96df0aad157dcb39ae083c4bc3e40964ebe814f94b3950d824c2eef4d0c75ad0a
7
- data.tar.gz: 18ffdcddc296d6516b512a5c9f0a0817fab6f12ab09979e480e59746dedaba08db9c38e46f8c9c1cedbd72d8e5d7903bdba29cf3f414d722fe4857cf2bd9f41b
6
+ metadata.gz: 8dfd9bcc66debcbea1dad8f7d0113d83063ce8bcf2b78b30a7b0dac3c7dcb7b4111395b3820342cacec8cfa83515bf743af8a32dafca8e2afd2627f4526ca805
7
+ data.tar.gz: 772aeca5c41072764ff6a112f20b745357926a35364330a11c279b7879e0e5fc6665cd54be9f4845540929a3ebdbd6e81e70bde91ec8a3efcc7f81f120cd6967
@@ -1,3 +1,3 @@
1
1
  module E1515siCheckAge
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
@@ -14,7 +14,7 @@ class E1515si_check_age
14
14
  birth = Date.strptime(inputString,'%Y/%m/%d')
15
15
  lifeYear = Time.now.year - birth.year
16
16
  #今年誕生日を迎えていない場合は、年齢から1を引く
17
- if(Date.new(Time.now.year,birth.month,birth.day) >= Date.today([start]))
17
+ if(Date.new(Time.now.year,birth.month,birth.day) >= Date.today())
18
18
  lifeYear -= 1;
19
19
  end
20
20
  #標準出力に表示する
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: e1515si_check_age
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shinya Ishikawa