blackstack-core 1.2.20 → 1.2.22
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 +9 -3
- 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: eeec7dd172ce4321a22633fe2c75736b7cec993d17f1db22ec5244c1b9aaa6be
|
4
|
+
data.tar.gz: ac0ad27a098b05b37b2997ea549e9fc3113fb04949164bc1b1f6dedcb64e3647
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b79a4d6d3ba3f23280e77bf821eb64ad502f91d95b3ed0be5051416a66e0661ea47bd6235ce1c4abf9c5a23512c028ada008b8e27e54ff389c208394a0c5b9fa
|
7
|
+
data.tar.gz: 1e804168ea8f93ad015deaad6979ec5493d25cac4b7a603aa8991036b1a82e5a28891ce9edae200d5ea82afc31aec25b29c269563b88966c931dbe9b3c1c9f71
|
data/lib/functions.rb
CHANGED
@@ -59,7 +59,7 @@ module BlackStack
|
|
59
59
|
def self.set_server(
|
60
60
|
classes: {}
|
61
61
|
)
|
62
|
-
@@classes
|
62
|
+
@@classes.merge(classes)
|
63
63
|
end # def self.set_server
|
64
64
|
|
65
65
|
def self.post(
|
@@ -189,7 +189,7 @@ 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
|
192
|
+
# Submit a hash descriptor to the server for an update of status only
|
193
193
|
#
|
194
194
|
def self.update_status(desc)
|
195
195
|
params = {}
|
@@ -209,6 +209,12 @@ module BlackStack
|
|
209
209
|
self.class.update(self.desc)
|
210
210
|
end
|
211
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
|
+
|
212
218
|
# Submit a hash descriptor to the server for an insert
|
213
219
|
#
|
214
220
|
def self.insert(desc)
|
@@ -235,7 +241,7 @@ module BlackStack
|
|
235
241
|
params: params
|
236
242
|
)
|
237
243
|
raise "Error calling upsert endpoint: #{ret['status']}" if ret['status'] != 'success'
|
238
|
-
return self.new(ret['result']).child_class_instance
|
244
|
+
return ret['result'] == {} ? nil : self.new(ret['result']).child_class_instance
|
239
245
|
end # def self.upsert
|
240
246
|
|
241
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.22
|
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-
|
11
|
+
date: 2024-08-03 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: []
|