doing 1.0.44 → 1.0.45
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/bin/doing +0 -8
- data/lib/doing/version.rb +1 -1
- data/lib/doing/wwid.rb +12 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8449bbc0f6d6a8d059856d77abd2f4648544c3bda9e69c75a93a69fd8dffe851
|
4
|
+
data.tar.gz: 90c223b97441535bd6cda1563fcbc2dd97197901b9972ceb51989b1f4ad9599c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a42c67cf02151718f867e98d2a6571c88a7360b2a83c5e529378730364f4b812a4811c8bc03e990b08193fc4503b6f0e3f16b572a21cac1f45d15cb562333755
|
7
|
+
data.tar.gz: e0bac7d7dbd30808b9d438be3e4f887ddab05db294dff84467e55b3d3846e246e769b211dd37ff66f8e28c84c97262d23daca5af0445dd25ded03a7446707fef
|
data/bin/doing
CHANGED
@@ -1229,14 +1229,6 @@ post do |global,command,options,args|
|
|
1229
1229
|
else
|
1230
1230
|
warn wwid.results.join("\n")
|
1231
1231
|
end
|
1232
|
-
|
1233
|
-
if wwid.config['run_after']
|
1234
|
-
script = File.expand_path(wwid.config['run_after'])
|
1235
|
-
if File.exist?(script)
|
1236
|
-
# warn "Running #{script}"
|
1237
|
-
`#{script}`
|
1238
|
-
end
|
1239
|
-
end
|
1240
1232
|
end
|
1241
1233
|
|
1242
1234
|
on_error do |exception|
|
data/lib/doing/version.rb
CHANGED
data/lib/doing/wwid.rb
CHANGED
@@ -669,7 +669,7 @@ class WWID
|
|
669
669
|
return
|
670
670
|
end
|
671
671
|
# Remove @done tag
|
672
|
-
title = last['title'].sub
|
672
|
+
title = last['title'].sub(/\s*@done(\(.*?\))?/, '').chomp
|
673
673
|
add_item(title, last['section'], {:note => opt[:note], :back => opt[:date], :timed => true})
|
674
674
|
write(@doing_file)
|
675
675
|
end
|
@@ -959,14 +959,23 @@ class WWID
|
|
959
959
|
if file.nil?
|
960
960
|
$stdout.puts output
|
961
961
|
else
|
962
|
-
|
962
|
+
file = File.expand_path(file)
|
963
|
+
if File.exists?(file)
|
963
964
|
# Create a backup copy for the undo command
|
964
965
|
FileUtils.cp(file,file+"~")
|
965
966
|
|
966
|
-
File.open(
|
967
|
+
File.open(file,'w+') do |f|
|
967
968
|
f.puts output
|
968
969
|
end
|
969
970
|
end
|
971
|
+
|
972
|
+
if @config.key?('run_after')
|
973
|
+
script = File.expand_path(@config['run_after'])
|
974
|
+
if File.exist?(script)
|
975
|
+
# warn "Running #{script}"
|
976
|
+
`#{script}`
|
977
|
+
end
|
978
|
+
end
|
970
979
|
end
|
971
980
|
end
|
972
981
|
|