to-do 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -11,4 +11,5 @@ group :development do
11
11
  gem "bundler", "~> 1.0.0"
12
12
  gem "jeweler", "~> 1.8.4"
13
13
  gem "simplecov", ">= 0"
14
+ gem "colorize", ">= 0"
14
15
  end
data/Gemfile.lock CHANGED
@@ -1,6 +1,7 @@
1
1
  GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
+ colorize (0.5.8)
4
5
  git (1.2.5)
5
6
  jeweler (1.8.4)
6
7
  bundler (~> 1.0)
@@ -27,6 +28,7 @@ PLATFORMS
27
28
 
28
29
  DEPENDENCIES
29
30
  bundler (~> 1.0.0)
31
+ colorize
30
32
  jeweler (~> 1.8.4)
31
33
  rdoc (~> 3.12)
32
34
  shoulda
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- #to-do 1.0
1
+ #to-do 1.0.1
2
2
 
3
3
  A simple command line todo application. The app is still in development and this readme reflects the state it will be in at first release.
4
4
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.1
1
+ 1.0.2
data/lib/to-do/cli.rb CHANGED
@@ -1,5 +1,6 @@
1
1
  require 'optparse'
2
2
  require 'yaml'
3
+ require 'colorize'
3
4
  $data = ENV["HOME"]+"/.todo/lists/"
4
5
  $settings = ENV["HOME"]+"/.todo/config.yml"
5
6
 
@@ -12,17 +13,20 @@ module Todo
12
13
  Config['working_list_name']+'.yml'))
13
14
 
14
15
  def display name
15
- puts "********************************"
16
- puts name.center(32)
17
- puts "********************************"
16
+ puts "********************************".colorize(:light_red)
17
+ puts name.center(32).colorize(:light_cyan)
18
+ puts "********************************".colorize(:light_red)
18
19
  puts
19
- puts "Todo:"
20
+ puts "Todo:".colorize(:light_green)
20
21
  WORKING_LIST.tasks.each do |k,v|
21
- printf "%4d. %s\n", k, v
22
+ printf "%4d. ".to_s.colorize(:light_yellow), k
23
+ puts v
22
24
  end
23
- printf "\nCompleted: %21.32s\n", "#{WORKING_LIST.completed_count}/#{WORKING_LIST.count}"
25
+ print "\nCompleted:".colorize(:light_green)
26
+ printf "%36s\n", "#{WORKING_LIST.completed_count}/#{WORKING_LIST.count}".colorize(:light_cyan)
24
27
  WORKING_LIST.completed_tasks.each do |k,v|
25
- printf "%4d. %s\n", k, v
28
+ printf "%4d. ".to_s.colorize(:light_yellow), k
29
+ puts v
26
30
  end
27
31
  puts
28
32
  end
@@ -34,7 +38,7 @@ module Todo
34
38
  :clear_all => false
35
39
  }
36
40
  optparse = OptionParser.new do |opts|
37
- opts.version = "1.0.0"
41
+ opts.version = "1.0.1"
38
42
  opts.banner = "Usage: todo [COMMAND] [option] [arguments]"
39
43
  opts.separator "Commands:"
40
44
  opts.separator " add adds the task to the working list"
data/to-do.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "to-do"
8
- s.version = "1.0.1"
8
+ s.version = "1.0.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Kristen Mills"]
12
- s.date = "2012-07-06"
12
+ s.date = "2012-07-07"
13
13
  s.description = "A simple command line todo application"
14
14
  s.email = "kristen@kristen-mills.com"
15
15
  s.executables = ["todo"]
@@ -49,12 +49,14 @@ Gem::Specification.new do |s|
49
49
  s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
50
50
  s.add_development_dependency(%q<jeweler>, ["~> 1.8.4"])
51
51
  s.add_development_dependency(%q<simplecov>, [">= 0"])
52
+ s.add_development_dependency(%q<colorize>, [">= 0"])
52
53
  else
53
54
  s.add_dependency(%q<shoulda>, [">= 0"])
54
55
  s.add_dependency(%q<rdoc>, ["~> 3.12"])
55
56
  s.add_dependency(%q<bundler>, ["~> 1.0.0"])
56
57
  s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
57
58
  s.add_dependency(%q<simplecov>, [">= 0"])
59
+ s.add_dependency(%q<colorize>, [">= 0"])
58
60
  end
59
61
  else
60
62
  s.add_dependency(%q<shoulda>, [">= 0"])
@@ -62,6 +64,7 @@ Gem::Specification.new do |s|
62
64
  s.add_dependency(%q<bundler>, ["~> 1.0.0"])
63
65
  s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
64
66
  s.add_dependency(%q<simplecov>, [">= 0"])
67
+ s.add_dependency(%q<colorize>, [">= 0"])
65
68
  end
66
69
  end
67
70
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: to-do
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-07-06 00:00:00.000000000 Z
12
+ date: 2012-07-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: shoulda
16
- requirement: &70237652906900 !ruby/object:Gem::Requirement
16
+ requirement: &70358292850680 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70237652906900
24
+ version_requirements: *70358292850680
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rdoc
27
- requirement: &70237652906360 !ruby/object:Gem::Requirement
27
+ requirement: &70358292850160 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '3.12'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70237652906360
35
+ version_requirements: *70358292850160
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: bundler
38
- requirement: &70237652905600 !ruby/object:Gem::Requirement
38
+ requirement: &70358292849660 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 1.0.0
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70237652905600
46
+ version_requirements: *70358292849660
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: jeweler
49
- requirement: &70237652904920 !ruby/object:Gem::Requirement
49
+ requirement: &70358292865500 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: 1.8.4
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70237652904920
57
+ version_requirements: *70358292865500
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: simplecov
60
- requirement: &70237652904160 !ruby/object:Gem::Requirement
60
+ requirement: &70358292864980 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,7 +65,18 @@ dependencies:
65
65
  version: '0'
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *70237652904160
68
+ version_requirements: *70358292864980
69
+ - !ruby/object:Gem::Dependency
70
+ name: colorize
71
+ requirement: &70358292864460 !ruby/object:Gem::Requirement
72
+ none: false
73
+ requirements:
74
+ - - ! '>='
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
77
+ type: :development
78
+ prerelease: false
79
+ version_requirements: *70358292864460
69
80
  description: A simple command line todo application
70
81
  email: kristen@kristen-mills.com
71
82
  executables:
@@ -105,7 +116,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
105
116
  version: '0'
106
117
  segments:
107
118
  - 0
108
- hash: -1287551224880994154
119
+ hash: -3866819360979658100
109
120
  required_rubygems_version: !ruby/object:Gem::Requirement
110
121
  none: false
111
122
  requirements: