mailshears 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/doc/mailshears.example.conf.yml +0 -4
- data/doc/man1/mailshears.1 +0 -3
- data/lib/common/agendav_plugin.rb +0 -1
- data/lib/common/configuration.rb +0 -4
- data/lib/common/davical_plugin.rb +0 -1
- data/lib/common/postfixadmin_plugin.rb +0 -1
- data/lib/common/roundcube_plugin.rb +0 -1
- data/mailshears.gemspec +1 -1
- data/test/mailshears.test.conf.yml +0 -4
- data/test/mailshears_test.rb +18 -20
- metadata +6 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 94a42628c44b5e49c347bc2fd33d93f12c5bc54d91c7254438711cfaaffe8549
|
4
|
+
data.tar.gz: 964e3e04b2dc82f3f6e54e247a919da54a67a1516cf95b992106a6e782c548be
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 330b88ad801a3541da15b2dc5a40c3cf9e6eb243280c221a0d8de849e6e32634f861bb9fd294e6a29572de170540f205b75558879ede1c06066559fe6c1eb72d
|
7
|
+
data.tar.gz: 0c0d9335003d9cabdd7a7d05ceea545a81de126cdf1e84b4f4e96b92744dea6c15b5fc0dfcad5df89ea293f72a570fd0cd72dfd4a07af9e04d5100cd32844480
|
@@ -4,7 +4,6 @@ plugins: [agendav, davical, dovecot, postfixadmin, roundcube]
|
|
4
4
|
agendav_dbhost: localhost
|
5
5
|
agendav_dbport: 5432
|
6
6
|
agendav_dbopts:
|
7
|
-
agendav_dbtty:
|
8
7
|
agendav_dbuser: postgres
|
9
8
|
agendav_dbpass:
|
10
9
|
agendav_dbname: agendav
|
@@ -12,7 +11,6 @@ agendav_dbname: agendav
|
|
12
11
|
davical_dbhost: localhost
|
13
12
|
davical_dbport: 5432
|
14
13
|
davical_dbopts:
|
15
|
-
davical_dbtty:
|
16
14
|
davical_dbuser: postgres
|
17
15
|
davical_dbpass:
|
18
16
|
davical_dbname: davical
|
@@ -22,7 +20,6 @@ dovecot_mail_root: /var/spool/mail/vhosts
|
|
22
20
|
postfixadmin_dbhost: localhost
|
23
21
|
postfixadmin_dbport: 5432
|
24
22
|
postfixadmin_dbopts:
|
25
|
-
postfixadmin_dbtty:
|
26
23
|
postfixadmin_dbuser: postgres
|
27
24
|
postfixadmin_dbpass:
|
28
25
|
postfixadmin_dbname: postfixadmin
|
@@ -30,7 +27,6 @@ postfixadmin_dbname: postfixadmin
|
|
30
27
|
roundcube_dbhost: localhost
|
31
28
|
roundcube_dbport: 5432
|
32
29
|
roundcube_dbopts:
|
33
|
-
roundcube_dbtty:
|
34
30
|
roundcube_dbuser: postgres
|
35
31
|
roundcube_dbpass:
|
36
32
|
roundcube_dbname: roundcube
|
data/doc/man1/mailshears.1
CHANGED
data/lib/common/configuration.rb
CHANGED
@@ -79,7 +79,6 @@ class Configuration
|
|
79
79
|
d['agendav_dbhost'] = 'localhost'
|
80
80
|
d['agendav_dbport'] = 5432
|
81
81
|
d['agendav_dbopts'] = ''
|
82
|
-
d['agendav_dbtty'] = ''
|
83
82
|
d['agendav_dbuser'] = 'postgres'
|
84
83
|
d['agendav_dbpass'] = ''
|
85
84
|
d['agendav_dbname'] = 'agendav'
|
@@ -87,7 +86,6 @@ class Configuration
|
|
87
86
|
d['davical_dbhost'] = 'localhost'
|
88
87
|
d['davical_dbport'] = 5432
|
89
88
|
d['davical_dbopts'] = ''
|
90
|
-
d['davical_dbtty'] = ''
|
91
89
|
d['davical_dbuser'] = 'postgres'
|
92
90
|
d['davical_dbpass'] = ''
|
93
91
|
d['davical_dbname'] = 'davical'
|
@@ -97,7 +95,6 @@ class Configuration
|
|
97
95
|
d['postfixadmin_dbhost'] = 'localhost'
|
98
96
|
d['postfixadmin_dbport'] = 5432
|
99
97
|
d['postfixadmin_dbopts'] = ''
|
100
|
-
d['postfixadmin_dbtty'] = ''
|
101
98
|
d['postfixadmin_dbuser'] = 'postgres'
|
102
99
|
d['postfixadmin_dbpass'] = ''
|
103
100
|
d['postfixadmin_dbname'] = 'postfixadmin'
|
@@ -105,7 +102,6 @@ class Configuration
|
|
105
102
|
d['roundcube_dbhost'] = 'localhost'
|
106
103
|
d['roundcube_dbport'] = 5432
|
107
104
|
d['roundcube_dbopts'] = ''
|
108
|
-
d['roundcube_dbtty'] = ''
|
109
105
|
d['roundcube_dbuser'] = 'postgres'
|
110
106
|
d['roundcube_dbpass'] = ''
|
111
107
|
d['roundcube_dbname'] = 'roundcube'
|
@@ -20,7 +20,6 @@ module PostfixadminPlugin
|
|
20
20
|
:host => cfg.postfixadmin_dbhost,
|
21
21
|
:port => cfg.postfixadmin_dbport,
|
22
22
|
:options => cfg.postfixadmin_dbopts,
|
23
|
-
:tty => cfg.postfixadmin_dbtty,
|
24
23
|
:dbname => cfg.postfixadmin_dbname,
|
25
24
|
:user => cfg.postfixadmin_dbuser,
|
26
25
|
:password => cfg.postfixadmin_dbpass }
|
@@ -19,7 +19,6 @@ module RoundcubePlugin
|
|
19
19
|
:host => cfg.roundcube_dbhost,
|
20
20
|
:port => cfg.roundcube_dbport,
|
21
21
|
:options => cfg.roundcube_dbopts,
|
22
|
-
:tty => cfg.roundcube_dbtty,
|
23
22
|
:dbname => cfg.roundcube_dbname,
|
24
23
|
:user => cfg.roundcube_dbuser,
|
25
24
|
:password => cfg.roundcube_dbpass }
|
data/mailshears.gemspec
CHANGED
@@ -4,7 +4,6 @@ plugins: [agendav, davical, dovecot, postfixadmin, roundcube]
|
|
4
4
|
agendav_dbhost: localhost
|
5
5
|
agendav_dbport: 5432
|
6
6
|
agendav_dbopts:
|
7
|
-
agendav_dbtty:
|
8
7
|
agendav_dbuser: postgres
|
9
8
|
agendav_dbpass:
|
10
9
|
agendav_dbname: agendav_test
|
@@ -12,7 +11,6 @@ agendav_dbname: agendav_test
|
|
12
11
|
davical_dbhost: localhost
|
13
12
|
davical_dbport: 5432
|
14
13
|
davical_dbopts:
|
15
|
-
davical_dbtty:
|
16
14
|
davical_dbuser: postgres
|
17
15
|
davical_dbpass:
|
18
16
|
davical_dbname: davical_test
|
@@ -22,7 +20,6 @@ dovecot_mail_root: /tmp/mailshears-test
|
|
22
20
|
postfixadmin_dbhost: localhost
|
23
21
|
postfixadmin_dbport: 5432
|
24
22
|
postfixadmin_dbopts:
|
25
|
-
postfixadmin_dbtty:
|
26
23
|
postfixadmin_dbuser: postgres
|
27
24
|
postfixadmin_dbpass:
|
28
25
|
postfixadmin_dbname: postfixadmin_test
|
@@ -30,7 +27,6 @@ postfixadmin_dbname: postfixadmin_test
|
|
30
27
|
roundcube_dbhost: localhost
|
31
28
|
roundcube_dbport: 5432
|
32
29
|
roundcube_dbopts:
|
33
|
-
roundcube_dbtty:
|
34
30
|
roundcube_dbuser: postgres
|
35
31
|
roundcube_dbpass:
|
36
32
|
roundcube_dbname: roundcube_test
|
data/test/mailshears_test.rb
CHANGED
@@ -32,16 +32,15 @@ class MailshearsTest < MiniTest::Test
|
|
32
32
|
# Connect to the database (specified in the test configuration) as
|
33
33
|
# the superuser. Your local configuration is expected to be such
|
34
34
|
# that this "just works."
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
connection = PG::Connection.new(
|
44
|
-
db_name, db_user, db_pass)
|
35
|
+
db_hash = {
|
36
|
+
:host => 'localhost',
|
37
|
+
:port => 5432,
|
38
|
+
:options => nil,
|
39
|
+
:dbname => 'postgres',
|
40
|
+
:user => 'postgres',
|
41
|
+
:password => nil
|
42
|
+
}
|
43
|
+
connection = PG::Connection.new(db_hash)
|
45
44
|
|
46
45
|
return connection
|
47
46
|
end
|
@@ -210,17 +209,16 @@ class MailshearsTest < MiniTest::Test
|
|
210
209
|
query = "CREATE DATABASE #{plugin_dbname};"
|
211
210
|
connection.sync_exec(query)
|
212
211
|
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
212
|
+
plugin_dbhash = {
|
213
|
+
:host => cfg.send("#{plugin}_dbhost"),
|
214
|
+
:port => cfg.send("#{plugin}_dbport"),
|
215
|
+
:options => cfg.send("#{plugin}_dbopts"),
|
216
|
+
:dbname => plugin_dbname,
|
217
|
+
:user => cfg.send("#{plugin}_dbuser"),
|
218
|
+
:password => cfg.send("#{plugin}_dbpass")
|
219
|
+
}
|
219
220
|
|
220
|
-
plugin_conn = PG::Connection.new(
|
221
|
-
plugin_dbopts, plugin_dbtty,
|
222
|
-
plugin_dbname, plugin_dbuser,
|
223
|
-
plugin_dbpass)
|
221
|
+
plugin_conn = PG::Connection.new(plugin_dbhash)
|
224
222
|
|
225
223
|
sql = File.open("test/sql/#{plugin}.sql").read()
|
226
224
|
plugin_conn.sync_exec(sql)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mailshears
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Orlitzky
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-06-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pg
|
@@ -110,7 +110,7 @@ homepage: http://michael.orlitzky.com/code/mailshears.xhtml
|
|
110
110
|
licenses:
|
111
111
|
- AGPL-3.0
|
112
112
|
metadata: {}
|
113
|
-
post_install_message:
|
113
|
+
post_install_message:
|
114
114
|
rdoc_options: []
|
115
115
|
require_paths:
|
116
116
|
- lib
|
@@ -125,9 +125,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
125
125
|
- !ruby/object:Gem::Version
|
126
126
|
version: 1.3.6
|
127
127
|
requirements: []
|
128
|
-
|
129
|
-
|
130
|
-
signing_key:
|
128
|
+
rubygems_version: 3.3.8
|
129
|
+
signing_key:
|
131
130
|
specification_version: 4
|
132
131
|
summary: Prune unused mail directories.
|
133
132
|
test_files: []
|