blackstack-core 1.2.22 → 1.2.24

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 +6 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: eeec7dd172ce4321a22633fe2c75736b7cec993d17f1db22ec5244c1b9aaa6be
4
- data.tar.gz: ac0ad27a098b05b37b2997ea549e9fc3113fb04949164bc1b1f6dedcb64e3647
3
+ metadata.gz: 1aa3a45ff79a12f9925f0ee359ecb2cc34a939d0d5bd57c4bb37ee94f09fdcc7
4
+ data.tar.gz: 8c20f141fdcfb8f1c541d7fd20db8c5b1ba262b68bd384b704f8b07999ff4827
5
5
  SHA512:
6
- metadata.gz: b79a4d6d3ba3f23280e77bf821eb64ad502f91d95b3ed0be5051416a66e0661ea47bd6235ce1c4abf9c5a23512c028ada008b8e27e54ff389c208394a0c5b9fa
7
- data.tar.gz: 1e804168ea8f93ad015deaad6979ec5493d25cac4b7a603aa8991036b1a82e5a28891ce9edae200d5ea82afc31aec25b29c269563b88966c931dbe9b3c1c9f71
6
+ metadata.gz: 728a63245d33b12c75369e1518bb9df8655b413054309db4fde529218cb08b91ac4cd81ef0369bdce90c635645142cb62695172c7fa0c948f8d42fc363f86128
7
+ data.tar.gz: bd19db97213396022a459ba8f96e9431c75b65e3030eb9a0e1f3836f11ef5df16d805376e506c02a046c83667339555028a60ec4dbca02fbc0bf5c622e552972
data/lib/functions.rb CHANGED
@@ -56,10 +56,11 @@ module BlackStack
56
56
  @@backtrace = backtrace
57
57
  end # def self.set_client
58
58
 
59
+ # merge existing classes with new ones.
59
60
  def self.set_server(
60
61
  classes: {}
61
62
  )
62
- @@classes.merge(classes)
63
+ @@classes.merge!(classes)
63
64
  end # def self.set_server
64
65
 
65
66
  def self.post(
@@ -106,8 +107,11 @@ module BlackStack
106
107
  return self
107
108
  end
108
109
 
109
- def self.account_value(field:)
110
+ # sysowner must provide the id_account for getting an account value.
111
+ # for non sysowner it is assigned to his account.
112
+ def self.account_value(field:, id_account:nil)
110
113
  params = {}
114
+ params['id_account'] = id_account
111
115
  params['field'] = field
112
116
  # call the API
113
117
  ret = BlackStack::API.post(
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.22
4
+ version: 1.2.24
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-08-03 00:00:00.000000000 Z
11
+ date: 2024-08-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: content_spinning