41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
# File 'lib/fastlane/actions/version_bump_podspec.rb', line 41
def self.available_options
[
FastlaneCore::ConfigItem.new(key: :path,
env_name: "FL_VERSION_BUMP_PODSPEC_PATH",
description: "You must specify the path to the podspec file to update",
default_value: Dir["*.podspec"].last,
verify_block: proc do |value|
UI.user_error!("Please pass a path to the `version_bump_podspec` action") if value.length == 0
end),
FastlaneCore::ConfigItem.new(key: :bump_type,
env_name: "FL_VERSION_BUMP_PODSPEC_BUMP_TYPE",
description: "The type of this version bump. Available: patch, minor, major",
default_value: "patch",
verify_block: proc do |value|
UI.user_error!("Available values are 'patch', 'minor' and 'major'") unless ['patch', 'minor', 'major'].include? value
end),
FastlaneCore::ConfigItem.new(key: :version_number,
env_name: "FL_VERSION_BUMP_PODSPEC_VERSION_NUMBER",
description: "Change to a specific version. This will replace the bump type value",
optional: true)
]
end
|