doing 1.0.44 → 1.0.45

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bbe619696336e23ee543e4519f139c62ecccbd025d58b9ca69be1b8256805c82
4
- data.tar.gz: af9210306d1a2d868ecdc6208b6d1cbc508c22be67072e13d470892de80c29cf
3
+ metadata.gz: 8449bbc0f6d6a8d059856d77abd2f4648544c3bda9e69c75a93a69fd8dffe851
4
+ data.tar.gz: 90c223b97441535bd6cda1563fcbc2dd97197901b9972ceb51989b1f4ad9599c
5
5
  SHA512:
6
- metadata.gz: 546e4f4a5c9022656461dbe6399142ad326801c88f22d162f620f4f5eadb477f74a09c45367930583ccd02378a06a7076e334c7cb199c0f42e1fdb7050bf9f5c
7
- data.tar.gz: f6f8c75163349dec7a2ab0d4919ebf201f68d6acb0de3ea7698e6bb1a7a0ae3f483c2e3fbeb5ac88b69e53141ac15a73cd68e5a6131c310046df8a7300ed588c
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
@@ -1,3 +1,3 @@
1
1
  module Doing
2
- VERSION = '1.0.44'
2
+ VERSION = '1.0.45'
3
3
  end
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!(/\s*@done(\(.*?\))?/, '').chomp
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
- if File.exists?(File.expand_path(file))
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(File.expand_path(file),'w+') do |f|
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
 
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.44
4
+ version: 1.0.45
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brett Terpstra