omah 0.6.13 → 0.7.0
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.tar.gz.sig +1 -3
- data/lib/omah.rb +8 -6
- metadata +2 -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: bee2fc5715b4f1c26097d877fe8f45ef17d9f073
|
|
4
|
+
data.tar.gz: a8f5d1bebd78284cbfefe327bf0e335d70eaeb98
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 96ae05ba03b90edee84262a4d7bc5ec7fb57f230e2c949893e386e86202d0cbbc07ad7c4b68c7bd482cb067e78fdb1ab48b2d51d9f9131b085ef49ca62d1b274
|
|
7
|
+
data.tar.gz: 5569fa96d3501e1531e9d303968b01822ee8f62d3e00f5250d4cbb7cb89c46d6618f40a486a224eb56cf9ab4af5fef9d2f9c531c5f4d3fe4e0a15b8bfc1e1c9e
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data.tar.gz.sig
CHANGED
data/lib/omah.rb
CHANGED
|
@@ -77,8 +77,10 @@ class Omah
|
|
|
77
77
|
a = @dd.all.select {|x| x.subject == subject}
|
|
78
78
|
|
|
79
79
|
ordinal = a.any? ? '.' + a.length.to_s : ''
|
|
80
|
-
|
|
80
|
+
|
|
81
|
+
txt_file = title + ordinal + '.txt'
|
|
81
82
|
html_file = title + ordinal + '.html'
|
|
83
|
+
kvx_file = title + ordinal + '.kvx'
|
|
82
84
|
|
|
83
85
|
id = msg[:msg_id]
|
|
84
86
|
next if @dd.find_by_msg_id id
|
|
@@ -86,17 +88,17 @@ class Omah
|
|
|
86
88
|
path = archive()
|
|
87
89
|
txt_filepath = File.join(path, txt_file)
|
|
88
90
|
html_filepath = File.join(path, html_file)
|
|
91
|
+
kvx_filepath = File.join(path, kvx_file)
|
|
89
92
|
|
|
90
93
|
|
|
91
94
|
FileUtils.mkdir_p path
|
|
92
95
|
|
|
93
|
-
|
|
94
|
-
header
|
|
95
|
-
|
|
96
|
+
header = %i(from to subject).inject({}) {|r,x| r.merge(x => msg[x]) }
|
|
97
|
+
Kvx.new(header).save File.join(@filepath_user, kvx_filepath)
|
|
98
|
+
|
|
96
99
|
File.write File.join(@filepath_user, txt_filepath), \
|
|
97
|
-
|
|
100
|
+
text_sanitiser(msg[:body_text].to_s)
|
|
98
101
|
|
|
99
|
-
|
|
100
102
|
File.write File.join(@filepath_user, html_filepath), \
|
|
101
103
|
html_sanitiser(msg[:body_html].to_s)
|
|
102
104
|
|
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.7.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- James Robertson
|
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
|
31
31
|
N1BI64rCS5pjMp5bkuPQ9SW7LhtXi9JEvA5ZQ5Jc6WAXHnLkaZWdZIaKGPWTlKJz
|
|
32
32
|
eKzlH2B0/wHCRg==
|
|
33
33
|
-----END CERTIFICATE-----
|
|
34
|
-
date: 2016-07-
|
|
34
|
+
date: 2016-07-19 00:00:00.000000000 Z
|
|
35
35
|
dependencies:
|
|
36
36
|
- !ruby/object:Gem::Dependency
|
|
37
37
|
name: dynarex-daily
|
metadata.gz.sig
CHANGED
|
Binary file
|