commandable 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -38,7 +38,7 @@ Thanks for your help.
38
38
 
39
39
  ## Latest version
40
40
 
41
- 2011-08-31 - Version: 0.2.2
41
+ 2011-09-27 - Version: 0.2.3
42
42
 
43
43
  See change history for specific changes.
44
44
 
@@ -427,25 +427,29 @@ Most of all it should be simple to use so if you have any problems please drop m
427
427
 
428
428
  ## Version History ##
429
429
 
430
- 2011-08-31 - Version: 0.2.2
430
+ 2011-09-27 - Version: 0.2.3
431
+
432
+ * Removed annoying error message print out.
433
+
434
+ 2011-08-31 - Version: 0.2.2
431
435
 
432
- * Added ability to do use Kernel.exit without Commandable trapping the error.
433
- * Kernel.exit properly forwards exit status if given one.
436
+ * Added ability to do use Kernel.exit without Commandable trapping the error. (Andrew Vos)
437
+ * Kernel.exit properly forwards exit status if given one. (Andrew Vos)
434
438
 
435
439
  2011-04-04 - Version: 0.2.1
436
440
 
437
441
  * Added ability to use attr\_accessor and att\_writer as commands. You can only write to them of course but it's an easy way to set values.
438
- * Instance methods now retain state between different calls. In other words if you set an instance variable in one method it will be available to any other instance method calls for that class. It's as if you created an instance of your class and called the methods yourself. You can access the class instances using the hash Commandable.class\_cache. It is has the class name, a string, as the key and the instance of the class as the value. {"ClassName"=>#<ClassName:0x00000100b1f188>}
442
+ * Instance methods now retain state between different calls. In other words if you set an instance variable in one method it will be available to any other instance method calls for that class. It's as if you created an instance of your class and called the methods yourself. You can access the class instances using the hash Commandable.class\_cache. It uses the class name, a string, as the key and the instance of the class as the value. {"ClassName"=>#<ClassName:0x00000100b1f188>}
439
443
  * You can now have the execute command work without outputting anything. Just add :silent (or anything other than nil or false) to the execution method. For instance `Commandable.execute(ARGV,:silent)`.
440
444
  * Clarified error message for default methods that are also required. If you don't give anything it tells you you need to give a parameter but you don't specifically have to give the switch.
441
445
 
442
446
  2011-03-23 - Version: 0.2.0
443
447
 
444
- * First public release. It's 0.2.0 because 0.1.0 was called Cloptions and wasn't released.
448
+ * First public release. It's 0.2.0 because 0.1.0, going by the name of Cloptions, wasn't released.
445
449
 
446
450
  ## To Do
447
451
 
448
- Nothing in this version.
452
+ Add ability to easily use nested argument trees without hard-coding case blocks. For instance a command that takes set of commands like `foo remote set "ftp_svr" 10.250.1.100` or `foo remote delete "ftp_svr"`.
449
453
 
450
454
  ### Next major version:
451
455
 
@@ -161,11 +161,8 @@ module Commandable
161
161
  set_colors
162
162
  puts help("\n #{@c_error_word}Error:#{@c_reset} #{@c_error_name}#{exception.friendly_name}#{@c_reset}\n #{@c_error_description}#{exception.message}#{@c_reset}\n\n")
163
163
  else
164
- puts "\n Bleep, bloop, bleep! Danger Will Robinson! Danger!"
165
- puts "\n Error: #{exception.inspect}"
166
- puts "\n Backtrace:"
164
+ puts exception.inspect
167
165
  puts exception.backtrace.collect{|line| " #{line}"}
168
- puts
169
166
  end
170
167
  end
171
168
  end
@@ -2,7 +2,7 @@ module Commandable
2
2
  module VERSION # :nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 2
5
- TINY = 2
5
+ TINY = 3
6
6
  PRE = nil
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: commandable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-08-31 00:00:00.000000000Z
12
+ date: 2011-09-27 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: term-ansicolor-hi
16
- requirement: &70343654860340 !ruby/object:Gem::Requirement
16
+ requirement: &2160865720 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 1.0.7
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70343654860340
24
+ version_requirements: *2160865720
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rspec
27
- requirement: &70343654859880 !ruby/object:Gem::Requirement
27
+ requirement: &2160865120 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '2.5'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70343654859880
35
+ version_requirements: *2160865120
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: cucumber
38
- requirement: &70343654859420 !ruby/object:Gem::Requirement
38
+ requirement: &2160864460 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0.10'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70343654859420
46
+ version_requirements: *2160864460
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: aruba
49
- requirement: &70343654858960 !ruby/object:Gem::Requirement
49
+ requirement: &2160863860 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
@@ -54,7 +54,7 @@ dependencies:
54
54
  version: '0.3'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70343654858960
57
+ version_requirements: *2160863860
58
58
  description: ! 'The easiest way to add command line control to your Ruby app. You
59
59
  can add a single line above an existing method and that method will be available
60
60
  from the command line.
@@ -151,7 +151,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
151
151
  version: '0'
152
152
  requirements: []
153
153
  rubyforge_project:
154
- rubygems_version: 1.8.7
154
+ rubygems_version: 1.8.10
155
155
  signing_key:
156
156
  specification_version: 3
157
157
  summary: The easiest way to add command line control to your Ruby apps.