omah 0.7.1 → 0.7.2
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 +9 -12
- data.tar.gz.sig +0 -0
- 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: 6d59713ebc0baf01c53d417887ac62c17a2cab10
|
|
4
|
+
data.tar.gz: eb80b9de059457b39d1fc5017d6f346fac028f49
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ad6bd9824d10580a99fa710bc9a2e74c9f78833c0dba1134b7aa77a739246bb7b277cccb4812697b3fcc193fabfc2759f1700f4694a49a354b718072f47a17eb
|
|
7
|
+
data.tar.gz: 8009f2e1142aab8a56f6ecb8e03c6e3fe5a1ff0ca5fe1a9c05d9c1266a3fb45a6c076d52c776ae1d0489939da6bf2201e0b3e8ccdc0da2a5a0731500bd973dfc
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data/lib/omah.rb
CHANGED
|
@@ -47,7 +47,7 @@ class Omah
|
|
|
47
47
|
'messages[date]/message(msg_id, tags, from, to, subject, date, ' \
|
|
48
48
|
+ 'txt_filepath, html_filepath, attachment1, attachment2, attachment3)'
|
|
49
49
|
end
|
|
50
|
-
|
|
50
|
+
|
|
51
51
|
@dd = DynarexDaily.new x, dir_archive: :yearly
|
|
52
52
|
|
|
53
53
|
|
|
@@ -79,19 +79,14 @@ class Omah
|
|
|
79
79
|
ordinal = a.any? ? '.' + a.length.to_s : ''
|
|
80
80
|
|
|
81
81
|
x_file = title + ordinal
|
|
82
|
-
txt_file = title + ordinal + '.txt'
|
|
83
|
-
html_file = title + ordinal + '.html'
|
|
84
|
-
kvx_file = title + ordinal + '.kvx'
|
|
85
82
|
|
|
86
83
|
id = msg[:msg_id]
|
|
84
|
+
|
|
87
85
|
next if @dd.find_by_msg_id id
|
|
88
86
|
|
|
89
87
|
path = archive()
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
html_filepath = File.join(path, html_file)
|
|
93
|
-
kvx_filepath = File.join(path, kvx_file)
|
|
94
|
-
|
|
88
|
+
|
|
89
|
+
x_filepath = File.join(path, x_file)
|
|
95
90
|
|
|
96
91
|
FileUtils.mkdir_p path
|
|
97
92
|
|
|
@@ -99,14 +94,16 @@ class Omah
|
|
|
99
94
|
File.write File.join(@filepath_user, x_filepath + '.eml'), \
|
|
100
95
|
msg[:raw_source]
|
|
101
96
|
end
|
|
102
|
-
|
|
97
|
+
|
|
103
98
|
header = %i(from to subject).inject({}) {|r,x| r.merge(x => msg[x]) }
|
|
104
99
|
Kvx.new(header).save File.join(@filepath_user, x_filepath + '.kvx')
|
|
105
100
|
|
|
106
|
-
|
|
101
|
+
txt_filepath = x_filepath + '.txt'
|
|
102
|
+
File.write File.join(@filepath_user, txt_filepath), \
|
|
107
103
|
text_sanitiser(msg[:body_text].to_s)
|
|
108
104
|
|
|
109
|
-
|
|
105
|
+
html_filepath = x_filepath + '.html'
|
|
106
|
+
File.write File.join(@filepath_user, html_filepath), \
|
|
110
107
|
html_sanitiser(msg[:body_html].to_s)
|
|
111
108
|
|
|
112
109
|
parts_path = []
|
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.7.
|
|
4
|
+
version: 0.7.2
|
|
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-22 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
|