blackstack-core 1.2.19 → 1.2.20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/functions.rb +14 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 55ff5a8cfd6d3d8d4ef9b7baae51ea736fdd8f9850a9d1939d343bd532a261f9
|
4
|
+
data.tar.gz: 852a92242d7f19658d6df806e16204a4a5ce46b54ff4bd1615e801daa1dec82d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 31bf8a49ef52f0e20696a50e22edce69446e3d5ee7bfe427a114dadff477c5c81148899fb5d07fa0862ed55e162818049ac73e9123a1d36bf423749364541716
|
7
|
+
data.tar.gz: b3c9c9a78dd326946184ba06bc8864c36bf13f94a6c4711a2d6229507e96c8522ef5854e0aa77dcbfdc48c91775870f64fbf2e7dbdbdade18413d7d5712a9ff0
|
data/lib/functions.rb
CHANGED
@@ -189,6 +189,20 @@ module BlackStack
|
|
189
189
|
return self.new(ret['result']).child_class_instance
|
190
190
|
end # def self.update
|
191
191
|
|
192
|
+
# Submit a hash descriptor to the server for an update
|
193
|
+
#
|
194
|
+
def self.update_status(desc)
|
195
|
+
params = {}
|
196
|
+
params['desc'] = desc
|
197
|
+
params['backtrace'] = BlackStack::API.backtrace
|
198
|
+
ret = BlackStack::API.post(
|
199
|
+
endpoint: "#{self.object_name}/update_status",
|
200
|
+
params: params
|
201
|
+
)
|
202
|
+
raise "Error calling update_status endpoint: #{ret['status']}" if ret['status'] != 'success'
|
203
|
+
return
|
204
|
+
end # def self.update
|
205
|
+
|
192
206
|
# Submit a hash descriptor to the server for an update
|
193
207
|
#
|
194
208
|
def update
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: blackstack-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.20
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Leandro Daniel Sardi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-07-
|
11
|
+
date: 2024-07-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: content_spinning
|