rock_rms 8.8.0 → 8.9.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: b88623e84f56232b51a5c3554e01a45e12d681ce751ae613746c1afcb439e1f4
4
+ data.tar.gz: 79d21480246debf6089213ad6918b69b5436158c5ac105f220f8e701d132e64f
5
5
  SHA512:
6
- metadata.gz: e3a8125e04b0203458db96c5dbf86dc6231d4f6f2475c841379447ceb9f56b93eff5a153fc85e569b4bd7108b3b76e926624accd177153e31a54666d032b0d3e
7
- data.tar.gz: 89e930161caac74f7be2bada2d71fa8a3be2298b14ce30d2964e626c4e5662c463dd0f26153f49a07763fda3406ac551580b667abb0145e9cbeebde885200e37
6
+ metadata.gz: 9e382ccd0c2015ff41173be3a106c457350adf54a5389f4f9341cb959f021f4489575579901f96286d2873e72ae1c6d897f07e8350e6b1b5b5f84d50a9af3bed
7
+ data.tar.gz: '08b38b7fd15dbb0caae012c59ecd75f64f707a694f809634e192c7c3810e351c5592e76be855c4abd43b30f76bfa743a09d211f4199f7d2e0fed3eaba328c29c'
@@ -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.9.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.9.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-06-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday