doing 1.0.49 → 1.0.50
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 -1
- data/bin/doing +3 -57
- data/lib/doing/version.rb +1 -1
- metadata +7 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 37e84e7e125fd635921025a3c3f8a20a0987215eb551c9adf5ed4239bd276707
|
4
|
+
data.tar.gz: 6a0c28fb01d02a27c51593793d37a4600d45370d7733180cad706dddbddf8715
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 975ec56664d80ceb67f9087d3bc26fa347fb5c38ec3a1488834790a8ac5e8adc2c4c6df74c64ef23eca4689bb38120f9bccce19e1a38001116548a8fdbb587d9
|
7
|
+
data.tar.gz: 8389272923846981d307dfc2f27737f478307b33f805d3eede7f476d07477037a75792f30116aee4d23e9627291546b81ddbe6a88dafba58958e135cd51d466f
|
data/README.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
**A command line tool for remembering what you were doing and tracking what you've done.**
|
4
4
|
|
5
|
-
_If you're one of the rare people like me who find this useful, feel free to [buy me some coffee](http://brettterpstra.com/donate)._
|
5
|
+
_If you're one of the rare people like me who find this useful, feel free to [buy me some coffee](http://brettterpstra.com/donate/)._
|
6
6
|
|
7
7
|
|
8
8
|
## Contents
|
data/bin/doing
CHANGED
@@ -62,7 +62,6 @@ arg_name 'entry'
|
|
62
62
|
command [:now, :next] do |c|
|
63
63
|
c.desc 'Section'
|
64
64
|
c.arg_name 'section_name'
|
65
|
-
c.default_value wwid.current_section
|
66
65
|
c.flag [:s, :section], :default_value => wwid.current_section
|
67
66
|
|
68
67
|
c.desc "Edit entry with #{ENV['EDITOR']}"
|
@@ -72,7 +71,6 @@ command [:now, :next] do |c|
|
|
72
71
|
c.flag [:b, :back]
|
73
72
|
|
74
73
|
c.desc 'Timed entry, marks last entry in section as @done'
|
75
|
-
c.default_value false
|
76
74
|
c.switch [:f, :finish_last], :negatable => false, :default_value => false
|
77
75
|
|
78
76
|
c.desc 'Note'
|
@@ -81,8 +79,7 @@ command [:now, :next] do |c|
|
|
81
79
|
|
82
80
|
# c.desc "Edit entry with specified app"
|
83
81
|
# c.arg_name 'editor_app'
|
84
|
-
# c.
|
85
|
-
# c.flag [:a, :app]
|
82
|
+
# # c.flag [:a, :app]
|
86
83
|
|
87
84
|
c.action do |global_options,options,args|
|
88
85
|
if options[:back]
|
@@ -136,7 +133,6 @@ arg_name 'note_text'
|
|
136
133
|
command :note do |c|
|
137
134
|
c.desc 'Section'
|
138
135
|
c.arg_name 'section_name'
|
139
|
-
c.default_value wwid.current_section
|
140
136
|
c.flag [:s, :section], :default_value => "All"
|
141
137
|
|
142
138
|
c.desc "Edit entry with #{ENV['EDITOR']}"
|
@@ -196,7 +192,6 @@ arg_name 'entry'
|
|
196
192
|
command :meanwhile do |c|
|
197
193
|
c.desc 'Section'
|
198
194
|
c.arg_name 'section_name'
|
199
|
-
c.default_value wwid.current_section
|
200
195
|
c.flag [:s, :section], :default_value => wwid.current_section
|
201
196
|
|
202
197
|
c.desc "Edit entry with #{ENV['EDITOR']}"
|
@@ -276,7 +271,6 @@ command :later do |c|
|
|
276
271
|
|
277
272
|
c.desc "Edit entry with specified app"
|
278
273
|
c.arg_name 'editor_app'
|
279
|
-
c.default_value wwid.config.has_key?('editor_app') && wwid.config['editor_app'] ? wwid.config['editor_app'] : false
|
280
274
|
c.flag [:a, :app]
|
281
275
|
|
282
276
|
c.desc 'Backdate start time to date string [4pm|20m|2h|yesterday noon]'
|
@@ -329,15 +323,12 @@ desc 'Add a completed item with @done(date). No argument finishes last entry.'
|
|
329
323
|
arg_name 'entry'
|
330
324
|
command [:done, :did] do |c|
|
331
325
|
c.desc 'Remove @done tag'
|
332
|
-
c.default_value false
|
333
326
|
c.switch [:r, :remove], :negatable => false, :default_value => false
|
334
327
|
|
335
328
|
c.desc 'Include date'
|
336
|
-
c.default_value true
|
337
329
|
c.switch [:date], :negatable => true, :default_value => true
|
338
330
|
|
339
331
|
c.desc 'Immediately archive the entry'
|
340
|
-
c.default_value false
|
341
332
|
c.switch [:a, :archive], :negatable => false, :default_value => false
|
342
333
|
|
343
334
|
c.desc 'Set finish date to specific date/time (natural langauge parsed, e.g. --at=1:30pm). If used, ignores --back. Used with --took, backdates start date'
|
@@ -350,7 +341,6 @@ command [:done, :did] do |c|
|
|
350
341
|
c.flag [:t, :took]
|
351
342
|
|
352
343
|
c.desc 'Section'
|
353
|
-
c.default_value wwid.current_section
|
354
344
|
c.flag [:s, :section], :default_value => wwid.current_section
|
355
345
|
|
356
346
|
c.desc "Edit entry with #{ENV['EDITOR']}"
|
@@ -358,8 +348,7 @@ command [:done, :did] do |c|
|
|
358
348
|
|
359
349
|
# c.desc "Edit entry with specified app"
|
360
350
|
# c.arg_name 'editor_app'
|
361
|
-
# c.
|
362
|
-
# c.flag [:a, :app]
|
351
|
+
# # c.flag [:a, :app]
|
363
352
|
|
364
353
|
c.action do |global_options,options,args|
|
365
354
|
took = 0
|
@@ -390,7 +379,7 @@ command [:done, :did] do |c|
|
|
390
379
|
end
|
391
380
|
|
392
381
|
section = wwid.guess_section(options[:s]) || options[:s].cap_first
|
393
|
-
donedate = options[:
|
382
|
+
donedate = options[:date] ? "(#{finish_date.strftime('%F %R')})" : ""
|
394
383
|
|
395
384
|
if options[:e]
|
396
385
|
raise "No EDITOR variable defined in environment" if ENV['EDITOR'].nil?
|
@@ -447,15 +436,12 @@ command :finish do |c|
|
|
447
436
|
c.flag [:t, :took]
|
448
437
|
|
449
438
|
c.desc 'Auto-generate finish dates from next entry\'s start time. Automatically generate completion dates 1 minute before next start date. --auto overrides the --date and --back parameters.'
|
450
|
-
c.default_value false
|
451
439
|
c.switch [:auto], :negatable => false, :default_value => false
|
452
440
|
|
453
441
|
c.desc 'Archive entries'
|
454
|
-
c.default_value false
|
455
442
|
c.switch [:a, :archive], :negatable => false, :default_value => false
|
456
443
|
|
457
444
|
c.desc 'Section'
|
458
|
-
c.default_value wwid.current_section
|
459
445
|
c.flag [:s, :section], :default_value => wwid.current_section
|
460
446
|
|
461
447
|
c.action do |global_options,options,args|
|
@@ -509,19 +495,15 @@ command :tag do |c|
|
|
509
495
|
c.flag [:s, :section], :default_value => "All"
|
510
496
|
|
511
497
|
c.desc 'How many recent entries to tag (0 for all)'
|
512
|
-
c.default_value 1
|
513
498
|
c.flag [:c, :count], :default_value => 1
|
514
499
|
|
515
500
|
c.desc 'Include current date/time with tag'
|
516
|
-
c.default_value false
|
517
501
|
c.switch [:d, :date], :negatable => false, :default_value => false
|
518
502
|
|
519
503
|
c.desc 'Remove given tag(s)'
|
520
|
-
c.default_value false
|
521
504
|
c.switch [:r, :remove], :negatable => false, :default_value => false
|
522
505
|
|
523
506
|
c.desc 'Autotag entries based on autotag configuration in ~/.doingrc'
|
524
|
-
c.default_value false
|
525
507
|
c.switch [:a, :autotag], :negatable => false, :default_value => false
|
526
508
|
|
527
509
|
c.action do |global_options,options,args|
|
@@ -571,11 +553,9 @@ end
|
|
571
553
|
desc 'Mark last entry as highlighted'
|
572
554
|
command [:mark, :flag] do |c|
|
573
555
|
c.desc 'Section'
|
574
|
-
c.default_value wwid.current_section
|
575
556
|
c.flag [:s, :section], :default_value => wwid.current_section
|
576
557
|
|
577
558
|
c.desc 'Remove mark'
|
578
|
-
c.default_value false
|
579
559
|
c.switch [:r, :remove], :negatable => false, :default_value => false
|
580
560
|
|
581
561
|
|
@@ -590,19 +570,15 @@ long_desc 'The argument can be a section name, @tag(s) or both. "pick" or "choos
|
|
590
570
|
arg_name '[section|@tags]'
|
591
571
|
command :show do |c|
|
592
572
|
c.desc 'Tag boolean (AND,OR,NONE)'
|
593
|
-
c.default_value "OR"
|
594
573
|
c.flag [:b, :bool], :default_value => "OR"
|
595
574
|
|
596
575
|
c.desc 'Max count to show'
|
597
|
-
c.default_value 0
|
598
576
|
c.flag [:c, :count], :default_value => 0
|
599
577
|
|
600
578
|
c.desc 'Age (oldest/newest)'
|
601
|
-
c.default_value 'newest'
|
602
579
|
c.flag [:a, :age], :default_value => 'newest'
|
603
580
|
|
604
581
|
c.desc 'Sort order (asc/desc)'
|
605
|
-
c.default_value 'asc'
|
606
582
|
c.flag [:s, :sort], :default_value => 'asc'
|
607
583
|
|
608
584
|
c.desc %{
|
@@ -613,11 +589,9 @@ command :show do |c|
|
|
613
589
|
c.flag [:f, :from]
|
614
590
|
|
615
591
|
c.desc 'Show time intervals on @done tasks'
|
616
|
-
c.default_value true
|
617
592
|
c.switch [:t, :times], :default_value => true
|
618
593
|
|
619
594
|
c.desc 'Show intervals with totals at the end of output'
|
620
|
-
c.default_value false
|
621
595
|
c.switch [:totals], :default_value => false, :negatable => true
|
622
596
|
|
623
597
|
c.desc 'Sort tags by (name|time)'
|
@@ -628,7 +602,6 @@ command :show do |c|
|
|
628
602
|
c.flag [:tag_sort], :default_value => default
|
629
603
|
|
630
604
|
c.desc 'Only show items with recorded time intervals'
|
631
|
-
c.default_value false
|
632
605
|
c.switch [:only_timed], :default_value => false, :negatable => false
|
633
606
|
|
634
607
|
c.desc 'Output to export format (csv|html|json)'
|
@@ -706,18 +679,15 @@ EODESC
|
|
706
679
|
arg_name 'search_pattern'
|
707
680
|
command [:grep, :search] do |c|
|
708
681
|
c.desc 'Section'
|
709
|
-
c.default_value "all"
|
710
682
|
c.flag [:s, :section], :default_value => "All"
|
711
683
|
|
712
684
|
c.desc 'Output to export format (csv|html|json)'
|
713
685
|
c.flag [:o, :output]
|
714
686
|
|
715
687
|
c.desc 'Show time intervals on @done tasks'
|
716
|
-
c.default_value true
|
717
688
|
c.switch [:t, :times], :default_value => true
|
718
689
|
|
719
690
|
c.desc 'Show intervals with totals at the end of output'
|
720
|
-
c.default_value false
|
721
691
|
c.switch [:totals], :default_value => false, :negatable => true
|
722
692
|
|
723
693
|
c.desc 'Sort tags by (name|time)'
|
@@ -728,7 +698,6 @@ command [:grep, :search] do |c|
|
|
728
698
|
c.flag [:tag_sort], :default_value => default
|
729
699
|
|
730
700
|
c.desc 'Only show items with recorded time intervals'
|
731
|
-
c.default_value false
|
732
701
|
c.switch [:only_timed], :default_value => false, :negatable => false
|
733
702
|
|
734
703
|
c.action do |global_options,options,args|
|
@@ -748,15 +717,12 @@ default_value 10
|
|
748
717
|
arg_name 'count'
|
749
718
|
command :recent do |c|
|
750
719
|
c.desc 'Section'
|
751
|
-
c.default_value "All"
|
752
720
|
c.flag [:s, :section], :default_value => "All"
|
753
721
|
|
754
722
|
c.desc 'Show time intervals on @done tasks'
|
755
|
-
c.default_value true
|
756
723
|
c.switch [:t, :times], :default_value => true
|
757
724
|
|
758
725
|
c.desc 'Show intervals with totals at the end of output'
|
759
|
-
c.default_value false
|
760
726
|
c.switch [:totals], :default_value => false, :negatable => true
|
761
727
|
|
762
728
|
c.desc 'Sort tags by (name|time)'
|
@@ -789,15 +755,12 @@ desc 'List entries from today'
|
|
789
755
|
command :today do |c|
|
790
756
|
c.desc 'Specify a section'
|
791
757
|
c.arg_name 'section_name'
|
792
|
-
c.default_value "All"
|
793
758
|
c.flag [:s, :section], :default_value => 'All'
|
794
759
|
|
795
760
|
c.desc 'Show time intervals on @done tasks'
|
796
|
-
c.default_value true
|
797
761
|
c.switch [:t, :times], :default_value => true
|
798
762
|
|
799
763
|
c.desc 'Show time totals at the end of output'
|
800
|
-
c.default_value false
|
801
764
|
c.switch [:totals], :default_value => false, :negatable => true
|
802
765
|
|
803
766
|
c.desc 'Sort tags by (name|time)'
|
@@ -826,15 +789,12 @@ arg_name 'date_string'
|
|
826
789
|
command :on do |c|
|
827
790
|
c.desc 'Section'
|
828
791
|
c.arg_name 'section_name'
|
829
|
-
c.default_value 'All'
|
830
792
|
c.flag [:s, :section], :default_value => 'All'
|
831
793
|
|
832
794
|
c.desc 'Show time intervals on @done tasks'
|
833
|
-
c.default_value true
|
834
795
|
c.switch [:t, :times], :default_value => true
|
835
796
|
|
836
797
|
c.desc 'Show time totals at the end of output'
|
837
|
-
c.default_value false
|
838
798
|
c.switch [:totals], :default_value => false, :negatable => true
|
839
799
|
|
840
800
|
c.desc 'Sort tags by (name|time)'
|
@@ -878,18 +838,15 @@ desc 'List entries from yesterday'
|
|
878
838
|
command :yesterday do |c|
|
879
839
|
c.desc 'Specify a section'
|
880
840
|
c.arg_name 'section_name'
|
881
|
-
c.default_value "All"
|
882
841
|
c.flag [:s, :section], :default_value => 'All'
|
883
842
|
|
884
843
|
c.desc 'Output to export format (csv|html|json)'
|
885
844
|
c.flag [:o, :output]
|
886
845
|
|
887
846
|
c.desc 'Show time intervals on @done tasks'
|
888
|
-
c.default_value true
|
889
847
|
c.switch [:t, :times], :default_value => true
|
890
848
|
|
891
849
|
c.desc 'Show time totals at the end of output'
|
892
|
-
c.default_value false
|
893
850
|
c.switch [:totals], :default_value => false, :negatable => true
|
894
851
|
|
895
852
|
c.desc 'Sort tags by (name|time)'
|
@@ -909,7 +866,6 @@ end
|
|
909
866
|
desc 'Show the last entry'
|
910
867
|
command :last do |c|
|
911
868
|
c.desc 'Specify a section'
|
912
|
-
c.default_value "All"
|
913
869
|
c.flag [:s, :section]
|
914
870
|
|
915
871
|
c.action do |global_options,options,args|
|
@@ -920,7 +876,6 @@ end
|
|
920
876
|
desc 'List sections'
|
921
877
|
command :sections do |c|
|
922
878
|
c.desc 'List in single column'
|
923
|
-
c.default_value false
|
924
879
|
c.switch [:c, :column], :default_value => false
|
925
880
|
|
926
881
|
c.action do |global_options,options,args|
|
@@ -981,11 +936,9 @@ command :view do |c|
|
|
981
936
|
c.flag [:o, :output]
|
982
937
|
|
983
938
|
c.desc 'Show time intervals on @done tasks'
|
984
|
-
c.default_value true
|
985
939
|
c.switch [:t, :times], :default_value => true
|
986
940
|
|
987
941
|
c.desc 'Show intervals with totals at the end of output'
|
988
|
-
c.default_value false
|
989
942
|
c.switch [:totals], :default_value => false, :negatable => true
|
990
943
|
|
991
944
|
c.desc 'Sort tags by (name|time)'
|
@@ -996,7 +949,6 @@ command :view do |c|
|
|
996
949
|
c.flag [:tag_sort], :default_value => default
|
997
950
|
|
998
951
|
c.desc 'Only show items with recorded time intervals'
|
999
|
-
c.default_value false
|
1000
952
|
c.switch [:only_timed], :default_value => false, :negatable => true
|
1001
953
|
|
1002
954
|
c.action do |global_options,options,args|
|
@@ -1059,7 +1011,6 @@ end
|
|
1059
1011
|
desc 'List available custom views'
|
1060
1012
|
command :views do |c|
|
1061
1013
|
c.desc 'List in single column'
|
1062
|
-
c.default_value false
|
1063
1014
|
c.switch [:c, :column], :default_value => false
|
1064
1015
|
|
1065
1016
|
c.action do |global_options,options,args|
|
@@ -1073,15 +1024,12 @@ arg_name 'section'
|
|
1073
1024
|
default_value wwid.current_section
|
1074
1025
|
command :archive do |c|
|
1075
1026
|
c.desc 'Count to keep (ignored if archiving by tag)'
|
1076
|
-
c.default_value 5
|
1077
1027
|
c.flag [:k, :keep], :default_value => 5, :must_match => /^\d+$/, :type => Integer
|
1078
1028
|
|
1079
1029
|
c.desc 'Move entries to'
|
1080
|
-
c.default_value "Archive"
|
1081
1030
|
c.flag [:t, :to], :default_value => "Archive"
|
1082
1031
|
|
1083
1032
|
c.desc 'Tag boolean'
|
1084
|
-
c.default_value "AND"
|
1085
1033
|
c.flag [:b, :bool], :default_value => "AND"
|
1086
1034
|
|
1087
1035
|
c.action do |global_options,options,args|
|
@@ -1150,7 +1098,6 @@ end
|
|
1150
1098
|
desc 'Edit the configuration file'
|
1151
1099
|
command :config do |c|
|
1152
1100
|
c.desc 'Editor to use'
|
1153
|
-
c.default_value ENV['EDITOR']
|
1154
1101
|
c.flag [:e, :editor], :default_value => nil
|
1155
1102
|
|
1156
1103
|
if `uname` =~ /Darwins/
|
@@ -1189,7 +1136,6 @@ end
|
|
1189
1136
|
desc 'Undo the last change to the doing_file'
|
1190
1137
|
command :undo do |c|
|
1191
1138
|
c.desc 'Specify alternate doing file'
|
1192
|
-
c.default_value wwid.doing_file
|
1193
1139
|
c.flag [:f, :file], :default_value => wwid.doing_file
|
1194
1140
|
|
1195
1141
|
c.action do |global_options,options,args|
|
data/lib/doing/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
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.50
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brett Terpstra
|
@@ -14,6 +14,9 @@ dependencies:
|
|
14
14
|
name: rake
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '13.0'
|
17
20
|
- - ">="
|
18
21
|
- !ruby/object:Gem::Version
|
19
22
|
version: 13.0.1
|
@@ -21,6 +24,9 @@ dependencies:
|
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
27
|
+
- - "~>"
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '13.0'
|
24
30
|
- - ">="
|
25
31
|
- !ruby/object:Gem::Version
|
26
32
|
version: 13.0.1
|