Permalink
Browse files

Initial commit

  • Loading branch information...
0 parents commit 4dc7d32dee013e7245ae7a868c3b71291fa9002d @tj committed Oct 15, 2009
Showing with 183 additions and 0 deletions.
  1. +5 −0 History.md
  2. +17 −0 Rakefile
  3. +35 −0 Readme.md
  4. +43 −0 bin/pomo
  5. +25 −0 lib/pomo.rb
  6. +4 −0 lib/pomo/version.rb
  7. +8 −0 spec/pomo_spec.rb
  8. +2 −0 spec/spec.opts
  9. +3 −0 spec/spec_helper.rb
  10. +13 −0 tasks/docs.rake
  11. +3 −0 tasks/gemspec.rake
  12. +25 −0 tasks/spec.rake
@@ -0,0 +1,5 @@
+
+0.0.1 / YYYY-MM-DD
+==================
+
+ * Initial release
@@ -0,0 +1,17 @@
+
+$:.unshift 'lib'
+require 'pomo'
+require 'rubygems'
+require 'rake'
+require 'echoe'
+
+Echoe.new "pomo", GEM_CLASS::VERSION do |p|
+ p.author = "TJ Holowaychuk"
+ p.email = "tj@vision-media.ca"
+ p.summary = "Pomodoro time management for the command-line"
+ p.url = "http://github.com/visionmedia/pomo"
+ p.runtime_dependencies << 'commander >=4.0.0'
+ p.runtime_dependencies << 'growl >=1.0.3'
+end
+
+Dir['tasks/**/*.rake'].sort.each { |f| load f }
@@ -0,0 +1,35 @@
+
+# Pomo
+
+ Command-line application for the [Pomodoro](http://www.pomodorotechnique.com/) time management technique.
+
+## Features
+
+ * Communicates via Growl
+
+## Examples
+
+## License
+
+(The MIT License)
+
+Copyright (c) 2009 TJ Holowaychuk <tj@vision-media.ca>
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+'Software'), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, an d/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,43 @@
+#!/usr/bin/env ruby
+
+$:.unshift File.dirname(__FILE__) + '/../lib'
+require 'rubygems'
+require 'commander/import'
+require 'pomo'
+
+program :version, Pomo::VERSION
+program :description, 'Pomodoro time management'
+
+command :start do |c|
+ c.syntax = 'pomo start [options]'
+ c.summary = ''
+ c.description = ''
+ c.example 'description', 'command example'
+ c.option '--some-switch', 'Some switch that does something'
+ c.action do |args, options|
+ # Do something or c.when_called Pomo::Commands::Start
+ end
+end
+
+command :remove do |c|
+ c.syntax = 'pomo remove [options]'
+ c.summary = ''
+ c.description = ''
+ c.example 'description', 'command example'
+ c.option '--some-switch', 'Some switch that does something'
+ c.action do |args, options|
+ # Do something or c.when_called Pomo::Commands::Remove
+ end
+end
+
+command :add do |c|
+ c.syntax = 'pomo add [options]'
+ c.summary = ''
+ c.description = ''
+ c.example 'description', 'command example'
+ c.option '--some-switch', 'Some switch that does something'
+ c.action do |args, options|
+ # Do something or c.when_called Pomo::Commands::Add
+ end
+end
+
@@ -0,0 +1,25 @@
+#--
+# Copyright (c) 2009 TJ Holowaychuk <tj@vision-media.ca>
+#
+# Permission is hereby granted, free of charge, to any person obtaining
+# a copy of this software and associated documentation files (the
+# "Software"), to deal in the Software without restriction, including
+# without limitation the rights to use, copy, modify, merge, publish,
+# distribute, sublicense, and/or sell copies of the Software, and to
+# permit persons to whom the Software is furnished to do so, subject to
+# the following conditions:
+#
+# The above copyright notice and this permission notice shall be
+# included in all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+#++
+
+require 'growl'
+require 'pomo/version'
@@ -0,0 +1,4 @@
+
+module Pomo
+ VERSION = '0.0.1'
+end
@@ -0,0 +1,8 @@
+
+require File.dirname(__FILE__) + '/spec_helper'
+
+describe Pomo do
+ it "should description" do
+
+ end
+end
@@ -0,0 +1,2 @@
+--color
+--format specdoc
@@ -0,0 +1,3 @@
+
+$:.unshift File.dirname(__FILE__) + '/../lib'
+require 'pomo'
@@ -0,0 +1,13 @@
+
+namespace :docs do
+
+ desc 'Remove rdoc products'
+ task :remove => [:clobber_docs]
+
+ desc 'Build docs, and open in browser for viewing (specify BROWSER)'
+ task :open do
+ browser = ENV["BROWSER"] || "safari"
+ sh "open -a #{browser} doc/index.html"
+ end
+
+end
@@ -0,0 +1,3 @@
+
+desc 'Build gemspec file'
+task :gemspec => [:build_gemspec]
@@ -0,0 +1,25 @@
+
+require 'spec/rake/spectask'
+
+desc "Run all specifications"
+Spec::Rake::SpecTask.new(:spec) do |t|
+ t.libs << "lib"
+ t.spec_opts = ["--color", "--require", "spec/spec_helper.rb"]
+end
+
+namespace :spec do
+
+ desc "Run all specifications verbosely"
+ Spec::Rake::SpecTask.new(:verbose) do |t|
+ t.libs << "lib"
+ t.spec_opts = ["--color", "--format", "specdoc", "--require", "spec/spec_helper.rb"]
+ end
+
+ desc "Run specific specification verbosely (specify SPEC)"
+ Spec::Rake::SpecTask.new(:select) do |t|
+ t.libs << "lib"
+ t.spec_files = [ENV["SPEC"]]
+ t.spec_opts = ["--color", "--format", "specdoc", "--require", "spec/spec_helper.rb"]
+ end
+
+end

0 comments on commit 4dc7d32

Please sign in to comment.