echi-converter 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +9 -1
- data/config/application.yml +1 -0
- data/lib/echi-converter.rb +5 -1
- data/lib/echi-converter/version.rb +1 -1
- data/website/index.html +2 -2
- metadata +2 -2
data/History.txt
CHANGED
@@ -212,10 +212,18 @@
|
|
212
212
|
* #21295 - Migrations for Oracle and automated table generation not working
|
213
213
|
* Known issue(s):
|
214
214
|
|
215
|
-
== 0.4.1 2009-01-
|
215
|
+
== 0.4.1 2009-01-10
|
216
216
|
|
217
217
|
* Major enhancement(s):
|
218
218
|
* Minor enhancement(s):
|
219
219
|
* #23293 Strip special characters from strings before inserting to the database
|
220
220
|
* Bug fix(es):
|
221
|
+
* Known issue(s):
|
222
|
+
|
223
|
+
== 0.4.2 2009-02-02
|
224
|
+
|
225
|
+
* Major enhancement(s):
|
226
|
+
* Minor enhancement(s):
|
227
|
+
* Added an option 'echi_use_utc' in application.yml to record all data times in UTC for binary files, true by default
|
228
|
+
* Bug fix(es):
|
221
229
|
* Known issue(s):
|
data/config/application.yml
CHANGED
@@ -14,6 +14,7 @@ echi_format: BINARY #valid settings are ASCII or BINARY
|
|
14
14
|
echi_process_log: Y #valid is Y/N to turn it on or off
|
15
15
|
echi_read_extra_byte: Y #May toggle this to Y, 'yes', or N, 'no', as to whether to read an extra byte for binary files at the end of each record
|
16
16
|
echi_process_dat_files: N #Insert additional tables with data from the '.dat' files, and update regularly (not available when 'pco_process' set to 'Y')
|
17
|
+
echi_use_utc: true
|
17
18
|
#Filenames of the dat files
|
18
19
|
echi_acd_dat: acd.dat
|
19
20
|
echi_agent_dat: agname.dat
|
data/lib/echi-converter.rb
CHANGED
@@ -201,7 +201,11 @@ module EchiConverter
|
|
201
201
|
case length
|
202
202
|
when 4
|
203
203
|
value = @binary_file.read(length).unpack("l").first.to_i
|
204
|
-
|
204
|
+
if $config["echi_use_utc"] == true
|
205
|
+
value = Time.at(value).utc
|
206
|
+
else
|
207
|
+
value = Time.at(value)
|
208
|
+
end
|
205
209
|
end
|
206
210
|
#Process strings
|
207
211
|
when 'str'
|
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.4.
|
36
|
+
<a href="http://rubyforge.org/projects/echi-converter" class="numbers">0.4.2</a>
|
37
37
|
</div>
|
38
38
|
<h1>‘echi-converter’</h1>
|
39
39
|
<h2>The <span class="caps">ECHI</span> (External Call History Interface) Converter</h2>
|
@@ -188,7 +188,7 @@ h2. Requirements</p>
|
|
188
188
|
<li><a href="http://www.adhearsion.com">Adhearsion</a>, the open-source, unconventional voice framework that ties technologies together neatly.</li>
|
189
189
|
</ol>
|
190
190
|
<p class="coda">
|
191
|
-
<a href="mailto:drnicwilliams@gmail.com">Dr Nic</a>,
|
191
|
+
<a href="mailto:drnicwilliams@gmail.com">Dr Nic</a>, 20th February 2009<br>
|
192
192
|
Theme extended from <a href="http://rb2js.rubyforge.org/">Paul Battley</a>
|
193
193
|
</p>
|
194
194
|
</div>
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: echi-converter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jason Goecke
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-02-20 00:00:00 -08:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|