maily 0.8.0 → 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -2
- data/README.md +10 -10
- data/app/assets/stylesheets/maily/application.scss +4 -10
- data/lib/maily/engine.rb +0 -1
- data/lib/maily/version.rb +1 -1
- data/spec/dummy/README.md +3 -3
- metadata +2 -3
- data/app/assets/images/maily/fonts/JosefinSans-Light.ttf +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 53f2a75d760006c70b0170ea0b988dbc1ec28e1a
|
4
|
+
data.tar.gz: 0b20b1bb18339daa33af3175352c91e8024ac14d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3295b06c6c50c059f7cf72e51995b7ea5eec16aef7c44b215e50d72cc267e1dbe5752740a0d9ec895adaec67480784bf4e4a4398a68cd57cd9e73eef6e4e69d6
|
7
|
+
data.tar.gz: e55b7b8db64fca59a5c0441f703f1e5cfe7c176c48eb8d63e5190dc0ffa55cd4c3505fd1bc91fa63de1f7bfe7a430b4c31aae73272cdadcce7cce7e01ccef3d6
|
data/CHANGELOG.md
CHANGED
@@ -2,11 +2,14 @@
|
|
2
2
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
|
5
|
+
## [0.8.1]
|
6
|
+
|
7
|
+
- Serve fonts from Google Fonts API
|
8
|
+
|
5
9
|
## [0.8.0]
|
6
10
|
|
7
11
|
- Inherited emails support (#28)
|
8
|
-
- `Maily.available_locales` defaults to Rails
|
9
|
-
available_locales `config.i18n.available_locales` (#27)
|
12
|
+
- `Maily.available_locales` defaults to Rails available_locales `config.i18n.available_locales` (#27)
|
10
13
|
|
11
14
|
## [0.7.2]
|
12
15
|
|
@@ -91,6 +94,7 @@ available_locales `config.i18n.available_locales` (#27)
|
|
91
94
|
|
92
95
|
- First real usable release :tada:
|
93
96
|
|
97
|
+
[0.8.1]: https://github.com/markets/maily/compare/v0.8.0...v0.8.1
|
94
98
|
[0.8.0]: https://github.com/markets/maily/compare/v0.7.2...v0.8.0
|
95
99
|
[0.7.2]: https://github.com/markets/maily/compare/v0.7.1...v0.7.2
|
96
100
|
[0.7.1]: https://github.com/markets/maily/compare/v0.7.0...v0.7.1
|
data/README.md
CHANGED
@@ -26,14 +26,14 @@ Maily automatically picks up all your emails and make them accessible from a kin
|
|
26
26
|
|
27
27
|
Add this line to you Gemfile:
|
28
28
|
|
29
|
-
```
|
29
|
+
```ruby
|
30
30
|
gem 'maily'
|
31
31
|
```
|
32
32
|
|
33
33
|
Run generator:
|
34
34
|
|
35
35
|
```
|
36
|
-
rails g maily:install
|
36
|
+
> rails g maily:install
|
37
37
|
```
|
38
38
|
|
39
39
|
This generator runs some tasks for you:
|
@@ -44,7 +44,7 @@ This generator runs some tasks for you:
|
|
44
44
|
|
45
45
|
## Initialization and configuration
|
46
46
|
|
47
|
-
You should configure Maily via
|
47
|
+
You should configure Maily via an initializer. You can set different values per environment:
|
48
48
|
|
49
49
|
```ruby
|
50
50
|
Maily.enabled = ENV['MAILY_ENABLED']
|
@@ -85,13 +85,13 @@ end
|
|
85
85
|
|
86
86
|
### Templates edition (`allow_edition` option)
|
87
87
|
|
88
|
-
This feature was designed for `development` environment. Since it's just a file edition and running in `production
|
88
|
+
This feature was designed for the `development` environment. Since it's based on just a file edition, and while running in `production` mode, code is not reloaded between requests, Rails doesn't take into account your changes (without restarting the server). Actually, allowing arbitrary Ruby code evaluation is potentially dangerous, and that's not a good idea in `production`.
|
89
89
|
|
90
|
-
So, template edition is not allowed outside of `development` environment.
|
90
|
+
So, template edition is not allowed outside of the `development` environment.
|
91
91
|
|
92
92
|
## Hooks
|
93
93
|
|
94
|
-
Most of emails need to populate some data to consume it and do interesting things. Hooks are used to define this data
|
94
|
+
Most of emails need to populate some data to consume it and do interesting things. Hooks are used to define this data via a little DSL. Hooks also accept "callable" objects to *lazy* load variables/data, so each email will evaluate its hooks on demand. Example:
|
95
95
|
|
96
96
|
```ruby
|
97
97
|
# lib/maily_hooks.rb
|
@@ -141,7 +141,7 @@ end
|
|
141
141
|
|
142
142
|
## Authorization
|
143
143
|
|
144
|
-
Basically, you have 2 ways to restrict
|
144
|
+
Basically, you have 2 ways to restrict access to the `Maily` section. You can even combine both.
|
145
145
|
|
146
146
|
### Custom base controller
|
147
147
|
|
@@ -175,15 +175,15 @@ Maily.http_authorization = { username: 'admin', password: 'secret' }
|
|
175
175
|
|
176
176
|
## Notes
|
177
177
|
|
178
|
-
Rails 4.1 introduced a built-in mechanism to preview the application emails. It is in fact a port of [basecamp/mail_view](https://github.com/basecamp/mail_view) gem to the core.
|
178
|
+
Rails 4.1 introduced a built-in mechanism to preview the application emails. It is in fact, a port of [basecamp/mail_view](https://github.com/basecamp/mail_view) gem to the core.
|
179
179
|
|
180
|
-
Alternatively, there are some other plugins to get a similar functionality with different approaches and options. For example, [ryanb/letter_opener](https://github.com/ryanb/letter_opener), [sj26/mailcatcher](https://github.com/sj26/mailcatcher) or [glebm/rails_email_preview](https://github.com/glebm/rails_email_preview).
|
180
|
+
Alternatively, there are some other plugins to get a similar functionality, but with different approaches and options. For example, [ryanb/letter_opener](https://github.com/ryanb/letter_opener), [sj26/mailcatcher](https://github.com/sj26/mailcatcher) or [glebm/rails_email_preview](https://github.com/glebm/rails_email_preview).
|
181
181
|
|
182
182
|
## Development
|
183
183
|
|
184
184
|
Any kind of feedback, bug report, idea or enhancement are really appreciated :tada:
|
185
185
|
|
186
|
-
To contribute, just fork the repo, hack on it and send a pull request. Don't forget to add
|
186
|
+
To contribute, just fork the repo, hack on it and send a pull request. Don't forget to add tests for behaviour changes and run the test suite:
|
187
187
|
|
188
188
|
> bundle exec appraisal rake
|
189
189
|
|
@@ -1,12 +1,6 @@
|
|
1
|
-
@import "
|
1
|
+
@import url("https://fonts.googleapis.com/css?family=Josefin+Sans:light");
|
2
2
|
|
3
|
-
|
4
|
-
@font-face {
|
5
|
-
font-weight: light;
|
6
|
-
font-style: normal;
|
7
|
-
font-family: 'Josefin Sans';
|
8
|
-
src: asset-url('maily/fonts/JosefinSans-Light.ttf') format('truetype');
|
9
|
-
}
|
3
|
+
@import "maily/variables";
|
10
4
|
|
11
5
|
/* Body */
|
12
6
|
body {
|
@@ -88,7 +82,7 @@ footer.footer {
|
|
88
82
|
|
89
83
|
.content {
|
90
84
|
margin-right: 2em;
|
91
|
-
margin-left:
|
85
|
+
margin-left: 1em;
|
92
86
|
padding-left: 20%;
|
93
87
|
|
94
88
|
ul.action_bar {
|
@@ -239,7 +233,7 @@ aside.sidebar {
|
|
239
233
|
width: 20%;
|
240
234
|
|
241
235
|
section.nav_list {
|
242
|
-
margin: 0 0 1.5em
|
236
|
+
margin: 0 0 1.5em 1.5em;
|
243
237
|
|
244
238
|
.nav_title {
|
245
239
|
margin: 0 0 .4em;
|
data/lib/maily/engine.rb
CHANGED
data/lib/maily/version.rb
CHANGED
data/spec/dummy/README.md
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
# Dummy App
|
2
2
|
|
3
|
-
Dummy Rails application to test `Maily` engine.
|
3
|
+
Dummy Rails application to test the `Maily` engine.
|
4
4
|
|
5
|
-
Run
|
5
|
+
Run the suite (from `Maily` root path):
|
6
6
|
|
7
7
|
```
|
8
|
-
bundle exec rake
|
8
|
+
> bundle exec rake
|
9
9
|
```
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: maily
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- markets
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-10-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -96,7 +96,6 @@ files:
|
|
96
96
|
- MIT-LICENSE
|
97
97
|
- README.md
|
98
98
|
- Rakefile
|
99
|
-
- app/assets/images/maily/fonts/JosefinSans-Light.ttf
|
100
99
|
- app/assets/images/maily/icons/globe.svg
|
101
100
|
- app/assets/images/maily/icons/paperclip.svg
|
102
101
|
- app/assets/images/maily/logo.png
|
Binary file
|