blackstack-core 1.2.19 → 1.2.21
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 +21 -1
- metadata +2 -26
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5e1d491cd1ae717f97af6ae75c95b70d9be30bc445bb0f1631d6f6356b91a757
|
4
|
+
data.tar.gz: '085891c07c2e6509cf4b22c1ec4af44e9793362d756d047fafa6b79a4005ed5f'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ab1123d23ad9c5f80e5812e620db198cd05fbd93a784dfc736378301feb13f82d0c2e853ebcc4b21125564824979e95bb6e95ef153dcc2de066808d6229bf8a
|
7
|
+
data.tar.gz: a4748fd82262dadc5316b8ffd1449680df51a03ca596987408326fc7cacb128c4c162ec29272db082d9c3cf00ae99163cd3fea2e34b5694970bcdb45d7ee28ac
|
data/lib/functions.rb
CHANGED
@@ -189,12 +189,32 @@ 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 of status only
|
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
|
195
209
|
self.class.update(self.desc)
|
196
210
|
end
|
197
211
|
|
212
|
+
# Submit a hash descriptor to the server for an update of status only
|
213
|
+
#
|
214
|
+
def update_status
|
215
|
+
self.class.update(self.desc)
|
216
|
+
end
|
217
|
+
|
198
218
|
# Submit a hash descriptor to the server for an insert
|
199
219
|
#
|
200
220
|
def self.insert(desc)
|
@@ -221,7 +241,7 @@ module BlackStack
|
|
221
241
|
params: params
|
222
242
|
)
|
223
243
|
raise "Error calling upsert endpoint: #{ret['status']}" if ret['status'] != 'success'
|
224
|
-
return self.new(ret['result']).child_class_instance
|
244
|
+
return ret['result'] == {} ? nil : self.new(ret['result']).child_class_instance
|
225
245
|
end # def self.upsert
|
226
246
|
|
227
247
|
# Submit a hash descriptor to the server for an upsert
|
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.21
|
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-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: content_spinning
|
@@ -17,9 +17,6 @@ dependencies:
|
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 0.3.1
|
20
|
-
- - ">="
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: 0.3.1
|
23
20
|
type: :runtime
|
24
21
|
prerelease: false
|
25
22
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -27,9 +24,6 @@ dependencies:
|
|
27
24
|
- - "~>"
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: 0.3.1
|
30
|
-
- - ">="
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
version: 0.3.1
|
33
27
|
- !ruby/object:Gem::Dependency
|
34
28
|
name: json
|
35
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -37,9 +31,6 @@ dependencies:
|
|
37
31
|
- - "~>"
|
38
32
|
- !ruby/object:Gem::Version
|
39
33
|
version: 2.6.1
|
40
|
-
- - ">="
|
41
|
-
- !ruby/object:Gem::Version
|
42
|
-
version: 2.6.1
|
43
34
|
type: :runtime
|
44
35
|
prerelease: false
|
45
36
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -47,9 +38,6 @@ dependencies:
|
|
47
38
|
- - "~>"
|
48
39
|
- !ruby/object:Gem::Version
|
49
40
|
version: 2.6.1
|
50
|
-
- - ">="
|
51
|
-
- !ruby/object:Gem::Version
|
52
|
-
version: 2.6.1
|
53
41
|
- !ruby/object:Gem::Dependency
|
54
42
|
name: pry
|
55
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -57,9 +45,6 @@ dependencies:
|
|
57
45
|
- - "~>"
|
58
46
|
- !ruby/object:Gem::Version
|
59
47
|
version: 0.14.1
|
60
|
-
- - ">="
|
61
|
-
- !ruby/object:Gem::Version
|
62
|
-
version: 0.14.1
|
63
48
|
type: :runtime
|
64
49
|
prerelease: false
|
65
50
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -67,9 +52,6 @@ dependencies:
|
|
67
52
|
- - "~>"
|
68
53
|
- !ruby/object:Gem::Version
|
69
54
|
version: 0.14.1
|
70
|
-
- - ">="
|
71
|
-
- !ruby/object:Gem::Version
|
72
|
-
version: 0.14.1
|
73
55
|
- !ruby/object:Gem::Dependency
|
74
56
|
name: faraday
|
75
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -77,9 +59,6 @@ dependencies:
|
|
77
59
|
- - "~>"
|
78
60
|
- !ruby/object:Gem::Version
|
79
61
|
version: 2.3.0
|
80
|
-
- - ">="
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: 2.3.0
|
83
62
|
type: :runtime
|
84
63
|
prerelease: false
|
85
64
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -87,9 +66,6 @@ dependencies:
|
|
87
66
|
- - "~>"
|
88
67
|
- !ruby/object:Gem::Version
|
89
68
|
version: 2.3.0
|
90
|
-
- - ">="
|
91
|
-
- !ruby/object:Gem::Version
|
92
|
-
version: 2.3.0
|
93
69
|
description: 'Find documentation here: https://github.com/leandrosardi/blackstack-core.'
|
94
70
|
email: leandro.sardi@expandedventure.com
|
95
71
|
executables: []
|