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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/functions.rb +14 -0
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 66675342db4268cdaddc78276980841dccb9eff8265bb96b7de997835c96f0cd
4
- data.tar.gz: 8d6f686276c52c6bdfe1030c6b82c541a48a01a5a0798a880affb8fe0a78ed20
3
+ metadata.gz: 55ff5a8cfd6d3d8d4ef9b7baae51ea736fdd8f9850a9d1939d343bd532a261f9
4
+ data.tar.gz: 852a92242d7f19658d6df806e16204a4a5ce46b54ff4bd1615e801daa1dec82d
5
5
  SHA512:
6
- metadata.gz: 8278fca0b354085f38a9d822c49b4b4086339e6f1ac52de2d2bd5f5f70089f7cf2fe234d01f20d6cd384f91eb14f45a30f6b390f79688abd77e0855fe4063199
7
- data.tar.gz: b387460d7c6fec97ac127a86aaf63a831a43c54de5b7764500444c607755adeb62dadc47b7a26c01821f998edc3bd98d08486d8e1192b543abba33a810cf8a2a
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.19
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-26 00:00:00.000000000 Z
11
+ date: 2024-07-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: content_spinning