omah 0.6.6 → 0.6.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 +4 -2
- data.tar.gz.sig +1 -1
- data/lib/omah.rb +7 -5
- 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: c0a9ad1e87310d011c8016f819a8420441db5df3
|
|
4
|
+
data.tar.gz: 7745d711ddb0ad0cf1d438bfd6b53e403950d89c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c7bd6a70c3c09424389ad99334460cb26d098c7928169f33a981c102e731629e2063412606f1fba5dd567289ca0515ae537d67571387e3242379b7a5d2341cab
|
|
7
|
+
data.tar.gz: 42a30bf8609877f109854c62724c6c8b039ad53cbf48e2089c25a1c818717983ac29ccb7d5d3b832b6ea60adbf0963077e35c0a08559b34719d707fee40175e5
|
checksums.yaml.gz.sig
CHANGED
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
�H�44
|
|
2
|
+
s�B�a�}ݑ��YX t�ȐҴ�>#؉��[�@���-=Fכm}�̃�$����7�
|
|
3
|
+
�0�����\����ɦ��<�V$���Ȯ��^[����(;J� ��{�JmZ����!�d
|
|
4
|
+
�HՏo�)��"n�����xJV*�������2
|
data.tar.gz.sig
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
�
|
|
1
|
+
K�*��s.�X�CW)"^2�Vlҟ������'�P�:�@����R�:�hU���n�Q���%���\�X��I���Ϟ��j�����:W���J�s�+�H*<�����V讱#���35/k�Dn�� �;N<��1.ޘ,}a�����?V�<��s~���P���C�MY�u���K�ȂBɨ-Kr����E��?�,��������"��A����Y�+'���AWTrhjhVI���v�~�(|g
|
data/lib/omah.rb
CHANGED
|
@@ -41,7 +41,7 @@ class Omah
|
|
|
41
41
|
|
|
42
42
|
x = if File.exists? dailyfile then dailyfile
|
|
43
43
|
else
|
|
44
|
-
'messages[date]/message(
|
|
44
|
+
'messages[date]/message(msg_id, tags, from, to, subject, date, ' \
|
|
45
45
|
+ 'txt_filepath, html_filepath, attachment1, attachment2, attachment3)'
|
|
46
46
|
end
|
|
47
47
|
|
|
@@ -65,19 +65,21 @@ class Omah
|
|
|
65
65
|
|
|
66
66
|
def store messages
|
|
67
67
|
|
|
68
|
-
messages.each do |msg|
|
|
68
|
+
messages.each.with_index do |msg,i|
|
|
69
|
+
|
|
69
70
|
|
|
70
71
|
subject = msg[:subject]
|
|
72
|
+
|
|
71
73
|
title = subject.gsub(/\W+/,'-')[0,30].sub(/-$/,'')
|
|
72
74
|
|
|
73
75
|
a = @dd.all.select {|x| x.subject == subject}
|
|
74
|
-
|
|
76
|
+
|
|
75
77
|
ordinal = a.any? ? '.' + a.length.to_s : ''
|
|
76
78
|
txt_file = title + ordinal + '.txt'
|
|
77
79
|
html_file = title + ordinal + '.html'
|
|
78
80
|
|
|
79
|
-
id = msg[:
|
|
80
|
-
next if @dd.
|
|
81
|
+
id = msg[:msg_id]
|
|
82
|
+
next if @dd.find_by_msg_id id
|
|
81
83
|
|
|
82
84
|
path = archive()
|
|
83
85
|
txt_filepath = File.join(path, txt_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.
|
|
4
|
+
version: 0.6.7
|
|
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-23 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
|