diff options
| -rw-r--r-- | README.markdown | 1 | ||||
| -rw-r--r-- | Rakefile | 17 | ||||
| -rw-r--r-- | VERSION | 2 | ||||
| -rw-r--r-- | hcl.gemspec | 60 |
4 files changed, 79 insertions, 1 deletions
diff --git a/README.markdown b/README.markdown index cdd8749..d1c076e 100644 --- a/README.markdown +++ b/README.markdown @@ -21,6 +21,7 @@ NOTE This software is nowhere near complete. To try it out: * Trollop option-parsing library (gem install trollop) * Chronic date-parsing library (gem install chronic) * HighLine console input library (gem install highline) + * Jeweler packaging tool (needed to build the gem) ## Usage diff --git a/Rakefile b/Rakefile new file mode 100644 index 0000000..94e447a --- /dev/null +++ b/Rakefile @@ -0,0 +1,17 @@ +begin + require 'jeweler' + Jeweler::Tasks.new do |gem| + gem.name = "hcl" + gem.summary = "Harvest timesheets from the command-line" + gem.description = "HCl is a command-line client for manipulating Harvest time sheets." + gem.email = "zack@opensourcery.com" + gem.homepage = "http://github.com/zenhob/hcl" + gem.authors = ["Zack Hobson"] + gem.add_dependency "termios" + gem.add_dependency "trollop", ">= 1.10.2" + gem.add_dependency "chronic", ">= 0.2.3" + gem.add_dependency "highline", ">= 1.5.1" + end +rescue LoadError + puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com" +end @@ -1 +1 @@ -0.0.0 +0.1.0 diff --git a/hcl.gemspec b/hcl.gemspec new file mode 100644 index 0000000..0d6a131 --- /dev/null +++ b/hcl.gemspec @@ -0,0 +1,60 @@ +# -*- encoding: utf-8 -*- + +Gem::Specification.new do |s| + s.name = %q{hcl} + s.version = "0.1.0" + + s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= + s.authors = ["Zack Hobson"] + s.date = %q{2009-07-24} + s.default_executable = %q{hcl} + s.description = %q{HCl is a command-line client for manipulating Harvest time sheets.} + s.email = %q{zack@opensourcery.com} + s.executables = ["hcl"] + s.extra_rdoc_files = [ + "LICENSE", + "README.markdown" + ] + s.files = [ + ".gitignore", + ".gitmodules", + "LICENSE", + "README.markdown", + "VERSION", + "bin/hcl", + "hcl_conf.yml.example", + "lib/hcl.rb", + "lib/hcl/day_entry.rb", + "lib/hcl/project.rb", + "lib/hcl/task.rb", + "lib/hcl/timesheet_resource.rb" + ] + s.has_rdoc = true + s.homepage = %q{http://github.com/zenhob/hcl} + s.rdoc_options = ["--charset=UTF-8"] + s.require_paths = ["lib"] + s.rubygems_version = %q{1.3.1} + s.summary = %q{Harvest timesheets from the command-line} + + if s.respond_to? :specification_version then + current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION + s.specification_version = 2 + + if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then + s.add_runtime_dependency(%q<termios>, [">= 0"]) + s.add_runtime_dependency(%q<trollop>, [">= 1.10.2"]) + s.add_runtime_dependency(%q<chronic>, [">= 0.2.3"]) + s.add_runtime_dependency(%q<highline>, [">= 1.5.1"]) + else + s.add_dependency(%q<termios>, [">= 0"]) + s.add_dependency(%q<trollop>, [">= 1.10.2"]) + s.add_dependency(%q<chronic>, [">= 0.2.3"]) + s.add_dependency(%q<highline>, [">= 1.5.1"]) + end + else + s.add_dependency(%q<termios>, [">= 0"]) + s.add_dependency(%q<trollop>, [">= 1.10.2"]) + s.add_dependency(%q<chronic>, [">= 0.2.3"]) + s.add_dependency(%q<highline>, [">= 1.5.1"]) + end +end |
