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.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- motion_yak (0.0.17)
4
+ motion_yak (0.0.18)
5
5
  bubble-wrap
6
6
 
7
7
  GEM
@@ -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
@@ -1,5 +1,5 @@
1
1
  module MotionYak
2
- VERSION = '0.0.17' unless defined?(MotionYak::VERSION)
2
+ VERSION = '0.0.18' unless defined?(MotionYak::VERSION)
3
3
  MIN_MOTION_VERSION = '1.24'
4
4
 
5
5
  module_function
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.17
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: -1969128054836820070
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: -1969128054836820070
76
+ hash: 3478902127145825580
77
77
  requirements: []
78
78
  rubyforge_project:
79
79
  rubygems_version: 1.8.21