doing 1.0.69 → 1.0.70

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bf5235acbab516c74ea7ff28c610dcbc49b9d9f108056c1b3c60ac0100bd9ec5
4
- data.tar.gz: ca6abc5bd66a950d78ab16aabc781660b0ea5ee3f6dc50bb8a9fd0b986cce21e
3
+ metadata.gz: 10dc5d92f3e7079a9525d39c47fe0f69ef22f64ae5400cd9da1925f9b0fc1964
4
+ data.tar.gz: ec08df722ce07bbfcee808bfd4bd9eabe5470ef173f5d11e47fc52356b2c2c95
5
5
  SHA512:
6
- metadata.gz: b9f62baa0a4348212c54c1f9f3aa5bca041d81bc5061221310a85747b05c0b9b7af9036d309fcffd78e192a7a415f462ceeb96f8c276cef320249651f4890d35
7
- data.tar.gz: cc61feaf78e9a3d6865bbb3d5fecdff00659b9b00a7430971012bfca0856e45ee87efd864dde603a7a6e6abf6a571f01f0e8d60afbbb7ebe060364f65c908b6b
6
+ metadata.gz: c56a9a328d2ed31e70633333be5f7666d9586154fba7cc59f34116f1a972156fb4dd7d087e59452bf860167e618dad815da8a113fe0e4cf9f12faafa98d68d72
7
+ data.tar.gz: 3152021d8017af18e4046736f1f994bd1821f95bece924ca9ad78de997ad3473cbfd411389ede1dfe6313a1c4fde3debdc9907f3f2da899b1bab823a02a932e7
data/README.md CHANGED
@@ -25,11 +25,9 @@ While I'm working, I have hourly reminders to record what I'm working on, and I
25
25
 
26
26
  If there's something I want to look at later but doesn't need to be added to a task list or tracker, I can type `doing later check out the pinboard bookmarks from macdrifter`. When I get back to my computer --- or just need a refresher after a distraction --- I can type `doing last` to see what the last thing on my plate was. I can also type `doing recent` (or just `doing`) to get a list of the last few entries. `doing today` gives me everything since midnight for the current day, making it easy to see what I've accomplished over a sleepless night.
27
27
 
28
- _Side note:_ I actually use the library behind this utility as part of another script that mirrors entries in [Day One](http://dayoneapp.com) that have the tag `wwid`. I can use the hourly writing reminders and enter my stuff in the quick entry popup. Someday I'll get around to cleaning that up and putting it out there.
29
-
30
28
  ## Installation
31
29
 
32
- The current version of `doing` is <!--VER-->1.0.68<!--END VER-->.
30
+ The current version of `doing` is <!--VER-->1.0.69<!--END VER-->.
33
31
 
34
32
  $ [sudo] gem install doing
35
33
 
data/bin/doing CHANGED
@@ -368,7 +368,7 @@ command %i[done did] do |c|
368
368
 
369
369
  date = options[:took] ? finish_date - took : finish_date
370
370
  elsif options[:took]
371
- finish_date = options[:back] ? date + took : nil
371
+ finish_date = date + took
372
372
  elsif options[:back]
373
373
  finish_date = date
374
374
  else
data/lib/doing/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Doing
2
- VERSION = '1.0.69'
2
+ VERSION = '1.0.70'
3
3
  end
data/lib/doing/wwid.rb CHANGED
@@ -834,12 +834,6 @@ class WWID
834
834
  if opt[:sequential]
835
835
  done_date = next_start - 1
836
836
  next_start = item['date']
837
- elsif opt[:back]
838
- if opt[:back].is_a? Integer
839
- done_date = item['date'] + opt[:back]
840
- else
841
- done_date = item['date'] + (opt[:back] - item['date'])
842
- end
843
837
  elsif opt[:took]
844
838
  if item['date'] + opt[:took] > Time.now
845
839
  item['date'] = Time.now - opt[:took]
@@ -847,6 +841,12 @@ class WWID
847
841
  else
848
842
  done_date = item['date'] + opt[:took]
849
843
  end
844
+ elsif opt[:back]
845
+ if opt[:back].is_a? Integer
846
+ done_date = item['date'] + opt[:back]
847
+ else
848
+ done_date = item['date'] + (opt[:back] - item['date'])
849
+ end
850
850
  else
851
851
  done_date = Time.now
852
852
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: doing
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.69
4
+ version: 1.0.70
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brett Terpstra
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-01 00:00:00.000000000 Z
11
+ date: 2021-09-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake