marfa 0.9.0 → 0.9.1
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.
- checksums.yaml +4 -4
- data/lib/marfa/helpers/email.rb +2 -2
- data/lib/marfa/version.rb +1 -1
- data/marfa.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9660d54bf2f08452677681829e8f0ff9f95f2e0c
|
|
4
|
+
data.tar.gz: 5ce43ae82a5dc1bfc49b6572f17a6937a13528c8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 82c5d4e7b170dbfe7f03ac9e213e2d6cb7754a3e84249a264dff22cadb37629a8a281f000cd816446f0216ff2e34792bc161ac8a1eece476bf6ae7546c291a84
|
|
7
|
+
data.tar.gz: bbfcfc02d731ec48ac2e76d32cc2c69a856411db589455a0897b550f7838ffe933dfd558c1a6c137985d2e6a6474d54c61730b7ffea0c435beeea4b2ead3eae4
|
data/lib/marfa/helpers/email.rb
CHANGED
|
@@ -16,7 +16,8 @@ module Marfa
|
|
|
16
16
|
config = Marfa.config.email[mailbox]
|
|
17
17
|
return if config.nil?
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
template_engine = Marfa.config.template_engine || :haml
|
|
20
|
+
body = render(template_engine, :"#{options[:template]}", locals: options[:data], layout: false)
|
|
20
21
|
|
|
21
22
|
Pony.options = {
|
|
22
23
|
via: :smtp,
|
|
@@ -32,7 +33,6 @@ module Marfa
|
|
|
32
33
|
mail[:from] = config[:from] unless config[:from].nil?
|
|
33
34
|
|
|
34
35
|
Pony.mail(mail)
|
|
35
|
-
|
|
36
36
|
end
|
|
37
37
|
end
|
|
38
38
|
end
|
data/lib/marfa/version.rb
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Version constant
|
|
2
2
|
module Marfa
|
|
3
3
|
# The version constant for the current version of Marfa
|
|
4
|
-
VERSION = '0.9.
|
|
4
|
+
VERSION = '0.9.1'.freeze unless defined?(Marfa::VERSION)
|
|
5
5
|
|
|
6
6
|
# The current Marfa version.
|
|
7
7
|
# @return [String] The version number
|
data/marfa.gemspec
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: marfa
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.9.
|
|
4
|
+
version: 0.9.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Max Krechetov
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date: 2017-12-
|
|
13
|
+
date: 2017-12-29 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: haml
|
|
@@ -304,7 +304,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
304
304
|
version: '0'
|
|
305
305
|
requirements: []
|
|
306
306
|
rubyforge_project:
|
|
307
|
-
rubygems_version: 2.
|
|
307
|
+
rubygems_version: 2.6.8
|
|
308
308
|
signing_key:
|
|
309
309
|
specification_version: 4
|
|
310
310
|
summary: Sinatra-based wrapper
|