mobilize-base 1.364 → 1.365
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/lib/mobilize-base/extensions/google_drive/worksheet.rb +8 -2
- data/lib/mobilize-base/handlers/google/gmail.rb +0 -1
- data/lib/mobilize-base/handlers/google/gsheet.rb +1 -2
- data/lib/mobilize-base/jobtracker.rb +2 -1
- data/lib/mobilize-base/models/stage.rb +9 -0
- data/lib/mobilize-base/version.rb +1 -1
- metadata +4 -4
@@ -204,8 +204,14 @@ module GoogleDrive
|
|
204
204
|
end
|
205
205
|
else
|
206
206
|
#"loc_v=>#{loc_v.to_s},rem_v=>#{rem_v.to_s}".oputs
|
207
|
-
|
208
|
-
|
207
|
+
begin
|
208
|
+
if loc_v.force_encoding("UTF-8") != rem_v.force_encoding("UTF-8")
|
209
|
+
#make sure it's not an ecoding issue
|
210
|
+
"row #{row_i.to_s} col #{col_i.to_s}: Local=>#{loc_v} , Remote=>#{rem_v}".oputs
|
211
|
+
errcnt+=1
|
212
|
+
end
|
213
|
+
rescue => exc
|
214
|
+
"#{exc.to_s}".oputs
|
209
215
|
"row #{row_i.to_s} col #{col_i.to_s}: Local=>#{loc_v} , Remote=>#{rem_v}".oputs
|
210
216
|
errcnt+=1
|
211
217
|
end
|
@@ -162,11 +162,10 @@ module Mobilize
|
|
162
162
|
rescue => exc
|
163
163
|
if retries < Gdrive.max_file_write_retries
|
164
164
|
retries +=1
|
165
|
-
sleep Gdrive.file_write_retry_delay
|
166
|
-
else
|
167
165
|
stdout = nil
|
168
166
|
stderr = [exc.to_s,"\n",exc.backtrace.join("\n")].join
|
169
167
|
signal = 500
|
168
|
+
sleep Gdrive.file_write_retry_delay
|
170
169
|
end
|
171
170
|
end
|
172
171
|
end
|
@@ -40,7 +40,8 @@ module Mobilize
|
|
40
40
|
n['body'] += "\n\n#{runner_dst.http_url}" if runner_dst and runner_dst.http_url
|
41
41
|
end
|
42
42
|
n['to'] = email
|
43
|
-
|
43
|
+
#uncomment to receive a copy of emails sent to users
|
44
|
+
#n['bcc'] = [Gdrive.admin_group_name,Gdrive.domain].join("@")
|
44
45
|
notifs << n
|
45
46
|
end
|
46
47
|
end
|
@@ -112,6 +112,15 @@ module Mobilize
|
|
112
112
|
#to make sure it doesn't enqueue due to runner check
|
113
113
|
s.update_attributes(:completed_at=>Time.now.utc,:response=>response)
|
114
114
|
s.update_status("Completed at #{Time.now.utc.to_s}")
|
115
|
+
#delete error sheet if any
|
116
|
+
begin
|
117
|
+
err_sheet_name = "#{j.name}_stage#{s.idx.to_s}.err"
|
118
|
+
err_sheet_path = (r.path.split("/")[0..-2] + [err_sheet_name]).join("/")
|
119
|
+
err_sheet = Gsheet.find_by_path(err_sheet_path,gdrive_slot)
|
120
|
+
err_sheet.delete if err_sheet
|
121
|
+
rescue
|
122
|
+
#if it doesn't delete, whatever
|
123
|
+
end
|
115
124
|
true
|
116
125
|
end
|
117
126
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mobilize-base
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '1.
|
4
|
+
version: '1.365'
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-06-
|
12
|
+
date: 2013-06-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
@@ -234,7 +234,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
234
234
|
version: '0'
|
235
235
|
segments:
|
236
236
|
- 0
|
237
|
-
hash:
|
237
|
+
hash: 4397843469439206987
|
238
238
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
239
239
|
none: false
|
240
240
|
requirements:
|
@@ -243,7 +243,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
243
243
|
version: '0'
|
244
244
|
segments:
|
245
245
|
- 0
|
246
|
-
hash:
|
246
|
+
hash: 4397843469439206987
|
247
247
|
requirements: []
|
248
248
|
rubyforge_project: mobilize-base
|
249
249
|
rubygems_version: 1.8.25
|