ztodo 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -8,28 +8,44 @@ Install gem:
8
8
 
9
9
  $ gem install ztodo
10
10
 
11
- ## Basic Usage
11
+ ## Usage / Commands
12
12
 
13
- Initializing ztodo project in current folder:
13
+ Show list of available commands:
14
+
15
+ $ ztodo help
16
+
17
+ Init project in current folder:
14
18
 
15
19
  $ ztodo init
16
20
 
17
- List of uncompleted tasks (or all tasks in project):
21
+ Init project in current folder and overwrite old if exists:
22
+
23
+ $ ztodo init hard
24
+
25
+ Show list of uncompleted tasks:
26
+
27
+ $ ztodo
28
+
29
+ Show list of uncompleted tasks (the same as previous):
18
30
 
19
- $ ztodo list [all]
31
+ $ ztodo list
20
32
 
21
- Add task to project (%key% determines task in project, unique identifier):
33
+ Show list of all tasks:
34
+
35
+ $ ztodo list all
36
+
37
+ Add task:
22
38
 
23
39
  $ ztodo add
24
40
 
25
- Modify task:
41
+ Add task with key:
26
42
 
27
- $ ztodo modify %key%
43
+ $ ztodo add %task-key%
28
44
 
29
- Remove task:
45
+ Modify task:
30
46
 
31
- $ ztodo remove %key%
47
+ $ ztodo modify %task-key%
32
48
 
33
- You may call ztodo without parameters for getting help and information about current project:
49
+ Remove task:
34
50
 
35
- $ ztodo
51
+ $ ztodo remove %task-key%
@@ -12,7 +12,7 @@ class Ztodo::Controller
12
12
 
13
13
  # Execute necessary command
14
14
  def execute! args
15
- return cmd_help if args.empty?
15
+ return cmd_list if args.empty?
16
16
 
17
17
  handler = args[0]
18
18
 
@@ -29,18 +29,23 @@ class Ztodo::Controller
29
29
  # Print help message
30
30
  def cmd_help params=[]
31
31
  puts 'ztodo - Simple Command Line Task Manager'.light_blue
32
- puts 'Usage:'
33
-
34
- puts '> ztodo'.green
35
- puts '> ztodo help'.green
36
- puts '> ztodo init'.yellow
37
- puts '> ztodo init hard'.yellow
38
- puts '> ztodo list'.green
39
- puts '> ztodo list all'.green
40
- puts '> ztodo add'.yellow
41
- puts '> ztodo add %task-key%'.yellow
42
- puts '> ztodo modify %task-key%'.yellow
43
- puts '> ztodo remove %task-key%'.yellow
32
+ puts 'Usage:'
33
+ puts '$ ztodo help'.green + ' - Show list of available commands'
34
+ puts ''
35
+
36
+ puts '$ ztodo init'.green + ' - Init project in current folder'
37
+ puts '$ ztodo init hard'.yellow + ' - Init project in current folder and overwrite old if exists'
38
+ puts ''
39
+
40
+ puts '$ ztodo'.green + ' - Show list of uncompleted tasks'
41
+ puts '$ ztodo list'.green + ' - Show list of uncompleted tasks (the same as previous)'
42
+ puts '$ ztodo list all'.green + ' - Show list of all tasks'
43
+ puts ''
44
+
45
+ puts '$ ztodo add'.yellow + ' - Add task'
46
+ puts '$ ztodo add %task-key%'.yellow + ' - Add task with key'
47
+ puts '$ ztodo modify %task-key%'.yellow + ' - Modify task'
48
+ puts '$ ztodo remove %task-key%'.yellow + ' - Remove task'
44
49
  end
45
50
 
46
51
  def cmd_init params=[]
data/lib/ztodo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Ztodo
2
- VERSION = "1.0.0"
2
+ VERSION = "1.1.0"
3
3
  end
data/ztodo.gemspec CHANGED
@@ -8,14 +8,16 @@ Gem::Specification.new do |gem|
8
8
  gem.version = Ztodo::VERSION
9
9
  gem.authors = ["Andreas Sotnik"]
10
10
  gem.email = ["andreas.sotnik@gmail.com"]
11
- gem.description = 'Simple Console Task Manager. Check http://zenturio.me/pages/ztodo for further information.'
11
+ gem.description = 'Simple Console Task Manager. Check homepage or github sources for further information.'
12
12
  gem.summary = 'Simple Console Task Manager'
13
13
  gem.homepage = "http://zenturio.me/pages/ztodo"
14
+ gem.license = 'MIT'
14
15
 
15
16
  gem.files = `git ls-files`.split($/)
16
17
  gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
17
18
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
18
19
  gem.require_paths = ["lib"]
20
+
19
21
 
20
22
  gem.add_dependency('colorize')
21
23
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ztodo
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -27,8 +27,8 @@ dependencies:
27
27
  - - ! '>='
28
28
  - !ruby/object:Gem::Version
29
29
  version: '0'
30
- description: Simple Console Task Manager. Check http://zenturio.me/pages/ztodo for
31
- further information.
30
+ description: Simple Console Task Manager. Check homepage or github sources for further
31
+ information.
32
32
  email:
33
33
  - andreas.sotnik@gmail.com
34
34
  executables:
@@ -55,7 +55,8 @@ files:
55
55
  - tmp/.gitkeep
56
56
  - ztodo.gemspec
57
57
  homepage: http://zenturio.me/pages/ztodo
58
- licenses: []
58
+ licenses:
59
+ - MIT
59
60
  post_install_message:
60
61
  rdoc_options: []
61
62
  require_paths: