intent 0.5.1 → 0.5.2

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: ea2daf59cb345df7bd72c851cddc2ecde68784fa
4
- data.tar.gz: 1075d0564b4c0dea690c2359d5cc97d8ec462382
3
+ metadata.gz: 19a8c289cead129f360518c2ffa6806f1914dea0
4
+ data.tar.gz: 02d5ec3b06629a4d8da19ddddf2e5e8c0d9fc183
5
5
  SHA512:
6
- metadata.gz: 35ec82d5b361797039e81871d9c938627edc22dc7e6a9cb300b3bcd64319edb10b97965ef9d644af914a957c6b5e1ee4a4e67671b4d139efa78bc412deb8b04b
7
- data.tar.gz: 9c66b534b656c965a11413a27577ac7732e81d52887931ca74a597a352c5288aaff5eeac20d2d8fff6d0dd361747d376d80a712069eefa1ed40a27b517be3296
6
+ metadata.gz: ceb5fc7f6e58d751442bc641821b635b62c18a41469bc2931f397ef123bef8100fece2bc9a85facb7e60944ad3ede7f9d81a4df27bd2cf9f3cd56e7b140a9091
7
+ data.tar.gz: 71473941dd4788d67fc899c9e9a359ccc8ae64499d74c703ec2fd62e9c47c02847bf01bc1440cb15e13f902471eda52a15eb9035fe005ca07af170d357a46179
@@ -1,9 +1,9 @@
1
1
  # Monkeypatch `todo-txt-gem` to create ANSI decorated terminal output.
2
2
  class Todo::Task
3
- def to_s
3
+ def to_s_highlighted
4
4
  pastel = Pastel.new
5
5
  if done?
6
- pastel.strikethrough(super)
6
+ pastel.strikethrough(to_s)
7
7
  else
8
8
  print_open_task(pastel)
9
9
  end
@@ -40,7 +40,7 @@ module Intent
40
40
  end
41
41
 
42
42
  filtered_list.by_not_done.each do |task|
43
- output.puts task
43
+ output.puts task.to_s_highlighted
44
44
  end
45
45
  when :sample
46
46
  focused_list = list.by_not_done
@@ -56,10 +56,10 @@ module Intent
56
56
 
57
57
  prioritised_list = focused_list.by_priority('A')
58
58
  if prioritised_list.any?
59
- output.puts prioritised_list.sample
59
+ output.puts prioritised_list.sample.to_s_highlighted
60
60
  else
61
61
  if focused_list.any?
62
- output.puts focused_list.sample
62
+ output.puts focused_list.sample.to_s_highlighted
63
63
  else
64
64
  output.puts "No tasks found."
65
65
  end
@@ -1,3 +1,3 @@
1
1
  module Intent
2
- VERSION = '0.5.1'
2
+ VERSION = '0.5.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: intent
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Rickerby
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-18 00:00:00.000000000 Z
11
+ date: 2018-01-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: todo-txt