omah 0.6.7 → 0.6.8

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c0a9ad1e87310d011c8016f819a8420441db5df3
4
- data.tar.gz: 7745d711ddb0ad0cf1d438bfd6b53e403950d89c
3
+ metadata.gz: def878c2ab4788fdff83c44c747d138449096396
4
+ data.tar.gz: 7b9f0a3723a5e2233874c48940e55dbba2430d8b
5
5
  SHA512:
6
- metadata.gz: c7bd6a70c3c09424389ad99334460cb26d098c7928169f33a981c102e731629e2063412606f1fba5dd567289ca0515ae537d67571387e3242379b7a5d2341cab
7
- data.tar.gz: 42a30bf8609877f109854c62724c6c8b039ad53cbf48e2089c25a1c818717983ac29ccb7d5d3b832b6ea60adbf0963077e35c0a08559b34719d707fee40175e5
6
+ metadata.gz: 2560ec38ca26ac81fbc9a3af5e4464cd8925938c442da92423b052c9343bddadc776cfc64b1b031dd6a3e10d9b0e71be1407100ad5aaa04a47a9cdf6e0a73f1b
7
+ data.tar.gz: 354bc0cee8dabfe52a97241c70c2f4b9c22c3aafc6795e3aba459df70417f1f6e2e9b08b46e0d1bc1e1e4d6aca92e9430d8bc07595dad3fc343ce62455f0a8e3
checksums.yaml.gz.sig CHANGED
@@ -1,4 +1,4 @@
1
- H�44
2
- s�B�a�}ݑ��YX t�ȐҴ�>#؉��[�@���-=Fכm}�̃�$� ���7�
3
- 0�����\����ɦ��<�V$���Ȯ�Š�^[����(;J ��{JmZ����!�d
4
- HՏo�)��"n��� ��xJV*�������2
1
+ ��m-��I��]����{���˸� Z8fS:����P���f�������qK��1��5��[��'q9on���3
2
+ "��=��w@��O���
3
+ M6)\�'ZY����`�m<:z�U�� ���V&<��l��ʋ:�jEQ�[�IN�1ژ���t��������]O>5��G�7����[8����3
4
+ q���9F1^��?��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: '.', options: {xslt: 'listing.xsl'}, plugins: [] )
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(@filepath_user, path, title + ordinal)
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
- html_filepath: html_filepath, attachment1: parts_path[0], \
142
- attachment2: parts_path[1], attachment3: parts_path[2])
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
- K�*��s.�XCW)"^2Vlҟ������'�P�:�@����R�:�hU���n�Q���%���\�X ��I���Ϟ��j�����:W���J�s�+�H*<�����V讱#���35/k�Dn�� �;N<��1.ޘ,}a�����?V�<� s~���P���C�MY�u�� �K�ȂBɨ-Kr����E��?�,��������"��A����Y�+'���AWTrhjhVI���v�~�(|g
1
+ ݨOF��}��c �Y��n���OR��ӵ���v�?��d�ԁn����t$��"�K=�F� ;S�Ο��Ι8�:�v@�TA���n���e��%˨����cl8Ȳ����KrnT8��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.7
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-06-23 00:00:00.000000000 Z
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.6
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