personal-backlog 1.0.5 → 1.0.6

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
  SHA1:
3
- metadata.gz: 7db074f024c7094c0a6cfc7b69cf38b8620112da
4
- data.tar.gz: 5dfcf465aba44298b1cb7b422ba7aca551efb948
3
+ metadata.gz: ceefff6a88bb72e34623da8d2ca5dfa33eb69e7a
4
+ data.tar.gz: 4e8d30a525e2ccc9fc95e67675b51ee071c57c6f
5
5
  SHA512:
6
- metadata.gz: 18a935e78fa5c87f9a0e8aa14a95bade04bb7ccf1dd9e0663a7765d8e63714fadd7d781217515a51ac838c29aa2ffcbeb8a8289167d44ce26acce1a7a78d12db
7
- data.tar.gz: 5d9d7c56f8f037e900208836fa8872413017bcf73232874d0f393c0ea0a838ac1ad78e4cde5068ec1bbb7e346cc05d47846907b3f40e15bd41a9d5576210f99d
6
+ metadata.gz: c65cee0593150fc26bbad9bea6e079856ad272df3517dd6af7410405cdc1c9be1b9b821c1e4699824496fba6d79ec9fcdfcd22a9748dccfdd301ef2e8d4e767c
7
+ data.tar.gz: 0fd8b44ed4700819fb6047dd6cf29676e23a9b9e95818b05b96c250d276e2f1c423cf28b7a671b1c66e6b7d54ba32e7657d86a44f0bb9462faf5b824373fad6d
@@ -18,6 +18,13 @@ module Backlog
18
18
  end
19
19
  end
20
20
 
21
+ def self.help
22
+
23
+ return <<-eos
24
+ Archive: Move an entry to archive. No arguments cleans all old entries
25
+ eos
26
+
27
+ end
21
28
  private
22
29
  def archive_all
23
30
  Dir.glob("#{Config.current_dir}/**md").each do |path|
data/lib/backlog/help.rb CHANGED
@@ -7,28 +7,32 @@ module Backlog
7
7
 
8
8
  def execute!
9
9
 
10
+ menu = "Version: #{VERSION}"
11
+ puts "#{menu}\n#{(0..menu.length).map{"-"}.join}"
12
+
10
13
  # run the command as needed
11
14
  CLI.commands.each do |command, command_class|
12
- #puts command_class
13
- puts command
14
- ##print_help(command_class)
15
+
16
+ print_help command_class
15
17
 
16
18
  end
17
-
18
19
  end
19
20
 
20
21
  def self.help()
21
22
 
22
- return <<-eos
23
- Help: \tPrint this menu
24
- eos
23
+ return <<-eos
24
+ Help: Print this menu
25
+ eos
25
26
 
26
27
  end
27
28
 
28
29
  def print_help(command_class)
29
30
 
30
- help = command_class.help
31
- puts help
31
+ if defined? command_class.help
32
+
33
+ help = command_class.help
34
+ puts help
35
+ end
32
36
 
33
37
  end
34
38
 
data/lib/backlog/init.rb CHANGED
@@ -14,9 +14,9 @@ module Backlog
14
14
  end
15
15
 
16
16
  def self.help()
17
- return <<-eos
18
- Init:\tInitialize the backlog directory with the correct directory structures (ie: current/archive)
19
- eos
17
+ return <<-eos
18
+ Init:\tInitialize the backlog directory with the correct directory structures (ie: current/archive)
19
+ eos
20
20
  end
21
21
 
22
22
  private
data/lib/backlog/open.rb CHANGED
@@ -29,9 +29,9 @@ module Backlog
29
29
 
30
30
  def self.help
31
31
 
32
- return <<-eos
33
- Open:\tedit backlog entries
34
- eos
32
+ return <<-eos
33
+ Open:\tedit backlog entries
34
+ eos
35
35
 
36
36
  end
37
37
 
data/lib/backlog/push.rb CHANGED
@@ -13,6 +13,13 @@ module Backlog
13
13
  end
14
14
  end
15
15
 
16
+ def self.help
17
+
18
+ return <<-eos
19
+ Push:\tPush current backlog to git
20
+ eos
21
+
22
+ end
16
23
  private
17
24
  def remote_set
18
25
  command = "cd #{Config.base_dir} && git remote show origin 2>&1 1>/dev/null"
data/lib/backlog/save.rb CHANGED
@@ -9,6 +9,13 @@ module Backlog
9
9
  Save.save
10
10
  end
11
11
 
12
+ def self.help
13
+
14
+ return <<-eos
15
+ Save: commit current backlog
16
+ eos
17
+
18
+ end
12
19
  def self.save_in_background
13
20
 
14
21
  job = fork do
data/lib/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Backlog
2
2
 
3
- VERSION = "1.0.5"
3
+ VERSION = "1.0.6"
4
4
 
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: personal-backlog
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jon Morehouse