hiiro 0.1.187 → 0.1.188
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
- data/lib/hiiro/queue.rb +3 -2
- data/lib/hiiro/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2cb2bdb3a7ee7ccb6df2a00fe53543b333ffcd296851173dee6d5b9ba0288d1b
|
|
4
|
+
data.tar.gz: 6d4a22d736e4be81ae24db5c1307bf0e9848805887db258e9d504367448a4c04
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0ee1134f16b018c694fd1b65552016ca9e6851b24f18985cc9e0f636f92426fe1d2c0c3023fbfb4c394017c2f0c7766fa9824b34c48b60b0d77e7ea13a646877
|
|
7
|
+
data.tar.gz: 4d513beb3137c09df0cd8b29d09cd21b632e39e1ffbc50ab7a57f91cac6608a8f0761da31935ce4d6b60ccbbbace95be66d686041ed93195bd757f78fa946aaa
|
data/lib/hiiro/queue.rb
CHANGED
|
@@ -258,7 +258,8 @@ class Hiiro
|
|
|
258
258
|
end
|
|
259
259
|
end
|
|
260
260
|
|
|
261
|
-
|
|
261
|
+
content_lines =content.lines.drop_while { |l| l.strip.empty? || l.start_with?('---') || l.match?(/^\w+:/) }.first.to_s.strip
|
|
262
|
+
name = slugify(content_lines)
|
|
262
263
|
|
|
263
264
|
if name.empty?
|
|
264
265
|
name = Time.now.strftime("%Y%m%d%H%M%S")
|
|
@@ -462,7 +463,7 @@ class Hiiro
|
|
|
462
463
|
end
|
|
463
464
|
end
|
|
464
465
|
|
|
465
|
-
result = q.add_with_frontmatter(content)
|
|
466
|
+
result = q.add_with_frontmatter(content, task_info:)
|
|
466
467
|
if result
|
|
467
468
|
puts "Created: #{result[:path]}"
|
|
468
469
|
else
|
data/lib/hiiro/version.rb
CHANGED