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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 22ac74e1335ccb310b66334383def8e6ac0554662ceddcda863e70314658a758
4
- data.tar.gz: 27d640dd2d45aa40457c1ef489336892d2c479d495925dca63030987a5e25b88
3
+ metadata.gz: b88ea390417b9b0de3882164ce48ce2e8de3abf1cab44797637647e09e96acbd
4
+ data.tar.gz: 1c0b0b3526549626c3002909bfd4111d4fb5b4885faf2eeae9f3abffa44f08cc
5
5
  SHA512:
6
- metadata.gz: e3a8125e04b0203458db96c5dbf86dc6231d4f6f2475c841379447ceb9f56b93eff5a153fc85e569b4bd7108b3b76e926624accd177153e31a54666d032b0d3e
7
- data.tar.gz: 89e930161caac74f7be2bada2d71fa8a3be2298b14ce30d2964e626c4e5662c463dd0f26153f49a07763fda3406ac551580b667abb0145e9cbeebde885200e37
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' => false,
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
@@ -29,6 +29,7 @@ module RockRMS
29
29
 
30
30
  def format_person(res)
31
31
  return res if res.nil?
32
+
32
33
  Person.format(res['Person'])
33
34
  end
34
35
 
@@ -1,3 +1,3 @@
1
1
  module RockRMS
2
- VERSION = '8.8.0'.freeze
2
+ VERSION = '8.10.0'.freeze
3
3
  end
@@ -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(10)
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.8.0
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-04-27 00:00:00.000000000 Z
11
+ date: 2023-07-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday