obsws 0.5.0 → 0.5.2
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: 516727ae86bc3f1f6eaa13a6bc4434bbed7fdeaebd1d5311ba52b40de1a292f0
|
4
|
+
data.tar.gz: 1d42563cfd5d224a1e0f6bad9cbc306222105b098cedb46a062b20544d409104
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a320d897a324f6f90c7fca50f27dee4f3fcf62121e14c2787f144e8b90a3a1e7732b82e6a54571b427bc61dd0eb43cde47da8ff5e3dd31068dc25468063055fe
|
7
|
+
data.tar.gz: '08886350eb47e6689d60dd5afe6dffe0bb69709f6b3b2ad95cd2b98a85c5e3f2948cfdcc7cb63582f710afcaaa1bb9a24980f4091460f8e76bbd37507fa196a6'
|
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 = req_name
|
29
29
|
@code = code
|
30
30
|
@msg = msg
|
31
31
|
super(message)
|