pacojp-skutil 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/skutil.rb +4 -2
  2. metadata +1 -1
@@ -42,12 +42,14 @@ module Skutil
42
42
  info "start script"
43
43
  script_started_at = Time.now
44
44
  begin
45
- yield process
45
+ return yield process
46
46
  rescue => e
47
47
  error e
48
48
  Skutil::Mail.send_error(ERROR_MAIL_FROM,ERROR_MAIL_TO,ERROR_MAIL_SUBJECT,e)
49
+ return e
50
+ ensure
51
+ info "finish script (#{Time.now - script_started_at}sec)"
49
52
  end
50
- info "finish script (#{Time.now - script_started_at}sec)"
51
53
  end
52
54
  end
53
55
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pacojp-skutil
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - paco