all_todo 0.4.3 → 0.4.4

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
  SHA1:
3
- metadata.gz: 3ed63196b9525d18dd25167a81bbf2b8987e97d0
4
- data.tar.gz: 2039058b2ecbb269e92d050e2a0bec750740daea
3
+ metadata.gz: b5fcb4fd40b1ee492c2a2e2e912d8e2adb4148da
4
+ data.tar.gz: 6c0e72f411de7d3dbe83b2d870dad5d3b6e76813
5
5
  SHA512:
6
- metadata.gz: d7789bf3507a20d0afe7db1dd1bbd77f26792db4de3ef1fdeda4fc45bfddb2178d51abeb97dabda046e1e82a9280bf60df45f1af0ea25532b53aad3678a537d2
7
- data.tar.gz: c6bb3184a4ebc46ecf5156f4d7b253b0c0f876b0615d087ce60ca09ef472e702752d3471f6e5938f81000b8d3bae9eb7e5ba8455f7581ff8b386cc25a2dc05ea
6
+ metadata.gz: c05fe456b96f218cd3cafb22f6646dc2722ffb2810adcbbac20bc52de919c33b6a32707cf6552752d4c176b2d637496d78b0a53730e5428315583413b167d68c
7
+ data.tar.gz: 274b8bd030df5187459a4571a957fe3cb7f776095b89fde2b0a4269a0aa7c9b572f23b7a8e9115a83ffa102792392e967d5b8a4ac9f4ecbae18b5d1c0f3a836e
@@ -1,2 +1,3 @@
1
- K59U<�E?7CJ���-mp��������.^M�o1JK��!�"l2L��G~,o��2��v�*��1W�mT�
2
- J��R1�-��/��с�r��"�L�0��r~�Y?�<dc��Nk+8)Kc������$c�ʗ ��Ӏ�e� �]�AFj�oІd�jW.JQ��d|����a�\�� Z�Ij��1)�)H䯂�pJ�d�K��tK�[���oÆ�]����NtK}�kK]��&znD *w���7�
1
+ Ue��vЄ���ж�CQE
2
+ �0�:7��s la4wst��e1=��@7#1��hb]�͆s���7�b6@�?��~/�Il�:V��?&<�qe�ģ[5, ctk��+#m��z@��X �=K������\�Ԏߞ�+K� ����<���V���Ɯ5H]KI8Yi�՚����%>S�~zkh3V�^ UV+F���Ew��V��Ir���hk��N��5��i���2�M�\��
3
+ ���0SJ#*�0�s
data.tar.gz.sig CHANGED
Binary file
@@ -209,11 +209,24 @@ class AllTodo < PxTodo
209
209
 
210
210
  def save(filepath=File.join(@filepath, 'all_todo.xml'))
211
211
 
212
- File.write filepath, @px.to_xml(pretty: true)
212
+ File.write filepath, self.to_px.to_xml(pretty: true)
213
213
 
214
214
  # also update the all_todo.txt and all_todo_detail.txt
215
215
 
216
+ # make a backup of the master copy (all_todo.txt) first
217
+ if File.exists? File.join(@filepath, 'all_todo.txt') then
218
+ FileUtils.cp File.join(@filepath, 'all_todo.txt'),
219
+ File.join(@filepath, 'all_todo.txt~')
220
+ end
221
+
216
222
  File.write File.join(@filepath, 'all_todo.txt'), self.to_s
223
+
224
+ # backup the detail first
225
+ if File.exists? File.join(@filepath, 'all_todo_detail.txt') then
226
+ FileUtils.cp File.join(@filepath, 'all_todo_detail.txt'),
227
+ File.join(@filepath, 'all_todo_detail.txt~')
228
+ end
229
+
217
230
  File.write File.join(@filepath, 'all_todo_detail.txt'), self.detail
218
231
 
219
232
  'saved'
@@ -335,12 +348,13 @@ class AllTodo < PxTodo
335
348
  statuses = a.map do |node|
336
349
 
337
350
  e = px1.element("//summary[contains(title,'#{node.text('title')}')]")
351
+
338
352
  [e.parent.attributes[:id], node.text('status') ]
339
353
 
340
354
  end
341
355
 
342
356
  statuses.each do |id, status|
343
-
357
+
344
358
  todo = @px.find_by_id id
345
359
  todo.status = status
346
360
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: all_todo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
4
+ version: 0.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -31,7 +31,7 @@ cert_chain:
31
31
  4IWTpx4UfuUB+a/n3zRd7tPzfsCnbjv0WeNaOLxPEdrqrbPxdMp0ULnHMi6/cuMX
32
32
  +/4csIEIHj2yLg==
33
33
  -----END CERTIFICATE-----
34
- date: 2016-12-11 00:00:00.000000000 Z
34
+ date: 2016-12-14 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: px_todo
metadata.gz.sig CHANGED
Binary file