From 45011592160773b09dc609dd5b2f142d867f6733 Mon Sep 17 00:00:00 2001 From: Hakan Ensari Date: Thu, 3 Mar 2016 13:42:42 +0000 Subject: [PATCH] Raise it is https://github.com/bbatsov/rubocop/issues/2732 --- lib/mws/fulfillment_outbound_shipment/client.rb | 2 +- lib/mws/reports/client.rb | 2 +- lib/peddler/client.rb | 2 +- lib/peddler/marketplace.rb | 4 ++-- lib/peddler/xml_parser.rb | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/mws/fulfillment_outbound_shipment/client.rb b/lib/mws/fulfillment_outbound_shipment/client.rb index 3ae52003..c0be9c1a 100644 --- a/lib/mws/fulfillment_outbound_shipment/client.rb +++ b/lib/mws/fulfillment_outbound_shipment/client.rb @@ -142,7 +142,7 @@ def list_all_fulfillment_orders_by_next_token(next_token) # Returns delivery tracking information for a package in an outbound # shipment for a Multi-Channel Fulfillment order def get_package_tracking_details - fail NotImplementedError + raise NotImplementedError end # Requests that Amazon stop attempting to fulfill an existing fulfillment diff --git a/lib/mws/reports/client.rb b/lib/mws/reports/client.rb index 00d7477b..6fc6d82c 100644 --- a/lib/mws/reports/client.rb +++ b/lib/mws/reports/client.rb @@ -188,7 +188,7 @@ def get_report_schedule_list(*report_type_list) # @see http://docs.developer.amazonservices.com/en_US/reports/Reports_GetReportScheduleListByNextToken.html # @raise [NotImplementedError] def get_report_schedule_list_by_next_token(*) - fail NotImplementedError + raise NotImplementedError end # Counts scheduled reports diff --git a/lib/peddler/client.rb b/lib/peddler/client.rb index f94a4faf..315dc1b4 100644 --- a/lib/peddler/client.rb +++ b/lib/peddler/client.rb @@ -73,7 +73,7 @@ def inherited(base) end end - @error_handler = proc { fail } + @error_handler = proc { raise } # Creates a new client instance # diff --git a/lib/peddler/marketplace.rb b/lib/peddler/marketplace.rb index 01ae5d74..4ff19029 100644 --- a/lib/peddler/marketplace.rb +++ b/lib/peddler/marketplace.rb @@ -20,7 +20,7 @@ class Marketplace attr_reader :id def initialize(id) - @id = id || fail(BadId, 'missing MarketplaceId') + @id = id || raise(BadId, 'missing MarketplaceId') end def host @@ -44,7 +44,7 @@ def encoding private def find_host - HOSTS.fetch(id) { fail BadId, %("#{id}" is not a valid MarketplaceId) } + HOSTS.fetch(id) { raise BadId, %("#{id}" is not a valid MarketplaceId) } end def japanese? diff --git a/lib/peddler/xml_parser.rb b/lib/peddler/xml_parser.rb index 31f01e9a..722be4b6 100644 --- a/lib/peddler/xml_parser.rb +++ b/lib/peddler/xml_parser.rb @@ -20,7 +20,7 @@ def valid? private def find_data - fail NotImplementedError + raise NotImplementedError end end end