omah 0.6.8 → 0.6.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: def878c2ab4788fdff83c44c747d138449096396
4
- data.tar.gz: 7b9f0a3723a5e2233874c48940e55dbba2430d8b
3
+ metadata.gz: e0b93e268df1ca2a513f0464929acca2e730156e
4
+ data.tar.gz: deeeac3737a61b1deb7233829e718d1589db1e3a
5
5
  SHA512:
6
- metadata.gz: 2560ec38ca26ac81fbc9a3af5e4464cd8925938c442da92423b052c9343bddadc776cfc64b1b031dd6a3e10d9b0e71be1407100ad5aaa04a47a9cdf6e0a73f1b
7
- data.tar.gz: 354bc0cee8dabfe52a97241c70c2f4b9c22c3aafc6795e3aba459df70417f1f6e2e9b08b46e0d1bc1e1e4d6aca92e9430d8bc07595dad3fc343ce62455f0a8e3
6
+ metadata.gz: 9cc173b6af14ee6645cc65a1a45579edbf3873c3206795cf61ebb21d51438558a4ed1d80c110a6b09b471a6d800d20ce641d9667e997e136e6d37af98950d5a2
7
+ data.tar.gz: 29efd5939895ae905f1a0ddc2b52573ab0cf9d00e4e586e46db6516d8fbe4647d6408722394045cb299ebd3286ce07cd08fff7a656d9dab6a4cbce3d200b8e6c
checksums.yaml.gz.sig CHANGED
Binary file
data/lib/omah.rb CHANGED
@@ -65,10 +65,9 @@ class Omah
65
65
 
66
66
  end
67
67
 
68
- def store messages
68
+ def store(messages)
69
69
 
70
70
  messages.each.with_index do |msg,i|
71
-
72
71
 
73
72
  subject = msg[:subject]
74
73
 
@@ -139,12 +138,14 @@ class Omah
139
138
 
140
139
  msg.delete :attachments
141
140
 
142
- @dd.create msg.merge(txt_filepath: txt_filepath, \
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])
147
-
141
+ h = msg.merge(txt_filepath: txt_filepath, \
142
+ html_filepath: html_filepath)
143
+ parts_path.each.with_index do |path, i|
144
+ h.merge!("attachment#{i+1}" => @webpath_user + '/' + path)
145
+ end
146
+
147
+ @dd.create h
148
+
148
149
  end
149
150
 
150
151
  if @xslt then
data.tar.gz.sig CHANGED
Binary file
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.8
4
+ version: 0.6.9
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-09-18 00:00:00.000000000 Z
34
+ date: 2015-09-19 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