blackstack-core 1.2.20 → 1.2.21

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 +8 -2
  3. metadata +2 -26
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 55ff5a8cfd6d3d8d4ef9b7baae51ea736fdd8f9850a9d1939d343bd532a261f9
4
- data.tar.gz: 852a92242d7f19658d6df806e16204a4a5ce46b54ff4bd1615e801daa1dec82d
3
+ metadata.gz: 5e1d491cd1ae717f97af6ae75c95b70d9be30bc445bb0f1631d6f6356b91a757
4
+ data.tar.gz: '085891c07c2e6509cf4b22c1ec4af44e9793362d756d047fafa6b79a4005ed5f'
5
5
  SHA512:
6
- metadata.gz: 31bf8a49ef52f0e20696a50e22edce69446e3d5ee7bfe427a114dadff477c5c81148899fb5d07fa0862ed55e162818049ac73e9123a1d36bf423749364541716
7
- data.tar.gz: b3c9c9a78dd326946184ba06bc8864c36bf13f94a6c4711a2d6229507e96c8522ef5854e0aa77dcbfdc48c91775870f64fbf2e7dbdbdade18413d7d5712a9ff0
6
+ metadata.gz: 0ab1123d23ad9c5f80e5812e620db198cd05fbd93a784dfc736378301feb13f82d0c2e853ebcc4b21125564824979e95bb6e95ef153dcc2de066808d6229bf8a
7
+ data.tar.gz: a4748fd82262dadc5316b8ffd1449680df51a03ca596987408326fc7cacb128c4c162ec29272db082d9c3cf00ae99163cd3fea2e34b5694970bcdb45d7ee28ac
data/lib/functions.rb CHANGED
@@ -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.20
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-29 00:00:00.000000000 Z
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: []