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

- old
+ new

@@ -13,13 +13,13 @@ # @return [Boolean] Is that a private lane that can't be called from the CLI? attr_accessor :is_private def initialize(platform: nil, name: nil, description: nil, block: nil, is_private: false) - UI.user_error!("description must be an array") unless description.kind_of? Array - UI.user_error!("lane name must not contain any spaces") if name.to_s.include? " " - UI.user_error!("lane name must start with :") unless name.kind_of? Symbol + UI.user_error!("description must be an array") unless description.kind_of?(Array) + UI.user_error!("lane name must not contain any spaces") if name.to_s.include?(" ") + UI.user_error!("lane name must start with :") unless name.kind_of?(Symbol) self.class.verify_lane_name(name) self.platform = platform self.name = name @@ -40,16 +40,16 @@ class << self # Makes sure the lane name is valid def verify_lane_name(name) if self.black_list.include?(name.to_s) - UI.error "Lane name '#{name}' is invalid! Invalid names are #{self.black_list.join(', ')}." + UI.error("Lane name '#{name}' is invalid! Invalid names are #{self.black_list.join(', ')}.") UI.user_error!("Lane name '#{name}' is invalid") end if self.gray_list.include?(name.to_sym) - UI.error "Lane name '#{name}' should not be used because it is the name of a fastlane tool" - UI.error "It is recommended to not use '#{name}' as the name of your lane" + UI.error("Lane name '#{name}' should not be used because it is the name of a fastlane tool") + UI.error("It is recommended to not use '#{name}' as the name of your lane") # We still allow it, because we're nice # Otherwise we might break existing setups return end