marfa 0.3.0 → 0.3.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: c1a41778eb844114cb830fe48aa4c3be812e263d
4
- data.tar.gz: a60191698afc032ffcfa2bf242a52353c897744d
3
+ metadata.gz: 83259484f6fc95aecd48284b309768af5290b259
4
+ data.tar.gz: 91a451bd1eb4f5f02ba0a36155f9c523059c62ab
5
5
  SHA512:
6
- metadata.gz: a54094bfc1431e0dd77016f45617fc9218f07d76c35d1ae6866e94ae3ada5d13e1a9572a6dd9dda3d74e9ff3ed0648ae320b70a117095d371b3bb093fec123e0
7
- data.tar.gz: 6a56ad0267d509005b5a16f5c36b5f0ed3387199899019c0653012d5d5721bae8b734b3842729084df3b054936213512338eea9f2f2b0dd56f6bf08f060e581a
6
+ metadata.gz: c3eff2798e4308cbb5582fc3b0a7556c10e24541ddc27958d7501e6fb6f21aacdf2e330a8ec5863922364b3e0a12d2cba610ea4453d306c22bf7d6f7de658fdc
7
+ data.tar.gz: 96cb35e219ce11141531d8c7d83c895bf0edaa8ecc9c282197a91dd98c2e1ec6f0190c3a8415f7d10e91bd0b3183a264468eb18042e1377e09445b7abb9670e9
@@ -23,7 +23,16 @@ module Marfa
23
23
  via_options: config
24
24
  }
25
25
 
26
- Pony.mail(to: options[:to], subject: options[:subject], html_body: body)
26
+ mail = {
27
+ to: options[:to],
28
+ subject: options[:subject],
29
+ html_body: body
30
+ }
31
+
32
+ mail[:from] = config[:from] unless config[:from].nil?
33
+
34
+ Pony.mail(mail)
35
+
27
36
  end
28
37
  end
29
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.3.0' unless defined?(Marfa::VERSION)
4
+ VERSION = '0.3.1' 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.3.0'
6
+ s.version = '0.3.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.3.0
4
+ version: 0.3.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-02-28 00:00:00.000000000 Z
13
+ date: 2017-03-17 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: haml