omah 0.7.8 → 0.7.9

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: 58ef34918e0c0c27ac19783a3a850c4220e3403e
4
- data.tar.gz: 647886d4b35700230836a11d4c1848e0c269cc31
3
+ metadata.gz: b16f3cbef783ab260fd381b5496cf3ced3af3ffc
4
+ data.tar.gz: 10806b6ef5970aad2f5ca3aa929995a25ce8b1bc
5
5
  SHA512:
6
- metadata.gz: 84614a3cedf663484245e51ab2d2684acb0707abc81c3d2a3bbe9ec1a98dc70a6f94cfc2ec68e304b484d82b6182acb8f1f240ca5224f376c466b8e163ffb423
7
- data.tar.gz: 41c36084aee1e61693a36e66c772e36aed5ef279f4be6abdb96bc6aeeaeb6b49ce2ddddd3f038f73738eeaec6619c21ad045a36c288e78e5af5b5c2b19493856
6
+ metadata.gz: 8b0f9a6be9766a1963ac3cc5b204e2b5820e9db8795bb65187da95ce5ab888ca6aca3f2d0c3b6625dd4c7e69857cba08d974fa9e07448446ec6f459af9a81482
7
+ data.tar.gz: 5c1d0b66629c6f0f548d4685b9a5d9b82ee7f4563d0f4517e0e86ca447486b48a9f8a4640acae03dd08833059de551b4d241d9f952432237aff37657fd2ef6ea
checksums.yaml.gz.sig CHANGED
@@ -1,2 +1,3 @@
1
- ��� B�x`���Iǥ��V.4���bWR澋�mB��2c��kyt��.j�$�olS <lU��f�-�mds�-q�8��=B�x/���C8��oY�[���;a�[�r
2
- ����_��5aE�T=�aޛ�S�H�U�D�><��t㣺���6i�P��WwFt��<y;�y�;�D�'Y�WI�3���QEa=V�u�l��8�~E��jpߟ
1
+ ����Yp���R��7U��騞I�@�+
2
+ B4�9:����ч��|61
3
+ Y��p�ƽ_�:��B���x�c���X$(���w�{���%���s���cAed��3}C��Ԟ��{l����v|oP���$�ս�
data.tar.gz.sig CHANGED
Binary file
data/lib/omah.rb CHANGED
@@ -97,7 +97,7 @@ class Omah
97
97
 
98
98
  messages.each.with_index do |msg,i|
99
99
 
100
- subject = msg[:subject]
100
+ subject = msg[:subject] || ''
101
101
 
102
102
  title = subject.gsub(/\W+/,'-')[0,30].sub(/-$/,'')
103
103
 
@@ -182,12 +182,10 @@ class Omah
182
182
  parts_path.each.with_index do |path, i|
183
183
  h.merge!("attachment#{i+1}" => @webpath_user + '/' + path)
184
184
  end
185
-
185
+
186
186
  h[:link] = File.join(@url_base, @webpath_user, html_filepath)
187
-
188
- @plugins.each do |x|
189
- x.on_newmessage(h) if x.respond_to? :on_newmessage
190
- end
187
+
188
+ @plugins.each {|x| x.on_newmessage(h) if x.respond_to? :on_newmessage }
191
189
 
192
190
  @dd.create h
193
191
 
@@ -214,7 +212,7 @@ class Omah
214
212
  classify message.element('to')
215
213
 
216
214
  end
217
-
215
+
218
216
  @plugins.each do |x|
219
217
  x.on_newmail(messages, doc) if x.respond_to? :on_newmail
220
218
  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.7.8
4
+ version: 0.7.9
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: 2017-05-03 00:00:00.000000000 Z
34
+ date: 2017-05-15 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