echi-converter 0.4.2 → 0.4.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,7 +2,7 @@ module EchiConverter #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 4
5
- TINY = 2
5
+ TINY = 4
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
metadata CHANGED
@@ -1,131 +1,121 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: echi-converter
3
- version: !ruby/object:Gem::Version
4
- version: 0.4.2
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.4.4
5
+ prerelease:
5
6
  platform: ruby
6
- authors:
7
+ authors:
7
8
  - Jason Goecke
9
+ - Ben Klang
8
10
  autorequire:
9
11
  bindir: bin
10
12
  cert_chain: []
11
-
12
- date: 2009-02-20 00:00:00 -08:00
13
- default_executable:
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
13
+ date: 2012-01-11 00:00:00.000000000Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
16
  name: activerecord
17
- type: :runtime
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
20
- requirements:
21
- - - ">="
22
- - !ruby/object:Gem::Version
17
+ requirement: &2157329200 !ruby/object:Gem::Requirement
18
+ none: false
19
+ requirements:
20
+ - - ! '>='
21
+ - !ruby/object:Gem::Version
23
22
  version: 1.15.3
24
- version:
25
- - !ruby/object:Gem::Dependency
26
- name: activesupport
27
23
  type: :runtime
28
- version_requirement:
29
- version_requirements: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
24
+ prerelease: false
25
+ version_requirements: *2157329200
26
+ - !ruby/object:Gem::Dependency
27
+ name: activesupport
28
+ requirement: &2157315540 !ruby/object:Gem::Requirement
29
+ none: false
30
+ requirements:
31
+ - - ! '>='
32
+ - !ruby/object:Gem::Version
33
33
  version: 1.4.2
34
- version:
35
- - !ruby/object:Gem::Dependency
36
- name: daemons
37
34
  type: :runtime
38
- version_requirement:
39
- version_requirements: !ruby/object:Gem::Requirement
40
- requirements:
41
- - - ">="
42
- - !ruby/object:Gem::Version
35
+ prerelease: false
36
+ version_requirements: *2157315540
37
+ - !ruby/object:Gem::Dependency
38
+ name: daemons
39
+ requirement: &2157311080 !ruby/object:Gem::Requirement
40
+ none: false
41
+ requirements:
42
+ - - ! '>='
43
+ - !ruby/object:Gem::Version
43
44
  version: 1.0.7
44
- version:
45
- - !ruby/object:Gem::Dependency
46
- name: fastercsv
47
45
  type: :runtime
48
- version_requirement:
49
- version_requirements: !ruby/object:Gem::Requirement
50
- requirements:
51
- - - ">="
52
- - !ruby/object:Gem::Version
46
+ prerelease: false
47
+ version_requirements: *2157311080
48
+ - !ruby/object:Gem::Dependency
49
+ name: fastercsv
50
+ requirement: &2157301860 !ruby/object:Gem::Requirement
51
+ none: false
52
+ requirements:
53
+ - - ! '>='
54
+ - !ruby/object:Gem::Version
53
55
  version: 1.2.0
54
- version:
55
- - !ruby/object:Gem::Dependency
56
- name: rake
57
56
  type: :runtime
58
- version_requirement:
59
- version_requirements: !ruby/object:Gem::Requirement
60
- requirements:
61
- - - ">="
62
- - !ruby/object:Gem::Version
57
+ prerelease: false
58
+ version_requirements: *2157301860
59
+ - !ruby/object:Gem::Dependency
60
+ name: rake
61
+ requirement: &2157298620 !ruby/object:Gem::Requirement
62
+ none: false
63
+ requirements:
64
+ - - ! '>='
65
+ - !ruby/object:Gem::Version
63
66
  version: 0.7.3
64
- version:
65
- - !ruby/object:Gem::Dependency
66
- name: uuidtools
67
67
  type: :runtime
68
- version_requirement:
69
- version_requirements: !ruby/object:Gem::Requirement
70
- requirements:
71
- - - ">="
72
- - !ruby/object:Gem::Version
68
+ prerelease: false
69
+ version_requirements: *2157298620
70
+ - !ruby/object:Gem::Dependency
71
+ name: uuidtools
72
+ requirement: &2157286820 !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
73
77
  version: 1.0.1
