drydock 0.5.5 → 0.5.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/CHANGES.txt +11 -0
  2. data/drydock.gemspec +2 -2
  3. data/lib/drydock.rb +6 -7
  4. metadata +2 -2
data/CHANGES.txt CHANGED
@@ -6,6 +6,17 @@ DRYDOCK, CHANGES
6
6
  * Inline commands aliases. command :cmd1, :cmd2 do; ...; end
7
7
 
8
8
 
9
+ #### 0.5.6 (2009-04-22) #############################
10
+
11
+ * CHANGED: Interrupts now handled in rescue rather than a trap.
12
+ * ADDED: Drydock::ArgError and Drydock::OptError are rescued at runtime by default
13
+
14
+
15
+ #### 0.5.5 (2009-04-19) #############################
16
+
17
+ * CHANGED: Improved help screen formatting.
18
+
19
+
9
20
  #### 0.5.4 (2009-04-15) #############################
10
21
 
11
22
  * ADDED: Better error handling with new Drydock::ArgError and Drydock::OptError
data/drydock.gemspec CHANGED
@@ -1,7 +1,7 @@
1
1
  @spec = Gem::Specification.new do |s|
2
2
  s.name = %q{drydock}
3
- s.version = "0.5.5"
4
- s.date = %q{2009-04-19}
3
+ s.version = "0.5.6"
4
+ s.date = %q{2009-04-22}
5
5
  s.specification_version = 1 if s.respond_to? :specification_version=
6
6
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
7
7
 
data/lib/drydock.rb CHANGED
@@ -884,13 +884,6 @@ module Drydock
884
884
  end
885
885
 
886
886
 
887
-
888
- trap ("SIGINT") do
889
- puts "#{$/}Exiting... "
890
- exit 1
891
- end
892
-
893
-
894
887
 
895
888
  at_exit {
896
889
  begin
@@ -899,9 +892,15 @@ at_exit {
899
892
  exit 1
900
893
  end
901
894
  Drydock.run!(ARGV, STDIN) if Drydock.run? && !Drydock.has_run?
895
+ rescue Drydock::ArgError, Drydock::OptError=> ex
896
+ STDERR.puts ex.message
897
+ STDERR.puts ex.usage
902
898
  rescue => ex
903
899
  STDERR.puts "ERROR (#{ex.class.to_s}): #{ex.message}"
904
900
  STDERR.puts ex.backtrace if Drydock.debug?
901
+ rescue Interrupt
902
+ puts "#{$/}Exiting... "
903
+ exit 1
905
904
  rescue SystemExit
906
905
  # Don't balk
907
906
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: drydock
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.5
4
+ version: 0.5.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Delano Mandelbaum
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-04-19 00:00:00 -04:00
12
+ date: 2009-04-22 00:00:00 -04:00
13
13
  default_executable:
14
14
  dependencies: []
15
15