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

- old
+ new

@@ -17,12 +17,12 @@ "value3" => options[:value3] }) response = https.request(req) - UI.user_error! "Failed to make a request to IFTTT. #{response.message}." unless response.code == "200" - UI.success "Successfully made a request to IFTTT." + UI.user_error!("Failed to make a request to IFTTT. #{response.message}.") unless response.code == "200" + UI.success("Successfully made a request to IFTTT.") end ##################################################### # @!group Documentation ##################################################### @@ -40,16 +40,16 @@ FastlaneCore::ConfigItem.new(key: :api_key, env_name: "IFTTT_API_KEY", sensitive: true, description: "API key", verify_block: proc do |value| - raise UI.error "No API key given, pass using `api_key: 'key'`" if value.to_s.empty? + raise UI.error("No API key given, pass using `api_key: 'key'`") if value.to_s.empty? end), FastlaneCore::ConfigItem.new(key: :event_name, env_name: "IFTTT_EVENT_NAME", description: "The name of the event that will be triggered", verify_block: proc do |value| - raise UI.error "No event name given, pass using `event_name: 'name'`" if value.to_s.empty? + raise UI.error("No event name given, pass using `event_name: 'name'`") if value.to_s.empty? end), FastlaneCore::ConfigItem.new(key: :value1, env_name: "IFTTT_VALUE1", description: "Extra data sent with the event", optional: true,