selfsdk 0.0.143 → 0.0.144
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/messages/authentication_req.rb +3 -0
- data/lib/messages/fact_request.rb +3 -0
- 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: d9d49a7cde97a88c5c56c6233b964b72c66d9b046b2521cac189475646be55f2
|
|
4
|
+
data.tar.gz: 600b68b342c99830aba799eb13da1650d02cecd4bd824aeb38f51c768c77a13a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3c7989e1245b7b2993e4c5784373d05c25870a1e4e695da1a49571e5ada8d779fb90c5d5f37fd9174e3cef51b054655c9efdb8470f573a98bdfa10ea950d1d8c
|
|
7
|
+
data.tar.gz: 8e30b0e94b496efdc80f6dc4d5bdb655e8236ff098880bf28f46bc8433f08182fe7bfca3942abe893cfd698f8be720ae598611ae24ea6c98b4adfac2db1c9c5b
|
|
@@ -39,6 +39,9 @@ module SelfSDK
|
|
|
39
39
|
protected
|
|
40
40
|
|
|
41
41
|
def proto
|
|
42
|
+
app = @client.app(@jwt.id)
|
|
43
|
+
raise "Your credits have expired, please log in to the developer portal and top up your account." if app[:paid_actions] == false
|
|
44
|
+
|
|
42
45
|
@to_device = @client.devices(@to).first
|
|
43
46
|
Msgproto::Message.new(type: Msgproto::MsgType::MSG,
|
|
44
47
|
sender: "#{@jwt.id}:#{@messaging.device_id}",
|
|
@@ -86,6 +86,9 @@ module SelfSDK
|
|
|
86
86
|
protected
|
|
87
87
|
|
|
88
88
|
def proto
|
|
89
|
+
app = @client.app(@jwt.id)
|
|
90
|
+
raise "Your credits have expired, please log in to the developer portal and top up your account." if app[:paid_actions] == false
|
|
91
|
+
|
|
89
92
|
devices = if @intermediary.nil?
|
|
90
93
|
@client.devices(@to)
|
|
91
94
|
else
|