Skip to content

Commit 9bc766b

Browse files
Replace is_string: false to type: Hash or type: Array
1 parent caf9b47 commit 9bc766b

7 files changed

+8
-8
lines changed

lib/fastlane/plugin/wpmreleasetoolkit/actions/android/an_update_metadata_source_action.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def self.available_options
145145
FastlaneCore::ConfigItem.new(key: :source_files,
146146
env_name: 'FL_UPDATE_METADATA_SOURCE_SOURCE_FILES',
147147
description: 'The hash with the path to the source files and the key to use to include their content',
148-
is_string: false,
148+
type: Hash,
149149
verify_block: proc do |value|
150150
UI.user_error!("No source file hash for UpdateMetadataSourceAction given, pass using `source_files: 'source file hash'`") unless value && (!value.empty?)
151151
end),

lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_create_xml_release_notes.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def self.available_options
4747
FastlaneCore::ConfigItem.new(key: :locales,
4848
env_name: 'FL_DOWNLOAD_METADATA_LOCALES',
4949
description: 'The hash with the GLotPress locale and the project locale association',
50-
is_string: false),
50+
type: Hash),
5151
]
5252
end
5353

lib/fastlane/plugin/wpmreleasetoolkit/actions/common/gp_downloadmetadata_action.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,11 @@ def self.available_options
5555
FastlaneCore::ConfigItem.new(key: :target_files,
5656
env_name: 'FL_DOWNLOAD_METADATA_TARGET_FILES',
5757
description: 'The hash with the path to the target files and the key to use to extract their content',
58-
is_string: false),
58+
type: Hash),
5959
FastlaneCore::ConfigItem.new(key: :locales,
6060
env_name: 'FL_DOWNLOAD_METADATA_LOCALES',
6161
description: 'The hash with the GlotPress locale and the project locale association',
62-
is_string: false),
62+
type: Hash),
6363
FastlaneCore::ConfigItem.new(key: :source_locale,
6464
env_name: 'FL_DOWNLOAD_METADATA_SOURCE_LOCALE',
6565
description: 'The source locale code',

lib/fastlane/plugin/wpmreleasetoolkit/actions/common/gp_update_metadata_source.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def self.available_options
144144
FastlaneCore::ConfigItem.new(key: :source_files,
145145
env_name: 'FL_UPDATE_METADATA_SOURCE_SOURCE_FILES',
146146
description: 'The hash with the path to the source files and the key to use to include their content',
147-
is_string: false,
147+
type: Hash,
148148
verify_block: proc do |value|
149149
UI.user_error!("No source file hash for UpdateMetadataSourceAction given, pass using `source_files: 'source file hash'`") unless value && (!value.empty?)
150150
end),

lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/add_development_certificates_to_provisioning_profiles.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def self.available_options
4343
[
4444
FastlaneCore::ConfigItem.new(key: :app_identifier,
4545
description: 'List of App Identifiers that should contain the new device identifier',
46-
is_string: false,
46+
type: Array,
4747
verify_block: proc do |value|
4848
UI.user_error!('You must provide an array of bundle identifiers in `app_identifier`') if value.empty?
4949
end),

lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/add_devices_to_provisioning_profiles.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def self.available_options
4242
FastlaneCore::ConfigItem.new(
4343
key: :app_identifier,
4444
description: 'List of App Identifiers that should contain the new device identifier',
45-
is_string: false,
45+
type: Array,
4646
verify_block: proc do |value|
4747
UI.user_error!('You must provide an array of bundle identifiers in `app_identifier`') if value.empty?
4848
end

lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_update_metadata_source.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def self.available_options
5656
FastlaneCore::ConfigItem.new(key: :source_files,
5757
env_name: 'FL_IOS_UPDATE_METADATA_SOURCE_SOURCE_FILES',
5858
description: 'The hash with the path to the source files and the key to use to include their content',
59-
is_string: false,
59+
type: Hash,
6060
verify_block: proc do |value|
6161
UI.user_error!("No source file hash for UpdateMetadataSourceAction given, pass using `source_files: 'source file hash'`") unless value && (!value.empty?)
6262
end),

0 commit comments

Comments
 (0)