to-do 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +5 -0
- data/Gemfile +14 -0
- data/Gemfile.lock +33 -0
- data/LICENSE.txt +20 -0
- data/README.md +98 -0
- data/Rakefile +52 -0
- data/VERSION +1 -0
- data/bin/todo +9 -0
- data/install.sh +5 -0
- data/lib/to-do/cli.rb +82 -0
- data/lib/to-do/config.rb +48 -0
- data/lib/to-do/list.rb +91 -0
- data/lib/to-do.rb +9 -0
- data/test/helper.rb +18 -0
- data/test/test_to-do.rb +7 -0
- data/to-do.gemspec +68 -0
- metadata +122 -0
data/.document
ADDED
data/Gemfile
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
source "http://rubygems.org"
|
2
|
+
# Add dependencies required to use your gem here.
|
3
|
+
# Example:
|
4
|
+
# gem "activesupport", ">= 2.3.5"
|
5
|
+
|
6
|
+
# Add dependencies to develop your gem here.
|
7
|
+
# Include everything needed to run rake, tests, features, etc.
|
8
|
+
group :development do
|
9
|
+
gem "shoulda", ">= 0"
|
10
|
+
gem "rdoc", "~> 3.12"
|
11
|
+
gem "bundler", "~> 1.0.0"
|
12
|
+
gem "jeweler", "~> 1.8.4"
|
13
|
+
gem "simplecov", ">= 0"
|
14
|
+
end
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
GEM
|
2
|
+
remote: http://rubygems.org/
|
3
|
+
specs:
|
4
|
+
git (1.2.5)
|
5
|
+
jeweler (1.8.4)
|
6
|
+
bundler (~> 1.0)
|
7
|
+
git (>= 1.2.5)
|
8
|
+
rake
|
9
|
+
rdoc
|
10
|
+
json (1.7.3)
|
11
|
+
multi_json (1.3.6)
|
12
|
+
rake (0.9.2.2)
|
13
|
+
rdoc (3.12)
|
14
|
+
json (~> 1.4)
|
15
|
+
shoulda (3.0.1)
|
16
|
+
shoulda-context (~> 1.0.0)
|
17
|
+
shoulda-matchers (~> 1.0.0)
|
18
|
+
shoulda-context (1.0.0)
|
19
|
+
shoulda-matchers (1.0.0)
|
20
|
+
simplecov (0.6.4)
|
21
|
+
multi_json (~> 1.0)
|
22
|
+
simplecov-html (~> 0.5.3)
|
23
|
+
simplecov-html (0.5.3)
|
24
|
+
|
25
|
+
PLATFORMS
|
26
|
+
ruby
|
27
|
+
|
28
|
+
DEPENDENCIES
|
29
|
+
bundler (~> 1.0.0)
|
30
|
+
jeweler (~> 1.8.4)
|
31
|
+
rdoc (~> 3.12)
|
32
|
+
shoulda
|
33
|
+
simplecov
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2012 Kristen Mills
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,98 @@
|
|
1
|
+
#to-do 1.0
|
2
|
+
|
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
|
+
|
5
|
+
##Install
|
6
|
+
curl https://raw.github.com/kristenmills/to-do/master/install.sh -o - | sh
|
7
|
+
Then you should be good to go!
|
8
|
+
|
9
|
+
##Features
|
10
|
+
* Basic to-do list functionality
|
11
|
+
* Multiple lists
|
12
|
+
* Add items
|
13
|
+
* Delete items
|
14
|
+
* Clear entire list
|
15
|
+
* Display list
|
16
|
+
|
17
|
+
##How to Use
|
18
|
+
Creates a new todo list or switch to an already existing list
|
19
|
+
|
20
|
+
todo create My New Todo List
|
21
|
+
todo switch My Existing List
|
22
|
+
|
23
|
+
Add some tasks to the working list
|
24
|
+
|
25
|
+
todo add Cook dinner
|
26
|
+
todo add Write Paper
|
27
|
+
todo add Do Laundy
|
28
|
+
todo add Clean Things
|
29
|
+
|
30
|
+
Display the list
|
31
|
+
|
32
|
+
todo display
|
33
|
+
|
34
|
+
********************************
|
35
|
+
* My New Todo List *
|
36
|
+
********************************
|
37
|
+
|
38
|
+
1. Cook Dinner
|
39
|
+
2. Write Paper
|
40
|
+
3. Do Laundry
|
41
|
+
4. Clean Things
|
42
|
+
|
43
|
+
Completed: 0/4
|
44
|
+
|
45
|
+
Finish a task
|
46
|
+
|
47
|
+
todo finish -n 2
|
48
|
+
todo finish Clean Things
|
49
|
+
|
50
|
+
Display the list again
|
51
|
+
|
52
|
+
todo display
|
53
|
+
|
54
|
+
********************************
|
55
|
+
* My New Todo List *
|
56
|
+
********************************
|
57
|
+
|
58
|
+
1. Cook Dinner
|
59
|
+
3. Do Laundry
|
60
|
+
|
61
|
+
Completed: 2/4
|
62
|
+
2. Write Paper
|
63
|
+
4. Clean Things
|
64
|
+
|
65
|
+
To clear the completed items
|
66
|
+
|
67
|
+
todo clear
|
68
|
+
|
69
|
+
To clear the entire list and reset the count
|
70
|
+
|
71
|
+
todo clear -a
|
72
|
+
|
73
|
+
You can see the usage details with
|
74
|
+
|
75
|
+
todo -h
|
76
|
+
|
77
|
+
or
|
78
|
+
|
79
|
+
todo --help
|
80
|
+
|
81
|
+
##Future Plans
|
82
|
+
* Delete list
|
83
|
+
* Undo finishing an item
|
84
|
+
|
85
|
+
##Contributing to to-do
|
86
|
+
|
87
|
+
* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
|
88
|
+
* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
|
89
|
+
* Fork the project.
|
90
|
+
* Start a feature/bugfix branch.
|
91
|
+
* Commit and push until you are happy with your contribution.
|
92
|
+
* Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
|
93
|
+
* Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
|
94
|
+
|
95
|
+
##Copyright
|
96
|
+
|
97
|
+
Copyright (c) 2012 Kristen Mills. See LICENSE.txt for
|
98
|
+
further details.
|
data/Rakefile
ADDED
@@ -0,0 +1,52 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
require 'rubygems'
|
4
|
+
require 'bundler'
|
5
|
+
begin
|
6
|
+
Bundler.setup(:default, :development)
|
7
|
+
rescue Bundler::BundlerError => e
|
8
|
+
$stderr.puts e.message
|
9
|
+
$stderr.puts "Run `bundle install` to install missing gems"
|
10
|
+
exit e.status_code
|
11
|
+
end
|
12
|
+
require 'rake'
|
13
|
+
|
14
|
+
require 'jeweler'
|
15
|
+
Jeweler::Tasks.new do |gem|
|
16
|
+
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
|
17
|
+
gem.name = "to-do"
|
18
|
+
gem.homepage = "http://github.com/kristenmills/to-do"
|
19
|
+
gem.license = "MIT"
|
20
|
+
gem.summary = "A simple command line todo application"
|
21
|
+
gem.description = "A simple command line todo application"
|
22
|
+
gem.email = "kristen@kristen-mills.com"
|
23
|
+
gem.authors = ["Kristen Mills"]
|
24
|
+
gem.executables = ['todo']
|
25
|
+
# dependencies defined in Gemfile
|
26
|
+
end
|
27
|
+
Jeweler::RubygemsDotOrgTasks.new
|
28
|
+
|
29
|
+
require 'rake/testtask'
|
30
|
+
Rake::TestTask.new(:test) do |test|
|
31
|
+
test.libs << 'lib' << 'test'
|
32
|
+
test.pattern = 'test/**/test_*.rb'
|
33
|
+
test.verbose = true
|
34
|
+
end
|
35
|
+
|
36
|
+
desc "Code coverage detail"
|
37
|
+
task :simplecov do
|
38
|
+
ENV['COVERAGE'] = "true"
|
39
|
+
Rake::Task['spec'].execute
|
40
|
+
end
|
41
|
+
|
42
|
+
task :default => :test
|
43
|
+
|
44
|
+
require 'rdoc/task'
|
45
|
+
Rake::RDocTask.new do |rdoc|
|
46
|
+
version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
47
|
+
|
48
|
+
rdoc.rdoc_dir = 'rdoc'
|
49
|
+
rdoc.title = "to-do #{version}"
|
50
|
+
rdoc.rdoc_files.include('README*')
|
51
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
52
|
+
end
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
1.0.0
|
data/bin/todo
ADDED
data/install.sh
ADDED
data/lib/to-do/cli.rb
ADDED
@@ -0,0 +1,82 @@
|
|
1
|
+
require 'optparse'
|
2
|
+
require 'yaml'
|
3
|
+
$data = ENV["HOME"]+"/.todo/lists/"
|
4
|
+
$settings = ENV["HOME"]+"/.todo/config.yml"
|
5
|
+
|
6
|
+
module Todo
|
7
|
+
module CLI
|
8
|
+
extend self
|
9
|
+
# Displays the given todo list
|
10
|
+
WORKING_LIST=YAML.load_file(File.join(Config['lists_directory'],
|
11
|
+
Config['working_list_name']+'.yml')) if File.exists?(File.join(Config['lists_directory'],
|
12
|
+
Config['working_list_name']+'.yml'))
|
13
|
+
|
14
|
+
def display name
|
15
|
+
puts "********************************"
|
16
|
+
puts name.center(32)
|
17
|
+
puts "********************************"
|
18
|
+
puts
|
19
|
+
puts "Todo:"
|
20
|
+
WORKING_LIST.tasks.each do |k,v|
|
21
|
+
printf "%4d. %s\n", k, v
|
22
|
+
end
|
23
|
+
printf "\nCompleted: %21.32s\n", "#{WORKING_LIST.completed_count}/#{WORKING_LIST.count}"
|
24
|
+
WORKING_LIST.completed_tasks.each do |k,v|
|
25
|
+
printf "%4d. %s\n", k, v
|
26
|
+
end
|
27
|
+
puts
|
28
|
+
end
|
29
|
+
|
30
|
+
#use Option parser to parse command line arguements
|
31
|
+
def parse
|
32
|
+
options = {
|
33
|
+
:is_num => false,
|
34
|
+
:clear_all => false
|
35
|
+
}
|
36
|
+
optparse = OptionParser.new do |opts|
|
37
|
+
opts.version = "0.9s.0"
|
38
|
+
opts.banner = "Usage: todo [COMMAND] [option] [arguments]"
|
39
|
+
opts.separator "Commands:"
|
40
|
+
opts.separator " add adds the task to the working list"
|
41
|
+
opts.separator " finish marks the task as completed"
|
42
|
+
opts.separator " clear clears completed tasks"
|
43
|
+
opts.separator " create creates a new list or switches to existing"
|
44
|
+
opts.separator " switch creates a new list or switches to existing"
|
45
|
+
opts.separator " display displays the list"
|
46
|
+
opts.separator "Options: "
|
47
|
+
opts.on('-n', 'for finish, the task given is a number') do
|
48
|
+
options[:is_num] = true
|
49
|
+
end
|
50
|
+
opts.on('-a', 'for clear, will reset the entire list') do
|
51
|
+
options[:clear_all] = true
|
52
|
+
end
|
53
|
+
opts.on('-h', '--help', 'Display this screen' ) do
|
54
|
+
puts opts
|
55
|
+
return
|
56
|
+
end
|
57
|
+
end
|
58
|
+
optparse.parse!
|
59
|
+
if ARGV.count > 0
|
60
|
+
case ARGV[0]
|
61
|
+
when "add"
|
62
|
+
ARGV.count > 1 ? WORKING_LIST.add(ARGV[1..-1].join(' ')) : puts("Invalid Command")
|
63
|
+
when "finish"
|
64
|
+
WORKING_LIST.finish ARGV[1..-1].join(' '), options[:is_num]
|
65
|
+
when "clear"
|
66
|
+
WORKING_LIST.clear options[:clear_all]
|
67
|
+
when "display"
|
68
|
+
self.display WORKING_LIST.name
|
69
|
+
when "create" || "switch"
|
70
|
+
if File.exists?(File.join(Config['lists_directory'], ARGV[1..-1].join('_').downcase + '.yml'))
|
71
|
+
Config['working_list_name'] = ARGV[1..-1].join('_').downcase
|
72
|
+
puts "Switch to list #{ARGV[1..-1].join(' ')}"
|
73
|
+
else
|
74
|
+
ARGV.count > 1 ? List.new(ARGV[1..-1].join(' ')) : puts("Invalid Command")
|
75
|
+
end
|
76
|
+
else
|
77
|
+
puts "Invalid Command"
|
78
|
+
end
|
79
|
+
end
|
80
|
+
end
|
81
|
+
end
|
82
|
+
end
|
data/lib/to-do/config.rb
ADDED
@@ -0,0 +1,48 @@
|
|
1
|
+
require 'yaml'
|
2
|
+
# The module that monitors the config.
|
3
|
+
# similar to SSam Goldstein's config.rb for time trap
|
4
|
+
# https://github.com/samg/timetrap/
|
5
|
+
module Todo
|
6
|
+
module Config
|
7
|
+
extend self
|
8
|
+
PATH = File.join(ENV['HOME'], '.to-do', 'config.yml')
|
9
|
+
|
10
|
+
#default values
|
11
|
+
def defaults
|
12
|
+
{
|
13
|
+
# the location of all all your list yaml files
|
14
|
+
'lists_directory' => File.join(ENV["HOME"],".to-do","lists"),
|
15
|
+
# the current working list
|
16
|
+
'working_list_name' => "default_list"
|
17
|
+
}
|
18
|
+
end
|
19
|
+
|
20
|
+
#accessor for values in the config
|
21
|
+
def [] key
|
22
|
+
fileval = YAML.load_file PATH
|
23
|
+
defaults.merge(fileval)[key]
|
24
|
+
end
|
25
|
+
|
26
|
+
#setter for keys in config
|
27
|
+
def []= key, value
|
28
|
+
fileval = YAML.load_file PATH
|
29
|
+
configs = defaults.merge(fileval)
|
30
|
+
configs[key] = value
|
31
|
+
File.open(PATH, 'w') do |fh|
|
32
|
+
fh.puts(configs.to_yaml)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
#writes the config file path
|
37
|
+
def write
|
38
|
+
configs = if File.exist? PATH
|
39
|
+
defaults.merge(YAML.load_file PATH)
|
40
|
+
else
|
41
|
+
defaults
|
42
|
+
end
|
43
|
+
File.open(PATH, 'w') do |fh|
|
44
|
+
fh.puts(configs.to_yaml)
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
data/lib/to-do/list.rb
ADDED
@@ -0,0 +1,91 @@
|
|
1
|
+
require 'yaml'
|
2
|
+
require File.join(File.dirname(__FILE__), 'config')
|
3
|
+
|
4
|
+
module Todo
|
5
|
+
class List
|
6
|
+
attr_accessor :tasks, :completed_tasks, :count, :completed_count, :name
|
7
|
+
|
8
|
+
#Create a new list
|
9
|
+
def initialize name
|
10
|
+
@tasks = Hash.new
|
11
|
+
@completed_tasks = Hash.new
|
12
|
+
@count = 0
|
13
|
+
@completed_count = 0
|
14
|
+
@name = name
|
15
|
+
if !File.exists? Config['lists_directory']
|
16
|
+
Dir.mkdir(Config['lists_directory'])
|
17
|
+
end
|
18
|
+
update
|
19
|
+
Config['working_list_name'] = name.downcase.gsub(/ /, '_')
|
20
|
+
Config.write
|
21
|
+
puts "Created List #{name}."
|
22
|
+
end
|
23
|
+
|
24
|
+
# updates the yaml
|
25
|
+
def update
|
26
|
+
path = File.join(Config['lists_directory'], @name.downcase.gsub(/ /, '_') +'.yml')
|
27
|
+
File.open(path, 'w') do |fh|
|
28
|
+
fh.puts(self.to_yaml)
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
# adds the tast to the list
|
33
|
+
def add task
|
34
|
+
@count+=1
|
35
|
+
@tasks[@count] = task
|
36
|
+
puts "Added task #{task}."
|
37
|
+
update
|
38
|
+
end
|
39
|
+
|
40
|
+
# finish the task. task is either a case insensitive task on the list or
|
41
|
+
# the task number
|
42
|
+
def finish task, is_num
|
43
|
+
if is_num
|
44
|
+
if !@tasks[task.to_i].nil?
|
45
|
+
@completed_tasks[task.to_i] = @tasks[task.to_i]
|
46
|
+
@tasks.delete(task.to_i)
|
47
|
+
@completed_count+=1
|
48
|
+
puts "Finished #{@completed_tasks[task.to_i]}."
|
49
|
+
else
|
50
|
+
puts "Task \##{task} not in list."
|
51
|
+
end
|
52
|
+
else
|
53
|
+
hash = Hash.new
|
54
|
+
@tasks.each do |k,v|
|
55
|
+
hash[k] = v.downcase
|
56
|
+
end
|
57
|
+
if hash.value?(task.downcase)
|
58
|
+
num = hash.key(task.downcase)
|
59
|
+
@completed_tasks[num] = @tasks[num]
|
60
|
+
@tasks.delete(num)
|
61
|
+
@completed_count+=1
|
62
|
+
puts "Finished #{@completed_tasks[num]}."
|
63
|
+
else
|
64
|
+
puts "Task #{task} is not in list."
|
65
|
+
end
|
66
|
+
end
|
67
|
+
update
|
68
|
+
end
|
69
|
+
|
70
|
+
#clears the completed tasks
|
71
|
+
def clear_completed
|
72
|
+
@completed_tasks = Hash.new
|
73
|
+
update
|
74
|
+
end
|
75
|
+
|
76
|
+
#clears all of the tasks and resets the count to 0
|
77
|
+
def clear clear_all
|
78
|
+
clear_completed
|
79
|
+
if clear_all
|
80
|
+
@tasks = Hash.new
|
81
|
+
@completed_count = 0
|
82
|
+
@count = 0
|
83
|
+
puts "Cleared list."
|
84
|
+
else
|
85
|
+
puts "Cleared completed tasks."
|
86
|
+
end
|
87
|
+
update
|
88
|
+
end
|
89
|
+
end
|
90
|
+
end
|
91
|
+
|
data/lib/to-do.rb
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
require File.join(File.dirname(__FILE__), 'to-do', 'config')
|
2
|
+
require File.join(File.dirname(__FILE__), 'to-do', 'list')
|
3
|
+
if !File.exists?(File.join(ENV['HOME'], '.to-do'))
|
4
|
+
Dir.mkdir(File.join(ENV['HOME'], '.to-do'))
|
5
|
+
Todo::Config.write
|
6
|
+
Dir.mkdir(Todo::Config['lists_directory'])
|
7
|
+
Todo::List.new "Default List"
|
8
|
+
end
|
9
|
+
require File.join(File.dirname(__FILE__), 'to-do', 'cli')
|
data/test/helper.rb
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'bundler'
|
3
|
+
begin
|
4
|
+
Bundler.setup(:default, :development)
|
5
|
+
rescue Bundler::BundlerError => e
|
6
|
+
$stderr.puts e.message
|
7
|
+
$stderr.puts "Run `bundle install` to install missing gems"
|
8
|
+
exit e.status_code
|
9
|
+
end
|
10
|
+
require 'test/unit'
|
11
|
+
require 'shoulda'
|
12
|
+
|
13
|
+
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
14
|
+
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
15
|
+
require 'to-do'
|
16
|
+
|
17
|
+
class Test::Unit::TestCase
|
18
|
+
end
|
data/test/test_to-do.rb
ADDED
data/to-do.gemspec
ADDED
@@ -0,0 +1,68 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = "to-do"
|
8
|
+
s.version = "1.0.0"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Kristen Mills"]
|
12
|
+
s.date = "2012-07-06"
|
13
|
+
s.description = "A simple command line todo application"
|
14
|
+
s.email = "kristen@kristen-mills.com"
|
15
|
+
s.executables = ["todo"]
|
16
|
+
s.extra_rdoc_files = [
|
17
|
+
"LICENSE.txt",
|
18
|
+
"README.md"
|
19
|
+
]
|
20
|
+
s.files = [
|
21
|
+
".document",
|
22
|
+
"Gemfile",
|
23
|
+
"Gemfile.lock",
|
24
|
+
"LICENSE.txt",
|
25
|
+
"README.md",
|
26
|
+
"Rakefile",
|
27
|
+
"VERSION",
|
28
|
+
"bin/todo",
|
29
|
+
"install.sh",
|
30
|
+
"lib/to-do.rb",
|
31
|
+
"lib/to-do/cli.rb",
|
32
|
+
"lib/to-do/config.rb",
|
33
|
+
"lib/to-do/list.rb",
|
34
|
+
"test/helper.rb",
|
35
|
+
"test/test_to-do.rb",
|
36
|
+
"to-do.gemspec"
|
37
|
+
]
|
38
|
+
s.homepage = "http://github.com/kristenmills/to-do"
|
39
|
+
s.licenses = ["MIT"]
|
40
|
+
s.require_paths = ["lib"]
|
41
|
+
s.rubygems_version = "1.8.15"
|
42
|
+
s.summary = "A simple command line todo application"
|
43
|
+
|
44
|
+
if s.respond_to? :specification_version then
|
45
|
+
s.specification_version = 3
|
46
|
+
|
47
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
48
|
+
s.add_development_dependency(%q<shoulda>, [">= 0"])
|
49
|
+
s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
|
50
|
+
s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
|
51
|
+
s.add_development_dependency(%q<jeweler>, ["~> 1.8.4"])
|
52
|
+
s.add_development_dependency(%q<simplecov>, [">= 0"])
|
53
|
+
else
|
54
|
+
s.add_dependency(%q<shoulda>, [">= 0"])
|
55
|
+
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
56
|
+
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
57
|
+
s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
|
58
|
+
s.add_dependency(%q<simplecov>, [">= 0"])
|
59
|
+
end
|
60
|
+
else
|
61
|
+
s.add_dependency(%q<shoulda>, [">= 0"])
|
62
|
+
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
63
|
+
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
64
|
+
s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
|
65
|
+
s.add_dependency(%q<simplecov>, [">= 0"])
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
metadata
ADDED
@@ -0,0 +1,122 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: to-do
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Kristen Mills
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2012-07-06 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: shoulda
|
16
|
+
requirement: &70199257449080 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
22
|
+
type: :development
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *70199257449080
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: rdoc
|
27
|
+
requirement: &70199257448560 !ruby/object:Gem::Requirement
|
28
|
+
none: false
|
29
|
+
requirements:
|
30
|
+
- - ~>
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '3.12'
|
33
|
+
type: :development
|
34
|
+
prerelease: false
|
35
|
+
version_requirements: *70199257448560
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: bundler
|
38
|
+
requirement: &70199257448040 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - ~>
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: 1.0.0
|
44
|
+
type: :development
|
45
|
+
prerelease: false
|
46
|
+
version_requirements: *70199257448040
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: jeweler
|
49
|
+
requirement: &70199257447540 !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
51
|
+
requirements:
|
52
|
+
- - ~>
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 1.8.4
|
55
|
+
type: :development
|
56
|
+
prerelease: false
|
57
|
+
version_requirements: *70199257447540
|
58
|
+
- !ruby/object:Gem::Dependency
|
59
|
+
name: simplecov
|
60
|
+
requirement: &70199257447020 !ruby/object:Gem::Requirement
|
61
|
+
none: false
|
62
|
+
requirements:
|
63
|
+
- - ! '>='
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: '0'
|
66
|
+
type: :development
|
67
|
+
prerelease: false
|
68
|
+
version_requirements: *70199257447020
|
69
|
+
description: A simple command line todo application
|
70
|
+
email: kristen@kristen-mills.com
|
71
|
+
executables:
|
72
|
+
- todo
|
73
|
+
extensions: []
|
74
|
+
extra_rdoc_files:
|
75
|
+
- LICENSE.txt
|
76
|
+
- README.md
|
77
|
+
files:
|
78
|
+
- .document
|
79
|
+
- Gemfile
|
80
|
+
- Gemfile.lock
|
81
|
+
- LICENSE.txt
|
82
|
+
- README.md
|
83
|
+
- Rakefile
|
84
|
+
- VERSION
|
85
|
+
- bin/todo
|
86
|
+
- install.sh
|
87
|
+
- lib/to-do.rb
|
88
|
+
- lib/to-do/cli.rb
|
89
|
+
- lib/to-do/config.rb
|
90
|
+
- lib/to-do/list.rb
|
91
|
+
- test/helper.rb
|
92
|
+
- test/test_to-do.rb
|
93
|
+
- to-do.gemspec
|
94
|
+
homepage: http://github.com/kristenmills/to-do
|
95
|
+
licenses:
|
96
|
+
- MIT
|
97
|
+
post_install_message:
|
98
|
+
rdoc_options: []
|
99
|
+
require_paths:
|
100
|
+
- lib
|
101
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
102
|
+
none: false
|
103
|
+
requirements:
|
104
|
+
- - ! '>='
|
105
|
+
- !ruby/object:Gem::Version
|
106
|
+
version: '0'
|
107
|
+
segments:
|
108
|
+
- 0
|
109
|
+
hash: 3931762010736800348
|
110
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
111
|
+
none: false
|
112
|
+
requirements:
|
113
|
+
- - ! '>='
|
114
|
+
- !ruby/object:Gem::Version
|
115
|
+
version: '0'
|
116
|
+
requirements: []
|
117
|
+
rubyforge_project:
|
118
|
+
rubygems_version: 1.8.15
|
119
|
+
signing_key:
|
120
|
+
specification_version: 3
|
121
|
+
summary: A simple command line todo application
|
122
|
+
test_files: []
|