obsws 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/obsws/version.rb +1 -1
- data/lib/obsws.rb +3 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0606bed536e19c257b46e3f4ed909b8933354986fd3718da1ecadc0b26341830
|
4
|
+
data.tar.gz: 1356baa9acb5d13eef9d5a3526d807e1e820ccf6321e991a06fabb9393350e32
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 716f299113c6d013b78d5f9877ea5b3aa9a10d6663a3e705c70f376e43bdbf3cc8b146353a6240d112e598476a503ff4a2338d672ae1ac5390a7764ae3efb14d
|
7
|
+
data.tar.gz: dfa40a8967fbebc8d44ea2f551279306be8e31590d5282bc8ebff5a80573052c71a9cc4628a95482b3db21f17781d321cd44c2395ba39cc8e64023dbec29de67
|
data/README.md
CHANGED
@@ -115,7 +115,7 @@ If a connection attempt fails or times out an `OBSWSConnectionError` will be rai
|
|
115
115
|
|
116
116
|
If a request fails an `OBSWSRequestError` will be raised with a status code.
|
117
117
|
|
118
|
-
- The request name and code are retrievable through attributes {OBSWSRequestError}.
|
118
|
+
- The request name and code are retrievable through attributes {OBSWSRequestError}.req_name and {OBSWSRequestError}.code
|
119
119
|
|
120
120
|
For a full list of status codes refer to [Codes](https://github.com/obsproject/obs-websocket/blob/master/docs/generated/protocol.md#requeststatus)
|
121
121
|
|
data/lib/obsws/version.rb
CHANGED
data/lib/obsws.rb
CHANGED
@@ -22,10 +22,10 @@ module OBSWS
|
|
22
22
|
class OBSWSConnectionError < OBSWSError; end
|
23
23
|
|
24
24
|
class OBSWSRequestError < OBSWSError
|
25
|
-
attr_reader :
|
25
|
+
attr_reader :req_name, :code
|
26
26
|
|
27
|
-
def initialize(
|
28
|
-
@
|
27
|
+
def initialize(req_name, code, msg)
|
28
|
+
@req_name = name
|
29
29
|
@code = code
|
30
30
|
@msg = msg
|
31
31
|
super(message)
|