fastlane-plugin-menigit 1.0.0 → 1.0.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
  SHA256:
3
- metadata.gz: f7cd4b218a44d844c6be33a8c1ccc3eaf0c4b55a3b68cb6e1506fa1030252384
4
- data.tar.gz: b06f6de9ccd740a8c719ae7c0c38d8917b8d0e75df65c789208eecc6f9b466ce
3
+ metadata.gz: 8da129f2e009201985ca4a4df8c17c5395e995e7e617e89769819e89bc669189
4
+ data.tar.gz: df23cd20c4b96aba9e5218ce75ce395662f0a2ee9c63b9313c106681285b2a56
5
5
  SHA512:
6
- metadata.gz: ae2aee3ef437e47f53ad2532c6ad2da10ed8867695dfc73af35a7c974b335d7a110223789deceaac979623972c326159785d281a0b46131b2c01e96e6afbee2f
7
- data.tar.gz: 10240d9b19b124b2f749dd134e4df828bcb48bd880335088adc7e50f0d4b68ce91e491c3fb48b6c58d326acb6b51758cbdcf4949f01ff953e641b4cc9a1e083c
6
+ metadata.gz: 314e2650f49040f7b0111d3fd370b1d46460ce4e0e77543130eecbf10875a18a7eb25e102e15833aacabe8f4d53ca1604dca5ecc45e8ec116d4bbcd04714d206
7
+ data.tar.gz: 4a7187c1e533992ec611f9c53dc4ba9c23c2e67db4fb1bdd16241eb7d5020a9143ef44bc61726d200328977b1d9f00ccd8822ade0f908499115bc0abd7f8406b
@@ -10,7 +10,8 @@ module Fastlane
10
10
  if no_changes
11
11
  UI.success("Git diff for #{path} is clean, all good! 💪")
12
12
  else
13
- error_message = "Git diff for #{path} is dirty! Please ensure the repo is in a clean state by committing/stashing/discarding all changes first."
13
+ error_message = params[:error_message]
14
+ error_message ||= "Git diff for #{path} is dirty! Please ensure the repo is in a clean state by committing/stashing/discarding all changes first."
14
15
  if params[:show_diff]
15
16
  error_message += "\nGit diff:\n#{git_diff}"
16
17
  end
@@ -34,7 +35,12 @@ module Fastlane
34
35
  description: "The flag whether to show the git diff if the repo is dirty",
35
36
  optional: true,
36
37
  default_value: false,
37
- type: Boolean)
38
+ type: Boolean),
39
+ FastlaneCore::ConfigItem.new(key: :error_message,
40
+ env_name: "ENSURE_NO_CHANGES_ERROR_MESSAGE",
41
+ description: "Error message that will be show instead of default one based on path",
42
+ optional: true,
43
+ type: String)
38
44
  ]
39
45
  end
40
46
 
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Menigit
3
- VERSION = "1.0.0"
3
+ VERSION = "1.0.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-menigit
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Meniga
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-16 00:00:00.000000000 Z
11
+ date: 2020-04-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry