all_todo 0.2.3 → 0.2.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 +0 -0
- data/lib/all_todo.rb +9 -6
- data.tar.gz.sig +0 -0
- metadata +1 -1
- 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: d0c7bd2b46e9ddbc865fb5a1195b4bda3b08b83a
|
4
|
+
data.tar.gz: b8b3c8c2a827e81b78649b772fbd8bf6d27cbe3d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c791012d08f74539e0ae8e3bd3a3ce0c94aba4448b7e755a33df488c0c554b4432e0f177f812cbadc4fef032b2f4d40e40edb9adb441e1476b02cc70e4f65823
|
7
|
+
data.tar.gz: 4558fe4a516f4a68165b564bb7f1ce6fed0668947d6ff3024146c625e78a3846d1f095c89cc792053ed1310f7bbb303c03acfa5cbbaadac7f6fb7e8dd3ee9c8c
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/all_todo.rb
CHANGED
@@ -98,9 +98,7 @@ class AllTodo
|
|
98
98
|
|
99
99
|
def to_s()
|
100
100
|
|
101
|
-
|
102
|
-
|
103
|
-
lines = [title, '=' * title.length]
|
101
|
+
lines = []
|
104
102
|
offset_level = 0
|
105
103
|
|
106
104
|
@px.each_recursive do |x, parent, level, i|
|
@@ -110,8 +108,11 @@ class AllTodo
|
|
110
108
|
if x.heading.length > 0 then
|
111
109
|
|
112
110
|
lines << ''
|
111
|
+
lines << '' if level == 0
|
113
112
|
lines << "%s %s" % ['#' * (level+1), x.heading]
|
114
113
|
offset_level = -(level + 1)
|
114
|
+
|
115
|
+
lines.last << ' # ' + x.tags if x.tags
|
115
116
|
|
116
117
|
else
|
117
118
|
|
@@ -123,7 +124,7 @@ class AllTodo
|
|
123
124
|
lines << '' if i == 0 and parent.heading.length > 0
|
124
125
|
lines << todo
|
125
126
|
|
126
|
-
lines <<
|
127
|
+
lines << "%s Note: %s\n" % [indent, x.note] if x.note.length > 0
|
127
128
|
|
128
129
|
end
|
129
130
|
|
@@ -131,7 +132,9 @@ class AllTodo
|
|
131
132
|
|
132
133
|
lines << ['', '']
|
133
134
|
|
134
|
-
|
135
|
+
title = 'all_todo.txt'
|
136
|
+
|
137
|
+
([title, '=' * title.length] + lines[1..-1]).join("\n")
|
135
138
|
|
136
139
|
end
|
137
140
|
|
@@ -174,4 +177,4 @@ class AllTodo
|
|
174
177
|
lines
|
175
178
|
end
|
176
179
|
|
177
|
-
end
|
180
|
+
end
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|