Permalink
Browse files

Fix Date.valid_jd? & remove tag

  • Loading branch information...
1 parent 630bd75 commit b19a5e82cfdb1eb43a5460d125a36164935a349a @jc00ke jc00ke committed Jan 5, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −1 lib/19/date.rb
  2. +0 −1 spec/tags/19/ruby/library/date/valid_jd_tags.txt
View
@@ -731,7 +731,8 @@ class << self; alias_method :leap?, :gregorian_leap? end
class << self; alias_method :new!, :new end
def self.valid_jd? (jd, sg=ITALY)
- !!_valid_jd?(jd, sg)
+ return false if jd.nil?
+ true
end
def self.valid_ordinal? (y, d, sg=ITALY)
@@ -1 +0,0 @@
-fails:Date.valid_jd? returns true if passed false

0 comments on commit b19a5e8

Please sign in to comment.