rcoli 0.5.5 → 0.5.6

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/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rcoli (0.5.5)
4
+ rcoli (0.5.6)
5
5
  highline (~> 1.6.11)
6
6
 
7
7
  GEM
data/lib/rcoli/model.rb CHANGED
@@ -1,6 +1,9 @@
1
1
  class InvalidCommand < Exception
2
2
  end
3
3
 
4
+ class ApplicationError < Exception
5
+ end
6
+
4
7
  module RCoLi
5
8
 
6
9
  module CommandContainer
data/lib/rcoli/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module RCoLi
2
2
 
3
- VERSION = '0.5.5'
3
+ VERSION = '0.5.6'
4
4
 
5
5
  end
data/lib/rcoli.rb CHANGED
@@ -31,6 +31,8 @@ at_exit {
31
31
  @program.execute(ARGV, self)
32
32
  rescue InvalidCommand => e
33
33
  say "#{@program.value_of_name}: #{e.message}. See '#{@program.value_of_name} help'"
34
+ rescue ApplicationError => e
35
+ say($terminal.color "#{e.message}", :red)
34
36
  end
35
37
 
36
38
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rcoli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.5
4
+ version: 0.5.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -78,7 +78,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
78
78
  version: '0'
79
79
  segments:
80
80
  - 0
81
- hash: -3657344483658858464
81
+ hash: 123065215740588067
82
82
  required_rubygems_version: !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
@@ -87,7 +87,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
87
87
  version: '0'
88
88
  segments:
89
89
  - 0
90
- hash: -3657344483658858464
90
+ hash: 123065215740588067
91
91
  requirements: []
92
92
  rubyforge_project:
93
93
  rubygems_version: 1.8.24