omah 0.7.6 → 0.7.7
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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/omah.rb +5 -1
- data.tar.gz.sig +0 -0
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7d3df1b5d1003e26a06ebabcff7d3ae2231229f7
|
|
4
|
+
data.tar.gz: eec4044e4258acef30a04766a83871f1d792e364
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5ae618b4ed5e5341bdfe0aba6c5f5e922ff25eb02178527d3ac1fc1c0737def91182a165166e759447dff6a9ab38d310d71070c21a1ad6166224de896142e78c
|
|
7
|
+
data.tar.gz: c6ce5749b496c7d032042955bc59cc13caa2b7e6852d51f69d0faae2b9a58ec47249c5dd0394123b17ee7f141a2aa47ca6144d20eb3c16589ab343999ee52dc1
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data/lib/omah.rb
CHANGED
|
@@ -23,7 +23,8 @@ class Omah
|
|
|
23
23
|
include Library
|
|
24
24
|
|
|
25
25
|
def initialize(user: 'user', filepath: '.', \
|
|
26
|
-
options: {xslt: 'listing.xsl'}, plugins: [], webpath: '/email'
|
|
26
|
+
options: {xslt: 'listing.xsl'}, plugins: [], webpath: '/email',
|
|
27
|
+
url_base: 'http://localhost/' )
|
|
27
28
|
|
|
28
29
|
@user = user
|
|
29
30
|
@xslt = options[:xslt]
|
|
@@ -32,6 +33,7 @@ class Omah
|
|
|
32
33
|
|
|
33
34
|
@filepath_user = File.expand_path(File.join(filepath, @user))
|
|
34
35
|
@webpath_user = webpath +'/' + @user
|
|
36
|
+
@url_base = url_base
|
|
35
37
|
|
|
36
38
|
Dir.chdir filepath
|
|
37
39
|
|
|
@@ -181,6 +183,8 @@ class Omah
|
|
|
181
183
|
h.merge!("attachment#{i+1}" => @webpath_user + '/' + path)
|
|
182
184
|
end
|
|
183
185
|
|
|
186
|
+
h[:link] = File.join(@url_base, @webpath_user, html_filepath)
|
|
187
|
+
|
|
184
188
|
@plugins.each do |x|
|
|
185
189
|
x.on_newmessage(h) if x.respond_to? :on_newmessage
|
|
186
190
|
end
|
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.7.
|
|
4
|
+
version: 0.7.7
|
|
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-
|
|
34
|
+
date: 2017-05-03 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
|