Skip to content

Commit

Permalink
Fix Fixnum error, update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
ttscoff committed Aug 9, 2018
1 parent 7a7cb22 commit a1bb73a
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
2 changes: 2 additions & 0 deletions bin/doing
Expand Up @@ -331,6 +331,8 @@ command :done do |c|

if options[:took]
finish_date = date + took
elsif options[:back]
finish_date = date
else
finish_date = Time.now
end
Expand Down
6 changes: 3 additions & 3 deletions doing.gemspec
Expand Up @@ -26,9 +26,9 @@ 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_runtime_dependency('gli','~> 2.17.1')
s.add_runtime_dependency 'gli', '~> 2.17', '>= 2.17.1'
s.add_runtime_dependency('haml','4.0.3')
s.add_runtime_dependency('chronic','~> 0.10', '>= 0.10.2')
s.add_runtime_dependency('deep_merge')
s.add_runtime_dependency('json', '~> 1.8.1')
s.add_runtime_dependency 'deep_merge', '~> 0'
s.add_runtime_dependency 'json', '~> 1.8', '>= 1.8.1'
end
2 changes: 1 addition & 1 deletion lib/doing/version.rb
@@ -1,3 +1,3 @@
module Doing
VERSION = '1.0.10pre'
VERSION = '1.0.11pre'
end
9 changes: 5 additions & 4 deletions lib/doing/wwid.rb
@@ -1,6 +1,7 @@
#!/usr/bin/ruby

require 'deep_merge'
require 'pp'

class String
def cap_first
Expand Down Expand Up @@ -448,7 +449,7 @@ def tag_last(opt={})
opt[:date] ||= false
opt[:remove] ||= false
opt[:autotag] ||= false
opt[:back] ||= Time.now
opt[:back] ||= false


sec_arr = []
Expand Down Expand Up @@ -479,10 +480,10 @@ def tag_last(opt={})
if opt[:sequential]
done_date = next_start - 1
next_start = item['date']
elsif opt[:back].instance_of? Fixnum
done_date = item['date'] + opt[:back]
elsif opt[:back]
done_date = item['date'] + (opt[:back] - item['date'])
else
done_date = opt[:back]
done_date = Time.now
end

title = item['title']
Expand Down

0 comments on commit a1bb73a

Please sign in to comment.