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 +4 -4
- data/README.md +1 -3
- data/bin/doing +1 -1
- data/lib/doing/version.rb +1 -1
- data/lib/doing/wwid.rb +6 -6
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 10dc5d92f3e7079a9525d39c47fe0f69ef22f64ae5400cd9da1925f9b0fc1964
|
4
|
+
data.tar.gz: ec08df722ce07bbfcee808bfd4bd9eabe5470ef173f5d11e47fc52356b2c2c95
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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 =
|
371
|
+
finish_date = date + took
|
372
372
|
elsif options[:back]
|
373
373
|
finish_date = date
|
374
374
|
else
|
data/lib/doing/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2021-09-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|