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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e90eb8546e7e088c6ff45823ab98feff431362cc
4
- data.tar.gz: 972ed883ebf38d373cc9f1c7546a111a91c35176
3
+ metadata.gz: 9660d54bf2f08452677681829e8f0ff9f95f2e0c
4
+ data.tar.gz: 5ce43ae82a5dc1bfc49b6572f17a6937a13528c8
5
5
  SHA512:
6
- metadata.gz: f4719552788b728bd71fb43a94dbc82742a02250c743e7d4199313468860eadfd0001fbbc0b3a628cf96c651d2900bc81881b83aa5d7fca46d3594a39f71ea7c
7
- data.tar.gz: c8d5282aceef26f0ff77da460a9227ba6faac9f8885ef8348c30496777f8285cabd0c0c06ab0879643cd555f6d3c0d31d260455a879012db15ac7488dcd150c2
6
+ metadata.gz: 82c5d4e7b170dbfe7f03ac9e213e2d6cb7754a3e84249a264dff22cadb37629a8a281f000cd816446f0216ff2e34792bc161ac8a1eece476bf6ae7546c291a84
7
+ data.tar.gz: bbfcfc02d731ec48ac2e76d32cc2c69a856411db589455a0897b550f7838ffe933dfd558c1a6c137985d2e6a6474d54c61730b7ffea0c435beeea4b2ead3eae4
@@ -16,7 +16,8 @@ module Marfa
16
16
  config = Marfa.config.email[mailbox]
17
17
  return if config.nil?
18
18
 
19
- body = haml :"#{options[:template]}", locals: options[:data], layout: false
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.0'.freeze unless defined?(Marfa::VERSION)
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
@@ -3,7 +3,7 @@
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = 'marfa'
6
- s.version = '0.9.0'
6
+ s.version = '0.9.1'
7
7
  s.required_ruby_version = '>= 2.3.0'
8
8
  s.platform = Gem::Platform::RUBY
9
9
  s.date = Time.now.strftime('%Y-%m-%d')
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.0
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-21 00:00:00.000000000 Z
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.5.1
307
+ rubygems_version: 2.6.8
308
308
  signing_key:
309
309
  specification_version: 4
310
310
  summary: Sinatra-based wrapper