doing 1.0.12 → 1.0.13

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: 0ad0b267ee75f15bf4359114a9bc2de529b263519ef7d7edfb0ad956b733785e
4
- data.tar.gz: 8fee027f1d330fa9853f5b12548f44a60e3ab942aaadbe9f465c414b03e53643
3
+ metadata.gz: 29fa30c0d5f0a4518c9f766ba5cf05e2f3eb8805d1fabd8e63aa98d175d1f98e
4
+ data.tar.gz: e404f3b6bd79f56edcafb54748eee35016f89844ad0dc6310f9e8bafba6fa21f
5
5
  SHA512:
6
- metadata.gz: 2113553a8dd3c5ab817c8f349a74f81507a1e017315fbe0498da4a14044cf479f98b5ba996dc32430d5139dbbf232f5460435b99e2db94b3c0ecf6a88e14632f
7
- data.tar.gz: e308036600992c3b5febca516943447e0a74c111cb6ef870bd6dd88f9f9eb9c5ed12f5856f4f0d48c7cd4f1226538324460b24490d22cffcfd2c6de4eca2d50e
6
+ metadata.gz: f3aa358e80c84cd55b463cee561435f56cf78a2416dcc074e769742101ff556129fe9784ccdef2b2ab8cdff7e4e47d25afb2fae76c9aac979c91b6649169f0e5
7
+ data.tar.gz: 8e6b80d90fbc746558818ff8cbdecf935d459f4ef49c66a0865ac34910bfcb4de15ad9009f7e8b3d8c857122ee4e69b2e8583297355a5cc137ee8491a0e80349
data/lib/doing/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Doing
2
- VERSION = '1.0.12'
2
+ VERSION = '1.0.13'
3
3
  end
data/lib/doing/wwid.rb CHANGED
@@ -592,7 +592,7 @@ class WWID
592
592
  tag.sub!(/^@/,'')
593
593
 
594
594
  found_items = 0
595
-
595
+ begin
596
596
  @content[opt[:section]]['items'].each_with_index {|item, i|
597
597
  if item['title'] =~ /@#{tag}/
598
598
  title = item['title'].gsub(/(^| )@(#{tag}|done)(\([^\)]*\))?/,'')
@@ -619,9 +619,15 @@ class WWID
619
619
  title, note = format_input(opt[:new_item])
620
620
  note.push(opt[:note].gsub(/ *$/,'')) if opt[:note]
621
621
  title += " @#{tag}"
622
- add_item(title.cap_first, opt[:section], {:note => note.gsub(/ *$/,''), :back => opt[:back]})
622
+ add_item(title.cap_first, opt[:section], {:note => note.join(' ').rstrip, :back => opt[:back]})
623
623
  end
624
624
 
625
+ rescue Exception=>e
626
+ puts e
627
+ puts e.backtrace
628
+ end
629
+
630
+
625
631
  write(@doing_file)
626
632
  end
627
633
 
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.12
4
+ version: 1.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brett Terpstra
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-11-21 00:00:00.000000000 Z
11
+ date: 2020-02-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake