Skip to content

Commit

Permalink
Merge pull request #94 from silent-e/hotfix/me/dealing-with-fixnum-de…
Browse files Browse the repository at this point in the history
…precation

fixing deprecation warning. test-unit gem
  • Loading branch information
ttscoff authored May 25, 2018
2 parents 7a7cb22 + 61f3400 commit ee1a747
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions doing.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ lib/doing/wwid.rb
s.add_development_dependency 'rake', '~> 0'
s.add_development_dependency 'rdoc', '~> 4.1', '>= 4.1.1'
s.add_development_dependency 'aruba', '~> 0'
s.add_development_dependency 'test-unit'
s.add_runtime_dependency('gli','~> 2.17.1')
s.add_runtime_dependency('haml','4.0.3')
s.add_runtime_dependency('chronic','~> 0.10', '>= 0.10.2')
Expand Down
2 changes: 1 addition & 1 deletion lib/doing/wwid.rb
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ def tag_last(opt={})
if opt[:sequential]
done_date = next_start - 1
next_start = item['date']
elsif opt[:back].instance_of? Fixnum
elsif opt[:back].instance_of?(Integer) || opt[:back].instance_of?(Fixnum)
done_date = item['date'] + opt[:back]
else
done_date = opt[:back]
Expand Down

0 comments on commit ee1a747

Please sign in to comment.