echi-converter 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -124,4 +124,13 @@
124
124
  * Capture and report the error when echi-converter create command fails
125
125
  * Provided an example ASCII CSV file in examples/ascii_csv for testing
126
126
  * Bug fix(es):
127
- * Bug ##15367 - Added to documentation that when using a Windows FTP server you must specify 'UNIX directory listing format'
127
+ * Bug ##15367 - Added to documentation that when using a Windows FTP server you must specify 'UNIX directory listing format'
128
+
129
+ == 0.3.3 2007-11-06
130
+
131
+ * Major enhancement(s):
132
+ * Minor enhancement(s):
133
+ * Added error traps for ECHI_LOGS
134
+ * Bug fix(es):
135
+ * Fixed a bug where the utility was not properly deleting the files from the ftp server
136
+ * Fixed a bug for the pco schema usage changing the echi_log column processed_at to processedat via the 005_change_log_processedat_name migration
data/Manifest.txt CHANGED
@@ -30,6 +30,7 @@ db/migrate/001_create_echi_records.rb
30
30
  db/migrate/002_create_echi_logs.rb
31
31
  db/migrate/003_create_echi_agents.rb
32
32
  db/migrate/004_change_log_name_size.rb
33
+ db/migrate/005_change_log_processedat_name.rb
33
34
  bin/echi-converter
34
35
  examples/extended_version12/chr0003
35
36
  examples/extended_version12/chr0003.txt
data/bin/echi-converter CHANGED
@@ -20,7 +20,6 @@ if RUBY_PLATFORM["-mswin32"]
20
20
  echi-converter pause - pause the service
21
21
  echi-converter resume - resume the service
22
22
  echi-converter status - check the status of a configured service
23
- echi-converter uninstall - uninstall the service
24
23
  echi-converter delete - delete the service"
25
24
  else
26
25
  usage = usage +
@@ -34,6 +34,7 @@ files_to_copy:
34
34
  - name: db/migrate/002_create_echi_logs.rb
35
35
  - name: db/migrate/003_create_echi_agents.rb
36
36
  - name: db/migrate/004_change_log_name_size.rb
37
+ - name: db/migrate/005_change_log_processedat_name.rb
37
38
  - name: examples/extended_version12/chr0003
38
39
  - name: examples/extended_version12/chr0003.txt
39
40
  - name: examples/ascii_csv/chr5500.123
@@ -54,3 +55,4 @@ files_to_upgrade:
54
55
  - name: lib/echi-converter/version.rb
55
56
  - name: db/migrate/003_create_echi_agents.rb
56
57
  - name: db/migrate/004_change_log_name_size.rb
58
+ - name: db/migrate/005_change_log_processedat_name.rb
@@ -0,0 +1,9 @@
1
+ class ChangeLogProcessedatName < ActiveRecord::Migration
2
+ def self.up
3
+ rename_column "echi_logs", "processed_at", "processedat"
4
+ end
5
+
6
+ def self.down
7
+ rename_column "echi_logs", "processedat", "processed_at"
8
+ end
9
+ end
@@ -152,10 +152,14 @@ module EchiConverter
152
152
 
153
153
  if $config["echi_process_log"] == "Y"
154
154
  #Log the file
155
- echi_log = EchiLog.new
156
- echi_log.filename = filename
157
- echi_log.filenumber = filenumber
158
- echi_log.version = fileversion
155
+ begin
156
+ echi_log = EchiLog.new
157
+ echi_log.filename = filename
158
+ echi_log.filenumber = filenumber
159
+ echi_log.version = fileversion
160
+ rescue => err
161
+ @log.info "Error creating ECHI_LOG entry - " + err
162
+ end
159
163
  end
160
164
 
161
165
  #Perform a transaction for each file, including the log table
@@ -210,9 +214,13 @@ module EchiConverter
210
214
 
211
215
  if $config["echi_process_log"] == "Y"
212
216
  #Finish logging the details on the file
213
- echi_log.records = @record_cnt
214
- echi_log.processed_at = Time.now
215
- echi_log.save
217
+ begin
218
+ echi_log.records = @record_cnt
219
+ echi_log.processedat = Time.now
220
+ echi_log.save
221
+ rescue => err
222
+ @log.info "Error inserting ECHI_LOG entry - " + err
223
+ end
216
224
  end
217
225
 
218
226
  return @record_cnt
@@ -273,7 +281,7 @@ module EchiConverter
273
281
  ftp_session.getbinaryfile(file_data[8], local_filename)
274
282
  if $config["echi_ftp_delete"] == 'Y'
275
283
  begin
276
- ftp_session.delete(remote_filename)
284
+ ftp_session.delete(file_data[8])
277
285
  rescue => err
278
286
  @log.fatal err
279
287
  end
@@ -293,10 +301,14 @@ module EchiConverter
293
301
 
294
302
  if $config["echi_process_log"] == "Y"
295
303
  #Log the file