74
- version:
75
- - !ruby/object:Gem::Dependency
76
- name: hoe
78
+ type: :runtime
79
+ prerelease: false
80
+ version_requirements: *2157286820
81
+ - !ruby/object:Gem::Dependency
82
+ name: yard
83
+ requirement: &2157274800 !ruby/object:Gem::Requirement
84
+ none: false
85
+ requirements:
86
+ - - ! '>='
87
+ - !ruby/object:Gem::Version
88
+ version: '0'
77
89
  type: :development
78
- version_requirement:
79
- version_requirements: !ruby/object:Gem::Requirement
80
- requirements:
81
- - - ">="
82
- - !ruby/object:Gem::Version
83
- version: 1.8.2
84
- version:
85
- description: ECHI Conversion Utility - Provides a utility to fetch Avaya CMS / ECHI binary files, convert them and insert into a database table via ActiveRecord
86
- email: jason [at] goecke.net
87
- executables:
90
+ prerelease: false
91
+ version_requirements: *2157274800
92
+ description: Provides a utility to fetch Avaya CMS / ECHI binary files, convert them
93
+ and insert into a database table via ActiveRecord
94
+ email:
95
+ - echi@mojolingo.com
96
+ executables:
88
97
  - echi-converter
89
98
  extensions: []
90
-
91
- extra_rdoc_files:
92
- - History.txt
93
- - License.txt
94
- - Manifest.txt
95
- - README.txt
96
- - website/index.txt
97
- - examples/extended_version12/chr0003.txt
98
- files:
99
- - History.txt
100
- - License.txt
101
- - Manifest.txt
102
- - README.txt
99
+ extra_rdoc_files: []
100
+ files:
101
+ - .gitignore
102
+ - CHANGELOG
103
+ - Gemfile
104
+ - LICENSE
105
+ - README.md
103
106
  - Rakefile
104
- - lib/main.rb
105
- - lib/echi-converter/version.rb
106
- - lib/database.rb
107
- - lib/database_presence.rb
108
- - lib/main_win32.rb
109
- - lib/echi-converter.rb
110
- - lib/ftp_fetcher.rb
111
- - scripts/txt2html
112
- - setup.rb
113
- - test/test_echi-converter.rb
114
- - test/test_helper.rb
115
- - website/index.html
116
- - website/index.txt
117
- - website/javascripts/rounded_corners_lite.inc.js
118
- - website/stylesheets/screen.css
119
- - website/template.rhtml
107
+ - TODO
108
+ - bin/echi-converter
120
109
  - config/application.yml
121
110
  - config/database.yml
122
111
  - config/extended_version12.yml
123
112
  - config/extended_version13.yml
124
113
  - config/extended_version14.yml
114
+ - config/install_files.yml
125
115
  - config/standard_version12.yml
126
116
  - config/standard_version13.yml
127
117
  - config/standard_version14.yml
128
- - config/install_files.yml
118
+ - config/version16.yml
129
119
  - db/migrate/001_create_echi_records.rb
130
120
  - db/migrate/002_create_echi_logs.rb
131
121
  - db/migrate/003_create_echi_agents.rb
@@ -138,39 +128,65 @@ files:
138
128
  - db/migrate/010_create_echi_splits.rb
139
129
  - db/migrate/011_create_echi_trunks.rb
140
130
  - db/migrate/012_create_echi_vectors.rb
141
- - bin/echi-converter
131
+ - doc/classes/EchiLog.html
132
+ - doc/classes/EchiRecord.html
133
+ - doc/classes/Logger.html
134
+ - doc/classes/Logger.src/M000001.html
135
+ - doc/created.rid
136
+ - doc/files/History_txt.html
137
+ - doc/files/License_txt.html
138
+ - doc/files/README_txt.html
139
+ - doc/files/bin/echi-converter-create.html
140
+ - doc/files/examples/extended_version12/chr0003_txt.html
141
+ - doc/files/lib/database_rb.html
142
+ - doc/files/lib/echi-converter/version_rb.html
143
+ - doc/files/lib/echi-converter_rb.html
144
+ - doc/files/lib/main_rb.html
145
+ - doc/files/website/index_txt.html
146
+ - doc/fr_class_index.html
147
+ - doc/fr_file_index.html
148
+ - doc/fr_method_index.html
149
+ - doc/index.html
150
+ - doc/rdoc-style.css
151
+ - echi-converter.gemspec
152
+ - examples/ascii_csv/chr5500.123
153
+ - examples/db_connect_test.rb
142
154
  - examples/extended_version12/chr0003
