omah 0.6.7 → 0.6.8
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 +4 -4
- data/lib/omah.rb +10 -6
- data.tar.gz.sig +2 -1
- metadata +3 -3
- 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: def878c2ab4788fdff83c44c747d138449096396
|
4
|
+
data.tar.gz: 7b9f0a3723a5e2233874c48940e55dbba2430d8b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2560ec38ca26ac81fbc9a3af5e4464cd8925938c442da92423b052c9343bddadc776cfc64b1b031dd6a3e10d9b0e71be1407100ad5aaa04a47a9cdf6e0a73f1b
|
7
|
+
data.tar.gz: 354bc0cee8dabfe52a97241c70c2f4b9c22c3aafc6795e3aba459df70417f1f6e2e9b08b46e0d1bc1e1e4d6aca92e9430d8bc07595dad3fc343ce62455f0a8e3
|
checksums.yaml.gz.sig
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
�
|
2
|
-
|
3
|
-
�
|
4
|
-
�
|
1
|
+
��m-��I��]����{���˸�Z8fS:����P���f�������qK��1��5��[��'�q9on���3
|
2
|
+
"��=��w@��O���
|
3
|
+
M6)\�'Z�Y����`�m<:z�U�� ���V&<��l��ʋ:�jEQ�[�IN�1ژ���t��������]O>5��G�7����[�8����3�
|
4
|
+
q���9�F�1^��?��cV�J��1�)|t�y�/� ��ƥRZ#H-�mF�~�~�H��ժ�
|
data/lib/omah.rb
CHANGED
@@ -22,13 +22,15 @@ class Omah
|
|
22
22
|
|
23
23
|
include Library
|
24
24
|
|
25
|
-
def initialize(user: 'user', filepath: '.',
|
25
|
+
def initialize(user: 'user', filepath: '.', \
|
26
|
+
options: {xslt: 'listing.xsl'}, plugins: [], webpath: '/email' )
|
26
27
|
|
27
28
|
@user = user
|
28
29
|
@xslt = options[:xslt]
|
29
30
|
@variables ||= {}
|
30
31
|
|
31
32
|
@filepath_user = File.expand_path(File.join(filepath, @user))
|
33
|
+
@webpath_user = webpath +'/' + @user
|
32
34
|
|
33
35
|
Dir.chdir filepath
|
34
36
|
|
@@ -103,7 +105,7 @@ class Omah
|
|
103
105
|
# save the attachments
|
104
106
|
if msg[:attachments].length > 0 then
|
105
107
|
|
106
|
-
attachment_path = File.join(
|
108
|
+
attachment_path = File.join(path, title + ordinal)
|
107
109
|
FileUtils.mkdir_p attachment_path
|
108
110
|
|
109
111
|
if msg[:attachments].length < 4 then
|
@@ -112,7 +114,7 @@ class Omah
|
|
112
114
|
|
113
115
|
name, buffer = x
|
114
116
|
parts_path[i] = File.join(attachment_path, name)
|
115
|
-
File.write parts_path[i], buffer
|
117
|
+
File.write File.join(@filepath_user, parts_path[i]), buffer
|
116
118
|
|
117
119
|
end
|
118
120
|
|
@@ -120,7 +122,7 @@ class Omah
|
|
120
122
|
|
121
123
|
# make a zip file and add the attachments to it
|
122
124
|
|
123
|
-
zipfile = File.join(attachment_path, title[0,12].downcase + '.zip')
|
125
|
+
zipfile = File.join(@filepath_user, attachment_path, title[0,12].downcase + '.zip')
|
124
126
|
parts_path[0] = zipfile
|
125
127
|
|
126
128
|
Zip::File.open(zipfile, Zip::File::CREATE) do |x|
|
@@ -138,8 +140,10 @@ class Omah
|
|
138
140
|
msg.delete :attachments
|
139
141
|
|
140
142
|
@dd.create msg.merge(txt_filepath: txt_filepath, \
|
141
|
-
|
142
|
-
|
143
|
+
html_filepath: html_filepath, \
|
144
|
+
attachment1: @webpath_user + '/' + parts_path[0], \
|
145
|
+
attachment2: @webpath_user + '/' + parts_path[1], \
|
146
|
+
attachment3: @webpath_user + '/' + parts_path[2])
|
143
147
|
|
144
148
|
end
|
145
149
|
|
data.tar.gz.sig
CHANGED
@@ -1 +1,2 @@
|
|
1
|
-
|
1
|
+
ݨOF��}��c� �Y��n���OR��ӵ���v�?��d�ԁn����t$��"�K=�F� ;S�Ο��Ι8�:�v@�TA���n���e��%˨����cl8Ȳ����Kr�nT8��j�ng�ոĒMTFZ�;^�#��}~����WOӸ��V���$k�)w�"B
|
2
|
+
�ze��vr��'�u5��B�����B��S*`� m��5㕥���U:���v�AD�!�dK�F���p�D]���zq3?�H
|
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.8
|
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-
|
34
|
+
date: 2015-09-18 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: dynarex-daily
|
@@ -142,7 +142,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
142
142
|
version: '0'
|
143
143
|
requirements: []
|
144
144
|
rubyforge_project:
|
145
|
-
rubygems_version: 2.4.
|
145
|
+
rubygems_version: 2.4.8
|
146
146
|
signing_key:
|
147
147
|
specification_version: 4
|
148
148
|
summary: 'Offline Mail Helper: Stores email messages in a file directory archive'
|
metadata.gz.sig
CHANGED
Binary file
|