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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bee1a2acc8c07fe1cafbae6c9c435738369c3827b82168d86bf1528734e04516
4
- data.tar.gz: 3bf3771a2b9f3ef83dba479ff6ba25a8740aa85b5bd49297aa01b0412b13ec0b
3
+ metadata.gz: 2cb2bdb3a7ee7ccb6df2a00fe53543b333ffcd296851173dee6d5b9ba0288d1b
4
+ data.tar.gz: 6d4a22d736e4be81ae24db5c1307bf0e9848805887db258e9d504367448a4c04
5
5
  SHA512:
6
- metadata.gz: 51240d5ecbb50f2a221f8f3c83e260babf4fabc5d86ffa5d51bcd6bf0c74f81ecdc0c39e05dd4eff156b746c8067e06773b6983f4dcfe348d2699dc9115b7cc8
7
- data.tar.gz: d01e8d9a937159a031ed303cb2d5905162f30812043e327629163aa59ed0ee5564e02cb709d2a2f646c5fa0b5227d7478753f419fd74274ad3940573ba825da3
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
- name = slugify(content.lines.drop_while { |l| l.strip.empty? || l.start_with?('---') || l.match?(/^\w+:/) }.first.to_s.strip)
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
@@ -1,3 +1,3 @@
1
1
  class Hiiro
2
- VERSION = "0.1.187"
2
+ VERSION = "0.1.188"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hiiro
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.187
4
+ version: 0.1.188
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joshua Toyota