fastlane/lib/fastlane/configuration_helper.rb in fastlane-2.74.1 vs fastlane/lib/fastlane/configuration_helper.rb in fastlane-2.75.0.beta.20180109010003

- old
+ new

@@ -1,11 +1,11 @@ module Fastlane class ConfigurationHelper def self.parse(action, params) first_element = (action.available_options || []).first - if first_element and first_element.kind_of? FastlaneCore::ConfigItem + if first_element and first_element.kind_of?(FastlaneCore::ConfigItem) # default use case return FastlaneCore::Configuration.create(action.available_options, params) elsif first_element UI.error("Old configuration format for action '#{action}'") if Helper.is_test? return params @@ -14,10 +14,10 @@ # No parameters... we still need the configuration object array FastlaneCore::Configuration.create(action.available_options, {}) end rescue => ex - if action.respond_to? :action_name + if action.respond_to?(:action_name) UI.error("You passed invalid parameters to '#{action.action_name}'.") UI.error("Check out the error below and available options by running `fastlane action #{action.action_name}`") end raise ex end