rock_rms 8.8.0 → 8.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rock_rms/resources/user_login.rb +4 -2
- data/lib/rock_rms/response/attribute_value.rb +5 -2
- data/lib/rock_rms/response/transaction.rb +1 -0
- data/lib/rock_rms/version.rb +1 -1
- data/spec/rock_rms/response/attribute_value_spec.rb +13 -1
- data/spec/support/fixtures/attribute_values.json +9 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b88ea390417b9b0de3882164ce48ce2e8de3abf1cab44797637647e09e96acbd
|
4
|
+
data.tar.gz: 1c0b0b3526549626c3002909bfd4111d4fb5b4885faf2eeae9f3abffa44f08cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ceb282ec47f30fb1486bea4b1268adc1b21110a5c7246fb961e3b394f4efe3b71f38fab18b9841f64fcd8954ce16383f39bbabbb65ac024d5d65ce05d5e820b5
|
7
|
+
data.tar.gz: 03c2b98e4c04c003c08ad0d4fa156115cf6c5009921fb91b03f529ade53c1ff090f4f250281664e24167cea19a0ff9cdddceba5bb542568f03514806a9b6dcd1
|
@@ -7,16 +7,18 @@ module RockRMS
|
|
7
7
|
end
|
8
8
|
|
9
9
|
def create_user_login(
|
10
|
+
api_key: nil,
|
10
11
|
username:,
|
11
|
-
password
|
12
|
+
password: nil,
|
12
13
|
person_id:,
|
13
14
|
is_confirmed: false
|
14
15
|
)
|
15
16
|
options = {
|
17
|
+
'ApiKey' => api_key,
|
16
18
|
'UserName' => username,
|
17
19
|
'PersonId' => person_id,
|
18
20
|
'EntityTypeId' => 27,
|
19
|
-
'IsConfirmed' =>
|
21
|
+
'IsConfirmed' => is_confirmed,
|
20
22
|
'IsLockedOut' => false,
|
21
23
|
'IsPasswordChangeRequired' => true,
|
22
24
|
'LastPasswordChangedDateTime' => Time.now,
|
@@ -5,11 +5,14 @@ module RockRMS
|
|
5
5
|
value: 'Value',
|
6
6
|
value_as_number: 'ValueAsNumeric',
|
7
7
|
value_formatted: 'ValueFormatted',
|
8
|
-
entity_id: 'EntityId'
|
8
|
+
entity_id: 'EntityId',
|
9
|
+
attribute: 'Attribute'
|
9
10
|
}.freeze
|
10
11
|
|
11
12
|
def format_single(data)
|
12
|
-
to_h(MAP, data)
|
13
|
+
response = to_h(MAP, data)
|
14
|
+
response[:attribute] = Attribute.format(response[:attribute])
|
15
|
+
response
|
13
16
|
end
|
14
17
|
end
|
15
18
|
end
|
data/lib/rock_rms/version.rb
CHANGED
@@ -14,7 +14,7 @@ RSpec.describe RockRMS::Response::AttributeValue, type: :model do
|
|
14
14
|
|
15
15
|
it 'has the correct number keys' do
|
16
16
|
keys = result.first.keys
|
17
|
-
expect(keys.count).to eq(
|
17
|
+
expect(keys.count).to eq(11)
|
18
18
|
end
|
19
19
|
|
20
20
|
it 'translates keys' do
|
@@ -24,6 +24,18 @@ RSpec.describe RockRMS::Response::AttributeValue, type: :model do
|
|
24
24
|
expect(r[:value]).to eq(p['Value'])
|
25
25
|
expect(r[:value_as_number]).to eq(p['ValueAsNumeric'])
|
26
26
|
expect(r[:entity_id]).to eq(p['EntityId'])
|
27
|
+
expect(r[:attribute]).to eq({
|
28
|
+
attribute_values: nil,
|
29
|
+
attributes: nil,
|
30
|
+
created_date_time: nil,
|
31
|
+
description: nil,
|
32
|
+
entity_type_id: 7,
|
33
|
+
guid: "abcd",
|
34
|
+
id: 22,
|
35
|
+
key: "JobPulse",
|
36
|
+
modified_date_time: nil,
|
37
|
+
name: "Job Pulse"
|
38
|
+
})
|
27
39
|
end
|
28
40
|
end
|
29
41
|
end
|
@@ -12,6 +12,14 @@
|
|
12
12
|
"ModifiedByPersonAliasId": 1,
|
13
13
|
"ModifiedAuditValuesAlreadyUpdated": false,
|
14
14
|
"Id": 11615,
|
15
|
-
"Guid": "70d06b09-97cd-4788-9667-6f0b11dcde70"
|
15
|
+
"Guid": "70d06b09-97cd-4788-9667-6f0b11dcde70",
|
16
|
+
"Attribute": {
|
17
|
+
"AbbreviatedName": "Job Pulse",
|
18
|
+
"EntityTypeId": 7,
|
19
|
+
"Key": "JobPulse",
|
20
|
+
"Name": "Job Pulse",
|
21
|
+
"Id": 22,
|
22
|
+
"Guid": "abcd"
|
23
|
+
}
|
16
24
|
}
|
17
25
|
]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rock_rms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 8.
|
4
|
+
version: 8.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Taylor Brooks
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-07-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|