diff --git a/easypost.gemspec b/easypost.gemspec index a5d9c493..55593c25 100644 --- a/easypost.gemspec +++ b/easypost.gemspec @@ -25,7 +25,7 @@ Gem::Specification.new do |spec| spec.add_development_dependency 'faraday', '~> 2.7.5' # used for integration tests spec.add_development_dependency 'pry', '~> 0.14' spec.add_development_dependency 'rake', '~> 13.0' - spec.add_development_dependency 'rdoc', '~> 6.5' + spec.add_development_dependency 'rdoc', '~> 6.9' spec.add_development_dependency 'rspec', '~> 3.12' spec.add_development_dependency 'rubocop', '~> 1.49' spec.add_development_dependency 'rubocop-rspec', '2.19' # pin to 2.19 because latest version doesn't support Ruby 2.6 diff --git a/lib/easypost/services/address.rb b/lib/easypost/services/address.rb index 723e352d..4587e708 100644 --- a/lib/easypost/services/address.rb +++ b/lib/easypost/services/address.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true class EasyPost::Services::Address < EasyPost::Services::Service - MODEL_CLASS = EasyPost::Models::Address + MODEL_CLASS = EasyPost::Models::Address # :nodoc: # Create an address. def create(params = {}) diff --git a/lib/easypost/services/batch.rb b/lib/easypost/services/batch.rb index e96cf6a1..96eca3f6 100644 --- a/lib/easypost/services/batch.rb +++ b/lib/easypost/services/batch.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true class EasyPost::Services::Batch < EasyPost::Services::Service - MODEL_CLASS = EasyPost::Models::Batch + MODEL_CLASS = EasyPost::Models::Batch # :nodoc: # Create a Batch. def create(params = {}) diff --git a/lib/easypost/services/carrier_account.rb b/lib/easypost/services/carrier_account.rb index 825fd20f..36a1bd01 100644 --- a/lib/easypost/services/carrier_account.rb +++ b/lib/easypost/services/carrier_account.rb @@ -3,7 +3,7 @@ class EasyPost::Services::CarrierAccount < EasyPost::Services::Service CUSTOM_WORKFLOW_CARRIER_TYPES = %w[FedexAccount FedexSmartpostAccount].freeze UPS_OAUTH_CARRIER_ACCOUNT_TYPES = %w[UpsAccount UpsMailInnovationsAccount UpsSurepostAccount].freeze - MODEL_CLASS = EasyPost::Models::CarrierAccount + MODEL_CLASS = EasyPost::Models::CarrierAccount # :nodoc: # Create a carrier account def create(params = {}) diff --git a/lib/easypost/services/carrier_type.rb b/lib/easypost/services/carrier_type.rb index 6fcb5d6e..89e4640e 100644 --- a/lib/easypost/services/carrier_type.rb +++ b/lib/easypost/services/carrier_type.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true class EasyPost::Services::CarrierType < EasyPost::Services::Service - MODEL_CLASS = EasyPost::Models::CarrierType + MODEL_CLASS = EasyPost::Models::CarrierType # :nodoc: # Retrieve all carrier types def all diff --git a/lib/easypost/services/claim.rb b/lib/easypost/services/claim.rb index bd771ff2..4d0d6e54 100644 --- a/lib/easypost/services/claim.rb +++ b/lib/easypost/services/claim.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true class EasyPost::Services::Claim < EasyPost::Services::Service - MODEL_CLASS = EasyPost::Models::Claim + MODEL_CLASS = EasyPost::Models::Claim # :nodoc: # Create an Claim object def create(params = {}) diff --git a/lib/easypost/services/customs_info.rb b/lib/easypost/services/customs_info.rb index efdedf00..96f5702c 100644 --- a/lib/easypost/services/customs_info.rb +++ b/lib/easypost/services/customs_info.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true class EasyPost::Services::CustomsInfo < EasyPost::Services::Service - MODEL_CLASS = EasyPost::Models::CustomsInfo + MODEL_CLASS = EasyPost::Models::CustomsInfo # :nodoc: # Create a CustomsInfo object def create(params) diff --git a/lib/easypost/services/customs_item.rb b/lib/easypost/services/customs_item.rb index aa5f5042..35a3dee0 100644 --- a/lib/easypost/services/customs_item.rb +++ b/lib/easypost/services/customs_item.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true class EasyPost::Services::CustomsItem < EasyPost::Services::Service - MODEL_CLASS = EasyPost::Models::CustomsItem + MODEL_CLASS = EasyPost::Models::CustomsItem # :nodoc: # Create a CustomsItem object def create(params) diff --git a/lib/easypost/services/end_shipper.rb b/lib/easypost/services/end_shipper.rb index a525cc89..7de6e44e 100644 --- a/lib/easypost/services/end_shipper.rb +++ b/lib/easypost/services/end_shipper.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true class EasyPost::Services::EndShipper < EasyPost::Services::Service - MODEL_CLASS = EasyPost::Models::EndShipper + MODEL_CLASS = EasyPost::Models::EndShipper # :nodoc: # Create an EndShipper object. def create(params = {}) diff --git a/lib/easypost/services/event.rb b/lib/easypost/services/event.rb index 51f12472..fc58f9ee 100644 --- a/lib/easypost/services/event.rb +++ b/lib/easypost/services/event.rb @@ -3,7 +3,7 @@ require 'json' class EasyPost::Services::Event < EasyPost::Services::Service - MODEL_CLASS = EasyPost::Models::Event + MODEL_CLASS = EasyPost::Models::Event # :nodoc: # Retrieve an Event object def retrieve(id) diff --git a/lib/easypost/services/insurance.rb b/lib/easypost/services/insurance.rb index 11235df0..1a7ebc2d 100644 --- a/lib/easypost/services/insurance.rb +++ b/lib/easypost/services/insurance.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true class EasyPost::Services::Insurance < EasyPost::Services::Service - MODEL_CLASS = EasyPost::Models::Insurance + MODEL_CLASS = EasyPost::Models::Insurance # :nodoc: # Create an Insurance object def create(params = {}) diff --git a/lib/easypost/services/order.rb b/lib/easypost/services/order.rb index b61d61d5..ff109fce 100644 --- a/lib/easypost/services/order.rb +++ b/lib/easypost/services/order.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true class EasyPost::Services::Order < EasyPost::Services::Service - MODEL_CLASS = EasyPost::Models::Order + MODEL_CLASS = EasyPost::Models::Order # :nodoc: # Create an Order object def create(params = {}) diff --git a/lib/easypost/services/parcel.rb b/lib/easypost/services/parcel.rb index d4a90631..6625185e 100644 --- a/lib/easypost/services/parcel.rb +++ b/lib/easypost/services/parcel.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true class EasyPost::Services::Parcel < EasyPost::Services::Service - MODEL_CLASS = EasyPost::Models::Parcel + MODEL_CLASS = EasyPost::Models::Parcel # :nodoc: # Create a Parcel object def create(params = {}) diff --git a/lib/easypost/services/pickup.rb b/lib/easypost/services/pickup.rb index 381813b5..ecccfc03 100644 --- a/lib/easypost/services/pickup.rb +++ b/lib/easypost/services/pickup.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true class EasyPost::Services::Pickup < EasyPost::Services::Service - MODEL_CLASS = EasyPost::Models::Pickup + MODEL_CLASS = EasyPost::Models::Pickup # :nodoc: # Create a Pickup object def create(params = {}) diff --git a/lib/easypost/services/referral_customer.rb b/lib/easypost/services/referral_customer.rb index fe37d3fc..22aa5151 100644 --- a/lib/easypost/services/referral_customer.rb +++ b/lib/easypost/services/referral_customer.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true class EasyPost::Services::ReferralCustomer < EasyPost::Services::Service - MODEL_CLASS = EasyPost::Models::User + MODEL_CLASS = EasyPost::Models::User # :nodoc: # Create a referral customer. This function requires the Partner User's API key. def create(params = {}) diff --git a/lib/easypost/services/refund.rb b/lib/easypost/services/refund.rb index 4b44bb48..9d929bec 100644 --- a/lib/easypost/services/refund.rb +++ b/lib/easypost/services/refund.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true class EasyPost::Services::Refund < EasyPost::Services::Service - MODEL_CLASS = EasyPost::Models::Refund + MODEL_CLASS = EasyPost::Models::Refund # :nodoc: # Create a Refund object def create(params = {}) diff --git a/lib/easypost/services/report.rb b/lib/easypost/services/report.rb index bda57178..450ac476 100644 --- a/lib/easypost/services/report.rb +++ b/lib/easypost/services/report.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true class EasyPost::Services::Report < EasyPost::Services::Service - MODEL_CLASS = EasyPost::Models::Report + MODEL_CLASS = EasyPost::Models::Report # :nodoc: # Create a Report def create(params = {}) diff --git a/lib/easypost/services/scan_form.rb b/lib/easypost/services/scan_form.rb index 39462de5..8dc26f9c 100644 --- a/lib/easypost/services/scan_form.rb +++ b/lib/easypost/services/scan_form.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true class EasyPost::Services::ScanForm < EasyPost::Services::Service - MODEL_CLASS = EasyPost::Models::ScanForm + MODEL_CLASS = EasyPost::Models::ScanForm # :nodoc: # Create a ScanForm. def create(params = {}) diff --git a/lib/easypost/services/shipment.rb b/lib/easypost/services/shipment.rb index 177eeb0a..35ec35dd 100644 --- a/lib/easypost/services/shipment.rb +++ b/lib/easypost/services/shipment.rb @@ -3,7 +3,7 @@ require 'set' class EasyPost::Services::Shipment < EasyPost::Services::Service - MODEL_CLASS = EasyPost::Models::Shipment + MODEL_CLASS = EasyPost::Models::Shipment # :nodoc: # Create a Shipment. def create(params = {}) diff --git a/lib/easypost/services/tracker.rb b/lib/easypost/services/tracker.rb index e9e2e714..19ad7a84 100644 --- a/lib/easypost/services/tracker.rb +++ b/lib/easypost/services/tracker.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true class EasyPost::Services::Tracker < EasyPost::Services::Service - MODEL_CLASS = EasyPost::Models::Tracker + MODEL_CLASS = EasyPost::Models::Tracker # :nodoc: # Create a Tracker def create(params = {}) diff --git a/lib/easypost/services/user.rb b/lib/easypost/services/user.rb index 7e7a12c3..1703ec94 100644 --- a/lib/easypost/services/user.rb +++ b/lib/easypost/services/user.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true class EasyPost::Services::User < EasyPost::Services::Service - MODEL_CLASS = EasyPost::Models::User + MODEL_CLASS = EasyPost::Models::User # :nodoc: # Create a child User. def create(params = {}) diff --git a/lib/easypost/services/webhook.rb b/lib/easypost/services/webhook.rb index 626c24ac..3c910de3 100644 --- a/lib/easypost/services/webhook.rb +++ b/lib/easypost/services/webhook.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true class EasyPost::Services::Webhook < EasyPost::Services::Service - MODEL_CLASS = EasyPost::Models::Webhook + MODEL_CLASS = EasyPost::Models::Webhook # :nodoc: # Create a Webhook. def create(params = {})