From 13f57f79f6b57a73317058d3554497ba29852060 Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Fri, 11 Aug 2023 13:10:44 +0100 Subject: [PATCH] rename name to req_name in OBSWSRequestError patch bump --- README.md | 2 +- lib/obsws.rb | 6 +++--- lib/obsws/version.rb | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index ac9063c..2da938c 100644 --- a/README.md +++ b/README.md @@ -115,7 +115,7 @@ If a connection attempt fails or times out an `OBSWSConnectionError` will be rai If a request fails an `OBSWSRequestError` will be raised with a status code. -- The request name and code are retrievable through attributes {OBSWSRequestError}.name and {OBSWSRequestError}.code +- The request name and code are retrievable through attributes {OBSWSRequestError}.req_name and {OBSWSRequestError}.code For a full list of status codes refer to [Codes](https://github.com/obsproject/obs-websocket/blob/master/docs/generated/protocol.md#requeststatus) diff --git a/lib/obsws.rb b/lib/obsws.rb index e8d9143..8c83cc6 100644 --- a/lib/obsws.rb +++ b/lib/obsws.rb @@ -22,10 +22,10 @@ module OBSWS class OBSWSConnectionError < OBSWSError; end class OBSWSRequestError < OBSWSError - attr_reader :name, :code + attr_reader :req_name, :code - def initialize(name, code, msg) - @name = name + def initialize(req_name, code, msg) + @req_name = name @code = code @msg = msg super(message) diff --git a/lib/obsws/version.rb b/lib/obsws/version.rb index 80dae86..ef0d0ef 100644 --- a/lib/obsws/version.rb +++ b/lib/obsws/version.rb @@ -11,7 +11,7 @@ module OBSWS end def patch - 0 + 1 end def to_a