fastlane-plugin-polidea 3.0.0.pre.2 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 317d3aa45968f0355417ab13df0a4da7049597e819c77972b1021e30ee7ef0d9
4
- data.tar.gz: 23e604adeb790bdd1adfc74712b49818302beb1286da7dbdf6ea8332b7bf05fd
3
+ metadata.gz: 47c06814e51a640fb88049a4cfc3f5ab117b6a7e4a7998fad230acf2cb4e36c2
4
+ data.tar.gz: 295b9efce8dda96c0a86366052b96934303fe3aadebda7e7aef28aec880fd170
5
5
  SHA512:
6
- metadata.gz: d6ea02463c20ddd33fc9632cb4d7b8885be1a5d270107b83d4a39c8b59823f044c894925ea97a12a12f2d5597ee3a8211ad03a15571a5d5f5aff82b4ec209cc0
7
- data.tar.gz: 765387f1eb7e99316a021a741d524783bf69f943e1d2e92058ac86b4f3b9f3102d8906baa53e45398699958ba0c87429eafd903339eeb2a1a2545ad6e1f6b013
6
+ metadata.gz: 12749757a7e39a57565db274c5c98145beec26cccc97d1fbde01c29bb76e2089a71392580e87d6863baf3b1e243fbd7ab092dc57813f36d0d5169d156c05bca6
7
+ data.tar.gz: 96257d4d5193d777c73622d576012e016e9d7b4192a87bcbba4f1c166feea9f4db32d8bf5817121996855fc4ba1151ff3593bf7684207f7182ef70701fde7f36
@@ -1,4 +1,3 @@
1
- # rubocop:disable Metrics/MethodLength
2
1
  require 'redcarpet'
3
2
  require 'fastlane/erb_template_helper'
4
3
 
@@ -130,7 +129,7 @@ module Fastlane
130
129
  https://api.mailgun.net/v3/#{sandbox_domain}/messages \
131
130
  -F from='#{options[:from]} <#{options[:postmaster]}>' \
132
131
  -F to='#{options[:to]}' \
133
- -F subject='#{options[:app_name]} #{options[:app_version]} (#{options[:build_number]}) for #{options[:platform]} is ready to install' \
132
+ -F subject='#{options[:app_name]} #{options[:app_version]} (#{options[:build_number]}) for #{human_platform(options[:platform])} is ready to install' \
134
133
  --form-string html=#{Shellwords.escape(body)} \ """ + options[:inline].map { |file| "-F inline=@#{file.path}" }.join(" "), print_command: false, print_command_output: false
135
134
 
136
135
  return body
@@ -171,6 +170,17 @@ module Fastlane
171
170
  )
172
171
  premailer.to_inline_css
173
172
  end
173
+
174
+ def self.human_platform(platform)
175
+ case platform
176
+ when :ios
177
+ "iOS"
178
+ when :android
179
+ "Android"
180
+ else
181
+ platform.to_s
182
+ end
183
+ end
174
184
  end
175
185
  end
176
186
  end
@@ -1,5 +1,4 @@
1
1
  # rubocop:disable Metrics/AbcSize
2
- # rubocop:disable Metrics/MethodLength
3
2
  # rubocop:disable Metrics/ClassLength
4
3
  require 'fastlane/erb_template_helper'
5
4
  require 'ostruct'
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Polidea
3
- VERSION = "3.0.0.pre.2"
3
+ VERSION = "3.0.0"
4
4
  end
5
5
  end
@@ -2,7 +2,7 @@
2
2
  <html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">
3
3
 
4
4
  <head>
5
- <title> <%= app_name %> <%= app_version %> ( <%= build_number %>) for <%= platform %> is ready to install </title>
5
+ <title> <%= app_name %> <%= app_version %> (<%= build_number %>) for <%= platform %> is ready to install </title>
6
6
  <!--[if !mso]><!-- -->
7
7
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
8
8
  <!--<![endif]-->
@@ -255,7 +255,7 @@
255
255
  </td>
256
256
  <td style="line-height: 2; font-family: 'Helvetica', Arial;">
257
257
  <div style="color: black; font-size: 18px; line-height: 20px; font-weight: bold;"> <%= app_name %> </div>
258
- <div style="color: black; font-size: 12px; line-height: 26px"> Version: <%= app_version %> ( <%= build_number %>) </div>
258
+ <div style="color: black; font-size: 12px; line-height: 26px"> Version: <%= app_version %> (<%= build_number %>) </div>
259
259
  </td>
260
260
  <td width="20"></td>
261
261
  </tr>
@@ -304,7 +304,7 @@
304
304
  </tr>
305
305
  <tr>
306
306
  <td align="left" style="font-size:0px;padding:0;word-break:break-word;">
307
- <div style="font-family:'Acumin', 'Helvetica', Arial;font-size:14px;line-height:20px;text-align:left;color:black;">Version: <%= app_version %> ( <%= build_number %>)</div>
307
+ <div style="font-family:'Acumin', 'Helvetica', Arial;font-size:14px;line-height:20px;text-align:left;color:black;">Version: <%= app_version %> (<%= build_number %>)</div>
308
308
  </td>
309
309
  </tr>
310
310
  <tr>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-polidea
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0.pre.2
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Piotrek Dubiel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-19 00:00:00.000000000 Z
11
+ date: 2020-06-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -294,9 +294,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
294
294
  version: '0'
295
295
  required_rubygems_version: !ruby/object:Gem::Requirement
296
296
  requirements:
297
- - - ">"
297
+ - - ">="
298
298
  - !ruby/object:Gem::Version
299
- version: 1.3.1
299
+ version: '0'
300
300
  requirements: []
301
301
  rubygems_version: 3.0.1
302
302
  signing_key: