omah 0.6.5 → 0.6.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +2 -1
- data.tar.gz.sig +0 -0
- data/lib/omah.rb +6 -4
- 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: 059b2d003ffef43680d5c402e45ec1a88179b464
|
4
|
+
data.tar.gz: 5e9054f96fd11aff64306defce3c5947aff811b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d26d992707577f1514e9c6f428c607567f2efb41c29f402f11e7e4f10ea2bc68edef408678a4689315d99810a4733aaa5e8eaaa92f1feb8f92f93c237a7f2706
|
7
|
+
data.tar.gz: 8cec7e8633429cb3ff253ab3ec57c1c44f7de9d6398fd6ca677ab81a3f9265bf17f296c504e785a2f16446baafba027de2d3d30db664b89d67e226b505d2ea6c
|
checksums.yaml.gz.sig
CHANGED
@@ -1 +1,2 @@
|
|
1
|
-
|
1
|
+
~/&H$d�7���ܥ��Px�CkR:���M�TԲT�Ձ�k���f� Y�Y-�k�������X��U��A����L��[��X5�W�f��f(}��B(%���9Q���s@��u{���ª "�KL��{)��K`��X�!3���(�q�!\4��`�ӣ.'<0���rD��
|
2
|
+
9����({{Q?sL�L挻�J�ѣV=�dW���T��M��oG@���.�p�NV��C�۞4\��+܊��R�
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/omah.rb
CHANGED
@@ -89,17 +89,19 @@ class Omah
|
|
89
89
|
if msg[:body_text].to_s.strip[0] == '<' then
|
90
90
|
txt_filepath = ''
|
91
91
|
else
|
92
|
-
File.write txt_filepath,
|
92
|
+
File.write File.join(@filepath_user, txt_filepath), \
|
93
|
+
text_sanitiser(msg[:body_text].to_s)
|
93
94
|
end
|
94
95
|
|
95
|
-
File.write html_filepath,
|
96
|
+
File.write File.join(@filepath_user, html_filepath), \
|
97
|
+
html_sanitiser(msg[:body_html].to_s)
|
96
98
|
|
97
99
|
parts_path = []
|
98
100
|
|
99
101
|
# save the attachments
|
100
102
|
if msg[:attachments].length > 0 then
|
101
103
|
|
102
|
-
attachment_path = File.join(path, title + ordinal)
|
104
|
+
attachment_path = File.join(@filepath_user, path, title + ordinal)
|
103
105
|
FileUtils.mkdir_p attachment_path
|
104
106
|
|
105
107
|
if msg[:attachments].length < 4 then
|
@@ -171,7 +173,7 @@ class Omah
|
|
171
173
|
def archive()
|
172
174
|
|
173
175
|
t = Time.now
|
174
|
-
path = File.join [
|
176
|
+
path = File.join ['archive', t.year.to_s, \
|
175
177
|
Date::MONTHNAMES[t.month].downcase[0..2], t.day.to_s]
|
176
178
|
|
177
179
|
end
|
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.6.
|
4
|
+
version: 0.6.6
|
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-06-
|
34
|
+
date: 2015-06-08 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
|