RubyGems
npm
Organizations
Log in
Sign up
RubyGems
adroit-age
Versions diffs
1.0.0 → 1.0.1
adroit-age 1.0.0 → 1.0.1
Sign up to get
free
protection for your applications and to get access to all the features.
Files changed (2)
hide
show
data/lib/adroit-age.rb
+0
-1
metadata
+1
-1
data/lib/adroit-age.rb
CHANGED
Viewed
@@ -5,6 +5,5 @@ class AdroitAge
5
5
dob = dob.to_date
6
6
now = Time.now.utc.to_date
7
7
age = now.year - dob.year - ((now.month > dob.month || (now.month == dob.month && now.day >= dob.day)) ? 0 : 1)
8
-
puts "#{age}"
9
8
end
10
9
end
metadata
CHANGED
Viewed
@@ -1,7 +1,7 @@
1
1
--- !ruby/object:Gem::Specification
2
2
name: adroit-age
3
3
version: !ruby/object:Gem::Version
4
-
version: 1.0.
0
4
+
version: 1.0.
1
5
5
prerelease:
6
6
platform: ruby
7
7
authors: