debtective 0.2.3.1 → 0.2.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/debtective +13 -1
- data/lib/debtective/version.rb +1 -1
- data/lib/tasks/debtective/todo_list.rake +9 -2
- 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: 1dbc3a3e7ee53fc04a2759fcf0e538773d2e03633e8d8770b536c6ce49d81466
|
4
|
+
data.tar.gz: 3ae9df343e6cee84e979ccc66fe35fda106df0a69bf2c6c570cdfb76f92859f3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0c1e6dacb2bbf1b23102add21f05f1872700ac71975b20e7fc70f1078e2a8faef5a3c4ac8daad30047e1e46ae287fac178c6916e7e4a54439ea1085f589a7155
|
7
|
+
data.tar.gz: ed2f39253ec62220a150e7639628f2e8420375b7fef444a0c2d4f8bdd1f4a65f62449d9f7ab968001cada37fc57aaec80097931aebb259f61d09fa3943cbf3fb
|
data/bin/debtective
CHANGED
@@ -4,6 +4,18 @@
|
|
4
4
|
require "debtective"
|
5
5
|
require "debtective/output_todos"
|
6
6
|
|
7
|
-
user_name =
|
7
|
+
user_name =
|
8
|
+
if ARGV.include?("--me")
|
9
|
+
`git config user.name`.strip
|
10
|
+
elsif ARGV.include?("--user")
|
11
|
+
ARGV[ARGV.index("--user") + 1]
|
12
|
+
end
|
13
|
+
|
14
|
+
if user_name
|
15
|
+
puts "Searching TODOs from #{user_name}..."
|
16
|
+
else
|
17
|
+
puts "Searching TODOs..."
|
18
|
+
end
|
19
|
+
|
8
20
|
quiet = ARGV.include?("--quiet")
|
9
21
|
Debtective::OutputTodos.new(user_name, quiet: quiet).call
|
data/lib/debtective/version.rb
CHANGED
@@ -11,12 +11,19 @@ end
|
|
11
11
|
namespace :debtective do
|
12
12
|
desc "Todo List"
|
13
13
|
task :todo_list do
|
14
|
-
|
15
|
-
|
14
|
+
user_name =
|
15
|
+
if ARGV.include?("--me")
|
16
|
+
`git config user.name`.strip
|
17
|
+
elsif ARGV.include?("--user")
|
18
|
+
ARGV[ARGV.index("--user") + 1]
|
19
|
+
end
|
20
|
+
|
21
|
+
if user_name
|
16
22
|
puts "Searching TODOs from #{user_name}..."
|
17
23
|
else
|
18
24
|
puts "Searching TODOs..."
|
19
25
|
end
|
26
|
+
|
20
27
|
Debtective::OutputTodos.new(user_name, quiet: ARGV.include?("--quiet")).call
|
21
28
|
end
|
22
29
|
end
|