omah 0.4.0 → 0.5.1
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.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/omah.rb +16 -2
- data.tar.gz.sig +0 -0
- metadata +22 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2e60a557815f931a34b6d048feded9166cd73ff5
|
|
4
|
+
data.tar.gz: 211e9a39cae2d1a5f574a8ee032cbb704b624942
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 30599c2dc5103e3deaae26cc49ccd6190c3fe12767a1c81b11de5a4b62705396c0b2fecec79dff13c40d1fdccbe09575ddcc48c7b1f05c331fa439521becaa94
|
|
7
|
+
data.tar.gz: 93a6362a7969d2e39629965aeaa07761a998668d12a4ff350939a032665213018fcbc3a224cd85f1aae6c79a5c2b3b83debac17babb3794ca7ea9dc224751fcd
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data/lib/omah.rb
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
require 'zip'
|
|
7
7
|
require 'nokorexi'
|
|
8
8
|
require 'dynarex-daily'
|
|
9
|
+
require 'novowels'
|
|
9
10
|
|
|
10
11
|
module Library
|
|
11
12
|
|
|
@@ -130,8 +131,17 @@ class Omah
|
|
|
130
131
|
|
|
131
132
|
end
|
|
132
133
|
|
|
134
|
+
|
|
135
|
+
doc = @dd.to_doc
|
|
133
136
|
|
|
134
|
-
|
|
137
|
+
doc.root.xpath('records/message').each do |message|
|
|
138
|
+
|
|
139
|
+
classify message.element('from')
|
|
140
|
+
classify message.element('to')
|
|
141
|
+
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
File.write 'dynarexdaily.xml', doc.xml(pretty: true)
|
|
135
145
|
end
|
|
136
146
|
|
|
137
147
|
private
|
|
@@ -142,8 +152,12 @@ class Omah
|
|
|
142
152
|
path = File.join ['archive', t.year.to_s, \
|
|
143
153
|
Date::MONTHNAMES[t.month].downcase[0..2], t.day.to_s]
|
|
144
154
|
|
|
145
|
-
end
|
|
155
|
+
end
|
|
146
156
|
|
|
157
|
+
def classify(e)
|
|
158
|
+
s = e.text
|
|
159
|
+
e.attributes[:css_class] = NoVowels.compact(e.text[/[^@]+$/].gsub('.',''))
|
|
160
|
+
end
|
|
147
161
|
|
|
148
162
|
def html_sanitiser(s)
|
|
149
163
|
|
data.tar.gz.sig
CHANGED
|
Binary file
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: omah
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.5.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- James Robertson
|
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
|
31
31
|
3LosTxP//qasvjSWNDjmKeTI4/c/fvSDtS5mLXCsxnJ/1Jp4zlO0rZWz0/BgcPFj
|
|
32
32
|
GUN8SqUlRq5unw==
|
|
33
33
|
-----END CERTIFICATE-----
|
|
34
|
-
date: 2015-05-
|
|
34
|
+
date: 2015-05-23 00:00:00.000000000 Z
|
|
35
35
|
dependencies:
|
|
36
36
|
- !ruby/object:Gem::Dependency
|
|
37
37
|
name: dynarex-daily
|
|
@@ -93,6 +93,26 @@ dependencies:
|
|
|
93
93
|
- - ">="
|
|
94
94
|
- !ruby/object:Gem::Version
|
|
95
95
|
version: 0.3.1
|
|
96
|
+
- !ruby/object:Gem::Dependency
|
|
97
|
+
name: novowels
|
|
98
|
+
requirement: !ruby/object:Gem::Requirement
|
|
99
|
+
requirements:
|
|
100
|
+
- - "~>"
|
|
101
|
+
- !ruby/object:Gem::Version
|
|
102
|
+
version: '0.1'
|
|
103
|
+
- - ">="
|
|
104
|
+
- !ruby/object:Gem::Version
|
|
105
|
+
version: 0.1.3
|
|
106
|
+
type: :runtime
|
|
107
|
+
prerelease: false
|
|
108
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
109
|
+
requirements:
|
|
110
|
+
- - "~>"
|
|
111
|
+
- !ruby/object:Gem::Version
|
|
112
|
+
version: '0.1'
|
|
113
|
+
- - ">="
|
|
114
|
+
- !ruby/object:Gem::Version
|
|
115
|
+
version: 0.1.3
|
|
96
116
|
description:
|
|
97
117
|
email: james@r0bertson.co.uk
|
|
98
118
|
executables: []
|
metadata.gz.sig
CHANGED
|
Binary file
|