mobilize-base 1.24 → 1.25

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 86ea68357ee9e866453f1b80eb85c07b748a7899
4
- data.tar.gz: 2a12e6e48bc8c7034322b127c3e39a7273386c9c
3
+ metadata.gz: ce15c1af069e5c285df26cf613ce6cf378489f1f
4
+ data.tar.gz: 5a4098bb5d320d6580ab5dbe695348015edd0949
5
5
  SHA512:
6
- metadata.gz: e12b42fed7a3627b36ed2c4b171d03619404c882502b597d7ebcbef8d961eed942a8e9a86238ed32a69fe86d70b17a3d4e165b90eeb4c0215319c48942ac8b8f
7
- data.tar.gz: 34121d022061e9dd8c0a412239ec2f2152948b568f8e009d18086ea0114d9c19a41de77a466a61e311f8bc267a8af96fc80db861656103fc639bed72884758b2
6
+ metadata.gz: cca5b69d992e93bac4b7a738199993c81802534366f52bf12f2c6171ab88fe15c3f18735402c102d77d01e2224bedd93a97226ee996959a05cd77df5c2433d16
7
+ data.tar.gz: d6d7de9e7516102527baeccb3d0198fc03d5aaccb47f1a702160ba4d4e25b0fea3e0232bacc4b22465dd360581c3560f75b53d69441cd7a21b97c61ba80473de
@@ -111,7 +111,12 @@ module Mobilize
111
111
  next if f['notified']
112
112
  stage_path = f['payload']['args'].first
113
113
  s = Stage.where(:path=>stage_path).first
114
- email = s.job.runner.user.email
114
+ email = if s
115
+ s.job.runner.user.email
116
+ else
117
+ #jobs without stages are sent to first admin
118
+ Jobtracker.admin_emails.first
119
+ end
115
120
  exc_to_s = f['error']
116
121
  if fjobs[email].nil?
117
122
  fjobs[email] = {stage_path => {exc_to_s => 1}}
@@ -1,5 +1,5 @@
1
1
  module Mobilize
2
2
  module Base
3
- VERSION = "1.24"
3
+ VERSION = "1.25"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mobilize-base
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.24'
4
+ version: '1.25'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cassio Paes-Leme
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-03-22 00:00:00.000000000 Z
11
+ date: 2013-03-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake