omah 0.5.2 → 0.5.3

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: c890732758a2b61ab1411acb5dff4abbee4e807d
4
- data.tar.gz: 911e3a0e69ca1d28d882c1fe14c083aeafc58efa
3
+ metadata.gz: 741627b2cd732ae6660e12ed4b942f0bda9c8825
4
+ data.tar.gz: b0f0d3f6f15a6cf3f23f648015f172d31e4f2d61
5
5
  SHA512:
6
- metadata.gz: ee22385e31c3c947faca7398f253daabaaef89ace3240543c28a88fb5488e9655056be261717845e52658f3d193e531d7300027acd96c1444e67d5333bbbad5a
7
- data.tar.gz: ee16825dde4255e47f353583da339f58fec2f1b211a68711019e83d098e025d71b7113660be0b0381b14b792ffb3735b34191b8b2e12977f2c94b7a61aad3550
6
+ metadata.gz: 3d8f1904b309e0186f73ddfab5f3bcc4e667523b68a737d60ace006ec0b1d28b47ef6c234d32e5f24f789ebca65573c3a8e8051e6297e4246373148fd544fd68
7
+ data.tar.gz: 9c4f62d3331c9f5ce67cc5beaa83d17730f45e8b31c7058901a2a283613069bd48fdeb190ec52c046af87a0c9fe4aaf80ea5982d6741017d24c5529536e38d83
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
data/lib/omah.rb CHANGED
@@ -39,7 +39,7 @@ class Omah
39
39
  + 'txt_filepath, html_filepath, attachment1, attachment2, attachment3)'
40
40
  end
41
41
 
42
- @dd = DynarexDaily.new x, {dir_archive: :yearly}
42
+ @dd = DynarexDaily.new x, options: {dir_archive: :yearly}
43
43
 
44
44
  end
45
45
 
@@ -116,7 +116,6 @@ class Omah
116
116
  @dd.create msg.merge(txt_filepath: txt_filepath, \
117
117
  html_filepath: html_filepath, attachment1: parts_path[0], \
118
118
  attachment2: parts_path[1], attachment3: parts_path[2])
119
-
120
119
 
121
120
 
122
121
  end
@@ -124,7 +123,8 @@ class Omah
124
123
  if @xslt then
125
124
 
126
125
  unless File.exists? @xslt then
127
- File.write File.expand_path(@xslt), fetch_file(@xslt)
126
+ File.write File.expand_path(@xslt), fetch_file(@xslt)
127
+ File.write File.expand_path(@xslt), fetch_file('listing.css')
128
128
  end
129
129
 
130
130
  @dd.xslt = @xslt
@@ -185,5 +185,6 @@ class Omah
185
185
  end
186
186
 
187
187
  end
188
+
188
189
 
189
190
  end
@@ -0,0 +1 @@
1
+ table { background-color: #efe; }
@@ -5,11 +5,15 @@
5
5
  <html>
6
6
  <head>
7
7
  <xsl:apply-templates select='summary'/>
8
+ <link rel='stylesheet' type="text/css" href="listing.css" />
8
9
  </head>
9
10
  <body>
11
+ <h1>inbox</h1>
10
12
  <table border='1'>
13
+ <thead><th/><th>from</th><th>to</th><th>subject</th><th>date</th><th/><th/><th colspan="3">attachments</th></thead>
11
14
  <xsl:apply-templates select='records/message'>
12
- <xsl:sort order='descending'/>
15
+
16
+ <xsl:sort order='descending' select="number(records/message/@id)"/>
13
17
  </xsl:apply-templates>
14
18
  </table>
15
19
  </body>
@@ -25,10 +29,10 @@
25
29
  <td>
26
30
  <xsl:value-of select='tags'/>
27
31
  </td>
28
- <td>
32
+ <td class="{from/@css_class}">
29
33
  <xsl:value-of select='from'/>
30
34
  </td>
31
- <td>
35
+ <td class="{to/@css_class}">
32
36
  <xsl:value-of select='to'/>
33
37
  </td>
34
38
  <td>
@@ -49,11 +53,11 @@
49
53
  <a href="{attachment1}"><xsl:value-of select='attachment1'/></a>
50
54
  </td>
51
55
  <td>
52
- <xsl:value-of select='attachment2'/>
56
+ <a href="{attachment2}"><xsl:value-of select='attachment2'/></a>
53
57
  </td>
54
58
  <td>
55
- <xsl:value-of select='attachment3'/>
59
+ <a href="{attachment3}"><xsl:value-of select='attachment3'/></a>
56
60
  </td>
57
61
  </tr>
58
62
  </xsl:template>
59
- </xsl:stylesheet>
63
+ </xsl:stylesheet>
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.5.2
4
+ version: 0.5.3
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-05-23 00:00:00.000000000 Z
34
+ date: 2015-05-24 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: dynarex-daily
@@ -120,6 +120,7 @@ extensions: []
120
120
  extra_rdoc_files: []
121
121
  files:
122
122
  - lib/omah.rb
123
+ - stylesheet/listing.css
123
124
  - stylesheet/listing.xsl
124
125
  homepage: https://github.com/jrobertson/omah
125
126
  licenses:
metadata.gz.sig CHANGED
Binary file