fastlane-plugin-polidea 0.6.0 → 0.6.1

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
  SHA1:
3
- metadata.gz: 2f663c58eee16da3a5ec8773857d0aed25e44842
4
- data.tar.gz: 2ef9dc0484e46ddde8bbc3df3481739104792778
3
+ metadata.gz: 5ccc1b1bd5279290ca7d7856323f4b53545d8b32
4
+ data.tar.gz: 5c002fa0109e756ec63d54a91352efc8096de0db
5
5
  SHA512:
6
- metadata.gz: 80b6c64f5e2ad4bee8a0c9bb76804a482f8ccdb5ff33fd3628796016f99f60e55e84eac496073e7fdc7907096572349131080a568947257d6bb65cae6d8a7b99
7
- data.tar.gz: 08c3ea8f8c02cd5af24e6efae1acc9362f99d25442ce3368df48d30a8d5fd469f21ff27bfbf56cd13eac7c0b42474a5b78d17c4e7c7b9b971a23b7b0139d86c9
6
+ metadata.gz: 0fd8c0137a3e66b4b77282e515ff74dd2606ca19cddff61fdb3513e32cc11be37c4863561650cd9b2f5626789a3f7a0243ec069790b4596ed7f3d20761954f4a
7
+ data.tar.gz: 908c27dffd6a9716cb77479245625f42a598c4ddd5a4969711e9c2d873b8a1d515bf2909e7476643158f08b1ac5c0ccb0c01d580a5aa24e5569a43151f2ec3d8
@@ -52,6 +52,11 @@ module Fastlane
52
52
  description: "Mail HTML template",
53
53
  optional: true,
54
54
  is_string: true),
55
+ FastlaneCore::ConfigItem.new(key: :platform,
56
+ env_name: "MAILGUN_PLATFORM",
57
+ description: "Platform used in mail template",
58
+ optional: true,
59
+ default_value: Actions.lane_context[Actions::SharedValues::PLATFORM_NAME]),
55
60
  FastlaneCore::ConfigItem.new(key: :app_icon,
56
61
  env_name: "MAILGUN_APP_ICON",
57
62
  description: "Path to app icon file",
@@ -129,7 +134,7 @@ module Fastlane
129
134
  https://api.mailgun.net/v3/#{sandbox_domain}/messages \
130
135
  -F from='#{options[:from]} <#{options[:postmaster]}>' \
131
136
  -F to='#{options[:to]}' \
132
- -F subject='#{options[:app_name]} #{options[:app_version]} (#{options[:build_number]}) for #{Actions.lane_context[Actions::SharedValues::PLATFORM_NAME]} is ready to install' \
137
+ -F subject='#{options[:app_name]} #{options[:app_version]} (#{options[:build_number]}) for #{options[:platform]} is ready to install' \
133
138
  --form-string html=#{Shellwords.escape(body)} \ """ + options[:inline].map { |file| "-F inline=@#{file.path}" }.join(" "), print_command: false, print_command_output: false
134
139
 
135
140
  return body
@@ -139,14 +144,14 @@ module Fastlane
139
144
  hash = {
140
145
  author: Actions.git_author_email,
141
146
  last_commit: Actions.last_git_commit_message,
142
- is_android: Actions.lane_context[Actions::SharedValues::PLATFORM_NAME] == :android,
147
+ is_android: options[:platform] == :android,
143
148
  app_icon: options[:app_icon] ? File.basename(options[:app_icon]) : nil,
144
149
  app_name: options[:app_name],
145
150
  app_version: options[:app_version],
146
151
  build_number: options[:build_number],
147
152
  installation_link: options[:installation_link],
148
153
  release_notes: (options[:release_notes] || "").split("\n"),
149
- platform: Actions.lane_context[Actions::SharedValues::PLATFORM_NAME],
154
+ platform: options[:platform],
150
155
  release_date: DateTime.now.strftime('%b %d, %Y'),
151
156
  binary_size: (options[:binary_size] / 1024.0 / 1024.0).round(2).to_s
152
157
  }
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Polidea
3
- VERSION = "0.6.0"
3
+ VERSION = "0.6.1"
4
4
  end
5
5
  end
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: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Piotrek Dubiel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-03 00:00:00.000000000 Z
11
+ date: 2016-12-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: plist