rmails 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +18 -2
- data/Rakefile +11 -1
- data/app/views/domains/_templates.html.haml +9 -3
- data/config/locales/en.yml +71 -0
- data/lib/rmails.rb +1 -0
- data/lib/rmails/publisher.rb +50 -0
- data/lib/rmails/version.rb +2 -2
- data/rmails.gemspec +2 -2
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 949c82b5c1eda0678bc5585285b8711011caa7d0
|
4
|
+
data.tar.gz: 6a14c7e691deddf1c39421263786a3d38eb7d72b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: be6fd236aa34578825d17ea9e0efee8d44b6b9a5bedf857531e0ba7c52e4895ca646f481f857e3651dd69e6347dbf26a38728701e230bcc5b2a6e2708c0e4ba8
|
7
|
+
data.tar.gz: 0fd5a7f1d1cb6e3c9ac594dcdcc8f26b316284a10acf464ee244e7423af373cb6d441e527ee32bf8adb16a89898a7285b8ebf1a06e15b26d4dd62815f573a8c0
|
data/CHANGELOG.md
CHANGED
@@ -1,15 +1,31 @@
|
|
1
1
|
Changelog
|
2
2
|
=========
|
3
3
|
|
4
|
-
v0.2.
|
4
|
+
v0.2.4 - 2013-06-16
|
5
5
|
--------------------
|
6
6
|
|
7
|
+
- Changed rake task name. system:install -> rmails:install.
|
7
8
|
|
8
9
|
### Features and improvements ###
|
9
10
|
|
10
|
-
-
|
11
|
+
- New rake task. rmails:publish. Task for developer. Increase version and distribute application on Rubygems and Github
|
11
12
|
|
12
13
|
### Bug fixes ###
|
13
14
|
|
15
|
+
- Added application helper for publication release. Fixes broken installation process.
|
16
|
+
|
17
|
+
|
18
|
+
|
19
|
+
|
20
|
+
v0.2.3 - 2013-06-14
|
21
|
+
--------------------
|
22
|
+
|
23
|
+
|
24
|
+
### Features and improvements ###
|
25
|
+
|
26
|
+
- Added data_yml gem and rmails param --clear, so install procedure saves data in the beginning and restores database in the end.
|
27
|
+
- Domains management use routes to edit, delete and manage actions.
|
28
|
+
|
14
29
|
|
30
|
+
- Script bin/rmails had bad condition in param check.
|
15
31
|
|
data/Rakefile
CHANGED
@@ -6,11 +6,21 @@ require File.expand_path('../config/application', __FILE__)
|
|
6
6
|
Rmails::Application.load_tasks
|
7
7
|
|
8
8
|
require "rmails/installer"
|
9
|
+
require "rmails/publisher"
|
10
|
+
|
11
|
+
namespace :rmails do
|
9
12
|
|
10
|
-
namespace :system do
|
11
13
|
desc "Prepare server by installing required software"
|
12
14
|
task :install do
|
13
15
|
setup = Rmails::Installer.new
|
14
16
|
setup.run
|
15
17
|
end
|
18
|
+
|
19
|
+
|
20
|
+
desc "Task for developer. Increase version and distribute application on Rubygems and Github"
|
21
|
+
task :publish do
|
22
|
+
setup = Rmails::Publisher.new
|
23
|
+
setup.run
|
24
|
+
end
|
25
|
+
|
16
26
|
end
|
@@ -32,9 +32,9 @@
|
|
32
32
|
:plain
|
33
33
|
<a href="#!show/<%= item.attr('id') %>" class="label label-info manage">
|
34
34
|
= t("domains.index.manage")
|
35
|
+
|
35
36
|
:plain
|
36
37
|
</a>
|
37
|
-
|
38
38
|
:plain
|
39
39
|
<a href="#!hide/<%= item.attr('id') %>" class="label dn nomanage">
|
40
40
|
= t("domains.index.nomanage")
|
@@ -53,19 +53,25 @@
|
|
53
53
|
|
54
54
|
%script#manage_area_EJS{"type" => "text/ejs"}
|
55
55
|
.item-content.out.row-fluid
|
56
|
+
.span10
|
57
|
+
%h4
|
58
|
+
%span.title= t('dkim.title')
|
59
|
+
.label-info.label.inline.new-user=t 'dkim.show_key'
|
60
|
+
%pre
|
61
|
+
= `cat /etc/ssl/dkim/default.txt`
|
56
62
|
.span5.users
|
57
63
|
%h4
|
58
64
|
%span.title= t('users.index.title')
|
59
65
|
%span.dn.title_new= t('users.index.title_new')
|
60
66
|
%span.dn.title_edit= t('users.index.title_edit')
|
61
|
-
|
67
|
+
.label-info.label.inline.new-user=t 'users.form.create'
|
62
68
|
%table.table.table-condensed
|
63
69
|
.span5.aliases
|
64
70
|
%h4
|
65
71
|
%span.title= t('aliases.index.title')
|
66
72
|
%span.dn.title_new= t('aliases.index.title_new')
|
67
73
|
%span.dn.title_edit= t('aliases.index.title_edit')
|
68
|
-
|
74
|
+
.label-info.label.inline.new-alias=t 'aliases.form.create'
|
69
75
|
%table.table.table-condensed
|
70
76
|
|
71
77
|
|
data/config/locales/en.yml
CHANGED
@@ -1,2 +1,73 @@
|
|
1
1
|
en:
|
2
2
|
unknown_error: Unknown error appeared.
|
3
|
+
navigation:
|
4
|
+
domains: Domény
|
5
|
+
server_settings: Nastavení systému
|
6
|
+
admins: Správci systému
|
7
|
+
statistics: Statistiky
|
8
|
+
help: Nápověda
|
9
|
+
update: Změnit
|
10
|
+
loggedin: "Přihlášen:"
|
11
|
+
logout: Odhlásit
|
12
|
+
alert:
|
13
|
+
domain: Doména nemá vyplněné jméno.
|
14
|
+
alias: Nejsou vyplněny povinné údaje.
|
15
|
+
user: Nejsou vyplněny povinné údaje.
|
16
|
+
|
17
|
+
activerecord:
|
18
|
+
attributes:
|
19
|
+
admin_user:
|
20
|
+
email: E-mail
|
21
|
+
name: Jméno
|
22
|
+
password: Heslo
|
23
|
+
password_confirmation: Potvrzení hesla
|
24
|
+
remember_me: Pamatovat si mne
|
25
|
+
virtual_domain:
|
26
|
+
name: Název domény
|
27
|
+
virtual_user:
|
28
|
+
name: Jméno
|
29
|
+
email: Email
|
30
|
+
password: Heslo
|
31
|
+
password_confirmation: Potvrzení hesla
|
32
|
+
remember_me: Pamatovat si mne
|
33
|
+
virtual_alias:
|
34
|
+
source: Co
|
35
|
+
destination: Kam
|
36
|
+
property:
|
37
|
+
key: Klíč
|
38
|
+
value: Hodnota
|
39
|
+
|
40
|
+
errors:
|
41
|
+
messages:
|
42
|
+
record_invalid: Uvedená data nejsou v pořádku.
|
43
|
+
models:
|
44
|
+
admin_user:
|
45
|
+
attributes:
|
46
|
+
password:
|
47
|
+
confirmation: Hesla nejsou stejná.
|
48
|
+
too_short: Heslo je příliš krátké.
|
49
|
+
blank: Heslo musí být vyplněno.
|
50
|
+
email:
|
51
|
+
blank: E-mail musí být vyplněn.
|
52
|
+
invalid: E-mail má špatný formát.
|
53
|
+
virtual_user:
|
54
|
+
attributes:
|
55
|
+
password:
|
56
|
+
confirmation: Hesla nejsou stejná.
|
57
|
+
too_short: Heslo je příliš krátké.
|
58
|
+
blank: Heslo musí být vyplněno.
|
59
|
+
email:
|
60
|
+
blank: E-mail musí být vyplněn.
|
61
|
+
invalid: E-mail má špatný formát.
|
62
|
+
taken: E-mail je již evidován.
|
63
|
+
virtual_alias:
|
64
|
+
attributes:
|
65
|
+
source:
|
66
|
+
blank: Musí být zadáno, co přesměrovat
|
67
|
+
destination:
|
68
|
+
blank: Musí být zadáno, kam přesměrovat
|
69
|
+
virtual_domain:
|
70
|
+
attributes:
|
71
|
+
name:
|
72
|
+
blank: Název domény musí být vyplněn.
|
73
|
+
invalid: "Název domény má špatný formát. Správně např.: example.co
|
data/lib/rmails.rb
CHANGED
@@ -0,0 +1,50 @@
|
|
1
|
+
unless defined?(Bundler)
|
2
|
+
require "automateit"
|
3
|
+
require "rails"
|
4
|
+
require "rake"
|
5
|
+
require "bundler"
|
6
|
+
end
|
7
|
+
|
8
|
+
module Rmails
|
9
|
+
class Publisher
|
10
|
+
def initialize(params={})
|
11
|
+
@interpreter = ::AutomateIt.new(:project => "system")
|
12
|
+
@interpreter.include_in(self)
|
13
|
+
end
|
14
|
+
|
15
|
+
def run
|
16
|
+
# prepare pre-install Gemfile
|
17
|
+
@interpreter.render :file => "#{dist}rmails/Gemfile.1", :to => "#{Rails.root}/Gemfile", :backup => false
|
18
|
+
Bundler.with_clean_env do
|
19
|
+
@interpreter.shell_manager.sh("bundle install --without development assets")
|
20
|
+
end
|
21
|
+
|
22
|
+
# increase version number
|
23
|
+
versions = []
|
24
|
+
edit :file => "#{Rails.root}/lib/rmails/version.rb", :backup => false do
|
25
|
+
replace /^\s*RELEASE.*$/, " RELEASE = '#{Time.now.strftime('%Y-%m-%d')}'"
|
26
|
+
manipulate do |content|
|
27
|
+
content =~ /^\s*VERSION\s*=\s*['"](.*)['"].*$/
|
28
|
+
versions = $1.split('.')
|
29
|
+
versions[2] = (versions[2].to_i + 1).to_s
|
30
|
+
content.gsub /^\s*VERSION.*$/, " VERSION = '#{versions.join('.')}'"
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
# publish on Rubygems and Github
|
35
|
+
@interpreter.shell_manager.sh("gem build rmails.gemspec")
|
36
|
+
@interpreter.shell_manager.sh("gem push rmails-#{versions.join('.')}.gem")
|
37
|
+
|
38
|
+
@interpreter.shell_manager.sh("git commit -am 'version increased, rubygem published'")
|
39
|
+
@interpreter.shell_manager.sh("git push")
|
40
|
+
|
41
|
+
|
42
|
+
# prepare post-install/devel Gemfile
|
43
|
+
@interpreter.render :file => "#{dist}rmails/Gemfile.2", :to => "#{Rails.root}/Gemfile", :backup => false
|
44
|
+
Bundler.with_clean_env do
|
45
|
+
@interpreter.shell_manager.sh("bundle install")
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
data/lib/rmails/version.rb
CHANGED
data/rmails.gemspec
CHANGED
@@ -2,13 +2,13 @@ require File.expand_path('../lib/rmails/version', __FILE__)
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = "rmails"
|
5
|
-
s.version = Rmails::VERSION
|
5
|
+
s.version = ::Rmails::VERSION
|
6
6
|
s.default_executable = "rmails"
|
7
7
|
s.license = 'MIT'
|
8
8
|
|
9
9
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
10
10
|
s.authors = ["Pavel Novotny"]
|
11
|
-
s.date = Rmails::RELEASE
|
11
|
+
s.date = ::Rmails::RELEASE
|
12
12
|
s.description = %q{Setup for e-mail server and its admin application}
|
13
13
|
s.email = %q{fandisek@gmail.com}
|
14
14
|
s.homepage = %q{https://github.com/fanda/rmails}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rmails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pavel Novotny
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-06-
|
11
|
+
date: 2013-06-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -362,6 +362,7 @@ files:
|
|
362
362
|
- lib/devise-encryptable.rb
|
363
363
|
- lib/rmails.rb
|
364
364
|
- lib/rmails/installer.rb
|
365
|
+
- lib/rmails/publisher.rb
|
365
366
|
- lib/rmails/runner.rb
|
366
367
|
- lib/rmails/version.rb
|
367
368
|
- lib/tasks/.gitkeep
|