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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5337f50843d65198958e3c2a2f63b1b618f69070ec5445203c2615cc548ce833
4
- data.tar.gz: 128f58647d0da0046a99088fa1e7cd0c06c8fe0a557a8e1e3304e0f84a2644b3
3
+ metadata.gz: 1dbc3a3e7ee53fc04a2759fcf0e538773d2e03633e8d8770b536c6ce49d81466
4
+ data.tar.gz: 3ae9df343e6cee84e979ccc66fe35fda106df0a69bf2c6c570cdfb76f92859f3
5
5
  SHA512:
6
- metadata.gz: 34e11cc316b6a64489873769db16d2125a61643c8f70abf602f399df51d033a2e57df267520ca46caf2b4186600f38b9c00b8cc23159d8729316c25dfafb81d5
7
- data.tar.gz: 74a9440b99fb2b9d4888b19e64efa5c6de67742cdad82e8c89b706293074a902292b7826f0e5092ec31cbd45f863aa5ea14878b30c988d5922d14dd9acc47505
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 = `git config user.name`.strip if ARGV.include?("--me")
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Debtective
4
- VERSION = "0.2.3.1"
4
+ VERSION = "0.2.3.2"
5
5
  end
@@ -11,12 +11,19 @@ end
11
11
  namespace :debtective do
12
12
  desc "Todo List"
13
13
  task :todo_list do
14
- if ARGV.include?("--me")
15
- user_name = `git config user.name`.strip
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: debtective
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3.1
4
+ version: 0.2.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Edouard Piron