296
- echi_log = EchiLog.new
297
- echi_log.filename = filename
298
- #echi_log.filenumber = filenumber
299
- #echi_log.version = fileversion
304
+ begin
305
+ echi_log = EchiLog.new
306
+ echi_log.filename = filename
307
+ #echi_log.filenumber = filenumber
308
+ #echi_log.version = fileversion
309
+ rescue => err
310
+ @log.info "Error creating ECHI_LOG entry - " + err
311
+ end
300
312
  end
301
313
 
302
314
  #Perform a transaction for each file, including the log table
@@ -337,9 +349,13 @@ module EchiConverter
337
349
 
338
350
  if $config["echi_process_log"] == "Y"
339
351
  #Finish logging the details on the file
340
- echi_log.records = @record_cnt
341
- echi_log.processed_at = Time.now
342
- echi_log.save
352
+ begin
353
+ echi_log.records = @record_cnt
354
+ echi_log.processedat = Time.now
355
+ echi_log.save
356
+ rescue => err
357
+ @log.info "Error inserting ECHI_LOG entry - " + err
358
+ end
343
359
  end
344
360
 
345
361
  return @record_cnt
@@ -400,14 +416,18 @@ module EchiConverter
400
416
  end
401
417
  if $config["echi_process_log"] == "Y"
402
418
  #Log the file
403
- echi_log = EchiLog.new
404
- echi_log.filename = agname_new_filename
405
- #echi_log.filenumber = filenumber
406
- #echi_log.version = fileversion
407
- #Finish logging the details on the file
408
- echi_log.records = @record_cnt
409
- echi_log.processed_at = Time.now
410
- echi_log.save
419
+ begin
420
+ echi_log = EchiLog.new
421
+ echi_log.filename = agname_new_filename
422
+ #echi_log.filenumber = filenumber
423
+ #echi_log.version = fileversion
424
+ #Finish logging the details on the file
425
+ echi_log.records = @record_cnt
426
+ echi_log.processedat = Time.now
427
+ echi_log.save
428
+ rescue => err
429
+ @log.info "Error creating ECHI_LOGS entry - " + err
430
+ end
411
431
  end
412
432
  end
413
433
  end
@@ -2,7 +2,7 @@ module EchiConverter #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 3
5
- TINY = 2
5
+ TINY = 3
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
data/website/index.html CHANGED
@@ -33,7 +33,7 @@
33
33
  <h1>ECHI Converter</h1>
34
34
  <div id="version" class="clickable" onclick='document.location = "http://rubyforge.org/projects/echi-converter"; return false'>
35
35
  <p>Get Version</p>
36
- <a href="http://rubyforge.org/projects/echi-converter" class="numbers">0.3.2</a>
36
+ <a href="http://rubyforge.org/projects/echi-converter" class="numbers">0.3.3</a>
37
37
  </div>
38
38
  <h1>&#x2192; &#8216;echi-converter&#8217;</h1>
39
39
 
@@ -173,7 +173,6 @@
173
173
  <li>echi-converter pause &#8211; pause the service</li>
174
174
  <li>echi-converter resume &#8211; resume the service</li>
175
175
  <li>echi-converter status &#8211; returns the status of a configured service</li>
176
- <li>echi-converter uninstall &#8211; uninstall the service</li>
177
176
  <li>echi-converter delete &#8211; delete the service&#8221;</li>
178
177
  </ol>
179
178
 
@@ -231,7 +230,7 @@
231
230
 
232
231
  <p>Comments are welcome. Send an email to <a href="mailto:jason@goecke.net">jason [at] goecke.net</a>.</p>
233
232
  <p class="coda">
234
- <a href="mailto:drnicwilliams@gmail.com">Dr Nic</a>, 5th November 2007<br>
233
+ <a href="mailto:drnicwilliams@gmail.com">Dr Nic</a>, 6th November 2007<br>
235
234
  Theme extended from <a href="http://rb2js.rubyforge.org/">Paul Battley</a>
236
235
  </p>
237
236
  </div>
data/website/index.txt CHANGED
@@ -95,7 +95,6 @@ For Windows:
95
95
  # echi-converter pause - pause the service
96
96
  # echi-converter resume - resume the service
97
97
  # echi-converter status - returns the status of a configured service
98
- # echi-converter uninstall - uninstall the service
99
98
  # echi-converter delete - delete the service"
100
99
 
101
100
  # If you would like to run the script interactively, you may also execute this command:
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.4
3
3
  specification_version: 1
4
4
  name: echi-converter
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.3.2
7
- date: 2007-11-05 00:00:00 -08:00
6
+ version: 0.3.3
7
+ date: 2007-11-06 00:00:00 -08:00
8
8
  summary: ECHI Conversion Utility - Provides a utility to fetch Avaya CMS / ECHI binary files, convert them and insert into a database table via ActiveRecord
9
9
  require_paths:
10
10
  - lib
@@ -60,6 +60,7 @@ files:
60
60
  - db/migrate/002_create_echi_logs.rb
61
61
  - db/migrate/003_create_echi_agents.rb
62
62
  - db/migrate/004_change_log_name_size.rb
63
+ - db/migrate/005_change_log_processedat_name.rb
63
64
  - bin/echi-converter
64
65
  - examples/extended_version12/chr0003
65
66
  - examples/extended_version12/chr0003.txt