fastlane-plugin-outlook 0.1.5 → 0.1.7

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
  SHA256:
3
- metadata.gz: 613197ff3a673348c9f25f5b55a7f64ea5d3bcebce14476e182ecd944a435fb0
4
- data.tar.gz: 5d76cbc1ffd2ba61ce8c9ae854d48011d7b9705ec82baa7f2abc19ba28f20bdd
3
+ metadata.gz: ba1aed4ef56e2cbea3f635b05409aeab150c48ae457fe71d1f89972f29aae369
4
+ data.tar.gz: 434de8cd545ca9ecc2fbebd753049b2c6d510ace577bfac6f6d65bcc3571c012
5
5
  SHA512:
6
- metadata.gz: e3a43d214238b4185f365ac51089cd63e8a73f9d45bf9e2e9cf863acbb993a6a3438af3db5b52185ccae83b44dde4dba2d3effbc818142c7168289e257bc7084
7
- data.tar.gz: 642ca64b0c893f68595e0c8f4b46bc55609283176987103a3233a8e9f0b207672f3b47fa0598a4e1f84ac3041f03137247070f6cccd28890d82e332362c3c92b
6
+ metadata.gz: 44e5a5345e5f8766550d7ab01a3016c8f5bedb1abb9c1181a7dd6362826b5600dd3abd95cbd37d3a36a70cf5e5ab61162c66c9d2ee16fbbbc2517284d722cde4
7
+ data.tar.gz: 2d0ace630648b1c2829f84ec166fb72039b6d312b822ba9831e5a7b61a36fea31c0c4f0c9c83a3aecc5af7c733887c1dcccc81c4fe5cab49a0993b8d01cc1f6c
@@ -6,36 +6,48 @@ module Fastlane
6
6
  class OutlookAction < Action
7
7
  def self.run(params)
8
8
  require 'mail'
9
+ require 'sendgrid-ruby'
10
+ from = SendGrid::Email.new(email: 'Tarek.Mohammed@linkdev.com')
11
+ to = SendGrid::Email.new(email: 'eng.tarek13@gmail.com')
12
+ subject = 'Sending with Twilio SendGrid is Fun'
13
+ content = SendGrid::Content.new(type: 'text/plain', value: 'and easy to do anywhere, even with Ruby')
14
+ mail = SendGrid::Mail.new(from, subject, to, content)
9
15
 
10
- Mail.defaults do
11
- if params[:password]
12
- delivery_method :smtp, {
13
- address: 'smtp.office365.com',
14
- port: 587,
15
- user_name: params[:username],
16
- password: params[:password],
17
- authentication: 'login',
18
- enable_starttls_auto: true
19
- }
20
- else
21
- delivery_method :smtp, {
22
- port: 587,
23
- address: "smtp-relay.gmail.com",
24
- domain: params[:domain]
25
- }
26
- end
27
- end
16
+ sg = SendGrid::API.new(api_key: params[:username])
17
+ response = sg.client.mail._('send').post(request_body: mail.to_json)
18
+ puts response.status_code
19
+ puts response.body
20
+ puts response.parsed_body
21
+ puts response.headers
22
+ # Mail.defaults do
23
+ # if params[:password]
24
+ # delivery_method :smtp, {
25
+ # address: 'smtp.office365.com',
26
+ # port: 587,
27
+ # user_name: params[:username],
28
+ # password: params[:password],
29
+ # authentication: 'login',
30
+ # enable_starttls_auto: true
31
+ # }
32
+ # else
33
+ # delivery_method :smtp, {
34
+ # port: 587,
35
+ # address: "smtp-relay.gmail.com",
36
+ # domain: params[:domain]
37
+ # }
38
+ # end
39
+ #end
28
40
 
29
- Mail.deliver do
30
- from params[:username]
31
- to params[:to]
32
- cc params[:cc]
33
- subject params[:subject]
34
- html_part do
35
- content_type 'text/html; charset=UTF-8'
36
- body params[:body]
37
- end
38
- end
41
+ # Mail.deliver do
42
+ # from params[:username]
43
+ # to params[:to]
44
+ # cc params[:cc]
45
+ # subject params[:subject]
46
+ # html_part do
47
+ # content_type 'text/html; charset=UTF-8'
48
+ # body params[:body]
49
+ # end
50
+ # end
39
51
  end
40
52
 
41
53
  def self.description
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Outlook
3
- VERSION = "0.1.5"
3
+ VERSION = "0.1.7"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-outlook
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - OTVENTURES\Tarek.Mohammed