143
155
  - examples/extended_version12/chr0003.txt
144
156
  - examples/schemas/oracle_echi.sql
145
- - examples/ascii_csv/chr5500.123
146
- - examples/db_connect_test.rb
147
- has_rdoc: true
148
- homepage: http://echi-converter.rubyforge.org
157
+ - files/processed/chr0003
158
+ - files/processed/chr0004
159
+ - lib/database.rb
160
+ - lib/database_presence.rb
161
+ - lib/echi-converter.rb
162
+ - lib/echi-converter/version.rb
163
+ - lib/ftp_fetcher.rb
164
+ - lib/main.rb
165
+ - lib/main_win32.rb
166
+ - setup.rb
167
+ homepage: https://github.com/mojolingo/echi-converter
168
+ licenses: []
149
169
  post_install_message:
150
- rdoc_options:
151
- - --main
152
- - README.txt
153
- require_paths:
170
+ rdoc_options: []
171
+ require_paths:
154
172
  - lib
155
- required_ruby_version: !ruby/object:Gem::Requirement
156
- requirements:
157
- - - ">="
158
- - !ruby/object:Gem::Version
159
- version: "0"
160
- version:
161
- required_rubygems_version: !ruby/object:Gem::Requirement
162
- requirements:
163
- - - ">="
164
- - !ruby/object:Gem::Version
165
- version: "0"
166
- version:
173
+ required_ruby_version: !ruby/object:Gem::Requirement
174
+ none: false
175
+ requirements:
176
+ - - ! '>='
177
+ - !ruby/object:Gem::Version
178
+ version: '0'
179
+ required_rubygems_version: !ruby/object:Gem::Requirement
180
+ none: false
181
+ requirements:
182
+ - - ! '>='
183
+ - !ruby/object:Gem::Version
184
+ version: '0'
167
185
  requirements: []
168
-
169
- rubyforge_project: echi-converter
170
- rubygems_version: 1.3.1
186
+ rubyforge_project: ruby_speech
187
+ rubygems_version: 1.8.10
171
188
  signing_key:
