omah 0.6.4 → 0.6.5
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.tar.gz.sig +0 -0
- data/lib/omah.rb +6 -8
- 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: 46afd2dc6e3b534c63455e30de3b2cc90ab5b719
|
|
4
|
+
data.tar.gz: 06b696e267d6c8e5609b666322d1b469691b6b8d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f007031aa19e55aa91341300276b846cbad84d576e622d4433ed8a6b1c76e88b449ed3954b7b5bb1ceff117e95a6327eccbe02fa9eb7ab773330cbc686a71b50
|
|
7
|
+
data.tar.gz: 6cba7b4754c078d8bdb47991d64407b7f7f87c0b672cd4caa1f5f04bd93f82feb654e9bdd1d816cc6e8ee77e90b965510d0a72d20e2550d039b10fa7e14afe3a
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data.tar.gz.sig
CHANGED
|
Binary file
|
data/lib/omah.rb
CHANGED
|
@@ -28,17 +28,14 @@ class Omah
|
|
|
28
28
|
@xslt = options[:xslt]
|
|
29
29
|
@variables ||= {}
|
|
30
30
|
|
|
31
|
-
|
|
32
|
-
filepath_user = File.join(filepath, @user)
|
|
33
|
-
|
|
31
|
+
@filepath_user = File.expand_path(File.join(filepath, @user))
|
|
34
32
|
|
|
35
33
|
Dir.chdir filepath
|
|
36
34
|
|
|
37
|
-
FileUtils.mkdir_p filepath_user # attempt to
|
|
35
|
+
FileUtils.mkdir_p @filepath_user # attempt to
|
|
38
36
|
# mkdir regardless if it already exists
|
|
39
37
|
|
|
40
|
-
Dir.chdir filepath_user
|
|
41
|
-
|
|
38
|
+
Dir.chdir @filepath_user
|
|
42
39
|
|
|
43
40
|
dailyfile = 'dynarexdaily.xml'
|
|
44
41
|
|
|
@@ -164,7 +161,8 @@ class Omah
|
|
|
164
161
|
end
|
|
165
162
|
|
|
166
163
|
@plugins.each{|x| x.on_newmail(messages, doc) }
|
|
167
|
-
File.write 'dynarexdaily.xml',
|
|
164
|
+
File.write File.join(@filepath_user, 'dynarexdaily.xml'), \
|
|
165
|
+
doc.xml(pretty: true)
|
|
168
166
|
|
|
169
167
|
end
|
|
170
168
|
|
|
@@ -173,7 +171,7 @@ class Omah
|
|
|
173
171
|
def archive()
|
|
174
172
|
|
|
175
173
|
t = Time.now
|
|
176
|
-
path = File.join ['archive', t.year.to_s, \
|
|
174
|
+
path = File.join [@filepath_user, 'archive', t.year.to_s, \
|
|
177
175
|
Date::MONTHNAMES[t.month].downcase[0..2], t.day.to_s]
|
|
178
176
|
|
|
179
177
|
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.
|
|
4
|
+
version: 0.6.5
|
|
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-
|
|
34
|
+
date: 2015-06-06 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
|