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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 06aac472a02c56536bdeddfaef8de5c3b273f645
4
- data.tar.gz: 7beb443286274be5d2a5dccc1c987d9ea4ccf08c
3
+ metadata.gz: 53f2a75d760006c70b0170ea0b988dbc1ec28e1a
4
+ data.tar.gz: 0b20b1bb18339daa33af3175352c91e8024ac14d
5
5
  SHA512:
6
- metadata.gz: 4e3b8549a478516f18455592986e6d7ddf850035db3f6a7afb1c5f5dc44974ed47a79c3abb0686749d5026747b33c45adfea1fc61619392e4973fcd81b9d42da
7
- data.tar.gz: d4129159e44325534a217e7083f212c8951c7e965d6ed44aefb7d8235fe5d46c10b49506d8a2197ff8138556d55b70845dd828789cffbb72876b95a628545d00
6
+ metadata.gz: 3295b06c6c50c059f7cf72e51995b7ea5eec16aef7c44b215e50d72cc267e1dbe5752740a0d9ec895adaec67480784bf4e4a4398a68cd57cd9e73eef6e4e69d6
7
+ data.tar.gz: e55b7b8db64fca59a5c0441f703f1e5cfe7c176c48eb8d63e5190dc0ffa55cd4c3505fd1bc91fa63de1f7bfe7a430b4c31aae73272cdadcce7cce7e01ccef3d6
@@ -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 the initializer. You can set these options per environment:
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`, code is not reloaded between requests, Rails doesn't take in account this change (without restarting the server). Also, allow arbitrary ruby code evaluation is potentially dangerous, that's not a good idea for `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 with a little DSL. Hooks accept "callable" objects to lazy load (most expensive) data. Example:
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 the access to `Maily`.
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 specs for behaviour changes and run the test suite:
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 "maily/variables";
1
+ @import url("https://fonts.googleapis.com/css?family=Josefin+Sans:light");
2
2
 
3
- /* Title font */
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: 2em;
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 2.1em;
236
+ margin: 0 0 1.5em 1.5em;
243
237
 
244
238
  .nav_title {
245
239
  margin: 0 0 .4em;
@@ -8,7 +8,6 @@ module Maily
8
8
  maily/application.js
9
9
  maily/logo.png
10
10
  maily/icons/*.svg
11
- maily/fonts/*.ttf
12
11
  )
13
12
  end
14
13
  end
@@ -1,3 +1,3 @@
1
1
  module Maily
2
- VERSION = "0.8.0"
2
+ VERSION = "0.8.1"
3
3
  end
@@ -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 test suite (from `Maily` root path):
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.0
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-07-31 00:00:00.000000000 Z
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