visionmedia-commander 2.5.6 → 2.5.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/History.rdoc +6 -1
- data/Manifest +1 -4
- data/Todo.rdoc +2 -0
- data/commander.gemspec +3 -3
- data/lib/commander/import.rb +3 -0
- data/lib/commander/version.rb +1 -1
- data/spec/import_spec.rb +13 -0
- metadata +3 -6
data/History.rdoc
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
|
2
|
-
=== 2.5.
|
2
|
+
=== 2.5.7 / 2009-03-11
|
3
|
+
|
4
|
+
* Fixed paren warnings in import spec
|
5
|
+
* Fixed Kernel#method_missing to preserve its original behavior (Raise errors for missing methods or variables)
|
6
|
+
|
7
|
+
=== 2.5.6 / 2009-03-06
|
3
8
|
|
4
9
|
* Replaced Commander::VERSION::STRING with Commander::VERSION (for release gem)
|
5
10
|
* Refactored progress bar
|
data/Manifest
CHANGED
@@ -24,12 +24,9 @@ README.rdoc
|
|
24
24
|
spec/commander_spec.rb
|
25
25
|
spec/core_ext/string_spec.rb
|
26
26
|
spec/help_formatter_spec.rb
|
27
|
+
spec/import_spec.rb
|
27
28
|
spec/spec_helper.rb
|
28
29
|
tasks/docs.rake
|
29
30
|
tasks/gemspec.rake
|
30
31
|
tasks/spec.rake
|
31
|
-
test/fileutils.rb
|
32
|
-
test/names.rb
|
33
|
-
test/progress.rb
|
34
|
-
test/ui.rb
|
35
32
|
Todo.rdoc
|
data/Todo.rdoc
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
|
2
|
+
* Use $terminal IO stream for progress bar
|
2
3
|
* Fix stupid #program error output
|
3
4
|
* mixins like c.use Commander::TraceOption ? ...
|
4
5
|
* add configuration management like release gem
|
@@ -13,6 +14,7 @@
|
|
13
14
|
* Change; Have VerboseFileUtils only output basename ?
|
14
15
|
* Change; refactor specs
|
15
16
|
* Release to RubyForge as well
|
17
|
+
* Add regexp matching for command names
|
16
18
|
* Add highline paging ... clean it up
|
17
19
|
* Add global options... change runner implementations as well as displaying in terminal formatter, OpenStruct inherit these options?
|
18
20
|
* Add global --options switch for loading options from a filepath
|
data/commander.gemspec
CHANGED
@@ -2,17 +2,17 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{commander}
|
5
|
-
s.version = "2.5.
|
5
|
+
s.version = "2.5.7"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["TJ Holowaychuk"]
|
9
|
-
s.date = %q{2009-03-
|
9
|
+
s.date = %q{2009-03-11}
|
10
10
|
s.default_executable = %q{commander}
|
11
11
|
s.description = %q{The complete solution for Ruby command-line executables}
|
12
12
|
s.email = %q{tj@vision-media.ca}
|
13
13
|
s.executables = ["commander"]
|
14
14
|
s.extra_rdoc_files = ["bin/commander", "lib/commander/command.rb", "lib/commander/core_ext/array.rb", "lib/commander/core_ext/kernel.rb", "lib/commander/core_ext/object.rb", "lib/commander/core_ext/string.rb", "lib/commander/core_ext.rb", "lib/commander/fileutils.rb", "lib/commander/help_formatters/base.rb", "lib/commander/help_formatters/terminal/command_help.erb", "lib/commander/help_formatters/terminal/help.erb", "lib/commander/help_formatters/terminal.rb", "lib/commander/help_formatters.rb", "lib/commander/import.rb", "lib/commander/runner.rb", "lib/commander/user_interaction.rb", "lib/commander/version.rb", "lib/commander.rb", "README.rdoc", "tasks/docs.rake", "tasks/gemspec.rake", "tasks/spec.rake"]
|
15
|
-
s.files = ["bin/commander", "commander.gemspec", "History.rdoc", "lib/commander/command.rb", "lib/commander/core_ext/array.rb", "lib/commander/core_ext/kernel.rb", "lib/commander/core_ext/object.rb", "lib/commander/core_ext/string.rb", "lib/commander/core_ext.rb", "lib/commander/fileutils.rb", "lib/commander/help_formatters/base.rb", "lib/commander/help_formatters/terminal/command_help.erb", "lib/commander/help_formatters/terminal/help.erb", "lib/commander/help_formatters/terminal.rb", "lib/commander/help_formatters.rb", "lib/commander/import.rb", "lib/commander/runner.rb", "lib/commander/user_interaction.rb", "lib/commander/version.rb", "lib/commander.rb", "Manifest", "Rakefile", "README.rdoc", "spec/commander_spec.rb", "spec/core_ext/string_spec.rb", "spec/help_formatter_spec.rb", "spec/spec_helper.rb", "tasks/docs.rake", "tasks/gemspec.rake", "tasks/spec.rake", "
|
15
|
+
s.files = ["bin/commander", "commander.gemspec", "History.rdoc", "lib/commander/command.rb", "lib/commander/core_ext/array.rb", "lib/commander/core_ext/kernel.rb", "lib/commander/core_ext/object.rb", "lib/commander/core_ext/string.rb", "lib/commander/core_ext.rb", "lib/commander/fileutils.rb", "lib/commander/help_formatters/base.rb", "lib/commander/help_formatters/terminal/command_help.erb", "lib/commander/help_formatters/terminal/help.erb", "lib/commander/help_formatters/terminal.rb", "lib/commander/help_formatters.rb", "lib/commander/import.rb", "lib/commander/runner.rb", "lib/commander/user_interaction.rb", "lib/commander/version.rb", "lib/commander.rb", "Manifest", "Rakefile", "README.rdoc", "spec/commander_spec.rb", "spec/core_ext/string_spec.rb", "spec/help_formatter_spec.rb", "spec/import_spec.rb", "spec/spec_helper.rb", "tasks/docs.rake", "tasks/gemspec.rake", "tasks/spec.rake", "Todo.rdoc"]
|
16
16
|
s.has_rdoc = true
|
17
17
|
s.homepage = %q{http://github.com/visionmedia/commander}
|
18
18
|
s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Commander", "--main", "README.rdoc"]
|
data/lib/commander/import.rb
CHANGED
@@ -20,9 +20,12 @@ module Kernel
|
|
20
20
|
$command_runner
|
21
21
|
end
|
22
22
|
|
23
|
+
alias_method :original_method_missing, :method_missing
|
23
24
|
def method_missing meth, *args, &block
|
24
25
|
if meth.to_s =~ /^ask_for_([\w]+)/
|
25
26
|
$terminal.ask args.first, eval($1.camelcase)
|
27
|
+
else
|
28
|
+
original_method_missing(meth, *args, &block)
|
26
29
|
end
|
27
30
|
end
|
28
31
|
end
|
data/lib/commander/version.rb
CHANGED
data/spec/import_spec.rb
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
describe Kernel do
|
2
|
+
|
3
|
+
describe "#method_missing" do
|
4
|
+
it "should preserve its original behavior for missing methods" do
|
5
|
+
lambda { i_am_a_missing_method() }.should raise_error(NoMethodError)
|
6
|
+
end
|
7
|
+
|
8
|
+
it "should preserve its original behavior for missing variables" do
|
9
|
+
lambda { i_am_a_missing_variable }.should raise_error(NameError)
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: visionmedia-commander
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.5.
|
4
|
+
version: 2.5.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- TJ Holowaychuk
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-03-
|
12
|
+
date: 2009-03-11 00:00:00 -07:00
|
13
13
|
default_executable: commander
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -78,14 +78,11 @@ files:
|
|
78
78
|
- spec/commander_spec.rb
|
79
79
|
- spec/core_ext/string_spec.rb
|
80
80
|
- spec/help_formatter_spec.rb
|
81
|
+
- spec/import_spec.rb
|
81
82
|
- spec/spec_helper.rb
|
82
83
|
- tasks/docs.rake
|
83
84
|
- tasks/gemspec.rake
|
84
85
|
- tasks/spec.rake
|
85
|
-
- test/fileutils.rb
|
86
|
-
- test/names.rb
|
87
|
-
- test/progress.rb
|
88
|
-
- test/ui.rb
|
89
86
|
- Todo.rdoc
|
90
87
|
has_rdoc: true
|
91
88
|
homepage: http://github.com/visionmedia/commander
|