blackstack-core 1.2.18 → 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 +15 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cb2d649c204b634097c070c41b037cef451c4678df2db14a53fc543dee48f7bf
4
- data.tar.gz: 3f0a5f1c243c94a93b966b922ee65c7555d8da2de4ad6d8ad8c04fd1765cb0d8
3
+ metadata.gz: 55ff5a8cfd6d3d8d4ef9b7baae51ea736fdd8f9850a9d1939d343bd532a261f9
4
+ data.tar.gz: 852a92242d7f19658d6df806e16204a4a5ce46b54ff4bd1615e801daa1dec82d
5
5
  SHA512:
6
- metadata.gz: 1de5d75913eb20baab530abaed5f3f865cad983db46c07ef31f049db9d70fe3830ac7609c34a786266c3e1fb7ed9c88e6e40269a57de5a46f7a6897c844ec654
7
- data.tar.gz: 244dace3ca33f7d2e0a6d7264e773ccd3be95f5698dba4496005d818bbc29f108d3584f7f6f52754962b11719a9548c0dcdc1e8324ce2b261123ba6609345457
6
+ metadata.gz: 31bf8a49ef52f0e20696a50e22edce69446e3d5ee7bfe427a114dadff477c5c81148899fb5d07fa0862ed55e162818049ac73e9123a1d36bf423749364541716
7
+ data.tar.gz: b3c9c9a78dd326946184ba06bc8864c36bf13f94a6c4711a2d6229507e96c8522ef5854e0aa77dcbfdc48c91775870f64fbf2e7dbdbdade18413d7d5712a9ff0
data/lib/functions.rb CHANGED
@@ -46,7 +46,7 @@ module BlackStack
46
46
  api_key: ,
47
47
  api_url: ,
48
48
  api_version: '1.0',
49
- api_port: nil
49
+ api_port: nil,
50
50
  backtrace: false
51
51
  )
52
52
  @@api_key = api_key
@@ -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.18
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