dummy_omah 0.1.0

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: eb43be58f41b96161e6bea31c5cf325d16157ed5
4
+ data.tar.gz: b8198bfcb71253dbb60b21c4c4b2501c9fa7e536
5
+ SHA512:
6
+ metadata.gz: 7cc38891e3afc65bfc96ac0c498be0f5ff1376c610a46c0e61c3e924179a651079f6c49e72fcfe7dbad13eca6e34a46de19bec716395708c13c7526db3d4a6f7
7
+ data.tar.gz: 908d647114e2ac3b0740b10783bdbbbcdb1995f57e26847cc2f10c4be6ef8676bc758d1ce1b309550ea2b7d44286b4158d768e2222f067882c057b6976b50412
checksums.yaml.gz.sig ADDED
Binary file
data.tar.gz.sig ADDED
@@ -0,0 +1,2 @@
1
+ A��2�&����¹F�+|a:�:e1⡫�)M�g˨���npd�F��fc�-*wH����D��d���}8Ӕ�,-�j��u+� ��Z�nĚ�[��2�Ss���:����dE�����r&��/��@1+���x�m�-S]O�)��bd���S��&��� �]�{����ծ��8�z�����
2
+ ^�QFz�a�L�n��F%��N�yd5[���r�V��R�!.u3�`i|ܡ�z(�!)�p� ��ڋ��~o+N8'��
data/lib/dummy_omah.rb ADDED
@@ -0,0 +1,38 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ # file: dummy_omah.rb
4
+
5
+ require 'omah'
6
+
7
+
8
+ class DummyOmah < Omah
9
+
10
+ def initialize(user: 'user', filepath: '.', mail: {}, \
11
+ options: {xslt: 'listing.xsl'}, plugins: [])
12
+
13
+ @mail = {user_name: '', password: '' }.merge mail
14
+
15
+ @email_address = @mail[:user_name]
16
+
17
+ @variables = {user_name: @mail[:user_name], email_address: @email_address}
18
+
19
+ super(user: user, filepath: filepath, plugins: plugins, options: options)
20
+
21
+ end
22
+
23
+ def fetch_email(a)
24
+
25
+ messages = a.map.inject([]) do |r, x|
26
+
27
+ r << Hash[%i(id from to subject date body_text body_html attachments)\
28
+ .zip(a[0])]
29
+ end
30
+
31
+ # messages are stored in the file dynarexdaily.xml
32
+ self.store messages
33
+
34
+ n = messages.length
35
+ n.to_s + " new message" + (n > 1 ? 's' : '')
36
+
37
+ end
38
+ end
metadata ADDED
@@ -0,0 +1,88 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: dummy_omah
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - James Robertson
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain:
11
+ - |
12
+ -----BEGIN CERTIFICATE-----
13
+ MIIDljCCAn6gAwIBAgIBATANBgkqhkiG9w0BAQUFADBIMRIwEAYDVQQDDAlnZW1t
14
+ YXN0ZXIxHjAcBgoJkiaJk/IsZAEZFg5qYW1lc3JvYmVydHNvbjESMBAGCgmSJomT
15
+ 8ixkARkWAmV1MB4XDTE1MDUyNjA4MzI1NFoXDTE2MDUyNTA4MzI1NFowSDESMBAG
16
+ A1UEAwwJZ2VtbWFzdGVyMR4wHAYKCZImiZPyLGQBGRYOamFtZXNyb2JlcnRzb24x
17
+ EjAQBgoJkiaJk/IsZAEZFgJldTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC
18
+ ggEBAK2SD3dfwO3kcDKwHfJEJLlEYMHgNNF6Ou314d9yigeV1/l1Bsdh+8aLLMgk
19
+ ivwl2AkRMZSVaDp/fnkPszcjVJ68YMIrlwcxWNh05kpoNC5YyHsGAAeiO0K5/AX1
20
+ WPj64rWmrJ87o7PfDOQuS/n1k8Ffu4Pt93i9cwofyzYWP161LeLEEvH32OdqKQb5
21
+ 9BbsfAyOFWO07J3VxO8ZF0DOyUoQ0bAIv/hgjJ8Yf/8H7y3vhshzLGQZ1OwJLQCT
22
+ c4P9Syri+KKZHeOtmyvRf4uNMjsoG55x692g09MBwLD2el4f/wBITi0FvlfGoxpd
23
+ E+hP/MGvzstmH4uAxGxSPEkylgkCAwEAAaOBijCBhzAJBgNVHRMEAjAAMAsGA1Ud
24
+ DwQEAwIEsDAdBgNVHQ4EFgQUvqGDd3XdaBX/yUA3+7HXyRp4up4wJgYDVR0RBB8w
25
+ HYEbZ2VtbWFzdGVyQGphbWVzcm9iZXJ0c29uLmV1MCYGA1UdEgQfMB2BG2dlbW1h
26
+ c3RlckBqYW1lc3JvYmVydHNvbi5ldTANBgkqhkiG9w0BAQUFAAOCAQEAgWn4qDHq
27
+ SHjs9NczrCbtFemk7sctfKNfnb2bhg//K1iBaVmqhpzTHQGYRJ58mXLXZWSgpxhH
28
+ cMlA1OkhtCC7k6CpFdKpmxmUOR42tegEUf7NVHs00wBb1I08xROZoiU+AC/IEd+z
29
+ EciA4oENYTSiNxCbZZLXMDa2gCuAGLXGFITvI219WzGtVw/E9yv66IZiYjl8aQ6L
30
+ zGWK6GKGw4+u7c3O9Xhpm6cqPn26M8HrUkX+lRMZJy2Xc1Tga+TfcyJd7xKdirM4
31
+ fmTYv0JIMcqoPjpw9Wjxw2WrzCOBCkJN2ZKpGcO7y2MebR6vAMwRGgm+hL48Y9Ix
32
+ Dzxs6xoPemTvjg==
33
+ -----END CERTIFICATE-----
34
+ date: 2015-05-26 00:00:00.000000000 Z
35
+ dependencies:
36
+ - !ruby/object:Gem::Dependency
37
+ name: omah
38
+ requirement: !ruby/object:Gem::Requirement
39
+ requirements:
40
+ - - "~>"
41
+ - !ruby/object:Gem::Version
42
+ version: '0.6'
43
+ - - ">="
44
+ - !ruby/object:Gem::Version
45
+ version: 0.6.1
46
+ type: :runtime
47
+ prerelease: false
48
+ version_requirements: !ruby/object:Gem::Requirement
49
+ requirements:
50
+ - - "~>"
51
+ - !ruby/object:Gem::Version
52
+ version: '0.6'
53
+ - - ">="
54
+ - !ruby/object:Gem::Version
55
+ version: 0.6.1
56
+ description:
57
+ email: james@r0bertson.co.uk
58
+ executables: []
59
+ extensions: []
60
+ extra_rdoc_files: []
61
+ files:
62
+ - lib/dummy_omah.rb
63
+ homepage: https://github.com/jrobertson/dummy_omah
64
+ licenses:
65
+ - MIT
66
+ metadata: {}
67
+ post_install_message:
68
+ rdoc_options: []
69
+ require_paths:
70
+ - lib
71
+ required_ruby_version: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ required_rubygems_version: !ruby/object:Gem::Requirement
77
+ requirements:
78
+ - - ">="
79
+ - !ruby/object:Gem::Version
80
+ version: '0'
81
+ requirements: []
82
+ rubyforge_project:
83
+ rubygems_version: 2.4.6
84
+ signing_key:
85
+ specification_version: 4
86
+ summary: Simulates receiving email messages for testing Omah (Offline Mail Helper)
87
+ gem plugins etc.
88
+ test_files: []
metadata.gz.sig ADDED
Binary file