all_todo 0.4.3 → 0.4.4
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
- checksums.yaml.gz.sig +3 -2
- data.tar.gz.sig +0 -0
- data/lib/all_todo.rb +16 -2
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b5fcb4fd40b1ee492c2a2e2e912d8e2adb4148da
|
4
|
+
data.tar.gz: 6c0e72f411de7d3dbe83b2d870dad5d3b6e76813
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c05fe456b96f218cd3cafb22f6646dc2722ffb2810adcbbac20bc52de919c33b6a32707cf6552752d4c176b2d637496d78b0a53730e5428315583413b167d68c
|
7
|
+
data.tar.gz: 274b8bd030df5187459a4571a957fe3cb7f776095b89fde2b0a4269a0aa7c9b572f23b7a8e9115a83ffa102792392e967d5b8a4ac9f4ecbae18b5d1c0f3a836e
|
checksums.yaml.gz.sig
CHANGED
@@ -1,2 +1,3 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
U�e��vЄ���ж�CQE
|
2
|
+
�0�:7��s l�a4ws�t��e1=��@7#1��hb]�͆s���7�b6@�?��~/�Il�:V��?&<�qe�ģ[5, ctk��+#m��z@��X�=K������\�Ԏߞ�+K� ����<���V���Ɯ5H�]KI8Y�i�՚����%>S�~zk�h3�V�^UV+F���Ew��V��Ir���hk��N��5��i���2�M�\��
|
3
|
+
���0SJ#*�0�s
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/all_todo.rb
CHANGED
@@ -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,
|
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.
|
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-
|
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
|