Deprecate paapi gem in favour of vacuum v5.0+

Amazon is shutting down PA-API v5 on May 15, 2026. Added deprecation
warning on require and a notice in the README directing users to the
vacuum gem which supports the new Creators API.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Dan Milne
2026-03-13 18:27:55 +11:00
parent d55ef96ac1
commit f585c52f55
2 changed files with 9 additions and 2 deletions

View File

@@ -6,6 +6,13 @@ require "paapi/listing"
require "paapi/response"
module Paapi
DEPRECATION_MESSAGE = <<~MSG.freeze
[DEPRECATION] The paapi gem is deprecated and will stop working after May 15, 2026.
Amazon is replacing PA-API v5 with the Creators API.
Please switch to the vacuum gem (v5.0+): https://github.com/hakanensari/vacuum
MSG
warn DEPRECATION_MESSAGE
class Error < StandardError; end
class NotImplemented < StandardError; end