Permalink
Browse files

- Updated version

  • Loading branch information...
1 parent 96083aa commit fdfd7a7270ab701afc23a21da8d6c367d91b1666 @tj committed Dec 1, 2008
Showing with 31 additions and 17 deletions.
  1. +7 −0 History.txt
  2. +1 −1 Manifest.txt
  3. +12 −7 README.txt
  4. +7 −5 commander.gemspec
  5. +1 −1 lib/commander/runner.rb
  6. +2 −2 lib/commander/user_interaction.rb
  7. +1 −1 lib/commander/version.rb
View
@@ -1,4 +1,11 @@
+=== 2.1.0 / 2008-12-01
+
+* Added progress bar
+* Added auto-inclusion of FileUtils module
+* Added stdout logging method
+* Fixed issue with options placed before sub-command
+
=== 2.0.1 / 2008-11-24
* Fixed new line after command options
View
@@ -26,4 +26,4 @@ lib/commander/wrapable.rb
spec/all_spec.rb
spec/commander_spec.rb
spec/help_formatter_spec.rb
-spec/spec_helper.rb
+spec/spec_helper.rb
View
@@ -119,27 +119,32 @@ simplify common tasks using the following methods:
# Do something with response
end
+ # 'Log' action to stdout
+ log "create", "path/to/file.rb"
+
+== FileUtils:
+
+The FileUtils module is automatically included within the main object for
+global usage.
+
== Known Issues:
* none
== Todo:
* Add spec.opts / spec/rake/spectask ?.. with --color
-* 'Import' FileUtils / add method_message per method
-* Add sh method like rake (system?)
-* global command options not working now that options can be specified before commands..
-* format progress bar ETA / elapsed better
-* Dynamically generate padding for help.erb command list
+* Add; dynamically generate padding for help.erb command list
* Add classify to commander exec
* Add program :copyright
* Add global options... change runner implementations as well as displaying in terminal formatter, OpenStruct inherit these options?
* Add ask_for_CLASS where CLASS becomes Date, Time, Array, etc
-* Add highline page_and_wrap
+* Add highline page_and_wrap (less)
* Fix ERB whitespace.. its being retarted...
* Fix errors raised at_exit are not written to stderr
+* Change; format progress bar ETA / elapsed better\
* Change; make Commander::UI.log conditionally output
-* Change; conditional wrapping of FileUtils
+* Change; conditional wrapping of FileUtils (require 'commander/fileutils')
* Change; output options in a better format
* Change; reverse |options, args| so args can be |options, file, dir| etc.. adjust doc
* Change; refactor spec suites with nested describes?
View
@@ -1,29 +1,31 @@
+# -*- encoding: utf-8 -*-
+
Gem::Specification.new do |s|
s.name = %q{commander}
- s.version = "2.0.1"
+ s.version = "2.1.0"
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["TJ Holowaychuk"]
- s.date = %q{2008-11-24}
+ s.date = %q{2008-12-01}
s.default_executable = %q{commander}
s.description = %q{}
s.email = ["tj@vision-media.ca"]
s.executables = ["commander"]
s.extra_rdoc_files = ["History.txt", "Manifest.txt", "README.txt"]
- s.files = ["History.txt", "Manifest.txt", "README.txt", "Rakefile", "bin/commander", "commander.gemspec", "lib/commander.rb", "lib/commander/command.rb", "lib/commander/core_ext.rb", "lib/commander/core_ext/array.rb", "lib/commander/core_ext/kernel.rb", "lib/commander/core_ext/object.rb", "lib/commander/help_formatters.rb", "lib/commander/help_formatters/base.rb", "lib/commander/help_formatters/terminal.rb", "lib/commander/help_formatters/terminal/command_help.erb", "lib/commander/help_formatters/terminal/help.erb", "lib/commander/import.rb", "lib/commander/runner.rb", "lib/commander/user_interaction.rb", "lib/commander/version.rb", "spec/all_spec.rb", "spec/commander_spec.rb", "spec/help_formatter_spec.rb", "spec/spec_helper.rb"]
+ s.files = ["History.txt", "Manifest.txt", "README.txt", "Rakefile", "bin/commander", "commander.gemspec", "lib/commander.rb", "lib/commander/command.rb", "lib/commander/core_ext.rb", "lib/commander/core_ext/array.rb", "lib/commander/core_ext/enumerable.rb", "lib/commander/core_ext/kernel.rb", "lib/commander/core_ext/object.rb", "lib/commander/core_ext/string.rb", "lib/commander/fileutils.rb", "lib/commander/help_formatters.rb", "lib/commander/help_formatters/base.rb", "lib/commander/help_formatters/terminal.rb", "lib/commander/help_formatters/terminal/command_help.erb", "lib/commander/help_formatters/terminal/help.erb", "lib/commander/import.rb", "lib/commander/runner.rb", "lib/commander/user_interaction.rb", "lib/commander/version.rb", "lib/commander/wrapable.rb", "spec/all_spec.rb", "spec/commander_spec.rb", "spec/help_formatter_spec.rb", "spec/spec_helper.rb"]
s.has_rdoc = true
s.homepage = %q{Small, intuative gem for creating executables. Commander}
s.rdoc_options = ["--main", "README.txt"]
s.require_paths = ["lib"]
s.rubyforge_project = %q{commander}
- s.rubygems_version = %q{1.2.0}
+ s.rubygems_version = %q{1.3.1}
s.summary = %q{}
if s.respond_to? :specification_version then
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
s.specification_version = 2
- if current_version >= 3 then
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
s.add_runtime_dependency(%q<highline>, [">= 1.5.0"])
s.add_development_dependency(%q<hoe>, [">= 1.8.2"])
else
View
@@ -154,7 +154,7 @@ def create_default_commands
if args.empty?
@output.puts gen.render
else
- @output.puts gen.render_command get_command(args.shift.to_sym)
+ @output.puts gen.render_command(get_command(args.shift.to_sym))
end
end
end
@@ -14,7 +14,7 @@ module UI
##
# Format used within #log.
- LOG_FORMAT = "%13s %s"
+ LOG_FORMAT = "%15s %s"
##
# Ask the user for a password. Specify a custom
@@ -35,7 +35,7 @@ def password(msg = "Password: ", mask = '*')
#
def log(action, *args)
- puts LOG_FORMAT % [action, *args]
+ say LOG_FORMAT % [action, *args]
end
##
View
@@ -1,7 +1,7 @@
module Commander
module VERSION #:nodoc:
- MAJOR, MINOR, TINY = [2, 0, 1]
+ MAJOR, MINOR, TINY = [2, 1, 0]
STRING = [MAJOR, MINOR, TINY].join '.'
end
end

0 comments on commit fdfd7a7

Please sign in to comment.