omah 0.6.5 → 0.6.6

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: 46afd2dc6e3b534c63455e30de3b2cc90ab5b719
4
- data.tar.gz: 06b696e267d6c8e5609b666322d1b469691b6b8d
3
+ metadata.gz: 059b2d003ffef43680d5c402e45ec1a88179b464
4
+ data.tar.gz: 5e9054f96fd11aff64306defce3c5947aff811b2
5
5
  SHA512:
6
- metadata.gz: f007031aa19e55aa91341300276b846cbad84d576e622d4433ed8a6b1c76e88b449ed3954b7b5bb1ceff117e95a6327eccbe02fa9eb7ab773330cbc686a71b50
7
- data.tar.gz: 6cba7b4754c078d8bdb47991d64407b7f7f87c0b672cd4caa1f5f04bd93f82feb654e9bdd1d816cc6e8ee77e90b965510d0a72d20e2550d039b10fa7e14afe3a
6
+ metadata.gz: d26d992707577f1514e9c6f428c607567f2efb41c29f402f11e7e4f10ea2bc68edef408678a4689315d99810a4733aaa5e8eaaa92f1feb8f92f93c237a7f2706
7
+ data.tar.gz: 8cec7e8633429cb3ff253ab3ec57c1c44f7de9d6398fd6ca677ab81a3f9265bf17f296c504e785a2f16446baafba027de2d3d30db664b89d67e226b505d2ea6c
@@ -1 +1,2 @@
1
- 5KJ.�����{; +/����\�t��g�%�jv.�-����+;�-&}[��cC�-���?�֓������yn&�����+�|{��rS����7u%�5��s#����ۘ�|�z�YYט�<��@v���-rDr���. n��
1
+ ~/&H$d7���ܥ��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
@@ -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, text_sanitiser(msg[:body_text].to_s)
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, html_sanitiser(msg[:body_html].to_s)
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 [@filepath_user, 'archive', t.year.to_s, \
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.5
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-06 00:00:00.000000000 Z
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