maildotyml 0.0.3 → 0.0.4
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.
data/README.md
CHANGED
@@ -16,6 +16,10 @@ And then execute:
|
|
16
16
|
|
17
17
|
$ bundle
|
18
18
|
|
19
|
+
To install an example mail.yml, run:
|
20
|
+
|
21
|
+
$ rails generate maildotyml:install
|
22
|
+
|
19
23
|
## Usage
|
20
24
|
|
21
25
|
Add a `config/mail.yml` to your project.
|
@@ -58,12 +62,6 @@ With maildotyml, either will work.
|
|
58
62
|
* `username` -> `user_name`
|
59
63
|
* `host` -> `address`
|
60
64
|
|
61
|
-
## TODO
|
62
|
-
|
63
|
-
The following features are planned for the near future:
|
64
|
-
|
65
|
-
* Add a generator to create `config/mail.yml.example` with example configuration.
|
66
|
-
|
67
65
|
## Contributing
|
68
66
|
|
69
67
|
1. Fork it
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
require 'rails/generators/base'
|
4
|
+
|
5
|
+
module Maildotyml
|
6
|
+
class InstallGenerator < Rails::Generators::Base
|
7
|
+
desc 'Creates a mail.yml configuration file at config/mail.yml.example.'
|
8
|
+
|
9
|
+
def self.source_root
|
10
|
+
@_maildotyml_source_root ||= File.expand_path("../templates", __FILE__)
|
11
|
+
end
|
12
|
+
|
13
|
+
def create_config_file
|
14
|
+
template 'mail.yml.example', File.join('config', 'mail.yml.example')
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
development:
|
2
|
+
adapter: :smtp
|
3
|
+
|
4
|
+
test:
|
5
|
+
adapter: :test
|
6
|
+
|
7
|
+
production:
|
8
|
+
adapter: :smtp
|
9
|
+
host: 'localhost'
|
10
|
+
port: 25
|
11
|
+
authentication: 'login'
|
12
|
+
domain: 'localhost.localdomain'
|
13
|
+
username: <%= ENV['MAIL_USERNAME'] %>
|
14
|
+
password: <%= ENV['MAIL_PASSWORD'] %>
|
15
|
+
enable_startttls_auto: true
|
data/lib/maildotyml/railtie.rb
CHANGED
data/lib/maildotyml/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: maildotyml
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-05-
|
12
|
+
date: 2013-05-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -67,6 +67,8 @@ extensions: []
|
|
67
67
|
extra_rdoc_files: []
|
68
68
|
files:
|
69
69
|
- lib/maildotyml/configuration.rb
|
70
|
+
- lib/maildotyml/generators/install_generator.rb
|
71
|
+
- lib/maildotyml/generators/templates/mail.yml.example
|
70
72
|
- lib/maildotyml/railtie.rb
|
71
73
|
- lib/maildotyml/version.rb
|
72
74
|
- lib/maildotyml.rb
|
@@ -88,7 +90,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
88
90
|
version: '0'
|
89
91
|
segments:
|
90
92
|
- 0
|
91
|
-
hash:
|
93
|
+
hash: 4518382594176911064
|
92
94
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
93
95
|
none: false
|
94
96
|
requirements:
|
@@ -97,7 +99,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
97
99
|
version: '0'
|
98
100
|
segments:
|
99
101
|
- 0
|
100
|
-
hash:
|
102
|
+
hash: 4518382594176911064
|
101
103
|
requirements: []
|
102
104
|
rubyforge_project:
|
103
105
|
rubygems_version: 1.8.25
|