motion_yak 0.0.17 → 0.0.18
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/lib/motion_yak/base.rb +12 -12
- data/lib/motion_yak/version.rb +1 -1
- metadata +3 -3
data/Gemfile.lock
CHANGED
data/lib/motion_yak/base.rb
CHANGED
@@ -32,18 +32,18 @@ module MotionYak
|
|
32
32
|
|
33
33
|
def self.send_email(options, &b)
|
34
34
|
params = {}
|
35
|
-
params['FromAddress'] = options[:from]
|
36
|
-
params['FromName'] = options[:from_name]
|
37
|
-
params['SenderAddress'] = options[:sender_address]
|
38
|
-
params['ToAddress'] = options[:to]
|
39
|
-
params['ReplyToAddress'] = options[:reply_address]
|
40
|
-
params['CcAddress'] = options[:cc]
|
41
|
-
params['BccAddress'] = options[:bcc]
|
42
|
-
params['Subject'] = options[:subject]
|
43
|
-
params['HtmlBody'] = options[:html]
|
44
|
-
params['TextBody'] = options[:text]
|
45
|
-
params['Headers'] = options[:headers]
|
46
|
-
params['Attachments'] = options[:attachments]
|
35
|
+
params['FromAddress'] = options[:from] if options[:from]
|
36
|
+
params['FromName'] = options[:from_name] if options[:from_name]
|
37
|
+
params['SenderAddress'] = options[:sender_address] if options[:sender_address]
|
38
|
+
params['ToAddress'] = options[:to] if options[:to]
|
39
|
+
params['ReplyToAddress'] = options[:reply_address] if options[:reply_address]
|
40
|
+
params['CcAddress'] = options[:cc] if options[:cc]
|
41
|
+
params['BccAddress'] = options[:bcc] if options[:bcc]
|
42
|
+
params['Subject'] = options[:subject] if options[:subject]
|
43
|
+
params['HtmlBody'] = options[:html] if options[:html]
|
44
|
+
params['TextBody'] = options[:text] if options[:text]
|
45
|
+
params['Headers'] = options[:headers] if options[:headers]
|
46
|
+
params['Attachments'] = options[:attachments] if options[:attachments]
|
47
47
|
MotionYak::Request.post self.api_url('send/email/'), params do |json|
|
48
48
|
b.call(json)
|
49
49
|
end
|
data/lib/motion_yak/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: motion_yak
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.18
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -64,7 +64,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
64
64
|
version: '0'
|
65
65
|
segments:
|
66
66
|
- 0
|
67
|
-
hash:
|
67
|
+
hash: 3478902127145825580
|
68
68
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
69
69
|
none: false
|
70
70
|
requirements:
|
@@ -73,7 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
73
73
|
version: '0'
|
74
74
|
segments:
|
75
75
|
- 0
|
76
|
-
hash:
|
76
|
+
hash: 3478902127145825580
|
77
77
|
requirements: []
|
78
78
|
rubyforge_project:
|
79
79
|
rubygems_version: 1.8.21
|