172
- specification_version: 2
173
- summary: ECHI Conversion Utility - Provides a utility to fetch Avaya CMS / ECHI binary files, convert them and insert into a database table via ActiveRecord
174
- test_files:
175
- - test/test_echi-converter.rb
176
- - test/test_helper.rb
189
+ specification_version: 3
190
+ summary: ECHI Conversion Utility
191
+ test_files: []
192
+ has_rdoc:
@@ -1,49 +0,0 @@
1
- History.txt
2
- License.txt
3
- Manifest.txt
4
- README.txt
5
- Rakefile
6
- lib/main.rb
7
- lib/echi-converter/version.rb
8
- lib/database.rb
9
- lib/database_presence.rb
10
- lib/main.rb
11
- lib/main_win32.rb
12
- lib/echi-converter.rb
13
- lib/ftp_fetcher.rb
14
- scripts/txt2html
15
- setup.rb
16
- test/test_echi-converter.rb
17
- test/test_helper.rb
18
- website/index.html
19
- website/index.txt
20
- website/javascripts/rounded_corners_lite.inc.js
21
- website/stylesheets/screen.css
22
- website/template.rhtml
23
- config/application.yml
24
- config/database.yml
25
- config/extended_version12.yml
26
- config/extended_version13.yml
27
- config/extended_version14.yml
28
- config/standard_version12.yml
29
- config/standard_version13.yml
30
- config/standard_version14.yml
31
- config/install_files.yml
32
- db/migrate/001_create_echi_records.rb
33
- db/migrate/002_create_echi_logs.rb
34
- db/migrate/003_create_echi_agents.rb
35
- db/migrate/004_change_log_name_size.rb
36
- db/migrate/005_change_log_processedat_name.rb
37
- db/migrate/006_create_echi_reasons.rb
38
- db/migrate/007_create_echi_cwcs.rb
39
- db/migrate/008_create_echi_vdns.rb
40
- db/migrate/009_create_echi_acds.rb
41
- db/migrate/010_create_echi_splits.rb
42
- db/migrate/011_create_echi_trunks.rb
43
- db/migrate/012_create_echi_vectors.rb
44
- bin/echi-converter
45
- examples/extended_version12/chr0003
46
- examples/extended_version12/chr0003.txt
47
- examples/schemas/oracle_echi.sql
48
- examples/ascii_csv/chr5500.123
49
- examples/db_connect_test.rb
data/README.txt DELETED
@@ -1,48 +0,0 @@
1
- = Overview
2
-
3
- * http://echi-converter.rubyforge.org
4
-
5
- == DESCRIPTION:
6
-
7
- Please refer to http://echi-converter.rubyforge.org
8
-
9
- == KNOWN ISSUES:
10
-
11
- Please refer to http://rubyforge.org/tracker/?group_id=4110
12
-
13
- == SYNOPSIS:
14
-
15
- Please refer to http://echi-converter.rubyforge.org
16
-
17
- == REQUIREMENTS:
18
-
19
- Please refer to http://echi-converter.rubyforge.org
20
-
21
- == INSTALL:
22
-
23
- Please refer to http://echi-converter.rubyforge.org
24
-
25
- == LICENSE:
26
-
27
- (LGPL)
28
-
29
- Copyright (c) 2008 Jason Goecke
30
-
31
- Permission is hereby granted, free of charge, to any person obtaining
32
- a copy of this software and associated documentation files (the
33
- 'Software'), to deal in the Software without restriction, including
34
- without limitation the rights to use, copy, modify, merge, publish,
35
- distribute, sublicense, and/or sell copies of the Software, and to
36
- permit persons to whom the Software is furnished to do so, subject to
37
- the following conditions:
38
-
39
- The above copyright notice and this permission notice shall be
40
- included in all copies or substantial portions of the Software.
41
-
42
- THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
43
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
44
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
45
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
46
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
47
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
48
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1,67 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require 'rubygems'
4
- require 'redcloth'
5
- require 'syntax/convertors/html'
6
- require 'erb'
7
- require File.dirname(__FILE__) + '/../lib/echi-converter/version.rb'
8
-
9
- version = EchiConverter::VERSION::STRING
10
- download = 'http://rubyforge.org/projects/echi-converter'
11
-
12
- class Fixnum
13
- def ordinal
14
- # teens
15
- return 'th' if (10..19).include?(self % 100)
16
- # others
17
- case self % 10
18
- when 1: return 'st'
19
- when 2: return 'nd'
20
- when 3: return 'rd'
21
- else return 'th'
22
- end
23
- end
24
- end
25
-
26
- class Time
27
- def pretty
28
- return "#{mday}#{mday.ordinal} #{strftime('%B')} #{year}"
29
- end
30
- end
31
-
32
- def convert_syntax(syntax, source)
33
- return Syntax::Convertors::HTML.for_syntax(syntax).convert(source).gsub(%r!^<pre>|</pre>$!,'')
34
- end
35
-
36
- if ARGV.length >= 1
37
- src, template = ARGV
38
- template ||= File.dirname(__FILE__) + '/../website/template.rhtml'
39
-
40
- else
41
- puts("Usage: #{File.split($0).last} source.txt [template.rhtml] > output.html")
42
- exit!
43
- end
44
-
45
- template = ERB.new(File.open(template).read)
46
-
47
- title = nil
48
- body = nil
49
- File.open(src) do |fsrc|
50
- title_text = fsrc.readline
51
- body_text = fsrc.read
52
- syntax_items = []
53
- body_text.gsub!(%r!<(pre|code)[^>]*?syntax=['"]([^'"]+)[^>]*>(.*?)</>!m){
54
- ident = syntax_items.length
55
- element, syntax, source = $1, $2, $3
56
- syntax_items << "<#{element} class='syntax'>#{convert_syntax(syntax, source)}</#{element}>"
57
- "syntax-temp-#{ident}"
58
- }
59
- title = RedCloth.new(title_text).to_html.gsub(%r!<.*?>!,'').strip
60
- body = RedCloth.new(body_text).to_html
61
- body.gsub!(%r!(?:<pre><code>)?syntax-temp-(d+)(?:</code></pre>)?!){ syntax_items[$1.to_i] }
62
- end
63
- stat = File.stat(src)
64
- created = stat.ctime
65
- modified = stat.mtime
66
-
67
- $stdout << template.result(binding)