fastlane-plugin-mailjet 0.1.0 → 0.1.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ebede79d6998df5d5e3308aee9a7f08d530bb7f1
|
4
|
+
data.tar.gz: 98deb7c7abd53827446acaa57e9bc73e7a717538
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 388ab714171140c99cc2a2956ce427a8ce7ee27853ceea55bfcea85430c9a8e1f163ed7b1ecbaf53c0187d3db138d216212f5957e192bbc0d1ea19f6187254a7
|
7
|
+
data.tar.gz: 1fcd078c6b9c41bfce7add291072c2bcfe65b15b6190ef22b39912be5fb6f5f2a7f242ba5ae7b77c046986ddddf964ed5e4070f001ca1fd0446c20e869374222
|
@@ -26,10 +26,6 @@ module Fastlane
|
|
26
26
|
FastlaneCore::ConfigItem.new(key: :secret_key,
|
27
27
|
env_name: "MAILJET_PRIVATEKEY",
|
28
28
|
description: "Private api key for mailjet") ,
|
29
|
-
FastlaneCore::ConfigItem.new(key: :api_version,
|
30
|
-
env_name: "MAILJET_APIVERSION",
|
31
|
-
description: "API version formailjet",
|
32
|
-
default_value: "v3"),
|
33
29
|
FastlaneCore::ConfigItem.new(key: :sender,
|
34
30
|
env_name: "SENDER",
|
35
31
|
description: "Object containing sender email and name",
|
@@ -56,12 +52,12 @@ module Fastlane
|
|
56
52
|
is_string: false),
|
57
53
|
FastlaneCore::ConfigItem.new(key: :templateErrorReporting,
|
58
54
|
env_name: "TEMPLATE_ERROR_REPORTING",
|
59
|
-
description: "
|
55
|
+
description: "Email Address where a message with the error description is sent to",
|
60
56
|
optional: true,
|
61
57
|
is_string: false),
|
62
|
-
FastlaneCore::ConfigItem.new(key: :
|
58
|
+
FastlaneCore::ConfigItem.new(key: :templateErrorDeliver,
|
63
59
|
env_name: "TEMPLATE_ERROR_DELIVER",
|
64
|
-
description: "
|
60
|
+
description: "Determines if the message should - or not - be delivered to the recipient in case of an error, when processing the message's template language",
|
65
61
|
optional: true),
|
66
62
|
FastlaneCore::ConfigItem.new(key: :templateId,
|
67
63
|
env_name: "TEMPLATEID",
|
@@ -73,6 +69,11 @@ module Fastlane
|
|
73
69
|
description: "Variables of the mail object",
|
74
70
|
optional: true,
|
75
71
|
is_string: false),
|
72
|
+
FastlaneCore::ConfigItem.new(key: :attachments,
|
73
|
+
env_name: "ATTACHEMENTS",
|
74
|
+
description: "Variables of the mail object",
|
75
|
+
optional: true,
|
76
|
+
is_string: false),
|
76
77
|
]
|
77
78
|
end
|
78
79
|
|
@@ -86,21 +87,23 @@ module Fastlane
|
|
86
87
|
Mailjet.configure do |config|
|
87
88
|
config.api_key = options[:api_key]
|
88
89
|
config.secret_key = options[:secret_key]
|
89
|
-
config.api_version =
|
90
|
+
config.api_version = "v3"
|
90
91
|
end
|
91
92
|
recipientsArray= options[:recipients].split(/[,;]/).each do |recip|
|
92
93
|
hash = {:email => "recipient email"}
|
93
94
|
end
|
94
|
-
email = {
|
95
|
+
email = {
|
96
|
+
:from_email => options.dig(:sender, :email),
|
95
97
|
:from_name => options.dig(:sender, :name),
|
96
98
|
:subject => options[:subject],
|
97
99
|
:text_part => options[:textPart],
|
98
100
|
:recipients => recipientsArray,
|
99
101
|
:'mj-templatelanguage' => options[:templateLanguage],
|
100
102
|
:'mj-templateerrorreporting' => options[:templateErrorReporting],
|
101
|
-
:'mj-templateerrordeliver' => options[:
|
103
|
+
:'mj-templateerrordeliver' => options[:templateErrorDeliver],
|
102
104
|
:'mj-templateid' => options[:templateId],
|
103
|
-
:vars => options[:vars]
|
105
|
+
:vars => options[:vars],
|
106
|
+
:attachments => options[:attachments]
|
104
107
|
}
|
105
108
|
test = Mailjet::Send.create(email)
|
106
109
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-mailjet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- thibaut noah
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-06-
|
11
|
+
date: 2019-06-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|
@@ -147,7 +147,7 @@ files:
|
|
147
147
|
- lib/fastlane/plugin/mailjet.rb
|
148
148
|
- lib/fastlane/plugin/mailjet/actions/mailjet_action.rb
|
149
149
|
- lib/fastlane/plugin/mailjet/version.rb
|
150
|
-
homepage:
|
150
|
+
homepage: https://github.com/tirrorex/fastlane-plugin-mailjet
|
151
151
|
licenses:
|
152
152
|
- MIT
|
153
153
|
metadata: {}
|